interface PasswordUserProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ElastiCache.Alpha.PasswordUserProps |
![]() | github.com/aws/aws-cdk-go/awscdkelasticachealpha/v2#PasswordUserProps |
![]() | software.amazon.awscdk.services.elasticache.alpha.PasswordUserProps |
![]() | aws_cdk.aws_elasticache_alpha.PasswordUserProps |
![]() | @aws-cdk/aws-elasticache-alpha ยป PasswordUserProps |
Properties for defining an ElastiCache user with password authentication.
Example
const user = new elasticache.PasswordUser(this, 'User', {
// set user engine
engine: elasticache.UserEngine.VALKEY,
// set user id
userId: 'my-user-id',
// set access string
accessControl: elasticache.AccessControl.fromAccessString("on ~* +@all"),
// set username
userName: 'my-user-name',
// set up to two passwords
passwords: [
// "SecretIdForPassword" is the secret id for the password
SecretValue.secretsManager('SecretIdForPassword'),
// "AnotherSecretIdForPassword" is the secret id for the password
SecretValue.secretsManager('AnotherSecretIdForPassword'),
],
});
Properties
Name | Type | Description |
---|---|---|
access | Access | Access control configuration for the user. |
passwords | Secret [] | The passwords 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.
passwords
Type:
Secret
[]
The passwords for the user.
Password authentication requires using 1-2 passwords.
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.