CfnUserProps
- class aws_cdk.aws_memorydb.CfnUserProps(*, user_name, access_string=None, authentication_mode=None, tags=None)
Bases:
object
Properties for defining a
CfnUser
.- Parameters:
user_name (
str
) – The name of the user.access_string (
Optional
[str
]) – Access permissions string used for this user.authentication_mode (
Any
) – Denotes whether the user requires a password to authenticate. Example:mynewdbuser: Type: AWS::MemoryDB::User Properties: AccessString: on ~* &* +@all AuthenticationMode: Passwords: '1234567890123456' Type: password UserName: mynewdbuser AuthenticationMode: { "Passwords": ["1234567890123456"], "Type": "Password" }
tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – An array of key-value pairs to apply to this resource. For more information, see Tag .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-user.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_memorydb as memorydb # authentication_mode: Any cfn_user_props = memorydb.CfnUserProps( user_name="userName", # the properties below are optional access_string="accessString", authentication_mode=authentication_mode, tags=[CfnTag( key="key", value="value" )] )
Attributes
- access_string
Access permissions string used for this user.
- authentication_mode
Denotes whether the user requires a password to authenticate.
Example:
mynewdbuser: Type: AWS::MemoryDB::User Properties: AccessString: on ~* &* +@all AuthenticationMode: Passwords: '1234567890123456' Type: password UserName: mynewdbuser AuthenticationMode: { "Passwords": ["1234567890123456"], "Type": "Password" }
- user_name
The name of the user.