Struct aws_sdk_ec2::input::CancelSpotFleetRequestsInput
source · #[non_exhaustive]pub struct CancelSpotFleetRequestsInput { /* private fields */ }
Expand description
Contains the parameters for CancelSpotFleetRequests.
Implementations§
source§impl CancelSpotFleetRequestsInput
impl CancelSpotFleetRequestsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelSpotFleetRequests, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelSpotFleetRequests, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CancelSpotFleetRequests
>
Examples found in repository?
src/client.rs (line 13286)
13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CancelSpotFleetRequests,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CancelSpotFleetRequestsError>,
> {
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::CancelSpotFleetRequestsOutput,
aws_smithy_http::result::SdkError<crate::error::CancelSpotFleetRequestsError>,
> {
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 CancelSpotFleetRequestsInput
.
source§impl CancelSpotFleetRequestsInput
impl CancelSpotFleetRequestsInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn spot_fleet_request_ids(&self) -> Option<&[String]>
pub fn spot_fleet_request_ids(&self) -> Option<&[String]>
The IDs of the Spot Fleet requests.
sourcepub fn terminate_instances(&self) -> Option<bool>
pub fn terminate_instances(&self) -> Option<bool>
Indicates whether to terminate instances for a Spot Fleet request if it is canceled successfully.
Trait Implementations§
source§impl Clone for CancelSpotFleetRequestsInput
impl Clone for CancelSpotFleetRequestsInput
source§fn clone(&self) -> CancelSpotFleetRequestsInput
fn clone(&self) -> CancelSpotFleetRequestsInput
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