CredentialsFromUsernameOptions

class aws_cdk.aws_rds.CredentialsFromUsernameOptions(*, encryption_key=None, exclude_characters=None, password=None)

Bases: aws_cdk.aws_rds.CredentialsBaseOptions

Options for creating Credentials from a username.

Parameters
  • encryption_key (Optional[IKey]) – KMS encryption key to encrypt the generated secret. Default: - default master key

  • exclude_characters (Optional[str]) – The characters to exclude from the generated password. Has no effect if {@link password} has been provided. Default: - the DatabaseSecret default exclude character set (” %+~`#$&*()|[]{}:;<>?!’/

  • password (Optional[SecretValue]) – Password. Do not put passwords in your CDK code directly. Default: - a Secrets Manager generated password

Attributes

encryption_key

KMS encryption key to encrypt the generated secret.

Default
  • default master key

Return type

Optional[IKey]

exclude_characters

The characters to exclude from the generated password.

Has no effect if {@link password} has been provided.

Default
  • the DatabaseSecret default exclude character set (” %+~`#$&*()|[]{}:;<>?!’/

:: “")

Return type

Optional[str]

password

Password.

Do not put passwords in your CDK code directly.

Default
  • a Secrets Manager generated password

Return type

Optional[SecretValue]