Class User
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.services.redshift.User
- All Implemented Interfaces:
IConstruct
,IDependable
,IUser
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.858Z")
@Stability(Experimental)
public class User
extends Construct
implements IUser
(experimental) A user in a Redshift cluster.
Example:
User user = User.Builder.create(this, "User") .cluster(cluster) .databaseName("databaseName") .build(); cluster.addRotationMultiUser("MultiUserRotation", RotationMultiUserOptions.builder() .secret(user.getSecret()) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.redshift.IUser
IUser.Jsii$Default, IUser.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTablePrivileges
(ITable table, @NotNull 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.(experimental) The cluster where the table is located.(experimental) The name of the database where the table is located.protected DatabaseOptions
(experimental) The password of the user.(experimental) The Secrets Manager secret of the user.(experimental) The name of the user.protected void
setDatabaseProps
(DatabaseOptions value) Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
User
protected User(software.amazon.jsii.JsiiObjectRef objRef) -
User
protected User(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
User
@Stability(Experimental) public User(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull UserProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromUserAttributes
@Stability(Experimental) @NotNull public static IUser fromUserAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull UserAttributes attrs) (experimental) Specify a Redshift user using credentials that already exist.- Parameters:
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.
-
addTablePrivileges
@Stability(Experimental) public void addTablePrivileges(@NotNull ITable table, @NotNull @NotNull TableAction... actions) (experimental) Grant this user privilege to access a table.- Specified by:
addTablePrivileges
in interfaceIUser
- Parameters:
table
- This parameter is required.actions
- This parameter is required.
-
applyRemovalPolicy
(experimental) Apply the given removal policy to this resource.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.
- Parameters:
policy
- This parameter is required.
-
getCluster
(experimental) The cluster where the table is located.- Specified by:
getCluster
in interfaceIUser
-
getDatabaseName
(experimental) The name of the database where the table is located.- Specified by:
getDatabaseName
in interfaceIUser
-
getPassword
(experimental) The password of the user.- Specified by:
getPassword
in interfaceIUser
-
getSecret
(experimental) The Secrets Manager secret of the user. -
getUsername
(experimental) The name of the user.- Specified by:
getUsername
in interfaceIUser
-
getDatabaseProps
-
setDatabaseProps
-