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_memorydb as memorydb } from 'aws-cdk-lib';

declare const authenticationMode: any;
const cfnUserProps: memorydb.CfnUserProps = {
  userName: 'userName',

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

Properties ​

accessStringoptionalstringaccess_stringoptionalstraccessStringoptionalStringAccessStringoptionalstringAccessStringoptional*string#
Access permissions string used for this user.
authenticationModeoptionalanyauthentication_modeoptionalAnyauthenticationModeoptionalObjectAuthenticationModeoptionalobjectAuthenticationModeoptionalinterface{}#
Denotes whether the user requires a password to authenticate.
notes

Example:

mynewdbuser: Type: AWS::MemoryDB::User Properties: AccessString: on ~* &* +@all AuthenticationMode: Passwords: '1234567890123456' Type: password UserName: mynewdbuser AuthenticationMode: { "Passwords": ["1234567890123456"], "Type": "Password" }

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
An array of key-value pairs to apply to this resource.

For more information, see Tag .

userNamestringuser_namestruserNameStringUserNamestringUserName*stringrequired#
The name of the user.