#[non_exhaustive]pub struct DescribeReservedInstancesOfferingsInput { /* private fields */ }
Expand description
Contains the parameters for DescribeReservedInstancesOfferings.
Implementations§
source§impl DescribeReservedInstancesOfferingsInput
impl DescribeReservedInstancesOfferingsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeReservedInstancesOfferings, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeReservedInstancesOfferings, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeReservedInstancesOfferings
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DescribeReservedInstancesOfferingsInput
.
source§impl DescribeReservedInstancesOfferingsInput
impl DescribeReservedInstancesOfferingsInput
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone in which the Reserved Instance can be used.
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
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) -> Option<bool>
pub fn include_marketplace(&self) -> Option<bool>
Include Reserved Instance Marketplace offerings in the response.
sourcepub fn instance_type(&self) -> Option<&InstanceType>
pub fn instance_type(&self) -> Option<&InstanceType>
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) -> Option<i64>
pub fn max_duration(&self) -> Option<i64>
The maximum duration (in seconds) to filter when searching for offerings.
Default: 94608000 (3 years)
sourcepub fn max_instance_count(&self) -> Option<i32>
pub fn max_instance_count(&self) -> Option<i32>
The maximum number of instances to filter when searching for offerings.
Default: 20
sourcepub fn min_duration(&self) -> Option<i64>
pub fn min_duration(&self) -> Option<i64>
The minimum duration (in seconds) to filter when searching for offerings.
Default: 2592000 (1 month)
sourcepub fn offering_class(&self) -> Option<&OfferingClassType>
pub fn offering_class(&self) -> Option<&OfferingClassType>
The offering class of the Reserved Instance. Can be standard
or convertible
.
sourcepub fn product_description(&self) -> Option<&RiProductDescription>
pub fn product_description(&self) -> Option<&RiProductDescription>
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) -> Option<&[String]>
pub fn reserved_instances_offering_ids(&self) -> Option<&[String]>
One or more Reserved Instances offering IDs.
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 instance_tenancy(&self) -> Option<&Tenancy>
pub fn instance_tenancy(&self) -> Option<&Tenancy>
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) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
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) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The token to retrieve the next page of results.
sourcepub fn offering_type(&self) -> Option<&OfferingTypeValues>
pub fn offering_type(&self) -> Option<&OfferingTypeValues>
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§
source§impl Clone for DescribeReservedInstancesOfferingsInput
impl Clone for DescribeReservedInstancesOfferingsInput
source§fn clone(&self) -> DescribeReservedInstancesOfferingsInput
fn clone(&self) -> DescribeReservedInstancesOfferingsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<DescribeReservedInstancesOfferingsInput> for DescribeReservedInstancesOfferingsInput
impl PartialEq<DescribeReservedInstancesOfferingsInput> for DescribeReservedInstancesOfferingsInput
source§fn eq(&self, other: &DescribeReservedInstancesOfferingsInput) -> bool
fn eq(&self, other: &DescribeReservedInstancesOfferingsInput) -> bool
self
and other
values to be equal, and is used
by ==
.