AccessControl

class aws_cdk.aws_elasticache_alpha.AccessControl

Bases: object

(experimental) Access control configuration for ElastiCache users.

Stability:

experimental

ExampleMetadata:

infused

Example:

user = elasticache.IamUser(self, "User",
    # set user engine
    engine=elasticache.UserEngine.REDIS,

    # set user id
    user_id="my-user",

    # set username
    user_name="my-user",

    # set access string
    access_control=elasticache.AccessControl.from_access_string("on ~* +@all")
)
Stability:

experimental

Attributes

access_string

(experimental) The access string that defines user’s permissions.

Stability:

experimental

Static Methods

classmethod from_access_string(access_string)

(experimental) Create access control from an access string.

Parameters:

access_string (str) – The access string defining user permissions.

Stability:

experimental

Return type:

AccessControl