pub struct DescribeReservedInstancesListings { /* private fields */ }
Expand description
Fluent builder constructing a request to DescribeReservedInstancesListings
.
Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.
The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.
As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.
As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you're searching for with what's available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.
For more information, see Reserved Instance Marketplace in the Amazon EC2 User Guide.
Implementations
sourceimpl DescribeReservedInstancesListings
impl DescribeReservedInstancesListings
sourcepub async fn send(
self
) -> Result<DescribeReservedInstancesListingsOutput, SdkError<DescribeReservedInstancesListingsError>>
pub async fn send(
self
) -> Result<DescribeReservedInstancesListingsOutput, SdkError<DescribeReservedInstancesListingsError>>
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, which can be set when configuring the client.
sourcepub fn filters(self, input: Filter) -> Self
pub fn filters(self, input: Filter) -> Self
Appends an item to Filters
.
To override the contents of this collection use set_filters
.
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 set_filters(self, input: Option<Vec<Filter>>) -> Self
pub fn set_filters(self, input: Option<Vec<Filter>>) -> Self
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, input: impl Into<String>) -> Self
pub fn reserved_instances_id(self, input: impl Into<String>) -> Self
One or more Reserved Instance IDs.
sourcepub fn set_reserved_instances_id(self, input: Option<String>) -> Self
pub fn set_reserved_instances_id(self, input: Option<String>) -> Self
One or more Reserved Instance IDs.
sourcepub fn reserved_instances_listing_id(self, input: impl Into<String>) -> Self
pub fn reserved_instances_listing_id(self, input: impl Into<String>) -> Self
One or more Reserved Instance listing IDs.
sourcepub fn set_reserved_instances_listing_id(self, input: Option<String>) -> Self
pub fn set_reserved_instances_listing_id(self, input: Option<String>) -> Self
One or more Reserved Instance listing IDs.
Trait Implementations
sourceimpl Clone for DescribeReservedInstancesListings
impl Clone for DescribeReservedInstancesListings
sourcefn clone(&self) -> DescribeReservedInstancesListings
fn clone(&self) -> DescribeReservedInstancesListings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for DescribeReservedInstancesListings
impl Send for DescribeReservedInstancesListings
impl Sync for DescribeReservedInstancesListings
impl Unpin for DescribeReservedInstancesListings
impl !UnwindSafe for DescribeReservedInstancesListings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more