Class CfnParameterProps.Builder

java.lang.Object
software.amazon.awscdk.services.ssm.CfnParameterProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnParameterProps>
Enclosing interface:
CfnParameterProps

@Stability(Stable) public static final class CfnParameterProps.Builder extends Object implements software.amazon.jsii.Builder<CfnParameterProps>
A builder for CfnParameterProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • type

      @Stability(Stable) public CfnParameterProps.Builder type(String type)
      Sets the value of CfnParameterProps.getType()
      Parameters:
      type - The type of parameter. This parameter is required.

      Parameters of type SecureString are not supported by AWS CloudFormation .

      Returns:
      this
    • value

      @Stability(Stable) public CfnParameterProps.Builder value(String value)
      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 the Value field.

      Returns:
      this
    • allowedPattern

      @Stability(Stable) public CfnParameterProps.Builder allowedPattern(String allowedPattern)
      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

      @Stability(Stable) public CfnParameterProps.Builder dataType(String dataType)
      Parameters:
      dataType - The data type of the parameter, such as text or aws:ec2:image . The default is text .
      Returns:
      this
    • description

      @Stability(Stable) public CfnParameterProps.Builder description(String description)
      Parameters:
      description - Information about the parameter.
      Returns:
      this
    • name

      @Stability(Stable) public CfnParameterProps.Builder name(String name)
      Sets the value of CfnParameterProps.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

      @Stability(Stable) public CfnParameterProps.Builder policies(String policies)
      Parameters:
      policies - Information about the policies assigned to a parameter. Assigning parameter policies in the AWS Systems Manager User Guide .
      Returns:
      this
    • tags

      @Stability(Stable) public CfnParameterProps.Builder tags(Map<String,String> tags)
      Sets the value of CfnParameterProps.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

      @Stability(Stable) public CfnParameterProps.Builder tier(String tier)
      Sets the value of CfnParameterProps.getTier()
      Parameters:
      tier - The parameter tier.
      Returns:
      this
    • build

      @Stability(Stable) public CfnParameterProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnParameterProps>
      Returns:
      a new instance of CfnParameterProps
      Throws:
      NullPointerException - if any required attribute was not provided