This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html). # AWS::EC2::LaunchTemplate CapacityReservationTarget Specifies a target Capacity Reservation. `CapacityReservationTarget` is a property of the [ Amazon EC2 LaunchTemplate LaunchTemplateData](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html) property type. ## Syntax To declare this entity in your CloudFormation template, use the following syntax: ### JSON ``` { "[CapacityReservationId](#cfn-ec2-launchtemplate-capacityreservationtarget-capacityreservationid)" : {{String}}, "[CapacityReservationResourceGroupArn](#cfn-ec2-launchtemplate-capacityreservationtarget-capacityreservationresourcegrouparn)" : {{String}} } ``` ### YAML ``` [CapacityReservationId](#cfn-ec2-launchtemplate-capacityreservationtarget-capacityreservationid): {{String}} [CapacityReservationResourceGroupArn](#cfn-ec2-launchtemplate-capacityreservationtarget-capacityreservationresourcegrouparn): {{String}} ``` ## Properties `CapacityReservationId` The ID of the Capacity Reservation in which to run the instance. *Required*: No *Type*: String *Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) `CapacityReservationResourceGroupArn` The ARN of the Capacity Reservation resource group in which to run the instance. *Required*: No *Type*: String *Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)