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

Contents

Description

Returns a list of offering promotions. Each offering promotion record contains the ID and description of the promotion. The API returns a NotEligible error if the caller is not permitted to invoke the operation. Contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.

Synopsis

Creating a Request

listOfferingPromotions :: ListOfferingPromotions Source #

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

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

  • lopNextToken - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

data ListOfferingPromotions Source #

See: listOfferingPromotions smart constructor.

Instances

Eq ListOfferingPromotions Source # 
Data ListOfferingPromotions Source # 

Methods

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

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

toConstr :: ListOfferingPromotions -> Constr #

dataTypeOf :: ListOfferingPromotions -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: ListOfferingPromotions -> () #

AWSRequest ListOfferingPromotions Source # 
ToHeaders ListOfferingPromotions Source # 
ToPath ListOfferingPromotions Source # 
ToQuery ListOfferingPromotions Source # 
type Rep ListOfferingPromotions Source # 
type Rep ListOfferingPromotions = D1 * (MetaData "ListOfferingPromotions" "Network.AWS.DeviceFarm.ListOfferingPromotions" "amazonka-devicefarm-1.6.0-LqJtWXKo19D7xA5rnFdJ7y" True) (C1 * (MetaCons "ListOfferingPromotions'" PrefixI True) (S1 * (MetaSel (Just Symbol "_lopNextToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Text))))
type Rs ListOfferingPromotions Source # 

Request Lenses

lopNextToken :: Lens' ListOfferingPromotions (Maybe Text) Source #

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

Destructuring the Response

listOfferingPromotionsResponse Source #

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

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

data ListOfferingPromotionsResponse Source #

See: listOfferingPromotionsResponse smart constructor.

Instances

Eq ListOfferingPromotionsResponse Source # 
Data ListOfferingPromotionsResponse Source # 

Methods

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

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

toConstr :: ListOfferingPromotionsResponse -> Constr #

dataTypeOf :: ListOfferingPromotionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListOfferingPromotionsResponse Source # 
Show ListOfferingPromotionsResponse Source # 
Generic ListOfferingPromotionsResponse Source # 
NFData ListOfferingPromotionsResponse Source # 
type Rep ListOfferingPromotionsResponse Source # 
type Rep ListOfferingPromotionsResponse = D1 * (MetaData "ListOfferingPromotionsResponse" "Network.AWS.DeviceFarm.ListOfferingPromotions" "amazonka-devicefarm-1.6.0-LqJtWXKo19D7xA5rnFdJ7y" False) (C1 * (MetaCons "ListOfferingPromotionsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_loprsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_loprsOfferingPromotions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [OfferingPromotion]))) (S1 * (MetaSel (Just Symbol "_loprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

loprsNextToken :: Lens' ListOfferingPromotionsResponse (Maybe Text) Source #

An identifier to be used in the next call to this operation, to return the next set of items in the list.