CfnUserPropsMixin

class aws_cdk.mixins_preview.aws_memorydb.mixins.CfnUserPropsMixin(props, *, strategy=None)

Bases: Mixin

Specifies a MemoryDB user.

For more information, see Authenticating users with Access Contol Lists (ACLs) .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-user.html

CloudformationResource:

AWS::MemoryDB::User

Mixin:

true

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.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_memorydb import mixins as memorydb_mixins

# authentication_mode: Any

cfn_user_props_mixin = memorydb_mixins.CfnUserPropsMixin(memorydb_mixins.CfnUserMixinProps(
    access_string="accessString",
    authentication_mode=authentication_mode,
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    user_name="userName"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::MemoryDB::User.

Parameters:
  • props (Union[CfnUserMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['accessString', 'authenticationMode', 'tags', 'userName']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

AuthenticationModeProperty

class CfnUserPropsMixin.AuthenticationModeProperty(*, passwords=None, type=None)

Bases: object

Denotes the user’s authentication properties, such as whether it requires a password to authenticate.

Used in output responses.

Parameters:
  • passwords (Optional[Sequence[str]]) – The password(s) used for authentication.

  • type (Optional[str]) – Indicates whether the user requires a password to authenticate. All newly-created users require a password.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-memorydb-user-authenticationmode.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.mixins_preview.aws_memorydb import mixins as memorydb_mixins

authentication_mode_property = memorydb_mixins.CfnUserPropsMixin.AuthenticationModeProperty(
    passwords=["passwords"],
    type="type"
)

Attributes

passwords

The password(s) used for authentication.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-memorydb-user-authenticationmode.html#cfn-memorydb-user-authenticationmode-passwords

type

Indicates whether the user requires a password to authenticate.

All newly-created users require a password.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-memorydb-user-authenticationmode.html#cfn-memorydb-user-authenticationmode-type