Copyright | (c) 2013-2021 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 |
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 must be able to invoke this operation.
This operation returns paginated results.
Synopsis
- data ListOfferingPromotions = ListOfferingPromotions' {}
- newListOfferingPromotions :: ListOfferingPromotions
- listOfferingPromotions_nextToken :: Lens' ListOfferingPromotions (Maybe Text)
- data ListOfferingPromotionsResponse = ListOfferingPromotionsResponse' {}
- newListOfferingPromotionsResponse :: Int -> ListOfferingPromotionsResponse
- listOfferingPromotionsResponse_nextToken :: Lens' ListOfferingPromotionsResponse (Maybe Text)
- listOfferingPromotionsResponse_offeringPromotions :: Lens' ListOfferingPromotionsResponse (Maybe [OfferingPromotion])
- listOfferingPromotionsResponse_httpStatus :: Lens' ListOfferingPromotionsResponse Int
Creating a Request
data ListOfferingPromotions Source #
See: newListOfferingPromotions
smart constructor.
Instances
newListOfferingPromotions :: ListOfferingPromotions Source #
Create a value of ListOfferingPromotions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListOfferingPromotions'
, listOfferingPromotions_nextToken
- 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.
Request Lenses
listOfferingPromotions_nextToken :: 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
data ListOfferingPromotionsResponse Source #
See: newListOfferingPromotionsResponse
smart constructor.
ListOfferingPromotionsResponse' | |
|
Instances
newListOfferingPromotionsResponse Source #
Create a value of ListOfferingPromotionsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListOfferingPromotions'
, listOfferingPromotionsResponse_nextToken
- An identifier to be used in the next call to this operation, to return
the next set of items in the list.
$sel:offeringPromotions:ListOfferingPromotionsResponse'
, listOfferingPromotionsResponse_offeringPromotions
- Information about the offering promotions.
$sel:httpStatus:ListOfferingPromotionsResponse'
, listOfferingPromotionsResponse_httpStatus
- The response's http status code.
Response Lenses
listOfferingPromotionsResponse_nextToken :: 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.
listOfferingPromotionsResponse_offeringPromotions :: Lens' ListOfferingPromotionsResponse (Maybe [OfferingPromotion]) Source #
Information about the offering promotions.
listOfferingPromotionsResponse_httpStatus :: Lens' ListOfferingPromotionsResponse Int Source #
The response's http status code.