CredentialsFromUsernameOptions

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

Bases: aws_cdk.aws_rds.CredentialsBaseOptions

(deprecated) 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 (” %+~`#$&*()|[]{}:;<>?!’/

  • secret_name (Optional[str]) – The name of the secret. Default: - A name is generated by CloudFormation.

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

Deprecated

supporting API fromUsername() has been deprecated. See deprecation notice of the API.

Stability

deprecated

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

(deprecated) Password.

Do not put passwords in your CDK code directly.

Default
  • a Secrets Manager generated password

Stability

deprecated

Return type

Optional[SecretValue]

secret_name

The name of the secret.

Default
  • A name is generated by CloudFormation.

Return type

Optional[str]