Enum ParameterValueType

java.lang.Object
java.lang.Enum<ParameterValueType>
software.amazon.awscdk.services.ssm.ParameterValueType
All Implemented Interfaces:
Serializable, Comparable<ParameterValueType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-09-10T01:10:16.719Z") @Stability(Stable) public enum ParameterValueType extends Enum<ParameterValueType>
The type of CFN SSM Parameter.

Using specific types can be helpful in catching invalid values at the start of creating or updating a stack. CloudFormation validates the values against existing values in the account.

Example:

 StringParameter.valueForTypedStringParameterV2(this, "/My/Public/Parameter", ParameterValueType.AWS_EC2_IMAGE_ID);
 

See Also:
  • Enum Constant Details

    • STRING

      @Stability(Stable) public static final ParameterValueType STRING
      String.
    • AWS_EC2_AVAILABILITYZONE_NAME

      @Stability(Stable) public static final ParameterValueType AWS_EC2_AVAILABILITYZONE_NAME
      An Availability Zone, such as us-west-2a.
    • AWS_EC2_IMAGE_ID

      @Stability(Stable) public static final ParameterValueType AWS_EC2_IMAGE_ID
      An Amazon EC2 image ID, such as ami-0ff8a91507f77f867.
    • AWS_EC2_INSTANCE_ID

      @Stability(Stable) public static final ParameterValueType AWS_EC2_INSTANCE_ID
      An Amazon EC2 instance ID, such as i-1e731a32.
    • AWS_EC2_KEYPAIR_KEYNAME

      @Stability(Stable) public static final ParameterValueType AWS_EC2_KEYPAIR_KEYNAME
      An Amazon EC2 key pair name.
    • AWS_EC2_SECURITYGROUP_GROUPNAME

      @Stability(Stable) public static final ParameterValueType AWS_EC2_SECURITYGROUP_GROUPNAME
      An EC2-Classic or default VPC security group name, such as my-sg-abc.
    • AWS_EC2_SECURITYGROUP_ID

      @Stability(Stable) public static final ParameterValueType AWS_EC2_SECURITYGROUP_ID
      A security group ID, such as sg-a123fd85.
    • AWS_EC2_SUBNET_ID

      @Stability(Stable) public static final ParameterValueType AWS_EC2_SUBNET_ID
      A subnet ID, such as subnet-123a351e.
    • AWS_EC2_VOLUME_ID

      @Stability(Stable) public static final ParameterValueType AWS_EC2_VOLUME_ID
      An Amazon EBS volume ID, such as vol-3cdd3f56.
    • AWS_EC2_VPC_ID

      @Stability(Stable) public static final ParameterValueType AWS_EC2_VPC_ID
      A VPC ID, such as vpc-a123baa3.
    • AWS_ROUTE53_HOSTEDZONE_ID

      @Stability(Stable) public static final ParameterValueType AWS_ROUTE53_HOSTEDZONE_ID
      An Amazon Route 53 hosted zone ID, such as Z23YXV4OVPL04A.
  • Method Details

    • values

      public static ParameterValueType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ParameterValueType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null