Class UserGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.elasticache.alpha.UserGroupBase
software.amazon.awscdk.services.elasticache.alpha.UserGroup
- All Implemented Interfaces:
IResource
,IUserGroup
,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.839Z")
@Stability(Experimental)
public class UserGroup
extends UserGroupBase
(experimental) An ElastiCache UserGroup.
Example:
NoPasswordUser newDefaultUser = NoPasswordUser.Builder.create(this, "NoPasswordUser") .userId("default") .accessControl(AccessControl.fromAccessString("on ~* +@all")) .build(); UserGroup userGroup = UserGroup.Builder.create(this, "UserGroup") .users(List.of(newDefaultUser)) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forUserGroup
.Nested 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.IUserGroup
IUserGroup.Jsii$Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
UserGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
UserGroup
(software.amazon.jsii.JsiiObjectRef objRef) UserGroup
(software.constructs.Construct scope, String id, UserGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoid
(experimental) Add a user to this user group.static IUserGroup
fromUserGroupArn
(software.constructs.Construct scope, String id, String userGroupArn) (experimental) Import an existing user group by ARN.static IUserGroup
fromUserGroupAttributes
(software.constructs.Construct scope, String id, UserGroupAttributes attrs) (experimental) Import an existing user group using attributes.static IUserGroup
fromUserGroupName
(software.constructs.Construct scope, String id, String userGroupName) (experimental) Import an existing user group by name.(experimental) The engine type for the user group.(experimental) The ARN of the user group.(experimental) The name of the user group.(experimental) The status of the user group Can be 'creating', 'active', 'modifying', 'deleting'.getUsers()
(experimental) Array of users in the user group.static Boolean
(experimental) Return whether the given object is aUserGroup
.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
-
UserGroup
protected UserGroup(software.amazon.jsii.JsiiObjectRef objRef) -
UserGroup
protected UserGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
UserGroup
@Stability(Experimental) public UserGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable UserGroupProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
-
-
UserGroup
@Stability(Experimental) public UserGroup(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Details
-
fromUserGroupArn
@Stability(Experimental) @NotNull public static IUserGroup fromUserGroupArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String userGroupArn) (experimental) Import an existing user group by ARN.- Parameters:
scope
- The parent creating construct (usuallythis
). This parameter is required.id
- The construct's name. This parameter is required.userGroupArn
- The ARN of the existing user group. This parameter is required.
-
fromUserGroupAttributes
@Stability(Experimental) @NotNull public static IUserGroup fromUserGroupAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull UserGroupAttributes attrs) (experimental) Import an existing user group using attributes.- Parameters:
scope
- The parent creating construct (usuallythis
). This parameter is required.id
- The construct's name. This parameter is required.attrs
- AUserGroupAttributes
object. This parameter is required.
-
fromUserGroupName
@Stability(Experimental) @NotNull public static IUserGroup fromUserGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String userGroupName) (experimental) Import an existing user group by name.- Parameters:
scope
- The parent creating construct (usuallythis
). This parameter is required.id
- The construct's name. This parameter is required.userGroupName
- The name of the existing user group. This parameter is required.
-
isUserGroup
(experimental) Return whether the given object is aUserGroup
.- Parameters:
x
- This parameter is required.
-
addUser
(experimental) Add a user to this user group.- Specified by:
addUser
in interfaceIUserGroup
- Overrides:
addUser
in classUserGroupBase
- Parameters:
user
- The user to add to the group. This parameter is required.
-
getUserGroupArn
(experimental) The ARN of the user group.- Specified by:
getUserGroupArn
in interfaceIUserGroup
- Specified by:
getUserGroupArn
in classUserGroupBase
-
getUserGroupName
(experimental) The name of the user group.- Specified by:
getUserGroupName
in interfaceIUserGroup
- Specified by:
getUserGroupName
in classUserGroupBase
-
getUserGroupStatus
(experimental) The status of the user group Can be 'creating', 'active', 'modifying', 'deleting'. -
getEngine
(experimental) The engine type for the user group.- Specified by:
getEngine
in interfaceIUserGroup
- Specified by:
getEngine
in classUserGroupBase
-
getUsers
(experimental) Array of users in the user group.Do not push directly to this array. Use addUser() instead to ensure proper validation and dependency management.
- Specified by:
getUsers
in interfaceIUserGroup
- Specified by:
getUsers
in classUserGroupBase
-