SecretsManagerSecretOptions Struct
Options for referencing a secret value from Secrets Manager.
Example
ts
new codebuild.BitBucketSourceCredentials(this, 'CodeBuildBitBucketCreds', {
username: SecretValue.secretsManager('my-bitbucket-creds', { jsonField: 'username' }),
password: SecretValue.secretsManager('my-bitbucket-creds', { jsonField: 'password' }),
});
Properties
The key of a JSON field to retrieve.
Default: returns all the content stored in the Secrets Manager secret.
This can only be used if the secret stores a JSON object.
Specifies the unique identifier of the version of the secret you want to use.
Can specify at most one of versionId and versionStage.
versionStagestringversion_stagestrversionStageStringVersionStagestringVersionStage*string= AWSCURRENT#Specifies the secret version that you want to retrieve by the staging label attached to the version.
Can specify at most one of versionId and versionStage.