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.RenewOffering

Contents

Description

Explicitly sets the quantity of devices to renew for an offering, starting from the effectiveDate of the next period. 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

renewOffering :: RenewOffering #

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

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

  • roQuantity - The quantity requested in an offering renewal.
  • roOfferingId - The ID of a request to renew an offering.

data RenewOffering #

A request representing an offering renewal.

See: renewOffering smart constructor.

Instances

Eq RenewOffering # 
Data RenewOffering # 

Methods

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

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

toConstr :: RenewOffering -> Constr #

dataTypeOf :: RenewOffering -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RenewOffering # 
Show RenewOffering # 
Generic RenewOffering # 

Associated Types

type Rep RenewOffering :: * -> * #

Hashable RenewOffering # 
ToJSON RenewOffering # 
NFData RenewOffering # 

Methods

rnf :: RenewOffering -> () #

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

Request Lenses

roQuantity :: Lens' RenewOffering (Maybe Int) #

The quantity requested in an offering renewal.

roOfferingId :: Lens' RenewOffering (Maybe Text) #

The ID of a request to renew an offering.

Destructuring the Response

renewOfferingResponse #

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

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

data RenewOfferingResponse #

The result of a renewal offering.

See: renewOfferingResponse smart constructor.

Instances

Eq RenewOfferingResponse # 
Data RenewOfferingResponse # 

Methods

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

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

toConstr :: RenewOfferingResponse -> Constr #

dataTypeOf :: RenewOfferingResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RenewOfferingResponse # 
Show RenewOfferingResponse # 
Generic RenewOfferingResponse # 
NFData RenewOfferingResponse # 

Methods

rnf :: RenewOfferingResponse -> () #

type Rep RenewOfferingResponse # 
type Rep RenewOfferingResponse = D1 (MetaData "RenewOfferingResponse" "Network.AWS.DeviceFarm.RenewOffering" "amazonka-devicefarm-1.4.5-Kd08QioxBZU9BqkZYEEvYe" False) (C1 (MetaCons "RenewOfferingResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rorsOfferingTransaction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OfferingTransaction))) (S1 (MetaSel (Just Symbol "_rorsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

rorsOfferingTransaction :: Lens' RenewOfferingResponse (Maybe OfferingTransaction) #

Represents the status of the offering transaction for the renewal.

rorsResponseStatus :: Lens' RenewOfferingResponse Int #

  • - | The response status code.