Class CfnParameter.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnParameter>
- Enclosing class:
CfnParameter
CfnParameter
.-
Method Summary
Modifier and TypeMethodDescriptionallowedPattern
(String allowedPattern) A regular expression used to validate the parameter value.build()
static CfnParameter.Builder
The data type of the parameter, such astext
oraws:ec2:image
.description
(String description) Information about the parameter.The name of the parameter.Information about the policies assigned to a parameter.Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs).The parameter tier.The type of parameter.The parameter value.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnParameter.Builder
.
-
type
The type of parameter.AWS CloudFormation doesn't support creating a
SecureString
parameter type.Allowed Values : String | StringList
- Parameters:
type
- The type of parameter. This parameter is required.- Returns:
this
-
value
The parameter value.If type is
StringList
, the system returns a comma-separated string with no spaces between commas in theValue
field.- Parameters:
value
- The parameter value. This parameter is required.- Returns:
this
-
allowedPattern
A regular expression used to validate the parameter value.For example, for String types with values restricted to numbers, you can specify the following:
AllowedPattern=^\d+$
- Parameters:
allowedPattern
- A regular expression used to validate the parameter value. This parameter is required.- Returns:
this
-
dataType
The data type of the parameter, such astext
oraws:ec2:image
.The default is
text
.- Parameters:
dataType
- The data type of the parameter, such astext
oraws:ec2:image
. This parameter is required.- Returns:
this
-
description
Information about the parameter.- Parameters:
description
- Information about the parameter. This parameter is required.- Returns:
this
-
name
The name of the parameter.The maximum length constraint listed below includes capacity for additional system attributes that aren't part of the name. The maximum length for a parameter name, including the full length of the parameter ARN, is 1011 characters. For example, the length of the following parameter name is 65 characters, not 20 characters:
arn:aws:ssm:us-east-2:111222333444:parameter/ExampleParameterName
- Parameters:
name
- The name of the parameter. This parameter is required.- Returns:
this
-
policies
Information about the policies assigned to a parameter.Assigning parameter policies in the AWS Systems Manager User Guide .
- Parameters:
policies
- Information about the policies assigned to a parameter. This parameter is required.- Returns:
this
-
tags
Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs).Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a Systems Manager parameter to identify the type of resource to which it applies, the environment, or the type of configuration data referenced by the parameter.
- Parameters:
tags
- Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs). This parameter is required.- Returns:
this
-
tier
The parameter tier.- Parameters:
tier
- The parameter tier. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnParameter>
- Returns:
- a newly built instance of
CfnParameter
.
-