pub struct DescribeReservedInstancesOfferings { /* 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
sourceimpl DescribeReservedInstancesOfferings
impl DescribeReservedInstancesOfferings
sourcepub async fn send(
self
) -> Result<DescribeReservedInstancesOfferingsOutput, SdkError<DescribeReservedInstancesOfferingsError>>
pub async fn send(
self
) -> Result<DescribeReservedInstancesOfferingsOutput, SdkError<DescribeReservedInstancesOfferingsError>>
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 into_paginator(self) -> DescribeReservedInstancesOfferingsPaginator
pub fn into_paginator(self) -> DescribeReservedInstancesOfferingsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone in which the Reserved Instance can be used.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone in which the Reserved Instance can be used.
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.
-
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).
sourcepub fn set_filters(self, input: Option<Vec<Filter>>) -> Self
pub fn set_filters(self, input: Option<Vec<Filter>>) -> Self
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).
sourcepub fn include_marketplace(self, input: bool) -> Self
pub fn include_marketplace(self, input: bool) -> Self
Include Reserved Instance Marketplace offerings in the response.
sourcepub fn set_include_marketplace(self, input: Option<bool>) -> Self
pub fn set_include_marketplace(self, input: Option<bool>) -> Self
Include Reserved Instance Marketplace offerings in the response.
sourcepub fn instance_type(self, input: InstanceType) -> Self
pub fn instance_type(self, input: InstanceType) -> Self
The instance type that the reservation will cover (for example, m1.small
). For more information, see Instance types in the Amazon EC2 User Guide.
sourcepub fn set_instance_type(self, input: Option<InstanceType>) -> Self
pub fn set_instance_type(self, input: Option<InstanceType>) -> Self
The instance type that the reservation will cover (for example, m1.small
). For more information, see Instance types in the Amazon EC2 User Guide.
sourcepub fn max_duration(self, input: i64) -> Self
pub fn max_duration(self, input: i64) -> Self
The maximum duration (in seconds) to filter when searching for offerings.
Default: 94608000 (3 years)
sourcepub fn set_max_duration(self, input: Option<i64>) -> Self
pub fn set_max_duration(self, input: Option<i64>) -> Self
The maximum duration (in seconds) to filter when searching for offerings.
Default: 94608000 (3 years)
sourcepub fn max_instance_count(self, input: i32) -> Self
pub fn max_instance_count(self, input: i32) -> Self
The maximum number of instances to filter when searching for offerings.
Default: 20
sourcepub fn set_max_instance_count(self, input: Option<i32>) -> Self
pub fn set_max_instance_count(self, input: Option<i32>) -> Self
The maximum number of instances to filter when searching for offerings.
Default: 20
sourcepub fn min_duration(self, input: i64) -> Self
pub fn min_duration(self, input: i64) -> Self
The minimum duration (in seconds) to filter when searching for offerings.
Default: 2592000 (1 month)
sourcepub fn set_min_duration(self, input: Option<i64>) -> Self
pub fn set_min_duration(self, input: Option<i64>) -> Self
The minimum duration (in seconds) to filter when searching for offerings.
Default: 2592000 (1 month)
sourcepub fn offering_class(self, input: OfferingClassType) -> Self
pub fn offering_class(self, input: OfferingClassType) -> Self
The offering class of the Reserved Instance. Can be standard
or convertible
.
sourcepub fn set_offering_class(self, input: Option<OfferingClassType>) -> Self
pub fn set_offering_class(self, input: Option<OfferingClassType>) -> Self
The offering class of the Reserved Instance. Can be standard
or convertible
.
sourcepub fn product_description(self, input: RiProductDescription) -> Self
pub fn product_description(self, input: RiProductDescription) -> Self
The Reserved Instance product platform description. Instances that include (Amazon VPC)
in the description are for use with Amazon VPC.
sourcepub fn set_product_description(
self,
input: Option<RiProductDescription>
) -> Self
pub fn set_product_description(
self,
input: Option<RiProductDescription>
) -> Self
The Reserved Instance product platform description. Instances that include (Amazon VPC)
in the description are for use with Amazon VPC.
sourcepub fn reserved_instances_offering_ids(self, input: impl Into<String>) -> Self
pub fn reserved_instances_offering_ids(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_reserved_instances_offering_ids(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_reserved_instances_offering_ids(
self,
input: Option<Vec<String>>
) -> Self
One or more Reserved Instances offering IDs.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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 set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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 instance_tenancy(self, input: Tenancy) -> Self
pub fn instance_tenancy(self, input: Tenancy) -> Self
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
sourcepub fn set_instance_tenancy(self, input: Option<Tenancy>) -> Self
pub fn set_instance_tenancy(self, input: Option<Tenancy>) -> Self
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
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
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
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
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
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token to retrieve the next page of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token to retrieve the next page of results.
sourcepub fn offering_type(self, input: OfferingTypeValues) -> Self
pub fn offering_type(self, input: OfferingTypeValues) -> Self
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.
sourcepub fn set_offering_type(self, input: Option<OfferingTypeValues>) -> Self
pub fn set_offering_type(self, input: Option<OfferingTypeValues>) -> Self
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
sourceimpl Clone for DescribeReservedInstancesOfferings
impl Clone for DescribeReservedInstancesOfferings
sourcefn clone(&self) -> DescribeReservedInstancesOfferings
fn clone(&self) -> DescribeReservedInstancesOfferings
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 DescribeReservedInstancesOfferings
impl Send for DescribeReservedInstancesOfferings
impl Sync for DescribeReservedInstancesOfferings
impl Unpin for DescribeReservedInstancesOfferings
impl !UnwindSafe for DescribeReservedInstancesOfferings
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