AWSEC2CapacityReservationSpecification
Objective-C
@interface AWSEC2CapacityReservationSpecification
Swift
class AWSEC2CapacityReservationSpecification
Describes an instance’s Capacity Reservation targeting option. You can specify only one parameter at a time. If you specify CapacityReservationPreference
and CapacityReservationTarget
, the request fails.
Use the CapacityReservationPreference
parameter to configure the instance to run as an On-Demand Instance 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 as an On-Demand Instance.
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 }