DatabaseSecretProps

class aws_cdk.aws_redshift.DatabaseSecretProps(*, username, encryption_key=None)

Bases: object

(experimental) Construction properties for a DatabaseSecret.

Parameters
  • username (str) – (experimental) The username.

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

Stability

experimental

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_kms as kms
import aws_cdk.aws_redshift as redshift

# key: kms.Key

database_secret_props = redshift.DatabaseSecretProps(
    username="username",

    # the properties below are optional
    encryption_key=key
)

Attributes

encryption_key

(experimental) The KMS key to use to encrypt the secret.

Default

default master key

Stability

experimental

Return type

Optional[IKey]

username

(experimental) The username.

Stability

experimental

Return type

str