@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.054Z") @Stability(value=Stable) public interface SecretAttributes extends software.amazon.jsii.JsiiSerializable
One ARN format (secretArn, secretCompleteArn, secretPartialArn) must be provided.
Example:
Key encryptionKey;
ISecret secret = Secret.fromSecretAttributes(this, "ImportedSecret", SecretAttributes.builder()
.secretArn("arn:aws:secretsmanager:<region>:<account-id-number>:secret:<secret-name>-<random-6-characters>")
// If the secret is encrypted using a KMS-hosted CMK, either import or reference that key:
.encryptionKey(encryptionKey)
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
SecretAttributes.Builder
A builder for
SecretAttributes |
static class |
SecretAttributes.Jsii$Proxy
An implementation for
SecretAttributes |
| Modifier and Type | Method and Description |
|---|---|
static SecretAttributes.Builder |
builder() |
default IKey |
getEncryptionKey()
The encryption key that is used to encrypt the secret, unless the default SecretsManager key is used.
|
default String |
getSecretCompleteArn()
The complete ARN of the secret in SecretsManager.
|
default String |
getSecretPartialArn()
The partial ARN of the secret in SecretsManager.
|
@Stability(value=Stable) @Nullable default IKey getEncryptionKey()
@Stability(value=Stable) @Nullable default String getSecretCompleteArn()
This is the ARN including the Secrets Manager 6-character suffix.
Cannot be used with secretArn or secretPartialArn.
@Stability(value=Stable) @Nullable default String getSecretPartialArn()
This is the ARN without the Secrets Manager 6-character suffix.
Cannot be used with secretArn or secretCompleteArn.
@Stability(value=Stable) static SecretAttributes.Builder builder()
SecretAttributes.Builder of SecretAttributesCopyright © 2022. All rights reserved.