Struct rusoto_ec2::CapacityReservationSpecification [−][src]
pub struct CapacityReservationSpecification { pub capacity_reservation_preference: Option<String>, pub capacity_reservation_target: Option<CapacityReservationTarget>, }
Expand description
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.
Fields
capacity_reservation_preference: Option<String>
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.
capacity_reservation_target: Option<CapacityReservationTarget>
Information about the target Capacity Reservation or Capacity Reservation group.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for CapacityReservationSpecification
impl Sync for CapacityReservationSpecification
impl Unpin for CapacityReservationSpecification
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self