Struct aws_sdk_ec2::model::launch_template_capacity_reservation_specification_request::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for LaunchTemplateCapacityReservationSpecificationRequest
Implementations
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.
pub fn set_capacity_reservation_preference(
self,
input: Option<CapacityReservationPreference>
) -> Self
pub fn set_capacity_reservation_preference(
self,
input: Option<CapacityReservationPreference>
) -> Self
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.
Information about the target Capacity Reservation or Capacity Reservation group.
pub fn set_capacity_reservation_target(
self,
input: Option<CapacityReservationTarget>
) -> Self
pub fn set_capacity_reservation_target(
self,
input: Option<CapacityReservationTarget>
) -> Self
Information about the target Capacity Reservation or Capacity Reservation group.
Consumes the builder and constructs a LaunchTemplateCapacityReservationSpecificationRequest
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more