Interface CfnLaunchTemplate.CapacityReservationSpecificationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnLaunchTemplate.CapacityReservationSpecificationProperty.Jsii$Proxy
Enclosing class:
CfnLaunchTemplate

@Stability(Stable) public static interface CfnLaunchTemplate.CapacityReservationSpecificationProperty extends software.amazon.jsii.JsiiSerializable
Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.

CapacityReservationSpecification is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 CapacityReservationSpecificationProperty capacityReservationSpecificationProperty = CapacityReservationSpecificationProperty.builder()
         .capacityReservationPreference("capacityReservationPreference")
         .capacityReservationTarget(CapacityReservationTargetProperty.builder()
                 .capacityReservationId("capacityReservationId")
                 .capacityReservationResourceGroupArn("capacityReservationResourceGroupArn")
                 .build())
         .build();
 

See Also: