interface NoPasswordUserProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElastiCache.Alpha.NoPasswordUserProps |
Go | github.com/aws/aws-cdk-go/awscdkelasticachealpha/v2#NoPasswordUserProps |
Java | software.amazon.awscdk.services.elasticache.alpha.NoPasswordUserProps |
Python | aws_cdk.aws_elasticache_alpha.NoPasswordUserProps |
TypeScript (source) | @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.REDIS for NoPasswordUser, UserEngine.VALKEY for all other user types.)
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.

.NET
Go
Java
Python
TypeScript (