@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:42.430Z") @Stability(value=Experimental) public class CfnParameter extends CfnElement
Use the optional Parameters section to customize your templates. Parameters enable you to input custom values to your template each time you create or update a stack.
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnParameter.Builder
(experimental) A fluent builder for
CfnParameter. |
| Modifier | Constructor and Description |
|---|---|
|
CfnParameter(software.constructs.Construct scope,
String id)
(experimental) Creates a parameter construct.
|
|
CfnParameter(software.constructs.Construct scope,
String id,
CfnParameterProps props)
(experimental) Creates a parameter construct.
|
protected |
CfnParameter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnParameter(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAllowedPattern()
(experimental) A regular expression that represents the patterns to allow for String types.
|
List<String> |
getAllowedValues()
(experimental) An array containing the list of values allowed for the parameter.
|
String |
getConstraintDescription()
(experimental) A string that explains a constraint when the constraint is violated.
|
Object |
getDefaultValue()
(experimental) A value of the appropriate type for the template to use if no value is specified when a stack is created.
|
String |
getDescription()
(experimental) A string of up to 4000 characters that describes the parameter.
|
Number |
getMaxLength()
(experimental) An integer value that determines the largest number of characters you want to allow for String types.
|
Number |
getMaxValue()
(experimental) A numeric value that determines the largest numeric value you want to allow for Number types.
|
Number |
getMinLength()
(experimental) An integer value that determines the smallest number of characters you want to allow for String types.
|
Number |
getMinValue()
(experimental) A numeric value that determines the smallest numeric value you want to allow for Number types.
|
Boolean |
getNoEcho()
(experimental) Indicates if this parameter is configured with "NoEcho" enabled.
|
String |
getType()
(experimental) The data type for the parameter (DataType).
|
IResolvable |
getValue()
(experimental) The parameter value as a Token.
|
List<String> |
getValueAsList()
(experimental) The parameter value, if it represents a string list.
|
Number |
getValueAsNumber()
(experimental) The parameter value, if it represents a number.
|
String |
getValueAsString()
(experimental) The parameter value, if it represents a string.
|
Object |
resolve(IResolveContext _context) |
void |
setAllowedPattern(String value)
(experimental) A regular expression that represents the patterns to allow for String types.
|
void |
setAllowedValues(List<String> value)
(experimental) An array containing the list of values allowed for the parameter.
|
void |
setConstraintDescription(String value)
(experimental) A string that explains a constraint when the constraint is violated.
|
void |
setDefaultValue(Object value)
(experimental) A value of the appropriate type for the template to use if no value is specified when a stack is created.
|
void |
setDescription(String value)
(experimental) A string of up to 4000 characters that describes the parameter.
|
void |
setMaxLength(Number value)
(experimental) An integer value that determines the largest number of characters you want to allow for String types.
|
void |
setMaxValue(Number value)
(experimental) A numeric value that determines the largest numeric value you want to allow for Number types.
|
void |
setMinLength(Number value)
(experimental) An integer value that determines the smallest number of characters you want to allow for String types.
|
void |
setMinValue(Number value)
(experimental) A numeric value that determines the smallest numeric value you want to allow for Number types.
|
void |
setNoEcho(Boolean value)
(experimental) Indicates if this parameter is configured with "NoEcho" enabled.
|
void |
setType(String value)
(experimental) The data type for the parameter (DataType).
|
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CfnParameter(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnParameter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public CfnParameter(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnParameterProps props)
Note that the name (logical ID) of the parameter will derive from it's coname and location
within the stack. Therefore, it is recommended that parameters are defined at the stack level.
scope - The parent construct. This parameter is required.id - This parameter is required.props - The parameter properties.@Stability(value=Experimental)
public CfnParameter(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
Note that the name (logical ID) of the parameter will derive from it's coname and location
within the stack. Therefore, it is recommended that parameters are defined at the stack level.
scope - The parent construct. This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public Object resolve(@NotNull IResolveContext _context)
_context - This parameter is required.@Stability(value=Experimental) @NotNull public IResolvable getValue()
@Stability(value=Experimental) @NotNull public List<String> getValueAsList()
@Stability(value=Experimental) @NotNull public Number getValueAsNumber()
@Stability(value=Experimental) @NotNull public String getValueAsString()
@Stability(value=Experimental) @NotNull public Object getDefaultValue()
If you define constraints for the parameter, you must specify a value that adheres to those constraints.
Default: - No default value for parameter.
@Stability(value=Experimental)
public void setDefaultValue(@NotNull
Object value)
If you define constraints for the parameter, you must specify a value that adheres to those constraints.
Default: - No default value for parameter.
@Stability(value=Experimental) @NotNull public Boolean getNoEcho()
@Stability(value=Experimental)
public void setNoEcho(@NotNull
Boolean value)
@Stability(value=Experimental) @NotNull public String getType()
Default: String
@Stability(value=Experimental)
public void setType(@NotNull
String value)
Default: String
@Stability(value=Experimental) @Nullable public String getAllowedPattern()
Default: - No constraints on patterns allowed for parameter.
@Stability(value=Experimental)
public void setAllowedPattern(@Nullable
String value)
Default: - No constraints on patterns allowed for parameter.
@Stability(value=Experimental) @Nullable public List<String> getAllowedValues()
Default: - No constraints on values allowed for parameter.
@Stability(value=Experimental)
public void setAllowedValues(@Nullable
List<String> value)
Default: - No constraints on values allowed for parameter.
@Stability(value=Experimental) @Nullable public String getConstraintDescription()
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.
@Stability(value=Experimental)
public void setConstraintDescription(@Nullable
String value)
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.
@Stability(value=Experimental) @Nullable public String getDescription()
Default: - No description for the parameter.
@Stability(value=Experimental)
public void setDescription(@Nullable
String value)
Default: - No description for the parameter.
@Stability(value=Experimental) @Nullable public Number getMaxLength()
Default: - None.
@Stability(value=Experimental)
public void setMaxLength(@Nullable
Number value)
Default: - None.
@Stability(value=Experimental) @Nullable public Number getMaxValue()
Default: - None.
@Stability(value=Experimental)
public void setMaxValue(@Nullable
Number value)
Default: - None.
@Stability(value=Experimental) @Nullable public Number getMinLength()
Default: - None.
@Stability(value=Experimental)
public void setMinLength(@Nullable
Number value)
Default: - None.
@Stability(value=Experimental) @Nullable public Number getMinValue()
Default: - None.
@Stability(value=Experimental)
public void setMinValue(@Nullable
Number value)
Default: - None.
Copyright © 2021. All rights reserved.