NoPasswordUserProps

class aws_cdk.aws_elasticache_alpha.NoPasswordUserProps(*, access_control, user_id, engine=None, user_name=None)

Bases: UserBaseProps

(experimental) Properties for defining an ElastiCache user with no password authentication.

Parameters:
  • access_control (AccessControl) – (experimental) Access control configuration for the user.

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

  • engine (Optional[UserEngine]) – (experimental) The engine type for the user. Enum options: UserEngine.VALKEY, UserEngine.REDIS. Default: UserEngine.VALKEY.

  • user_name (Optional[str]) – (experimental) The name of the user. Default: - Same as userId.

Stability:

experimental

ExampleMetadata:

infused

Example:

# use the original `default` user by using import method
default_user = elasticache.NoPasswordUser.from_user_attributes(self, "DefaultUser",
    # userId and userName must be 'default'
    user_id="default"
)

# create a new default user
new_default_user = elasticache.NoPasswordUser(self, "NewDefaultUser",
    # new default user id must not be 'default'
    user_id="new-default",
    # new default username must be 'default'
    user_name="default",
    # set access string
    access_control=elasticache.AccessControl.from_access_string("on ~* +@all")
)

Attributes

access_control

(experimental) Access control configuration for the user.

Stability:

experimental

engine

(experimental) The engine type for the user.

Enum options: UserEngine.VALKEY, UserEngine.REDIS.

Default:

UserEngine.VALKEY.

Stability:

experimental

user_id

(experimental) The ID of the user.

Stability:

experimental

user_name

(experimental) The name of the user.

Default:
  • Same as userId.

Stability:

experimental