Class StringListParameter
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.ssm.StringListParameter
- All Implemented Interfaces:
IConstruct,IDependable,IResource,IParameter,IStringListParameter,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.833Z")
@Stability(Stable)
public class StringListParameter
extends Resource
implements IStringListParameter, IParameter
Creates a new StringList SSM Parameter.
Example:
// Create a new SSM Parameter holding a String
StringParameter param = StringParameter.Builder.create(stack, "StringParameter")
// description: 'Some user-friendly description',
// name: 'ParameterName',
.stringValue("Initial parameter value")
.build();
// Grant read access to some Role
param.grantRead(role);
// Create a new SSM Parameter holding a StringList
StringListParameter listParameter = StringListParameter.Builder.create(stack, "StringListParameter")
// description: 'Some user-friendly description',
// name: 'ParameterName',
.stringListValue(List.of("Initial parameter value A", "Initial parameter value B"))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ssm.IParameter
IParameter.Jsii$Default, IParameter.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ssm.IStringListParameter
IStringListParameter.Jsii$Default, IStringListParameter.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStringListParameter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedStringListParameter(software.amazon.jsii.JsiiObjectRef objRef) StringListParameter(software.constructs.Construct scope, String id, StringListParameterProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IStringListParameterfromStringListParameterName(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, GetParameter, GetParameterHistory) permissions on the SSM Parameter.grantWrite(IGrantable grantee) Grants write (PutParameter) permissions on the SSM Parameter.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods 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
-
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.
-
grantRead
Grants read (DescribeParameter, GetParameter, GetParameterHistory) permissions on the SSM Parameter.- Specified by:
grantReadin interfaceIParameter- Parameters:
grantee- This parameter is required.
-
grantWrite
Grants write (PutParameter) permissions on the SSM Parameter.- Specified by:
grantWritein interfaceIParameter- Parameters:
grantee- This parameter is required.
-
getParameterArn
The ARN of the SSM Parameter resource.- Specified by:
getParameterArnin interfaceIParameter
-
getParameterName
The name of the SSM Parameter resource.- Specified by:
getParameterNamein interfaceIParameter
-
getParameterType
The type of the SSM Parameter resource.- Specified by:
getParameterTypein 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:
getStringListValuein interfaceIStringListParameter
-
getEncryptionKey
The encryption key that is used to encrypt this parameter.- @default - default master key
-