Package software.amazon.awscdk.core
Class SecretsManagerSecretOptions.Builder
java.lang.Object
software.amazon.awscdk.core.SecretsManagerSecretOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretsManagerSecretOptions>
- Enclosing interface:
- SecretsManagerSecretOptions
@Stability(Stable)
public static final class SecretsManagerSecretOptions.Builder
extends Object
implements software.amazon.jsii.Builder<SecretsManagerSecretOptions>
A builder for
SecretsManagerSecretOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofSecretsManagerSecretOptions.getJsonField()Sets the value ofSecretsManagerSecretOptions.getVersionId()versionStage(String versionStage) Sets the value ofSecretsManagerSecretOptions.getVersionStage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jsonField
Sets the value ofSecretsManagerSecretOptions.getJsonField()- Parameters:
jsonField- The key of a JSON field to retrieve. This can only be used if the secret stores a JSON object.- Returns:
this
-
versionId
Sets the value ofSecretsManagerSecretOptions.getVersionId()- Parameters:
versionId- Specifies the unique identifier of the version of the secret you want to use. Can specify at most one ofversionIdandversionStage.- Returns:
this
-
versionStage
Sets the value ofSecretsManagerSecretOptions.getVersionStage()- Parameters:
versionStage- Specifies the secret version that you want to retrieve by the staging label attached to the version. Can specify at most one ofversionIdandversionStage.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecretsManagerSecretOptions>- Returns:
- a new instance of
SecretsManagerSecretOptions - Throws:
NullPointerException- if any required attribute was not provided
-