pub struct DescribeReservedInstancesOfferings<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to DescribeReservedInstancesOfferings
.
Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.
If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.
For more information, see Reserved Instance Marketplace in the Amazon EC2 User Guide.
Implementations
impl<C, M, R> DescribeReservedInstancesOfferings<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DescribeReservedInstancesOfferings<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DescribeReservedInstancesOfferingsOutput, SdkError<DescribeReservedInstancesOfferingsError>> where
R::Policy: SmithyRetryPolicy<DescribeReservedInstancesOfferingsInputOperationOutputAlias, DescribeReservedInstancesOfferingsOutput, DescribeReservedInstancesOfferingsError, DescribeReservedInstancesOfferingsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DescribeReservedInstancesOfferingsOutput, SdkError<DescribeReservedInstancesOfferingsError>> where
R::Policy: SmithyRetryPolicy<DescribeReservedInstancesOfferingsInputOperationOutputAlias, DescribeReservedInstancesOfferingsOutput, DescribeReservedInstancesOfferingsError, DescribeReservedInstancesOfferingsInputOperationRetryAlias>,
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.
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
The Availability Zone in which the Reserved Instance can be used.
The Availability Zone in which the Reserved Instance can be used.
Appends an item to Filters
.
To override the contents of this collection use set_filters
.
One or more filters.
-
availability-zone
- The Availability Zone where the Reserved Instance can be used. -
duration
- The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000
|94608000
). -
fixed-price
- The purchase price of the Reserved Instance (for example, 9800.0). -
instance-type
- The instance type that is covered by the reservation. -
marketplace
- Set totrue
to show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from both Amazon Web Services and the Reserved Instance Marketplace are listed. -
product-description
- The Reserved Instance product platform description. Instances that include(Amazon VPC)
in the product platform description will only be displayed to EC2-Classic account holders and are for use with Amazon VPC. (Linux/UNIX
|Linux/UNIX (Amazon VPC)
|SUSE Linux
|SUSE Linux (Amazon VPC)
|Red Hat Enterprise Linux
|Red Hat Enterprise Linux (Amazon VPC)
|Red Hat Enterprise Linux with HA (Amazon VPC)
|Windows
|Windows (Amazon VPC)
|Windows with SQL Server Standard
|Windows with SQL Server Standard (Amazon VPC)
|Windows with SQL Server Web
|Windows with SQL Server Web (Amazon VPC)
|Windows with SQL Server Enterprise
|Windows with SQL Server Enterprise (Amazon VPC)
) -
reserved-instances-offering-id
- The Reserved Instances offering ID. -
scope
- The scope of the Reserved Instance (Availability Zone
orRegion
). -
usage-price
- The usage price of the Reserved Instance, per hour (for example, 0.84).
One or more filters.
-
availability-zone
- The Availability Zone where the Reserved Instance can be used. -
duration
- The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000
|94608000
). -
fixed-price
- The purchase price of the Reserved Instance (for example, 9800.0). -
instance-type
- The instance type that is covered by the reservation. -
marketplace
- Set totrue
to show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from both Amazon Web Services and the Reserved Instance Marketplace are listed. -
product-description
- The Reserved Instance product platform description. Instances that include(Amazon VPC)
in the product platform description will only be displayed to EC2-Classic account holders and are for use with Amazon VPC. (Linux/UNIX
|Linux/UNIX (Amazon VPC)
|SUSE Linux
|SUSE Linux (Amazon VPC)
|Red Hat Enterprise Linux
|Red Hat Enterprise Linux (Amazon VPC)
|Red Hat Enterprise Linux with HA (Amazon VPC)
|Windows
|Windows (Amazon VPC)
|Windows with SQL Server Standard
|Windows with SQL Server Standard (Amazon VPC)
|Windows with SQL Server Web
|Windows with SQL Server Web (Amazon VPC)
|Windows with SQL Server Enterprise
|Windows with SQL Server Enterprise (Amazon VPC)
) -
reserved-instances-offering-id
- The Reserved Instances offering ID. -
scope
- The scope of the Reserved Instance (Availability Zone
orRegion
). -
usage-price
- The usage price of the Reserved Instance, per hour (for example, 0.84).
Include Reserved Instance Marketplace offerings in the response.
Include Reserved Instance Marketplace offerings in the response.
The instance type that the reservation will cover (for example, m1.small
). For more information, see Instance types in the Amazon EC2 User Guide.
The instance type that the reservation will cover (for example, m1.small
). For more information, see Instance types in the Amazon EC2 User Guide.
The maximum duration (in seconds) to filter when searching for offerings.
Default: 94608000 (3 years)
The maximum duration (in seconds) to filter when searching for offerings.
Default: 94608000 (3 years)
The maximum number of instances to filter when searching for offerings.
Default: 20
The maximum number of instances to filter when searching for offerings.
Default: 20
The minimum duration (in seconds) to filter when searching for offerings.
Default: 2592000 (1 month)
The minimum duration (in seconds) to filter when searching for offerings.
Default: 2592000 (1 month)
The offering class of the Reserved Instance. Can be standard
or convertible
.
The offering class of the Reserved Instance. Can be standard
or convertible
.
The Reserved Instance product platform description. Instances that include (Amazon VPC)
in the description are for use with Amazon VPC.
The Reserved Instance product platform description. Instances that include (Amazon VPC)
in the description are for use with Amazon VPC.
Appends an item to ReservedInstancesOfferingIds
.
To override the contents of this collection use set_reserved_instances_offering_ids
.
One or more Reserved Instances offering IDs.
One or more Reserved Instances offering IDs.
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
.
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
.
The tenancy of the instances covered by the reservation. A Reserved Instance with a tenancy of dedicated
is applied to instances that run in a VPC on single-tenant hardware (i.e., Dedicated Instances).
Important: The host
value cannot be used with this parameter. Use the default
or dedicated
values only.
Default: default
The tenancy of the instances covered by the reservation. A Reserved Instance with a tenancy of dedicated
is applied to instances that run in a VPC on single-tenant hardware (i.e., Dedicated Instances).
Important: The host
value cannot be used with this parameter. Use the default
or dedicated
values only.
Default: default
The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken
value. The maximum is 100.
Default: 100
The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken
value. The maximum is 100.
Default: 100
The token to retrieve the next page of results.
The token to retrieve the next page of results.
The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the Medium Utilization
Reserved Instance offering type.
The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the Medium Utilization
Reserved Instance offering type.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DescribeReservedInstancesOfferings<C, M, R>
impl<C, M, R> Send for DescribeReservedInstancesOfferings<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DescribeReservedInstancesOfferings<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DescribeReservedInstancesOfferings<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DescribeReservedInstancesOfferings<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more