Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- listOfferingPromotions :: ListOfferingPromotions
- data ListOfferingPromotions
- lopNextToken :: Lens' ListOfferingPromotions (Maybe Text)
- listOfferingPromotionsResponse :: Int -> ListOfferingPromotionsResponse
- data ListOfferingPromotionsResponse
- loprsNextToken :: Lens' ListOfferingPromotionsResponse (Maybe Text)
- loprsOfferingPromotions :: Lens' ListOfferingPromotionsResponse [OfferingPromotion]
- loprsResponseStatus :: Lens' ListOfferingPromotionsResponse Int
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
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:
loprsNextToken
- An identifier to be used in the next call to this operation, to return the next set of items in the list.loprsOfferingPromotions
- Information about the offering promotions.loprsResponseStatus
- -- | The response status code.
data ListOfferingPromotionsResponse Source #
See: listOfferingPromotionsResponse
smart constructor.
Instances
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.
loprsOfferingPromotions :: Lens' ListOfferingPromotionsResponse [OfferingPromotion] Source #
Information about the offering promotions.
loprsResponseStatus :: Lens' ListOfferingPromotionsResponse Int Source #
- - | The response status code.