AWS::ElastiCache::UserFor Valkey 7.2 and onwards, or Redis OSS engine version 6.0 and onwards: Creates user. For more information, see [Using Role Based Access Control (RBAC)](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Clusters.RBAC.html) .
import { CfnUser } from 'aws-cdk-lib/aws-elasticache';Or use the module namespace:
import * as elasticache from 'aws-cdk-lib/aws-elasticache';
// elasticache.CfnUserConfiguration passed to the constructor as CfnUserProps.
engineRequiredstringThe current supported values are valkey and redis.
userIdRequiredstringThe ID of the user.
userNameRequiredstringThe username of the user.
accessStringOptionalstringAccess permissions string used for this user.
authenticationModeOptionalanySpecifies the authentication mode to use. Below is an example of the possible JSON values:. ``` { Passwords: ["*****", "******"] // If Type is password. } ```
noPasswordRequiredOptionalboolean | IResolvableIndicates a password is not required for this user.
passwordsOptionalstring[]Passwords used for this user. You can create up to two passwords for each user.
tagsOptionalCfnTag[]The list of tags.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-elasticacheAWS::ElastiCache::User