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();
 
  • Method Details

    • getJsonField

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default String getVersionId()
      Specifies the unique identifier of the version of the secret you want to use.

      Can specify at most one of versionId and versionStage.

      Default: AWSCURRENT

    • getVersionStage

      @Stability(Stable) @Nullable default String getVersionStage()
      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.

      Default: AWSCURRENT

    • builder

      @Stability(Stable) static SecretsManagerSecretOptions.Builder builder()
      Returns:
      a SecretsManagerSecretOptions.Builder of SecretsManagerSecretOptions