@Stability(value=Stable) public static final class CfnParameter.Builder extends Object implements software.amazon.jsii.Builder<CfnParameter>
CfnParameter.| Modifier and Type | Method and Description |
|---|---|
CfnParameter.Builder |
allowedPattern(String allowedPattern)
A regular expression that represents the patterns to allow for String types.
|
CfnParameter.Builder |
allowedValues(List<String> allowedValues)
An array containing the list of values allowed for the parameter.
|
CfnParameter |
build() |
CfnParameter.Builder |
constraintDescription(String constraintDescription)
A string that explains a constraint when the constraint is violated.
|
static CfnParameter.Builder |
create(software.constructs.Construct scope,
String id) |
CfnParameter.Builder |
defaultValue(Object defaultValue)
A value of the appropriate type for the template to use if no value is specified when a stack is created.
|
CfnParameter.Builder |
description(String description)
A string of up to 4000 characters that describes the parameter.
|
CfnParameter.Builder |
maxLength(Number maxLength)
An integer value that determines the largest number of characters you want to allow for String types.
|
CfnParameter.Builder |
maxValue(Number maxValue)
A numeric value that determines the largest numeric value you want to allow for Number types.
|
CfnParameter.Builder |
minLength(Number minLength)
An integer value that determines the smallest number of characters you want to allow for String types.
|
CfnParameter.Builder |
minValue(Number minValue)
A numeric value that determines the smallest numeric value you want to allow for Number types.
|
CfnParameter.Builder |
noEcho(Boolean noEcho)
Whether to mask the parameter value when anyone makes a call that describes the stack.
|
CfnParameter.Builder |
type(String type)
The data type for the parameter (DataType).
|
@Stability(value=Stable) public static CfnParameter.Builder create(software.constructs.Construct scope, String id)
scope - The parent construct. This parameter is required.id - This parameter is required.CfnParameter.Builder.@Stability(value=Stable) public CfnParameter.Builder allowedPattern(String allowedPattern)
Default: - No constraints on patterns allowed for parameter.
allowedPattern - A regular expression that represents the patterns to allow for String types. This parameter is required.this@Stability(value=Stable) public CfnParameter.Builder allowedValues(List<String> allowedValues)
Default: - No constraints on values allowed for parameter.
allowedValues - An array containing the list of values allowed for the parameter. This parameter is required.this@Stability(value=Stable) public CfnParameter.Builder constraintDescription(String constraintDescription)
For example, without a constraint description, a parameter that has an allowed pattern of [A-Za-z0-9]+ displays the following error message when the user specifies an invalid value:
Default: - No description with customized error message when user specifies invalid values.
constraintDescription - A string that explains a constraint when the constraint is violated. This parameter is required.this@Stability(value=Stable) public CfnParameter.Builder defaultValue(Object defaultValue)
If you define constraints for the parameter, you must specify a value that adheres to those constraints.
Default: - No default value for parameter.
defaultValue - A value of the appropriate type for the template to use if no value is specified when a stack is created. This parameter is required.this@Stability(value=Stable) public CfnParameter.Builder description(String description)
Default: - No description for the parameter.
description - A string of up to 4000 characters that describes the parameter. This parameter is required.this@Stability(value=Stable) public CfnParameter.Builder maxLength(Number maxLength)
Default: - None.
maxLength - An integer value that determines the largest number of characters you want to allow for String types. This parameter is required.this@Stability(value=Stable) public CfnParameter.Builder maxValue(Number maxValue)
Default: - None.
maxValue - A numeric value that determines the largest numeric value you want to allow for Number types. This parameter is required.this@Stability(value=Stable) public CfnParameter.Builder minLength(Number minLength)
Default: - None.
minLength - An integer value that determines the smallest number of characters you want to allow for String types. This parameter is required.this@Stability(value=Stable) public CfnParameter.Builder minValue(Number minValue)
Default: - None.
minValue - A numeric value that determines the smallest numeric value you want to allow for Number types. This parameter is required.this@Stability(value=Stable) public CfnParameter.Builder noEcho(Boolean noEcho)
If you set the value to true, the parameter value is masked with asterisks (*****).
Default: - Parameter values are not masked.
noEcho - Whether to mask the parameter value when anyone makes a call that describes the stack. This parameter is required.this@Stability(value=Stable) public CfnParameter.Builder type(String type)
Default: String
type - The data type for the parameter (DataType). This parameter is required.this@Stability(value=Stable) public CfnParameter build()
build in interface software.amazon.jsii.Builder<CfnParameter>Copyright © 2021. All rights reserved.