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:
IResource
,IUser
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-01T17:47:05.831Z")
@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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
Nested 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
ConstructorsModifierConstructorDescriptionprotected
IamUser
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
IamUser
(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, fromUserId
Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, 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.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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:
getUserArn
in interfaceIUser
- Specified by:
getUserArn
in 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:
getUserName
in interfaceIUser
- Specified by:
getUserName
in classUserBase
-