@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:39.804Z") @Stability(value=Stable) public interface SecureStringParameterAttributes extends software.amazon.jsii.JsiiSerializable, CommonStringParameterAttributes
Example:
// Retrieve the latest value of the non-secret parameter
// with name "/My/String/Parameter".
String stringValue = StringParameter.fromStringParameterAttributes(this, "MyValue", StringParameterAttributes.builder()
.parameterName("/My/Public/Parameter")
.build()).getStringValue();
String stringValueVersionFromToken = StringParameter.fromStringParameterAttributes(this, "MyValueVersionFromToken", StringParameterAttributes.builder()
.parameterName("/My/Public/Parameter")
// parameter version from token
.version(parameterVersion)
.build()).getStringValue();
// Retrieve a specific version of the secret (SecureString) parameter.
// 'version' is always required.
IStringParameter secretValue = StringParameter.fromSecureStringParameterAttributes(this, "MySecureValue", SecureStringParameterAttributes.builder()
.parameterName("/My/Secret/Parameter")
.version(5)
.build());
IStringParameter secretValueVersionFromToken = StringParameter.fromSecureStringParameterAttributes(this, "MySecureValueVersionFromToken", SecureStringParameterAttributes.builder()
.parameterName("/My/Secret/Parameter")
// parameter version from token
.version(parameterVersion)
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
SecureStringParameterAttributes.Builder
A builder for
SecureStringParameterAttributes |
static class |
SecureStringParameterAttributes.Jsii$Proxy
An implementation for
SecureStringParameterAttributes |
| Modifier and Type | Method and Description |
|---|---|
static SecureStringParameterAttributes.Builder |
builder() |
default IKey |
getEncryptionKey()
The encryption key that is used to encrypt this parameter.
|
default Number |
getVersion()
The version number of the value you wish to retrieve.
|
getParameterName, getSimpleName@Stability(value=Stable) @Nullable default IKey getEncryptionKey()
Default: - default master key
@Stability(value=Stable) @Nullable default Number getVersion()
Default: - AWS CloudFormation uses the latest version of the parameter
@Stability(value=Stable) static SecureStringParameterAttributes.Builder builder()
builder in interface CommonStringParameterAttributesSecureStringParameterAttributes.Builder of SecureStringParameterAttributesCopyright © 2022. All rights reserved.