#[non_exhaustive]pub struct DescribeReservedInstancesListingsInput { /* private fields */ }
Expand description
Contains the parameters for DescribeReservedInstancesListings.
Implementations§
source§impl DescribeReservedInstancesListingsInput
impl DescribeReservedInstancesListingsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeReservedInstancesListings, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeReservedInstancesListings, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeReservedInstancesListings
>
Examples found in repository?
src/client.rs (line 44858)
44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeReservedInstancesListings,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeReservedInstancesListingsError>,
> {
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::DescribeReservedInstancesListingsOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeReservedInstancesListingsError>,
> {
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 DescribeReservedInstancesListingsInput
.
source§impl DescribeReservedInstancesListingsInput
impl DescribeReservedInstancesListingsInput
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
One or more filters.
-
reserved-instances-id
- The ID of the Reserved Instances. -
reserved-instances-listing-id
- The ID of the Reserved Instances listing. -
status
- The status of the Reserved Instance listing (pending
|active
|cancelled
|closed
). -
status-message
- The reason for the status.
sourcepub fn reserved_instances_id(&self) -> Option<&str>
pub fn reserved_instances_id(&self) -> Option<&str>
One or more Reserved Instance IDs.
sourcepub fn reserved_instances_listing_id(&self) -> Option<&str>
pub fn reserved_instances_listing_id(&self) -> Option<&str>
One or more Reserved Instance listing IDs.
Trait Implementations§
source§impl Clone for DescribeReservedInstancesListingsInput
impl Clone for DescribeReservedInstancesListingsInput
source§fn clone(&self) -> DescribeReservedInstancesListingsInput
fn clone(&self) -> DescribeReservedInstancesListingsInput
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