interface NoPasswordUserProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ElastiCache.Alpha.NoPasswordUserProps |
![]() | github.com/aws/aws-cdk-go/awscdkelasticachealpha/v2#NoPasswordUserProps |
![]() | software.amazon.awscdk.services.elasticache.alpha.NoPasswordUserProps |
![]() | aws_cdk.aws_elasticache_alpha.NoPasswordUserProps |
![]() | @aws-cdk/aws-elasticache-alpha ยป NoPasswordUserProps |
Properties for defining an ElastiCache user with no password authentication.
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 |
---|---|---|
access | Access | Access control configuration for the user. |
user | string | The ID of the user. |
engine? | User | The engine type for the user. |
user | string | The name of the user. |
accessControl
Type:
Access
Access control configuration for the user.
userId
Type:
string
The ID of the user.
engine?
Type:
User
(optional, default: UserEngine.VALKEY.)
The engine type for the user.
Enum options: UserEngine.VALKEY, UserEngine.REDIS.
userName?
Type:
string
(optional, default: Same as userId.)
The name of the user.