Builder

class Builder

Properties

Link copied to clipboard

A list of Regions and KMS keys to replicate secrets.

Link copied to clipboard

If you include SecretString or SecretBinary, then Secrets Manager creates an initial version for the secret, and this parameter specifies the unique identifier for the new version.

Link copied to clipboard

The description of the secret.

Link copied to clipboard

Specifies whether to overwrite a secret with the same name in the destination Region. By default, secrets aren't overwritten.

Link copied to clipboard

The ARN, key ID, or alias of the KMS key that Secrets Manager uses to encrypt the secret value in the secret. An alias is always prefixed by alias/, for example alias/aws/secretsmanager. For more information, see About aliases.

Link copied to clipboard
var name: String?

The name of the new secret.

Link copied to clipboard

The binary data to encrypt and store in the new version of the secret. We recommend that you store your binary data in a file and then pass the contents of the file as a parameter.

Link copied to clipboard

The text data to encrypt and store in this new version of the secret. We recommend you use a JSON structure of key/value pairs for your secret value.

Link copied to clipboard
var tags: List<Tag>?

A list of tags to attach to the secret. Each tag is a key and value pair of strings in a JSON text string, for example: