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.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 Source #

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:

  • crilClientToken - Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency .
  • 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.
  • crilReservedInstancesId - The ID of the active Standard Reserved Instance.

data CreateReservedInstancesListing Source #

Contains the parameters for CreateReservedInstancesListing.

See: createReservedInstancesListing smart constructor.

Instances
Eq CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

Data CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

Show CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

Generic CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

Associated Types

type Rep CreateReservedInstancesListing :: Type -> Type #

Hashable CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

AWSRequest CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

Associated Types

type Rs CreateReservedInstancesListing :: Type #

ToHeaders CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

ToPath CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

ToQuery CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

NFData CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

type Rep CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

type Rep CreateReservedInstancesListing = D1 (MetaData "CreateReservedInstancesListing" "Network.AWS.EC2.CreateReservedInstancesListing" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "CreateReservedInstancesListing'" PrefixI True) ((S1 (MetaSel (Just "_crilClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_crilInstanceCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) :*: (S1 (MetaSel (Just "_crilPriceSchedules") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [PriceScheduleSpecification]) :*: S1 (MetaSel (Just "_crilReservedInstancesId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateReservedInstancesListing Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

Request Lenses

crilClientToken :: Lens' CreateReservedInstancesListing Text Source #

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

crilInstanceCount :: Lens' CreateReservedInstancesListing Int Source #

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] Source #

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

crilReservedInstancesId :: Lens' CreateReservedInstancesListing Text Source #

The ID of the active Standard Reserved Instance.

Destructuring the Response

createReservedInstancesListingResponse Source #

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 Source #

Contains the output of CreateReservedInstancesListing.

See: createReservedInstancesListingResponse smart constructor.

Instances
Eq CreateReservedInstancesListingResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

Data CreateReservedInstancesListingResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

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 Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

Show CreateReservedInstancesListingResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

Generic CreateReservedInstancesListingResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

NFData CreateReservedInstancesListingResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

type Rep CreateReservedInstancesListingResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateReservedInstancesListing

type Rep CreateReservedInstancesListingResponse = D1 (MetaData "CreateReservedInstancesListingResponse" "Network.AWS.EC2.CreateReservedInstancesListing" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "CreateReservedInstancesListingResponse'" PrefixI True) (S1 (MetaSel (Just "_crilrrsReservedInstancesListings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ReservedInstancesListing])) :*: S1 (MetaSel (Just "_crilrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses