DatabaseSecretProps

class aws_cdk.aws_docdb.DatabaseSecretProps(*, username, encryption_key=None, master_secret=None, secret_name=None)

Bases: object

__init__(*, username, encryption_key=None, master_secret=None, secret_name=None)

Construction properties for a DatabaseSecret.

Parameters
  • username (str) – The username.

  • encryption_key (Optional[IKey]) – The KMS key to use to encrypt the secret. Default: default master key

  • master_secret (Optional[ISecret]) – The master secret which will be used to rotate this secret. Default: - no master secret information will be included

  • secret_name (Optional[str]) – The physical name of the secret. Default: Secretsmanager will generate a physical name for the secret

stability :stability: experimental

Return type

None

Attributes

encryption_key

The KMS key to use to encrypt the secret.

default :default: default master key

stability :stability: experimental

Return type

Optional[IKey]

master_secret

The master secret which will be used to rotate this secret.

default :default: - no master secret information will be included

stability :stability: experimental

Return type

Optional[ISecret]

secret_name

The physical name of the secret.

default :default: Secretsmanager will generate a physical name for the secret

stability :stability: experimental

Return type

Optional[str]

username

The username.

stability :stability: experimental

Return type

str