@Generated(value="jsii-pacmak/0.20.4 (build 96d89e1)", date="2019-11-12T11:54:39.766Z") @Stability(value=Stable) public class SecretValue extends Intrinsic
software.amazon.jsii.JsiiObject.InitializationModeIResolvable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
SecretValue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SecretValue(software.amazon.jsii.JsiiObjectRef objRef) |
|
SecretValue(Object value)
EXPERIMENTAL
|
| Modifier and Type | Method and Description |
|---|---|
static SecretValue |
cfnDynamicReference(CfnDynamicReference ref)
Obtain the secret value through a CloudFormation dynamic reference.
|
static SecretValue |
cfnParameter(CfnParameter param)
Obtain the secret value through a CloudFormation parameter.
|
static SecretValue |
plainText(String secret)
Construct a literal secret value for use with secret-aware constructs.
|
static SecretValue |
secretsManager(String secretId)
Creates a `SecretValue` with a value which is dynamically loaded from AWS Secrets Manager.
|
static SecretValue |
secretsManager(String secretId,
SecretsManagerSecretOptions options)
Creates a `SecretValue` with a value which is dynamically loaded from AWS Secrets Manager.
|
static SecretValue |
ssmSecure(String parameterName,
String version)
Use a secret value stored from a Systems Manager (SSM) parameter.
|
getCreationStack, newError, resolve, toJSON, toStringjsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSetprotected SecretValue(software.amazon.jsii.JsiiObjectRef objRef)
protected SecretValue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public SecretValue(Object value)
value - This parameter is required.@Stability(value=Stable) public static SecretValue cfnDynamicReference(CfnDynamicReference ref)
ref - The dynamic reference to use. This parameter is required.@Stability(value=Stable) public static SecretValue cfnParameter(CfnParameter param)
param - The CloudFormation parameter to use. This parameter is required.@Stability(value=Stable) public static SecretValue plainText(String secret)
secret - This parameter is required.@Stability(value=Stable) public static SecretValue secretsManager(String secretId, SecretsManagerSecretOptions options)
secretId - The ID or ARN of the secret. This parameter is required.options - Options.@Stability(value=Stable) public static SecretValue secretsManager(String secretId)
secretId - The ID or ARN of the secret. This parameter is required.@Stability(value=Stable) public static SecretValue ssmSecure(String parameterName, String version)
parameterName - The name of the parameter in the Systems Manager Parameter Store. This parameter is required.version - An integer that specifies the version of the parameter to use. This parameter is required.Copyright © 2019. All rights reserved.