#[non_exhaustive]pub struct ModifySpotFleetRequestInput {
pub excess_capacity_termination_policy: Option<ExcessCapacityTerminationPolicy>,
pub launch_template_configs: Option<Vec<LaunchTemplateConfig>>,
pub spot_fleet_request_id: Option<String>,
pub target_capacity: Option<i32>,
pub on_demand_target_capacity: Option<i32>,
pub context: Option<String>,
}
Expand description
Contains the parameters for ModifySpotFleetRequest.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.excess_capacity_termination_policy: Option<ExcessCapacityTerminationPolicy>
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain
.
launch_template_configs: Option<Vec<LaunchTemplateConfig>>
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.
spot_fleet_request_id: Option<String>
The ID of the Spot Fleet request.
target_capacity: Option<i32>
The size of the fleet.
on_demand_target_capacity: Option<i32>
The number of On-Demand Instances in the fleet.
context: Option<String>
Reserved.
Implementations§
source§impl ModifySpotFleetRequestInput
impl ModifySpotFleetRequestInput
sourcepub fn excess_capacity_termination_policy(
&self
) -> Option<&ExcessCapacityTerminationPolicy>
pub fn excess_capacity_termination_policy( &self ) -> Option<&ExcessCapacityTerminationPolicy>
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain
.
sourcepub fn launch_template_configs(&self) -> Option<&[LaunchTemplateConfig]>
pub fn launch_template_configs(&self) -> Option<&[LaunchTemplateConfig]>
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) -> Option<&str>
pub fn spot_fleet_request_id(&self) -> Option<&str>
The ID of the Spot Fleet request.
sourcepub fn target_capacity(&self) -> Option<i32>
pub fn target_capacity(&self) -> Option<i32>
The size of the fleet.
sourcepub fn on_demand_target_capacity(&self) -> Option<i32>
pub fn on_demand_target_capacity(&self) -> Option<i32>
The number of On-Demand Instances in the fleet.
source§impl ModifySpotFleetRequestInput
impl ModifySpotFleetRequestInput
sourcepub fn builder() -> ModifySpotFleetRequestInputBuilder
pub fn builder() -> ModifySpotFleetRequestInputBuilder
Creates a new builder-style object to manufacture ModifySpotFleetRequestInput
.
Trait Implementations§
source§impl Clone for ModifySpotFleetRequestInput
impl Clone for ModifySpotFleetRequestInput
source§fn clone(&self) -> ModifySpotFleetRequestInput
fn clone(&self) -> ModifySpotFleetRequestInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModifySpotFleetRequestInput
impl Debug for ModifySpotFleetRequestInput
source§impl PartialEq<ModifySpotFleetRequestInput> for ModifySpotFleetRequestInput
impl PartialEq<ModifySpotFleetRequestInput> for ModifySpotFleetRequestInput
source§fn eq(&self, other: &ModifySpotFleetRequestInput) -> bool
fn eq(&self, other: &ModifySpotFleetRequestInput) -> bool
self
and other
values to be equal, and is used
by ==
.