@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:20.972Z") @Stability(value=Stable) public interface StringParameterAttributes 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 |
StringParameterAttributes.Builder
A builder for
StringParameterAttributes |
static class |
StringParameterAttributes.Jsii$Proxy
An implementation for
StringParameterAttributes |
| Modifier and Type | Method and Description |
|---|---|
static StringParameterAttributes.Builder |
builder() |
default ParameterType |
getType()
The type of the string parameter.
|
default Number |
getVersion()
The version number of the value you wish to retrieve.
|
getParameterName, getSimpleName@Stability(value=Stable) @Nullable default ParameterType getType()
Default: ParameterType.STRING
@Stability(value=Stable) @Nullable default Number getVersion()
Default: The latest version will be retrieved.
@Stability(value=Stable) static StringParameterAttributes.Builder builder()
builder in interface CommonStringParameterAttributesStringParameterAttributes.Builder of StringParameterAttributesCopyright © 2023. All rights reserved.