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

Copyright(c) 2013-2017 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.DescribeReservedInstancesListings

Contents

Description

Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.

The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.

As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you're searching for with what's available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide .

Synopsis

Creating a Request

describeReservedInstancesListings :: DescribeReservedInstancesListings Source #

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

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

  • drilFilters - One or more filters. * reserved-instances-id - The ID of the Reserved Instances. * reserved-instances-listing-id - The ID of the Reserved Instances listing. * status - The status of the Reserved Instance listing (pending | active | cancelled | closed ). * status-message - The reason for the status.
  • drilReservedInstancesId - One or more Reserved Instance IDs.
  • drilReservedInstancesListingId - One or more Reserved Instance listing IDs.

data DescribeReservedInstancesListings Source #

Contains the parameters for DescribeReservedInstancesListings.

See: describeReservedInstancesListings smart constructor.

Instances

Eq DescribeReservedInstancesListings Source # 
Data DescribeReservedInstancesListings Source # 

Methods

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

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

toConstr :: DescribeReservedInstancesListings -> Constr #

dataTypeOf :: DescribeReservedInstancesListings -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeReservedInstancesListings Source # 
Show DescribeReservedInstancesListings Source # 
Generic DescribeReservedInstancesListings Source # 
Hashable DescribeReservedInstancesListings Source # 
NFData DescribeReservedInstancesListings Source # 
AWSRequest DescribeReservedInstancesListings Source # 
ToQuery DescribeReservedInstancesListings Source # 
ToPath DescribeReservedInstancesListings Source # 
ToHeaders DescribeReservedInstancesListings Source # 
type Rep DescribeReservedInstancesListings Source # 
type Rep DescribeReservedInstancesListings = D1 (MetaData "DescribeReservedInstancesListings" "Network.AWS.EC2.DescribeReservedInstancesListings" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "DescribeReservedInstancesListings'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_drilFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter]))) ((:*:) (S1 (MetaSel (Just Symbol "_drilReservedInstancesId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_drilReservedInstancesListingId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Rs DescribeReservedInstancesListings Source # 

Request Lenses

drilFilters :: Lens' DescribeReservedInstancesListings [Filter] Source #

One or more filters. * reserved-instances-id - The ID of the Reserved Instances. * reserved-instances-listing-id - The ID of the Reserved Instances listing. * status - The status of the Reserved Instance listing (pending | active | cancelled | closed ). * status-message - The reason for the status.

Destructuring the Response

describeReservedInstancesListingsResponse Source #

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

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

data DescribeReservedInstancesListingsResponse Source #

Contains the output of DescribeReservedInstancesListings.

See: describeReservedInstancesListingsResponse smart constructor.

Instances

Eq DescribeReservedInstancesListingsResponse Source # 
Data DescribeReservedInstancesListingsResponse Source # 

Methods

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

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

toConstr :: DescribeReservedInstancesListingsResponse -> Constr #

dataTypeOf :: DescribeReservedInstancesListingsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeReservedInstancesListingsResponse Source # 
Show DescribeReservedInstancesListingsResponse Source # 
Generic DescribeReservedInstancesListingsResponse Source # 
NFData DescribeReservedInstancesListingsResponse Source # 
type Rep DescribeReservedInstancesListingsResponse Source # 
type Rep DescribeReservedInstancesListingsResponse = D1 (MetaData "DescribeReservedInstancesListingsResponse" "Network.AWS.EC2.DescribeReservedInstancesListings" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "DescribeReservedInstancesListingsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_drilrsReservedInstancesListings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ReservedInstancesListing]))) (S1 (MetaSel (Just Symbol "_drilrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses