@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.331Z") @Stability(value=Stable) public enum ParameterValueType extends Enum<ParameterValueType>
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:
// Example automatically generated from non-compiling source. May contain errors. StringParameter.valueForTypedStringParameterV2(stack, "/My/Public/Parameter", ParameterValueType.AWS_EC2_IMAGE_ID);
| Enum Constant and Description |
|---|
AWS_EC2_AVAILABILITYZONE_NAME
An Availability Zone, such as us-west-2a.
|
AWS_EC2_IMAGE_ID
An Amazon EC2 image ID, such as ami-0ff8a91507f77f867.
|
AWS_EC2_INSTANCE_ID
An Amazon EC2 instance ID, such as i-1e731a32.
|
AWS_EC2_KEYPAIR_KEYNAME
An Amazon EC2 key pair name.
|
AWS_EC2_SECURITYGROUP_GROUPNAME
An EC2-Classic or default VPC security group name, such as my-sg-abc.
|
AWS_EC2_SECURITYGROUP_ID
A security group ID, such as sg-a123fd85.
|
AWS_EC2_SUBNET_ID
A subnet ID, such as subnet-123a351e.
|
AWS_EC2_VOLUME_ID
An Amazon EBS volume ID, such as vol-3cdd3f56.
|
AWS_EC2_VPC_ID
A VPC ID, such as vpc-a123baa3.
|
AWS_ROUTE53_HOSTEDZONE_ID
An Amazon Route 53 hosted zone ID, such as Z23YXV4OVPL04A.
|
STRING
String.
|
| Modifier and Type | Method and Description |
|---|---|
static ParameterValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParameterValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final ParameterValueType STRING
@Stability(value=Stable) public static final ParameterValueType AWS_EC2_AVAILABILITYZONE_NAME
@Stability(value=Stable) public static final ParameterValueType AWS_EC2_IMAGE_ID
@Stability(value=Stable) public static final ParameterValueType AWS_EC2_INSTANCE_ID
@Stability(value=Stable) public static final ParameterValueType AWS_EC2_KEYPAIR_KEYNAME
@Stability(value=Stable) public static final ParameterValueType AWS_EC2_SECURITYGROUP_GROUPNAME
@Stability(value=Stable) public static final ParameterValueType AWS_EC2_SECURITYGROUP_ID
@Stability(value=Stable) public static final ParameterValueType AWS_EC2_SUBNET_ID
@Stability(value=Stable) public static final ParameterValueType AWS_EC2_VOLUME_ID
@Stability(value=Stable) public static final ParameterValueType AWS_EC2_VPC_ID
@Stability(value=Stable) public static final ParameterValueType AWS_ROUTE53_HOSTEDZONE_ID
public static ParameterValueType[] values()
for (ParameterValueType c : ParameterValueType.values()) System.out.println(c);
public static ParameterValueType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.