@Stability(value=Stable) public static final class StringParameter.Builder extends Object implements software.amazon.jsii.Builder<StringParameter>
StringParameter.| Modifier and Type | Method and Description |
|---|---|
StringParameter.Builder |
allowedPattern(String allowedPattern)
A regular expression used to validate the parameter value.
|
StringParameter |
build() |
static StringParameter.Builder |
create(software.constructs.Construct scope,
String id) |
StringParameter.Builder |
dataType(ParameterDataType dataType)
The data type of the parameter, such as `text` or `aws:ec2:image`.
|
StringParameter.Builder |
description(String description)
Information about the parameter that you want to add to the system.
|
StringParameter.Builder |
parameterName(String parameterName)
The name of the parameter.
|
StringParameter.Builder |
simpleName(Boolean simpleName)
Indicates of the parameter name is a simple name (i.e.
|
StringParameter.Builder |
stringValue(String stringValue)
The value of the parameter.
|
StringParameter.Builder |
tier(ParameterTier tier)
The tier of the string parameter.
|
StringParameter.Builder |
type(ParameterType type)
The type of the string parameter.
|
@Stability(value=Stable) public static StringParameter.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.StringParameter.Builder.@Stability(value=Stable) public StringParameter.Builder allowedPattern(String allowedPattern)
For example, for String types with values restricted to
numbers, you can specify the following: ^\d+$
Default: no validation is performed
allowedPattern - A regular expression used to validate the parameter value. This parameter is required.this@Stability(value=Stable) public StringParameter.Builder description(String description)
Default: none
description - Information about the parameter that you want to add to the system. This parameter is required.this@Stability(value=Stable) public StringParameter.Builder parameterName(String parameterName)
Default: - a name will be generated by CloudFormation
parameterName - The name of the parameter. This parameter is required.this@Stability(value=Stable) public StringParameter.Builder simpleName(Boolean simpleName)
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 be true (or
undefined) since the name generated by AWS CloudFormation is always a
simple name.
Default: - auto-detect based on `parameterName`
simpleName - Indicates of the parameter name is a simple name (i.e. does not include "/" separators). This parameter is required.this@Stability(value=Stable) public StringParameter.Builder tier(ParameterTier tier)
Default: - undefined
tier - The tier of the string parameter. This parameter is required.this@Stability(value=Stable) public StringParameter.Builder stringValue(String stringValue)
It may not reference another parameter and {{}} cannot be used in the value.
stringValue - The value of the parameter. This parameter is required.this@Stability(value=Stable) public StringParameter.Builder dataType(ParameterDataType dataType)
Default: ParameterDataType.TEXT
dataType - The data type of the parameter, such as `text` or `aws:ec2:image`. This parameter is required.this@Stability(value=Stable) public StringParameter.Builder type(ParameterType type)
Default: ParameterType.STRING
type - The type of the string parameter. This parameter is required.this@Stability(value=Stable) public StringParameter build()
build in interface software.amazon.jsii.Builder<StringParameter>Copyright © 2022. All rights reserved.