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:
IEnvironmentAware,IResource,IUserGroup,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.226Z")
@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.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.IUserGroup
IUserGroup.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUserGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedUserGroup(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 IUserGroupfromUserGroupArn(software.constructs.Construct scope, String id, String userGroupArn) (experimental) Import an existing user group by ARN.static IUserGroupfromUserGroupAttributes(software.constructs.Construct scope, String id, UserGroupAttributes attrs) (experimental) Import an existing user group using attributes.static IUserGroupfromUserGroupName(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, 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
-
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- AUserGroupAttributesobject. 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:
addUserin interfaceIUserGroup- Overrides:
addUserin classUserGroupBase- Parameters:
user- The user to add to the group. This parameter is required.
-
getUserGroupArn
(experimental) The ARN of the user group.- Specified by:
getUserGroupArnin interfaceIUserGroup- Specified by:
getUserGroupArnin classUserGroupBase
-
getUserGroupName
(experimental) The name of the user group.- Specified by:
getUserGroupNamein interfaceIUserGroup- Specified by:
getUserGroupNamein 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:
getEnginein interfaceIUserGroup- Specified by:
getEnginein 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:
getUsersin interfaceIUserGroup- Specified by:
getUsersin classUserGroupBase
-