aws-cdk-lib.aws_ec2.CfnLaunchTemplate.CapacityReservationTargetProperty

interface CapacityReservationTargetProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnLaunchTemplate.CapacityReservationTargetProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnLaunchTemplate_CapacityReservationTargetProperty
Javasoftware.amazon.awscdk.services.ec2.CfnLaunchTemplate.CapacityReservationTargetProperty
Pythonaws_cdk.aws_ec2.CfnLaunchTemplate.CapacityReservationTargetProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnLaunchTemplate » CapacityReservationTargetProperty

Specifies a target Capacity Reservation.

CapacityReservationTarget is a property of the Amazon EC2 LaunchTemplate LaunchTemplateData property type.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const capacityReservationTargetProperty: ec2.CfnLaunchTemplate.CapacityReservationTargetProperty = {
  capacityReservationId: 'capacityReservationId',
  capacityReservationResourceGroupArn: 'capacityReservationResourceGroupArn',
};

Properties

NameTypeDescription
capacityReservationId?stringThe ID of the Capacity Reservation in which to run the instance.
capacityReservationResourceGroupArn?stringThe ARN of the Capacity Reservation resource group in which to run the instance.

capacityReservationId?

Type: string (optional)

The ID of the Capacity Reservation in which to run the instance.


capacityReservationResourceGroupArn?

Type: string (optional)

The ARN of the Capacity Reservation resource group in which to run the instance.