#[non_exhaustive]
pub struct DescribeReservedInstancesOfferingsInput {
Show 15 fields pub availability_zone: Option<String>, pub filters: Option<Vec<Filter>>, pub include_marketplace: Option<bool>, pub instance_type: Option<InstanceType>, pub max_duration: Option<i64>, pub max_instance_count: Option<i32>, pub min_duration: Option<i64>, pub offering_class: Option<OfferingClassType>, pub product_description: Option<RiProductDescription>, pub reserved_instances_offering_ids: Option<Vec<String>>, pub dry_run: Option<bool>, pub instance_tenancy: Option<Tenancy>, pub max_results: Option<i32>, pub next_token: Option<String>, pub offering_type: Option<OfferingTypeValues>,
}
Expand description

Contains the parameters for DescribeReservedInstancesOfferings.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§availability_zone: Option<String>

The Availability Zone in which the Reserved Instance can be used.

§filters: Option<Vec<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 to true 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 (Linux/UNIX | Linux with SQL Server Standard | Linux with SQL Server Web | Linux with SQL Server Enterprise | SUSE Linux | Red Hat Enterprise Linux | Red Hat Enterprise Linux with HA | Windows | Windows with SQL Server Standard | Windows with SQL Server Web | Windows with SQL Server Enterprise).

  • reserved-instances-offering-id - The Reserved Instances offering ID.

  • scope - The scope of the Reserved Instance (Availability Zone or Region).

  • usage-price - The usage price of the Reserved Instance, per hour (for example, 0.84).

§include_marketplace: Option<bool>

Include Reserved Instance Marketplace offerings in the response.

§instance_type: 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.

§max_duration: Option<i64>

The maximum duration (in seconds) to filter when searching for offerings.

Default: 94608000 (3 years)

§max_instance_count: Option<i32>

The maximum number of instances to filter when searching for offerings.

Default: 20

§min_duration: Option<i64>

The minimum duration (in seconds) to filter when searching for offerings.

Default: 2592000 (1 month)

§offering_class: Option<OfferingClassType>

The offering class of the Reserved Instance. Can be standard or convertible.

§product_description: Option<RiProductDescription>

The Reserved Instance product platform description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.

§reserved_instances_offering_ids: Option<Vec<String>>

One or more Reserved Instances offering IDs.

§dry_run: 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.

§instance_tenancy: 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

§max_results: 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

§next_token: Option<String>

The token to retrieve the next page of results.

§offering_type: 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.

Implementations§

source§

impl DescribeReservedInstancesOfferingsInput

source

pub fn availability_zone(&self) -> Option<&str>

The Availability Zone in which the Reserved Instance can be used.

source

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 to true 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 (Linux/UNIX | Linux with SQL Server Standard | Linux with SQL Server Web | Linux with SQL Server Enterprise | SUSE Linux | Red Hat Enterprise Linux | Red Hat Enterprise Linux with HA | Windows | Windows with SQL Server Standard | Windows with SQL Server Web | Windows with SQL Server Enterprise).

  • reserved-instances-offering-id - The Reserved Instances offering ID.

  • scope - The scope of the Reserved Instance (Availability Zone or Region).

  • usage-price - The usage price of the Reserved Instance, per hour (for example, 0.84).

source

pub fn include_marketplace(&self) -> Option<bool>

Include Reserved Instance Marketplace offerings in the response.

source

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.

source

pub fn max_duration(&self) -> Option<i64>

The maximum duration (in seconds) to filter when searching for offerings.

Default: 94608000 (3 years)

source

pub fn max_instance_count(&self) -> Option<i32>

The maximum number of instances to filter when searching for offerings.

Default: 20

source

pub fn min_duration(&self) -> Option<i64>

The minimum duration (in seconds) to filter when searching for offerings.

Default: 2592000 (1 month)

source

pub fn offering_class(&self) -> Option<&OfferingClassType>

The offering class of the Reserved Instance. Can be standard or convertible.

source

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.

source

pub fn reserved_instances_offering_ids(&self) -> Option<&[String]>

One or more Reserved Instances offering IDs.

source

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.

source

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

source

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

source

pub fn next_token(&self) -> Option<&str>

The token to retrieve the next page of results.

source

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.

source§

impl DescribeReservedInstancesOfferingsInput

Trait Implementations§

source§

impl Clone for DescribeReservedInstancesOfferingsInput

source§

fn clone(&self) -> DescribeReservedInstancesOfferingsInput

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DescribeReservedInstancesOfferingsInput

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<DescribeReservedInstancesOfferingsInput> for DescribeReservedInstancesOfferingsInput

source§

fn eq(&self, other: &DescribeReservedInstancesOfferingsInput) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for DescribeReservedInstancesOfferingsInput

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more