Class StringListParameter
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.ssm.StringListParameter
- All Implemented Interfaces:
IResource
,IParameter
,IStringListParameter
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:16.569Z")
@Stability(Stable)
public class StringListParameter
extends Resource
implements IStringListParameter, IParameter
Creates a new StringList SSM Parameter.
Example:
StringListParameter.valueForTypedListParameter(this, "/My/Public/Parameter", ParameterValueType.AWS_EC2_IMAGE_ID);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ssm.IParameter
IParameter.Jsii$Default, IParameter.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ssm.IStringListParameter
IStringListParameter.Jsii$Default, IStringListParameter.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
StringListParameter
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
StringListParameter
(software.amazon.jsii.JsiiObjectRef objRef) StringListParameter
(software.constructs.Construct scope, String id, StringListParameterProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IStringListParameter
fromListParameterAttributes
(software.constructs.Construct scope, String id, ListParameterAttributes attrs) Imports an external string list parameter with name and optional version.static IStringListParameter
fromStringListParameterName
(software.constructs.Construct scope, String id, String stringListParameterName) Imports an external parameter of type string list.The encryption key that is used to encrypt this parameter.The ARN of the SSM Parameter resource.The name of the SSM Parameter resource.The type of the SSM Parameter resource.The parameter value.grantRead
(IGrantable grantee) Grants read (DescribeParameter, GetParameters, GetParameter, GetParameterHistory) permissions on the SSM Parameter.grantWrite
(IGrantable grantee) Grants write (PutParameter) permissions on the SSM Parameter.valueForTypedListParameter
(software.constructs.Construct scope, String parameterName) Returns a token that will resolve (during deployment) to the list value of an SSM StringList parameter.valueForTypedListParameter
(software.constructs.Construct scope, String parameterName, ParameterValueType type) Returns a token that will resolve (during deployment) to the list value of an SSM StringList parameter.valueForTypedListParameter
(software.constructs.Construct scope, String parameterName, ParameterValueType type, Number version) Returns a token that will resolve (during deployment) to the list value of an SSM StringList parameter.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
StringListParameter
protected StringListParameter(software.amazon.jsii.JsiiObjectRef objRef) -
StringListParameter
protected StringListParameter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
StringListParameter
@Stability(Stable) public StringListParameter(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull StringListParameterProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromListParameterAttributes
@Stability(Stable) @NotNull public static IStringListParameter fromListParameterAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ListParameterAttributes attrs) Imports an external string list parameter with name and optional version.- Parameters:
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.
-
fromStringListParameterName
@Stability(Stable) @NotNull public static IStringListParameter fromStringListParameterName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String stringListParameterName) Imports an external parameter of type string list.Returns a token and should not be parsed.
- Parameters:
scope
- This parameter is required.id
- This parameter is required.stringListParameterName
- This parameter is required.
-
valueForTypedListParameter
@Stability(Stable) @NotNull public static List<String> valueForTypedListParameter(@NotNull software.constructs.Construct scope, @NotNull String parameterName, @Nullable ParameterValueType type, @Nullable Number version) Returns a token that will resolve (during deployment) to the list value of an SSM StringList parameter.- Parameters:
scope
- Some scope within a stack. This parameter is required.parameterName
- The name of the SSM parameter. This parameter is required.type
- the type of the SSM list parameter.version
- The parameter version (recommended in order to ensure that the value won't change during deployment).
-
valueForTypedListParameter
@Stability(Stable) @NotNull public static List<String> valueForTypedListParameter(@NotNull software.constructs.Construct scope, @NotNull String parameterName, @Nullable ParameterValueType type) Returns a token that will resolve (during deployment) to the list value of an SSM StringList parameter.- Parameters:
scope
- Some scope within a stack. This parameter is required.parameterName
- The name of the SSM parameter. This parameter is required.type
- the type of the SSM list parameter.
-
valueForTypedListParameter
@Stability(Stable) @NotNull public static List<String> valueForTypedListParameter(@NotNull software.constructs.Construct scope, @NotNull String parameterName) Returns a token that will resolve (during deployment) to the list value of an SSM StringList parameter.- Parameters:
scope
- Some scope within a stack. This parameter is required.parameterName
- The name of the SSM parameter. This parameter is required.
-
grantRead
Grants read (DescribeParameter, GetParameters, GetParameter, GetParameterHistory) permissions on the SSM Parameter.- Specified by:
grantRead
in interfaceIParameter
- Parameters:
grantee
- This parameter is required.
-
grantWrite
Grants write (PutParameter) permissions on the SSM Parameter.- Specified by:
grantWrite
in interfaceIParameter
- Parameters:
grantee
- This parameter is required.
-
getParameterArn
The ARN of the SSM Parameter resource.- Specified by:
getParameterArn
in interfaceIParameter
-
getParameterName
The name of the SSM Parameter resource.- Specified by:
getParameterName
in interfaceIParameter
-
getParameterType
The type of the SSM Parameter resource.- Specified by:
getParameterType
in interfaceIParameter
-
getStringListValue
The parameter value.Value must not nest another parameter. Do not use {{}} in the value. Values in the array cannot contain commas (
,
).- Specified by:
getStringListValue
in interfaceIStringListParameter
-
getEncryptionKey
The encryption key that is used to encrypt this parameter.Default: - default master key
-