@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:20.968Z") @Stability(value=Stable) public class StringListParameter extends Resource implements IStringListParameter, IParameter
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
StringListParameter.Builder
A fluent builder for
StringListParameter. |
software.amazon.jsii.JsiiObject.InitializationModeIStringListParameter.Jsii$Default, IStringListParameter.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
StringListParameter(software.constructs.Construct scope,
String id,
StringListParameterProps props) |
protected |
StringListParameter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
StringListParameter(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IStringListParameter |
fromStringListParameterName(software.constructs.Construct scope,
String id,
String stringListParameterName)
Imports an external parameter of type string list.
|
IKey |
getEncryptionKey()
The encryption key that is used to encrypt this parameter.
|
String |
getParameterArn()
The ARN of the SSM Parameter resource.
|
String |
getParameterName()
The name of the SSM Parameter resource.
|
String |
getParameterType()
The type of the SSM Parameter resource.
|
List<String> |
getStringListValue()
The parameter value.
|
Grant |
grantRead(IGrantable grantee)
Grants read (DescribeParameter, GetParameter, GetParameterHistory) permissions on the SSM Parameter.
|
Grant |
grantWrite(IGrantable grantee)
Grants write (PutParameter) permissions on the SSM Parameter.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected StringListParameter(software.amazon.jsii.JsiiObjectRef objRef)
protected StringListParameter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public StringListParameter(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
StringListParameterProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IStringListParameter fromStringListParameterName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String stringListParameterName)
Returns a token and should not be parsed.
scope - This parameter is required.id - This parameter is required.stringListParameterName - This parameter is required.@Stability(value=Stable) @NotNull public Grant grantRead(@NotNull IGrantable grantee)
grantRead in interface IParametergrantee - This parameter is required.@Stability(value=Stable) @NotNull public Grant grantWrite(@NotNull IGrantable grantee)
grantWrite in interface IParametergrantee - This parameter is required.@Stability(value=Stable) @NotNull public String getParameterArn()
getParameterArn in interface IParameter@Stability(value=Stable) @NotNull public String getParameterName()
getParameterName in interface IParameter@Stability(value=Stable) @NotNull public String getParameterType()
getParameterType in interface IParameter@Stability(value=Stable) @NotNull public List<String> getStringListValue()
Value must not nest another parameter. Do not use {{}} in the value. Values in the array
cannot contain commas (,).
getStringListValue in interface IStringListParameter@Stability(value=Stable) @Nullable public IKey getEncryptionKey()
Copyright © 2023. All rights reserved.