amazonka-devicefarm-1.4.5: Amazon Device Farm 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.DeviceFarm.PurchaseOffering

Contents

Description

Immediately purchases offerings for an AWS account. Offerings renew with the latest total purchased quantity for an offering, unless the renewal was overridden. The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.

Synopsis

Creating a Request

purchaseOffering :: PurchaseOffering Source #

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

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

  • poQuantity - The number of device slots you wish to purchase in an offering request.
  • poOfferingId - The ID of the offering.

data PurchaseOffering Source #

Represents a request for a purchase offering.

See: purchaseOffering smart constructor.

Instances

Eq PurchaseOffering Source # 
Data PurchaseOffering Source # 

Methods

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

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

toConstr :: PurchaseOffering -> Constr #

dataTypeOf :: PurchaseOffering -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PurchaseOffering Source # 
Show PurchaseOffering Source # 
Generic PurchaseOffering Source # 
Hashable PurchaseOffering Source # 
ToJSON PurchaseOffering Source # 
NFData PurchaseOffering Source # 

Methods

rnf :: PurchaseOffering -> () #

AWSRequest PurchaseOffering Source # 
ToPath PurchaseOffering Source # 
ToHeaders PurchaseOffering Source # 
ToQuery PurchaseOffering Source # 
type Rep PurchaseOffering Source # 
type Rep PurchaseOffering = D1 (MetaData "PurchaseOffering" "Network.AWS.DeviceFarm.PurchaseOffering" "amazonka-devicefarm-1.4.5-LrcbJwVFRJYIwYk0B89BMk" False) (C1 (MetaCons "PurchaseOffering'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_poQuantity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_poOfferingId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Rs PurchaseOffering Source # 

Request Lenses

poQuantity :: Lens' PurchaseOffering (Maybe Int) Source #

The number of device slots you wish to purchase in an offering request.

poOfferingId :: Lens' PurchaseOffering (Maybe Text) Source #

The ID of the offering.

Destructuring the Response

purchaseOfferingResponse Source #

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

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

data PurchaseOfferingResponse Source #

The result of the purchase offering (e.g., success or failure).

See: purchaseOfferingResponse smart constructor.

Instances

Eq PurchaseOfferingResponse Source # 
Data PurchaseOfferingResponse Source # 

Methods

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

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

toConstr :: PurchaseOfferingResponse -> Constr #

dataTypeOf :: PurchaseOfferingResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PurchaseOfferingResponse Source # 
Show PurchaseOfferingResponse Source # 
Generic PurchaseOfferingResponse Source # 
NFData PurchaseOfferingResponse Source # 
type Rep PurchaseOfferingResponse Source # 
type Rep PurchaseOfferingResponse = D1 (MetaData "PurchaseOfferingResponse" "Network.AWS.DeviceFarm.PurchaseOffering" "amazonka-devicefarm-1.4.5-LrcbJwVFRJYIwYk0B89BMk" False) (C1 (MetaCons "PurchaseOfferingResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_porsOfferingTransaction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OfferingTransaction))) (S1 (MetaSel (Just Symbol "_porsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

porsOfferingTransaction :: Lens' PurchaseOfferingResponse (Maybe OfferingTransaction) Source #

Represents the offering transaction for the purchase result.