#[non_exhaustive]pub struct GetReservedInstancesExchangeQuoteInput { /* private fields */ }
Expand description
Contains the parameters for GetReservedInstanceExchangeQuote.
Implementations§
source§impl GetReservedInstancesExchangeQuoteInput
impl GetReservedInstancesExchangeQuoteInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetReservedInstancesExchangeQuote, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetReservedInstancesExchangeQuote, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetReservedInstancesExchangeQuote
>
Examples found in repository?
src/client.rs (line 59817)
59803 59804 59805 59806 59807 59808 59809 59810 59811 59812 59813 59814 59815 59816 59817 59818 59819 59820 59821 59822 59823 59824 59825 59826 59827 59828 59829 59830 59831 59832 59833 59834 59835 59836 59837 59838 59839 59840 59841 59842 59843 59844 59845
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetReservedInstancesExchangeQuote,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetReservedInstancesExchangeQuoteError>,
> {
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::GetReservedInstancesExchangeQuoteOutput,
aws_smithy_http::result::SdkError<crate::error::GetReservedInstancesExchangeQuoteError>,
> {
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 GetReservedInstancesExchangeQuoteInput
.
source§impl GetReservedInstancesExchangeQuoteInput
impl GetReservedInstancesExchangeQuoteInput
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 reserved_instance_ids(&self) -> Option<&[String]>
pub fn reserved_instance_ids(&self) -> Option<&[String]>
The IDs of the Convertible Reserved Instances to exchange.
sourcepub fn target_configurations(&self) -> Option<&[TargetConfigurationRequest]>
pub fn target_configurations(&self) -> Option<&[TargetConfigurationRequest]>
The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.
Trait Implementations§
source§impl Clone for GetReservedInstancesExchangeQuoteInput
impl Clone for GetReservedInstancesExchangeQuoteInput
source§fn clone(&self) -> GetReservedInstancesExchangeQuoteInput
fn clone(&self) -> GetReservedInstancesExchangeQuoteInput
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