CfnUserProps

class aws_cdk.aws_elasticache.CfnUserProps(*, engine, user_id, user_name, access_string=None, no_password_required=None, passwords=None)

Bases: object

Properties for defining a CfnUser.

Parameters
  • engine (str) – The current supported value is redis.

  • user_id (str) – The ID of the user.

  • user_name (str) – The username of the user.

  • access_string (Optional[str]) – Access permissions string used for this user.

  • no_password_required (Union[bool, IResolvable, None]) – Indicates a password is not required for this user.

  • passwords (Optional[Sequence[str]]) – Passwords used for this user. You can create up to two passwords for each user.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-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.
import aws_cdk.aws_elasticache as elasticache

cfn_user_props = elasticache.CfnUserProps(
    engine="engine",
    user_id="userId",
    user_name="userName",

    # the properties below are optional
    access_string="accessString",
    no_password_required=False,
    passwords=["passwords"]
)

Attributes

access_string

Access permissions string used for this user.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-accessstring

Return type

Optional[str]

engine

The current supported value is redis.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-engine

Return type

str

no_password_required

Indicates a password is not required for this user.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-nopasswordrequired

Return type

Union[bool, IResolvable, None]

passwords

Passwords used for this user.

You can create up to two passwords for each user.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-passwords

Return type

Optional[List[str]]

user_id

The ID of the user.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-userid

Return type

str

user_name

The username of the user.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-username

Return type

str