Modifier and Type | Method and Description |
---|---|
Secret |
build() |
static Secret.Builder |
create(software.constructs.Construct scope,
String id) |
Secret.Builder |
description(String description)
(experimental) An optional, human-friendly description of the secret.
|
Secret.Builder |
encryptionKey(IKey encryptionKey)
(experimental) The customer-managed encryption key to use for encrypting the secret value.
|
Secret.Builder |
generateSecretString(SecretStringGenerator generateSecretString)
(experimental) Configuration for how to generate a secret value.
|
Secret.Builder |
removalPolicy(RemovalPolicy removalPolicy)
(experimental) Policy to apply when the secret is removed from this stack.
|
Secret.Builder |
replicaRegions(List<? extends ReplicaRegion> replicaRegions)
(experimental) A list of regions where to replicate this secret.
|
Secret.Builder |
secretName(String secretName)
(experimental) A name for the secret.
|
@Stability(value=Experimental) public static Secret.Builder create(software.constructs.Construct scope, String id)
scope
- This parameter is required.id
- This parameter is required.Secret.Builder
.@Stability(value=Experimental) public Secret.Builder description(String description)
Default: - No description.
description
- An optional, human-friendly description of the secret. This parameter is required.this
@Stability(value=Experimental) public Secret.Builder encryptionKey(IKey encryptionKey)
Default: - A default KMS key for the account and region is used.
encryptionKey
- The customer-managed encryption key to use for encrypting the secret value. This parameter is required.this
@Stability(value=Experimental) public Secret.Builder generateSecretString(SecretStringGenerator generateSecretString)
Default: - 32 characters with upper-case letters, lower-case letters, punctuation and numbers (at least one from each category), per the default values of ``SecretStringGenerator``.
generateSecretString
- Configuration for how to generate a secret value. This parameter is required.this
@Stability(value=Experimental) public Secret.Builder removalPolicy(RemovalPolicy removalPolicy)
Default: - Not set.
removalPolicy
- Policy to apply when the secret is removed from this stack. This parameter is required.this
@Stability(value=Experimental) public Secret.Builder replicaRegions(List<? extends ReplicaRegion> replicaRegions)
Default: - Secret is not replicated
replicaRegions
- A list of regions where to replicate this secret. This parameter is required.this
@Stability(value=Experimental) public Secret.Builder secretName(String secretName)
Note that deleting secrets from SecretsManager does not happen immediately, but after a 7 to 30 days blackout period. During that period, it is not possible to create another secret that shares the same name.
Default: - A name is generated by CloudFormation.
secretName
- A name for the secret. This parameter is required.this
Copyright © 2021. All rights reserved.