@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.929Z") @Stability(value=Stable) public interface SecretsManagerSecretOptions extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
SecretsManagerSecretOptions.Builder
A builder for
SecretsManagerSecretOptions |
static class |
SecretsManagerSecretOptions.Jsii$Proxy
An implementation for
SecretsManagerSecretOptions |
| Modifier and Type | Method and Description |
|---|---|
static SecretsManagerSecretOptions.Builder |
builder() |
default String |
getJsonField()
The key of a JSON field to retrieve.
|
default String |
getVersionId()
Specifies the unique identifier of the version of the secret you want to use.
|
default String |
getVersionStage()
Specifies the secret version that you want to retrieve by the staging label attached to the version.
|
@Stability(value=Stable) @Nullable default String getJsonField()
This can only be used if the secret stores a JSON object.
Default: - returns all the content stored in the Secrets Manager secret.
@Stability(value=Stable) @Nullable default String getVersionId()
Can specify at most one of versionId and versionStage.
Default: AWSCURRENT
@Stability(value=Stable) @Nullable default String getVersionStage()
Can specify at most one of versionId and versionStage.
Default: AWSCURRENT
@Stability(value=Stable) static SecretsManagerSecretOptions.Builder builder()
Copyright © 2022. All rights reserved.