AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::ElastiCache::User

CfnUser

For 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

import { CfnUser } from 'aws-cdk-lib/aws-elasticache';

Or use the module namespace:

import * as elasticache from 'aws-cdk-lib/aws-elasticache';
// elasticache.CfnUser

Properties

Configuration passed to the constructor as CfnUserProps.

engineRequired
string

The current supported values are valkey and redis.

userIdRequired
string

The ID of the user.

userNameRequired
string

The username of the user.

accessStringOptional
string

Access permissions string used for this user.

authenticationModeOptional
any

Specifies the authentication mode to use. Below is an example of the possible JSON values:. ``` { Passwords: ["*****", "******"] // If Type is password. } ```

noPasswordRequiredOptional
boolean | IResolvable

Indicates a password is not required for this user.

passwordsOptional
string[]

Passwords used for this user. You can create up to two passwords for each user.

tagsOptional
CfnTag[]

The list of tags.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter