Struct aws_sdk_ec2::model::target_capacity_specification::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for TargetCapacitySpecification
Implementations
The number of units to request, filled using
DefaultTargetCapacityType
.
The number of units to request, filled using
DefaultTargetCapacityType
.
The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.
The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.
The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.
The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.
The default TotalTargetCapacity
, which is either Spot
or
On-Demand
.
pub fn set_default_target_capacity_type(
self,
input: Option<DefaultTargetCapacityType>
) -> Self
pub fn set_default_target_capacity_type(
self,
input: Option<DefaultTargetCapacityType>
) -> Self
The default TotalTargetCapacity
, which is either Spot
or
On-Demand
.
The unit for the target capacity.
Default: units
(translates to number of instances)
The unit for the target capacity.
Default: units
(translates to number of instances)
Consumes the builder and constructs a TargetCapacitySpecification
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