Class CfnParameterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnParameterProps>
- Enclosing interface:
CfnParameterProps
CfnParameterProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedPattern
(String allowedPattern) Sets the value ofCfnParameterProps.getAllowedPattern()
build()
Builds the configured instance.Sets the value ofCfnParameterProps.getDataType()
description
(String description) Sets the value ofCfnParameterProps.getDescription()
Sets the value ofCfnParameterProps.getName()
Sets the value ofCfnParameterProps.getPolicies()
Sets the value ofCfnParameterProps.getTags()
Sets the value ofCfnParameterProps.getTier()
Sets the value ofCfnParameterProps.getType()
Sets the value ofCfnParameterProps.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnParameterProps.getType()
- Parameters:
type
- The type of parameter. This parameter is required.Parameters of type
SecureString
are not supported by AWS CloudFormation .- Returns:
this
-
value
Sets the value ofCfnParameterProps.getValue()
- Parameters:
value
- The parameter value. This parameter is required.If type is
StringList
, the system returns a comma-separated string with no spaces between commas in theValue
field.- Returns:
this
-
allowedPattern
Sets the value ofCfnParameterProps.getAllowedPattern()
- Parameters:
allowedPattern
- A regular expression used to validate the parameter value. For example, forString
types with values restricted to numbers, you can specify the following:AllowedPattern=^\d+$
- Returns:
this
-
dataType
Sets the value ofCfnParameterProps.getDataType()
- Parameters:
dataType
- The data type of the parameter, such astext
oraws:ec2:image
. The default istext
.- Returns:
this
-
description
Sets the value ofCfnParameterProps.getDescription()
- Parameters:
description
- Information about the parameter.- Returns:
this
-
name
Sets the value ofCfnParameterProps.getName()
- Parameters:
name
- The name of the parameter.The reported maximum length of 2048 characters for a parameter name includes 1037 characters that are reserved for internal use by Systems Manager . The maximum length for a parameter name that you specify is 1011 characters.
This count of 1011 characters includes the characters in the ARN that precede the name you specify. This ARN length will vary depending on your partition and Region. For example, the following 45 characters count toward the 1011 character maximum for a parameter created in the US East (Ohio) Region:
arn:aws:ssm:us-east-2:111122223333:parameter/
.- Returns:
this
-
policies
Sets the value ofCfnParameterProps.getPolicies()
- Parameters:
policies
- Information about the policies assigned to a parameter. Assigning parameter policies in the AWS Systems Manager User Guide .- Returns:
this
-
tags
Sets the value ofCfnParameterProps.getTags()
- Parameters:
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.- Returns:
this
-
tier
Sets the value ofCfnParameterProps.getTier()
- Parameters:
tier
- The parameter tier.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnParameterProps>
- Returns:
- a new instance of
CfnParameterProps
- Throws:
NullPointerException
- if any required attribute was not provided
-