interface UserBaseAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ElastiCache.Alpha.UserBaseAttributes |
![]() | github.com/aws/aws-cdk-go/awscdkelasticachealpha/v2#UserBaseAttributes |
![]() | software.amazon.awscdk.services.elasticache.alpha.UserBaseAttributes |
![]() | aws_cdk.aws_elasticache_alpha.UserBaseAttributes |
![]() | @aws-cdk/aws-elasticache-alpha ยป UserBaseAttributes |
Attributes for importing an existing ElastiCache user.
Example
// use the original `default` user by using import method
const defaultUser = elasticache.NoPasswordUser.fromUserAttributes(this, 'DefaultUser', {
// userId and userName must be 'default'
userId: 'default',
});
// create a new default user
const newDefaultUser = new elasticache.NoPasswordUser(this, 'NewDefaultUser', {
// new default user id must not be 'default'
userId: 'new-default',
// new default username must be 'default'
userName: 'default',
// set access string
accessControl: elasticache.AccessControl.fromAccessString("on ~* +@all"),
});
Properties
Name | Type | Description |
---|---|---|
engine? | User | The engine type for the user. |
user | string | The ARN of the user. |
user | string | The ID of the user. |
user | string | The user's name. |
engine?
Type:
User
(optional, default: engine type is unknown.)
The engine type for the user.
userArn?
Type:
string
(optional, default: derived from userId.)
The ARN of the user.
One of userId
or userArn
is required.
userId?
Type:
string
(optional, default: derived from userArn.)
The ID of the user.
One of userId
or userArn
is required.
userName?
Type:
string
(optional, default: name is unknown.)
The user's name.