Package software.amazon.awscdk.core
Interface SecretsManagerSecretOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SecretsManagerSecretOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.110Z")
@Stability(Stable)
public interface SecretsManagerSecretOptions
extends software.amazon.jsii.JsiiSerializable
Options for referencing a secret value from Secrets Manager.
Example:
BitBucketSourceCredentials.Builder.create(this, "CodeBuildBitBucketCreds")
.username(SecretValue.secretsManager("my-bitbucket-creds", SecretsManagerSecretOptions.builder().jsonField("username").build()))
.password(SecretValue.secretsManager("my-bitbucket-creds", SecretsManagerSecretOptions.builder().jsonField("password").build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSecretsManagerSecretOptionsstatic final classAn implementation forSecretsManagerSecretOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe key of a JSON field to retrieve.default StringSpecifies the unique identifier of the version of the secret you want to use.default StringSpecifies the secret version that you want to retrieve by the staging label attached to the version.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getJsonField
The key of a JSON field to retrieve.This can only be used if the secret stores a JSON object.
Default: - returns all the content stored in the Secrets Manager secret.
-
getVersionId
Specifies the unique identifier of the version of the secret you want to use.Can specify at most one of
versionIdandversionStage.Default: AWSCURRENT
-
getVersionStage
Specifies the secret version that you want to retrieve by the staging label attached to the version.Can specify at most one of
versionIdandversionStage.Default: AWSCURRENT
-
builder
-