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

Copyright(c) 2013-2016 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.CreateReservedInstancesListing

Contents

Description

Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Standard Reserved Instance listing at a time. To get a list of your Standard Reserved Instances, you can use the DescribeReservedInstances operation.

The Reserved Instance Marketplace matches sellers who want to resell Standard 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.

To sell your Standard Reserved Instances, you must first register as a seller in the Reserved Instance Marketplace. After completing the registration process, you can create a Reserved Instance Marketplace listing of some or all of your Standard Reserved Instances, and specify the upfront price to receive for them. Your Standard Reserved Instance listings then become available for purchase. To view the details of your Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings operation.

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

Synopsis

Creating a Request

createReservedInstancesListing #

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

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

  • crilReservedInstancesId - The ID of the active Standard Reserved Instance.
  • crilInstanceCount - The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.
  • crilPriceSchedules - A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.
  • crilClientToken - Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency .

data CreateReservedInstancesListing #

Contains the parameters for CreateReservedInstancesListing.

See: createReservedInstancesListing smart constructor.

Instances

Eq CreateReservedInstancesListing # 
Data CreateReservedInstancesListing # 

Methods

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

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

toConstr :: CreateReservedInstancesListing -> Constr #

dataTypeOf :: CreateReservedInstancesListing -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateReservedInstancesListing # 
Show CreateReservedInstancesListing # 
Generic CreateReservedInstancesListing # 
Hashable CreateReservedInstancesListing # 
NFData CreateReservedInstancesListing # 
AWSRequest CreateReservedInstancesListing # 
ToQuery CreateReservedInstancesListing # 
ToPath CreateReservedInstancesListing # 
ToHeaders CreateReservedInstancesListing # 
type Rep CreateReservedInstancesListing # 
type Rep CreateReservedInstancesListing = D1 (MetaData "CreateReservedInstancesListing" "Network.AWS.EC2.CreateReservedInstancesListing" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "CreateReservedInstancesListing'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_crilReservedInstancesId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_crilInstanceCount") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))) ((:*:) (S1 (MetaSel (Just Symbol "_crilPriceSchedules") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [PriceScheduleSpecification])) (S1 (MetaSel (Just Symbol "_crilClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateReservedInstancesListing # 

Request Lenses

crilReservedInstancesId :: Lens' CreateReservedInstancesListing Text #

The ID of the active Standard Reserved Instance.

crilInstanceCount :: Lens' CreateReservedInstancesListing Int #

The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.

crilPriceSchedules :: Lens' CreateReservedInstancesListing [PriceScheduleSpecification] #

A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.

crilClientToken :: Lens' CreateReservedInstancesListing Text #

Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency .

Destructuring the Response

createReservedInstancesListingResponse #

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

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

data CreateReservedInstancesListingResponse #

Contains the output of CreateReservedInstancesListing.

See: createReservedInstancesListingResponse smart constructor.

Instances

Eq CreateReservedInstancesListingResponse # 
Data CreateReservedInstancesListingResponse # 

Methods

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

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

toConstr :: CreateReservedInstancesListingResponse -> Constr #

dataTypeOf :: CreateReservedInstancesListingResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateReservedInstancesListingResponse # 
Show CreateReservedInstancesListingResponse # 
Generic CreateReservedInstancesListingResponse # 
NFData CreateReservedInstancesListingResponse # 
type Rep CreateReservedInstancesListingResponse # 
type Rep CreateReservedInstancesListingResponse = D1 (MetaData "CreateReservedInstancesListingResponse" "Network.AWS.EC2.CreateReservedInstancesListing" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "CreateReservedInstancesListingResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_crersReservedInstancesListings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ReservedInstancesListing]))) (S1 (MetaSel (Just Symbol "_crersResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

crersReservedInstancesListings :: Lens' CreateReservedInstancesListingResponse [ReservedInstancesListing] #

Information about the Standard Reserved Instance listing.