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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 .

This operation returns paginated results.

Synopsis

Creating a Request

describeReservedInstancesOfferings :: DescribeReservedInstancesOfferings Source #

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

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

  • drioMaxDuration - The maximum duration (in seconds) to filter when searching for offerings. Default: 94608000 (3 years)
  • drioProductDescription - The Reserved Instance product platform description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.
  • drioFilters - 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. * 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).
  • drioIncludeMarketplace - Include Reserved Instance Marketplace offerings in the response.
  • drioInstanceType - 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 - The token to retrieve the next page of results.
  • drioMinDuration - The minimum duration (in seconds) to filter when searching for offerings. Default: 2592000 (1 month)
  • drioAvailabilityZone - The Availability Zone in which the Reserved Instance can be used.
  • drioOfferingType - 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.
  • drioReservedInstancesOfferingIds - One or more Reserved Instances offering IDs.
  • drioInstanceTenancy - 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
  • drioOfferingClass - The offering class of the Reserved Instance. Can be standard or convertible .
  • drioMaxInstanceCount - The maximum number of instances to filter when searching for offerings. Default: 20
  • drioDryRun - 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 - 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

data DescribeReservedInstancesOfferings Source #

Contains the parameters for DescribeReservedInstancesOfferings.

See: describeReservedInstancesOfferings smart constructor.

Instances
Eq DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

Data DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeReservedInstancesOfferings -> c DescribeReservedInstancesOfferings #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeReservedInstancesOfferings #

toConstr :: DescribeReservedInstancesOfferings -> Constr #

dataTypeOf :: DescribeReservedInstancesOfferings -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeReservedInstancesOfferings) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeReservedInstancesOfferings) #

gmapT :: (forall b. Data b => b -> b) -> DescribeReservedInstancesOfferings -> DescribeReservedInstancesOfferings #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeReservedInstancesOfferings -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeReservedInstancesOfferings -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeReservedInstancesOfferings -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeReservedInstancesOfferings -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeReservedInstancesOfferings -> m DescribeReservedInstancesOfferings #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeReservedInstancesOfferings -> m DescribeReservedInstancesOfferings #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeReservedInstancesOfferings -> m DescribeReservedInstancesOfferings #

Read DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

Show DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

Generic DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

Associated Types

type Rep DescribeReservedInstancesOfferings :: Type -> Type #

Hashable DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

AWSPager DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

AWSRequest DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

ToHeaders DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

ToPath DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

ToQuery DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

NFData DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

type Rep DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

type Rep DescribeReservedInstancesOfferings = D1 (MetaData "DescribeReservedInstancesOfferings" "Network.AWS.EC2.DescribeReservedInstancesOfferings" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeReservedInstancesOfferings'" PrefixI True) (((S1 (MetaSel (Just "_drioMaxDuration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 (MetaSel (Just "_drioProductDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RIProductDescription)) :*: S1 (MetaSel (Just "_drioFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter])))) :*: ((S1 (MetaSel (Just "_drioIncludeMarketplace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_drioInstanceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe InstanceType))) :*: (S1 (MetaSel (Just "_drioNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_drioMinDuration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer))))) :*: (((S1 (MetaSel (Just "_drioAvailabilityZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_drioOfferingType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OfferingTypeValues))) :*: (S1 (MetaSel (Just "_drioReservedInstancesOfferingIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_drioInstanceTenancy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Tenancy)))) :*: ((S1 (MetaSel (Just "_drioOfferingClass") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OfferingClassType)) :*: S1 (MetaSel (Just "_drioMaxInstanceCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 (MetaSel (Just "_drioDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_drioMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))))
type Rs DescribeReservedInstancesOfferings Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

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

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). Important: The host value cannot be used with this parameter. Use the default or dedicated values only. Default: default

drioOfferingClass :: Lens' DescribeReservedInstancesOfferings (Maybe OfferingClassType) Source #

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

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:

data DescribeReservedInstancesOfferingsResponse Source #

Contains the output of DescribeReservedInstancesOfferings.

See: describeReservedInstancesOfferingsResponse smart constructor.

Instances
Eq DescribeReservedInstancesOfferingsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

Data DescribeReservedInstancesOfferingsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeReservedInstancesOfferingsResponse -> c DescribeReservedInstancesOfferingsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeReservedInstancesOfferingsResponse #

toConstr :: DescribeReservedInstancesOfferingsResponse -> Constr #

dataTypeOf :: DescribeReservedInstancesOfferingsResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeReservedInstancesOfferingsResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeReservedInstancesOfferingsResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeReservedInstancesOfferingsResponse -> DescribeReservedInstancesOfferingsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeReservedInstancesOfferingsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeReservedInstancesOfferingsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeReservedInstancesOfferingsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeReservedInstancesOfferingsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeReservedInstancesOfferingsResponse -> m DescribeReservedInstancesOfferingsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeReservedInstancesOfferingsResponse -> m DescribeReservedInstancesOfferingsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeReservedInstancesOfferingsResponse -> m DescribeReservedInstancesOfferingsResponse #

Read DescribeReservedInstancesOfferingsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

Show DescribeReservedInstancesOfferingsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

Generic DescribeReservedInstancesOfferingsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

NFData DescribeReservedInstancesOfferingsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

type Rep DescribeReservedInstancesOfferingsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeReservedInstancesOfferings

type Rep DescribeReservedInstancesOfferingsResponse = D1 (MetaData "DescribeReservedInstancesOfferingsResponse" "Network.AWS.EC2.DescribeReservedInstancesOfferings" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeReservedInstancesOfferingsResponse'" PrefixI True) (S1 (MetaSel (Just "_driorsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_driorsReservedInstancesOfferings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ReservedInstancesOffering])) :*: S1 (MetaSel (Just "_driorsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

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.