@Stability(value=Experimental) public static final class SecretProps.Builder extends Object implements software.amazon.jsii.Builder<SecretProps>
SecretProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SecretProps |
build()
Builds the configured instance.
|
SecretProps.Builder |
description(String description)
Sets the value of
SecretProps.getDescription() |
SecretProps.Builder |
encryptionKey(IKey encryptionKey)
Sets the value of
SecretProps.getEncryptionKey() |
SecretProps.Builder |
generateSecretString(SecretStringGenerator generateSecretString)
Sets the value of
SecretProps.getGenerateSecretString() |
SecretProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
SecretProps.getRemovalPolicy() |
SecretProps.Builder |
replicaRegions(List<? extends ReplicaRegion> replicaRegions)
Sets the value of
SecretProps.getReplicaRegions() |
SecretProps.Builder |
secretName(String secretName)
Sets the value of
SecretProps.getSecretName() |
@Stability(value=Experimental) public SecretProps.Builder description(String description)
SecretProps.getDescription()description - An optional, human-friendly description of the secret.this@Stability(value=Experimental) public SecretProps.Builder encryptionKey(IKey encryptionKey)
SecretProps.getEncryptionKey()encryptionKey - The customer-managed encryption key to use for encrypting the secret value.this@Stability(value=Experimental) public SecretProps.Builder generateSecretString(SecretStringGenerator generateSecretString)
SecretProps.getGenerateSecretString()generateSecretString - Configuration for how to generate a secret value.this@Stability(value=Experimental) public SecretProps.Builder removalPolicy(RemovalPolicy removalPolicy)
SecretProps.getRemovalPolicy()removalPolicy - Policy to apply when the secret is removed from this stack.this@Stability(value=Experimental) public SecretProps.Builder replicaRegions(List<? extends ReplicaRegion> replicaRegions)
SecretProps.getReplicaRegions()replicaRegions - A list of regions where to replicate this secret.this@Stability(value=Experimental) public SecretProps.Builder secretName(String secretName)
SecretProps.getSecretName()secretName - A name for the secret.
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.this@Stability(value=Experimental) public SecretProps build()
build in interface software.amazon.jsii.Builder<SecretProps>SecretPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.