Skip to content
v2.275.0

CfnUserProps Struct ​

Properties for defining a CfnUser.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticache as elasticache } from 'aws-cdk-lib';

declare const authenticationMode: any;
const cfnUserProps: elasticache.CfnUserProps = {
  engine: 'engine',
  userId: 'userId',
  userName: 'userName',

  // the properties below are optional
  accessString: 'accessString',
  authenticationMode: authenticationMode,
  noPasswordRequired: false,
  passwords: ['passwords'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

accessStringoptionalstringaccess_stringoptionalstraccessStringoptionalStringAccessStringoptionalstringAccessStringoptional*string#
Access permissions string used for this user.
authenticationModeoptionalanyauthentication_modeoptionalAnyauthenticationModeoptionalObjectAuthenticationModeoptionalobjectAuthenticationModeoptionalinterface{}#
Specifies the authentication mode to use. Below is an example of the possible JSON values:.
{ Passwords: ["*****", "******"] // If Type is password.
}
enginestringenginestrengineStringEnginestringEngine*stringrequired#
The current supported values are valkey and redis.
noPasswordRequiredoptionalboolean | IResolvableno_password_requiredoptionaltyping.Union[bool, IResolvable]noPasswordRequiredoptionalBooleanNoPasswordRequiredoptionalboolNoPasswordRequiredoptionalinterface{}#
Indicates a password is not required for this user.
passwordsoptionalstring[]passwordsoptionaltyping.List[str]passwordsoptionalList<String>Passwordsoptionalstring[]Passwordsoptional*[]*string#
Passwords used for this user.

You can create up to two passwords for each user.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The list of tags.
userIdstringuser_idstruserIdStringUserIdstringUserId*stringrequired#
The ID of the user.
userNamestringuser_namestruserNameStringUserNamestringUserName*stringrequired#
The username of the user.