StringListParameterProps
- class aws_cdk.aws_ssm.StringListParameterProps(*, allowed_pattern=None, description=None, parameter_name=None, simple_name=None, tier=None, string_list_value)
Bases:
ParameterOptions
Properties needed to create a StringList SSM Parameter.
- Parameters:
allowed_pattern (
Optional
[str
]) – A regular expression used to validate the parameter value. For example, for String types with values restricted to numbers, you can specify the following:^\d+$
Default: no validation is performeddescription (
Optional
[str
]) – Information about the parameter that you want to add to the system. Default: noneparameter_name (
Optional
[str
]) – The name of the parameter. Default: - a name will be generated by CloudFormationsimple_name (
Optional
[bool
]) – Indicates of the parameter name is a simple name (i.e. does not include “/” separators). This is only required only ifparameterName
is a token, which means we are unable to detect if the name is simple or “path-like” for the purpose of rendering SSM parameter ARNs. IfparameterName
is not specified,simpleName
must betrue
(or undefined) since the name generated by AWS CloudFormation is always a simple name. Default: - auto-detect based onparameterName
tier (
Optional
[ParameterTier
]) – The tier of the string parameter. Default: - undefinedstring_list_value (
Sequence
[str
]) – The values of the parameter. It may not reference another parameter and{{}}
cannot be used in the value.
- ExampleMetadata:
lit=test/integ.parameter.lit.ts infused
Example:
# Create a new SSM Parameter holding a String param = ssm.StringParameter(stack, "StringParameter", # description: 'Some user-friendly description', # name: 'ParameterName', string_value="Initial parameter value" ) # Grant read access to some Role param.grant_read(role) # Create a new SSM Parameter holding a StringList list_parameter = ssm.StringListParameter(stack, "StringListParameter", # description: 'Some user-friendly description', # name: 'ParameterName', string_list_value=["Initial parameter value A", "Initial parameter value B"] )
Attributes
- allowed_pattern
A regular expression used to validate the parameter value.
For example, for String types with values restricted to numbers, you can specify the following:
^\d+$
- Default:
no validation is performed
- description
Information about the parameter that you want to add to the system.
- Default:
none
- parameter_name
The name of the parameter.
- Default:
a name will be generated by CloudFormation
- simple_name
Indicates of the parameter name is a simple name (i.e. does not include “/” separators).
This is only required only if
parameterName
is a token, which means we are unable to detect if the name is simple or “path-like” for the purpose of rendering SSM parameter ARNs.If
parameterName
is not specified,simpleName
must betrue
(or undefined) since the name generated by AWS CloudFormation is always a simple name.- Default:
auto-detect based on
parameterName
- string_list_value
The values of the parameter.
It may not reference another parameter and
{{}}
cannot be used in the value.
- tier
The tier of the string parameter.
- Default:
undefined