Builder

class Builder

Properties

Link copied to clipboard

A unique identifier for the new version of the secret.

Link copied to clipboard

A unique identifier that indicates the source of the request. Required for secret rotations using an IAM assumed role or cross-account rotation, in which you rotate a secret in one account by using a Lambda rotation function in another account. In both cases, the rotation function assumes an IAM role to call Secrets Manager, and then Secrets Manager validates the identity using the token. For more information, see How rotation works and Rotation by Lambda functions.

Link copied to clipboard

The binary data to encrypt and store in the new version of the secret. To use this parameter in the command-line tools, 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 ARN or name of the secret to add a new version to.

Link copied to clipboard

The text to encrypt and store in the new version of the secret.

Link copied to clipboard

A list of staging labels to attach to this version of the secret. Secrets Manager uses staging labels to track versions of a secret through the rotation process.