Class IamUser
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.elasticache.alpha.UserBase
software.amazon.awscdk.services.elasticache.alpha.IamUser
- All Implemented Interfaces:
IEnvironmentAware,IResource,IUser,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:34.217Z")
@Stability(Experimental)
public class IamUser
extends UserBase
(experimental) Define an ElastiCache user with IAM authentication.
Example:
IamUser user = IamUser.Builder.create(this, "User")
// set user engine
.engine(UserEngine.REDIS)
// set user id
.userId("my-user")
// set username
.userName("my-user")
// set access string
.accessControl(AccessControl.fromAccessString("on ~* +@all"))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticache.alpha.IUser
IUser.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIamUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedIamUser(software.amazon.jsii.JsiiObjectRef objRef) IamUser(software.constructs.Construct scope, String id, IamUserProps props) -
Method Summary
Modifier and TypeMethodDescription(experimental) The access string that defines the user's permissions.(experimental) The engine for the user.(experimental) The user's ARN.(experimental) The user's ID.(experimental) The user's name.(experimental) The user's status.grant(IGrantable grantee, String... actions) (experimental) Grant the given identity custom permissions.grantConnect(IGrantable grantee) (experimental) Grant connect permissions to the given IAM identity.static Boolean(experimental) Return whether the given object is anIamUser.Methods inherited from class software.amazon.awscdk.services.elasticache.alpha.UserBase
fromUserArn, fromUserAttributes, fromUserIdMethods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
IamUser
protected IamUser(software.amazon.jsii.JsiiObjectRef objRef) -
IamUser
protected IamUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
IamUser
@Stability(Experimental) public IamUser(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull IamUserProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
isIamUser
(experimental) Return whether the given object is anIamUser.- Parameters:
x- This parameter is required.
-
grant
@Stability(Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) (experimental) Grant the given identity custom permissions.- Parameters:
grantee- The IAM identity to grant permissions to. This parameter is required.actions- The actions to grant. This parameter is required.
-
grantConnect
(experimental) Grant connect permissions to the given IAM identity.- Parameters:
grantee- The IAM identity to grant permissions to. This parameter is required.
-
getAccessString
(experimental) The access string that defines the user's permissions. -
getUserArn
(experimental) The user's ARN.- Specified by:
getUserArnin interfaceIUser- Specified by:
getUserArnin classUserBase
-
getUserId
(experimental) The user's ID. -
getUserStatus
(experimental) The user's status.Can be 'active', 'modifying', 'deleting'.
-
getEngine
(experimental) The engine for the user. -
getUserName
(experimental) The user's name.For IAM authentication userName must be equal to userId.
- Specified by:
getUserNamein interfaceIUser- Specified by:
getUserNamein classUserBase
-