Struct aws_sdk_ec2::input::ModifySpotFleetRequestInput
source · #[non_exhaustive]pub struct ModifySpotFleetRequestInput { /* private fields */ }
Expand description
Contains the parameters for ModifySpotFleetRequest.
Implementations§
source§impl ModifySpotFleetRequestInput
impl ModifySpotFleetRequestInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySpotFleetRequest, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySpotFleetRequest, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifySpotFleetRequest
>
Examples found in repository?
src/client.rs (line 67578)
67564 67565 67566 67567 67568 67569 67570 67571 67572 67573 67574 67575 67576 67577 67578 67579 67580 67581 67582 67583 67584 67585 67586 67587 67588 67589 67590 67591 67592 67593 67594 67595 67596 67597 67598 67599 67600 67601 67602 67603 67604 67605 67606
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifySpotFleetRequest,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifySpotFleetRequestError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ModifySpotFleetRequestOutput,
aws_smithy_http::result::SdkError<crate::error::ModifySpotFleetRequestError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ModifySpotFleetRequestInput
.
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 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) -> 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.
Trait Implementations§
source§impl Clone for ModifySpotFleetRequestInput
impl Clone for ModifySpotFleetRequestInput
source§fn clone(&self) -> ModifySpotFleetRequestInput
fn clone(&self) -> ModifySpotFleetRequestInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more