AWSEC2LaunchTemplateCapacityReservationSpecificationRequest
Objective-C
@interface AWSEC2LaunchTemplateCapacityReservationSpecificationRequest
Swift
class AWSEC2LaunchTemplateCapacityReservationSpecificationRequest
Describes an instance’s Capacity Reservation targeting option. You can specify only one option at a time. Use the CapacityReservationPreference
parameter to configure the instance to run in On-Demand capacity or to run in any open
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). Use the CapacityReservationTarget
parameter to explicitly target a specific Capacity Reservation or a Capacity Reservation group.
-
Indicates the instance’s Capacity Reservation preferences. Possible preferences include:
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
Declaration
Objective-C
@property (nonatomic) AWSEC2CapacityReservationPreference capacityReservationPreference;
Swift
var capacityReservationPreference: AWSEC2CapacityReservationPreference { get set }
-
Information about the target Capacity Reservation or Capacity Reservation group.
Declaration
Objective-C
@property (nonatomic, strong) AWSEC2CapacityReservationTarget *_Nullable capacityReservationTarget;
Swift
var capacityReservationTarget: AWSEC2CapacityReservationTarget? { get set }