# 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.

- Source: [`aws-ssm/lib/parameter.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ssm/lib/parameter.ts#L243)
- Type last changed: v2.42.0 · 16 Sep 2022

## Example

```ts
ssm.StringParameter.valueForTypedStringParameterV2(this, '/My/Public/Parameter', ssm.ParameterValueType.AWS_EC2_IMAGE_ID);
```

## Members

| Member | Description |
| --- | --- |
| `STRING` | String. |
| `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. |

## Referenced by

- [`ListParameterAttributes`](/v2/docs/aws-cdk-lib.aws_ssm.ListParameterAttributes).elementType
- [`StringParameterAttributes`](/v2/docs/aws-cdk-lib.aws_ssm.StringParameterAttributes).valueType
