Struct aws_sdk_ec2::input::modify_spot_fleet_request_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ModifySpotFleetRequestInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn excess_capacity_termination_policy(
self,
input: ExcessCapacityTerminationPolicy
) -> Self
pub fn excess_capacity_termination_policy(
self,
input: ExcessCapacityTerminationPolicy
) -> Self
Indicates whether running Spot Instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
sourcepub fn set_excess_capacity_termination_policy(
self,
input: Option<ExcessCapacityTerminationPolicy>
) -> Self
pub fn set_excess_capacity_termination_policy(
self,
input: Option<ExcessCapacityTerminationPolicy>
) -> Self
Indicates whether running Spot Instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
sourcepub fn launch_template_configs(self, input: LaunchTemplateConfig) -> Self
pub fn launch_template_configs(self, input: LaunchTemplateConfig) -> Self
Appends an item to launch_template_configs
.
To override the contents of this collection use set_launch_template_configs
.
The launch template and overrides. You can only use this parameter if you specified a launch template (LaunchTemplateConfigs
) in your Spot Fleet request. If you specified LaunchSpecifications
in your Spot Fleet request, then omit this parameter.
sourcepub fn set_launch_template_configs(
self,
input: Option<Vec<LaunchTemplateConfig>>
) -> Self
pub fn set_launch_template_configs(
self,
input: Option<Vec<LaunchTemplateConfig>>
) -> Self
The launch template and overrides. You can only use this parameter if you specified a launch template (LaunchTemplateConfigs
) in your Spot Fleet request. If you specified LaunchSpecifications
in your Spot Fleet request, then omit this parameter.
sourcepub fn spot_fleet_request_id(self, input: impl Into<String>) -> Self
pub fn spot_fleet_request_id(self, input: impl Into<String>) -> Self
The ID of the Spot Fleet request.
sourcepub fn set_spot_fleet_request_id(self, input: Option<String>) -> Self
pub fn set_spot_fleet_request_id(self, input: Option<String>) -> Self
The ID of the Spot Fleet request.
sourcepub fn target_capacity(self, input: i32) -> Self
pub fn target_capacity(self, input: i32) -> Self
The size of the fleet.
sourcepub fn set_target_capacity(self, input: Option<i32>) -> Self
pub fn set_target_capacity(self, input: Option<i32>) -> Self
The size of the fleet.
sourcepub fn on_demand_target_capacity(self, input: i32) -> Self
pub fn on_demand_target_capacity(self, input: i32) -> Self
The number of On-Demand Instances in the fleet.
sourcepub fn set_on_demand_target_capacity(self, input: Option<i32>) -> Self
pub fn set_on_demand_target_capacity(self, input: Option<i32>) -> Self
The number of On-Demand Instances in the fleet.
sourcepub fn set_context(self, input: Option<String>) -> Self
pub fn set_context(self, input: Option<String>) -> Self
Reserved.
sourcepub fn build(self) -> Result<ModifySpotFleetRequestInput, BuildError>
pub fn build(self) -> Result<ModifySpotFleetRequestInput, BuildError>
Consumes the builder and constructs a ModifySpotFleetRequestInput
.