Struct aws_sdk_ec2::input::CancelCapacityReservationInput
source · #[non_exhaustive]pub struct CancelCapacityReservationInput { /* private fields */ }
Implementations§
source§impl CancelCapacityReservationInput
impl CancelCapacityReservationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelCapacityReservation, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelCapacityReservation, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CancelCapacityReservation
>
Examples found in repository?
src/client.rs (line 12746)
12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CancelCapacityReservation,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CancelCapacityReservationError>,
> {
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::CancelCapacityReservationOutput,
aws_smithy_http::result::SdkError<crate::error::CancelCapacityReservationError>,
> {
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 CancelCapacityReservationInput
.
source§impl CancelCapacityReservationInput
impl CancelCapacityReservationInput
sourcepub fn capacity_reservation_id(&self) -> Option<&str>
pub fn capacity_reservation_id(&self) -> Option<&str>
The ID of the Capacity Reservation to be cancelled.
Trait Implementations§
source§impl Clone for CancelCapacityReservationInput
impl Clone for CancelCapacityReservationInput
source§fn clone(&self) -> CancelCapacityReservationInput
fn clone(&self) -> CancelCapacityReservationInput
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