@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-09T19:25:26.086Z") @Stability(value=Experimental) public class User extends Construct implements IUser
Example:
import software.amazon.awscdk.services.kms.*;
Key encryptionKey = new Key(this, "Key");
User.Builder.create(this, "User")
.encryptionKey(encryptionKey)
.cluster(cluster)
.databaseName("databaseName")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
User.Builder
(experimental) A fluent builder for
User. |
software.amazon.jsii.JsiiObject.InitializationModeIUser.Jsii$Default, IUser.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
User(software.constructs.Construct scope,
String id,
UserProps props) |
protected |
User(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
User(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTablePrivileges(ITable table,
TableAction... actions)
(experimental) Grant this user privilege to access a table.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
(experimental) Apply the given removal policy to this resource.
|
static IUser |
fromUserAttributes(software.constructs.Construct scope,
String id,
UserAttributes attrs)
(experimental) Specify a Redshift user using credentials that already exist.
|
ICluster |
getCluster()
(experimental) The cluster where the table is located.
|
String |
getDatabaseName()
(experimental) The name of the database where the table is located.
|
protected DatabaseOptions |
getDatabaseProps() |
SecretValue |
getPassword()
(experimental) The password of the user.
|
String |
getUsername()
(experimental) The name of the user.
|
protected void |
setDatabaseProps(DatabaseOptions value) |
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected User(software.amazon.jsii.JsiiObjectRef objRef)
protected User(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static IUser fromUserAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull UserAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental)
public void addTablePrivileges(@NotNull
ITable table,
@NotNull
TableAction... actions)
addTablePrivileges in interface IUsertable - This parameter is required.actions - This parameter is required.@Stability(value=Experimental)
public void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be destroyed (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
This resource is destroyed by default.
policy - This parameter is required.@Stability(value=Experimental) @NotNull public ICluster getCluster()
getCluster in interface IUser@Stability(value=Experimental) @NotNull public String getDatabaseName()
getDatabaseName in interface IUser@Stability(value=Experimental) @NotNull public SecretValue getPassword()
getPassword in interface IUser@Stability(value=Experimental) @NotNull public String getUsername()
getUsername in interface IUser@Stability(value=Experimental) @NotNull protected DatabaseOptions getDatabaseProps()
@Stability(value=Experimental)
protected void setDatabaseProps(@NotNull
DatabaseOptions value)
Copyright © 2022. All rights reserved.