Struct aws_sdk_ec2::input::RequestSpotFleetInput
source · #[non_exhaustive]pub struct RequestSpotFleetInput { /* private fields */ }
Expand description
Contains the parameters for RequestSpotFleet.
Implementations§
source§impl RequestSpotFleetInput
impl RequestSpotFleetInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RequestSpotFleet, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RequestSpotFleet, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RequestSpotFleet
>
Examples found in repository?
src/client.rs (line 74469)
74455 74456 74457 74458 74459 74460 74461 74462 74463 74464 74465 74466 74467 74468 74469 74470 74471 74472 74473 74474 74475 74476 74477 74478 74479 74480 74481 74482 74483 74484 74485 74486 74487 74488 74489 74490 74491 74492 74493 74494 74495 74496 74497
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RequestSpotFleet,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RequestSpotFleetError>,
> {
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::RequestSpotFleetOutput,
aws_smithy_http::result::SdkError<crate::error::RequestSpotFleetError>,
> {
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 RequestSpotFleetInput
.
source§impl RequestSpotFleetInput
impl RequestSpotFleetInput
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_config(&self) -> Option<&SpotFleetRequestConfigData>
pub fn spot_fleet_request_config(&self) -> Option<&SpotFleetRequestConfigData>
The configuration for the Spot Fleet request.
Trait Implementations§
source§impl Clone for RequestSpotFleetInput
impl Clone for RequestSpotFleetInput
source§fn clone(&self) -> RequestSpotFleetInput
fn clone(&self) -> RequestSpotFleetInput
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