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.AWS CloudFormation doesn't support creating a
SecureStringparameter type.Allowed Values : String | StringList
- 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 theValuefield.- Returns:
this
-
allowedPattern
Sets the value ofCfnParameterProps.getAllowedPattern()- Parameters:
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+$- Returns:
this
-
dataType
Sets the value ofCfnParameterProps.getDataType()- Parameters:
dataType- The data type of the parameter, such astextoraws: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 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- 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnParameterProps>- Returns:
- a new instance of
CfnParameterProps - Throws:
NullPointerException- if any required attribute was not provided
-