Class CfnParameter.Builder

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

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

    • create

      @Stability(Stable) public static CfnParameter.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnParameter.Builder.
    • type

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

      @Stability(Stable) public CfnParameter.Builder value(String value)
      The parameter value.

      If type is StringList , the system returns a comma-separated string with no spaces between commas in the Value field.

      Parameters:
      value - The parameter value. This parameter is required.
      Returns:
      this
    • allowedPattern

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

      @Stability(Stable) public CfnParameter.Builder dataType(String dataType)
      The data type of the parameter, such as text or aws:ec2:image .

      The default is text .

      Parameters:
      dataType - The data type of the parameter, such as text or aws:ec2:image . This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnParameter.Builder description(String description)
      Information about the parameter.

      Parameters:
      description - Information about the parameter. This parameter is required.
      Returns:
      this
    • name

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

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

      @Stability(Stable) public CfnParameter.Builder tags(Object 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

      @Stability(Stable) public CfnParameter.Builder tier(String tier)
      The parameter tier.

      Parameters:
      tier - The parameter tier. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnParameter build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnParameter>
      Returns:
      a newly built instance of CfnParameter.