amazonka-ec2-1.3.7: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DescribeReservedInstancesOfferings

Contents

Description

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 Elastic Compute Cloud User Guide.

See: AWS API Reference for DescribeReservedInstancesOfferings.

This operation returns paginated results.

Synopsis

Creating a Request

Request Lenses

drioMaxDuration :: Lens' DescribeReservedInstancesOfferings (Maybe Integer) Source

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

Default: 94608000 (3 years)

drioProductDescription :: Lens' DescribeReservedInstancesOfferings (Maybe RIProductDescription) Source

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

drioFilters :: Lens' DescribeReservedInstancesOfferings [Filter] Source

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 AWS 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)' | 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.
  • 'usage-price' - The usage price of the Reserved instance, per hour (for example, 0.84).

drioIncludeMarketplace :: Lens' DescribeReservedInstancesOfferings (Maybe Bool) Source

Include Reserved Instance Marketplace offerings in the response.

drioInstanceType :: Lens' DescribeReservedInstancesOfferings (Maybe InstanceType) Source

The instance type that the reservation will cover (for example, 'm1.small'). For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

drioNextToken :: Lens' DescribeReservedInstancesOfferings (Maybe Text) Source

The token to retrieve the next page of results.

drioMinDuration :: Lens' DescribeReservedInstancesOfferings (Maybe Integer) Source

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

Default: 2592000 (1 month)

drioAvailabilityZone :: Lens' DescribeReservedInstancesOfferings (Maybe Text) Source

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

drioOfferingType :: Lens' DescribeReservedInstancesOfferings (Maybe OfferingTypeValues) Source

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.

drioInstanceTenancy :: Lens' DescribeReservedInstancesOfferings (Maybe Tenancy) Source

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).

Default: 'default'

drioMaxInstanceCount :: Lens' DescribeReservedInstancesOfferings (Maybe Int) Source

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

Default: 20

drioDryRun :: Lens' DescribeReservedInstancesOfferings (Maybe Bool) Source

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.

drioMaxResults :: Lens' DescribeReservedInstancesOfferings (Maybe Int) Source

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

Destructuring the Response

describeReservedInstancesOfferingsResponse Source

Creates a value of DescribeReservedInstancesOfferingsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

driorsNextToken :: Lens' DescribeReservedInstancesOfferingsResponse (Maybe Text) Source

The token to use to retrieve the next page of results. This value is null when there are no more results to return.