interface IamUserProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElastiCache.Alpha.IamUserProps |
Go | github.com/aws/aws-cdk-go/awscdkelasticachealpha/v2#IamUserProps |
Java | software.amazon.awscdk.services.elasticache.alpha.IamUserProps |
Python | aws_cdk.aws_elasticache_alpha.IamUserProps |
TypeScript (source) | @aws-cdk/aws-elasticache-alpha ยป IamUserProps |
Properties for defining an ElastiCache user with IAM authentication.
Example
const user = new elasticache.IamUser(this, 'User', {
// set user engine
engine: elasticache.UserEngine.REDIS,
// set user id
userId: 'my-user',
// set username
userName: 'my-user',
// 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.

.NET
Go
Java
Python
TypeScript (