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 #

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 #

See: listOfferingPromotions smart constructor.

Instances
Eq ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

Data ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

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

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

Show ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

Generic ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

Associated Types

type Rep ListOfferingPromotions :: * -> * #

Hashable ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

ToJSON ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

AWSRequest ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

Associated Types

type Rs ListOfferingPromotions :: * #

ToHeaders ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

ToPath ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

ToQuery ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

NFData ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

Methods

rnf :: ListOfferingPromotions -> () #

type Rep ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

type Rep ListOfferingPromotions = D1 (MetaData "ListOfferingPromotions" "Network.AWS.DeviceFarm.ListOfferingPromotions" "amazonka-devicefarm-1.6.0-6jgx33LHPEL8JnoULaTRqG" True) (C1 (MetaCons "ListOfferingPromotions'" PrefixI True) (S1 (MetaSel (Just "_lopNextToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))
type Rs ListOfferingPromotions # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

Request Lenses

lopNextToken :: Lens' ListOfferingPromotions (Maybe Text) #

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 #

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 #

See: listOfferingPromotionsResponse smart constructor.

Instances
Eq ListOfferingPromotionsResponse # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

Data ListOfferingPromotionsResponse # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

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

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

Show ListOfferingPromotionsResponse # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

Generic ListOfferingPromotionsResponse # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

Associated Types

type Rep ListOfferingPromotionsResponse :: * -> * #

NFData ListOfferingPromotionsResponse # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

type Rep ListOfferingPromotionsResponse # 
Instance details

Defined in Network.AWS.DeviceFarm.ListOfferingPromotions

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

Response Lenses

loprsNextToken :: Lens' ListOfferingPromotionsResponse (Maybe Text) #

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

loprsOfferingPromotions :: Lens' ListOfferingPromotionsResponse [OfferingPromotion] #

Information about the offering promotions.