Interface SecureStringParameterAttributes
- All Superinterfaces:
CommonStringParameterAttributes
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SecureStringParameterAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.832Z")
@Stability(Stable)
public interface SecureStringParameterAttributes
extends software.amazon.jsii.JsiiSerializable, CommonStringParameterAttributes
Attributes for secure string parameters.
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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSecureStringParameterAttributes
static final class
An implementation forSecureStringParameterAttributes
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.ssm.CommonStringParameterAttributes
getParameterName, getSimpleName
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEncryptionKey
The encryption key that is used to encrypt this parameter.Default: - default master key
-
getVersion
The version number of the value you wish to retrieve.Default: - AWS CloudFormation uses the latest version of the parameter
-
builder
-