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 |
The ListBonusPayments
operation retrieves the amounts of bonuses you have paid to Workers for a given HIT or assignment.
This operation returns paginated results.
Synopsis
- listBonusPayments :: ListBonusPayments
- data ListBonusPayments
- lbpNextToken :: Lens' ListBonusPayments (Maybe Text)
- lbpHITId :: Lens' ListBonusPayments (Maybe Text)
- lbpAssignmentId :: Lens' ListBonusPayments (Maybe Text)
- lbpMaxResults :: Lens' ListBonusPayments (Maybe Natural)
- listBonusPaymentsResponse :: Int -> ListBonusPaymentsResponse
- data ListBonusPaymentsResponse
- lbprsBonusPayments :: Lens' ListBonusPaymentsResponse [BonusPayment]
- lbprsNextToken :: Lens' ListBonusPaymentsResponse (Maybe Text)
- lbprsNumResults :: Lens' ListBonusPaymentsResponse (Maybe Int)
- lbprsResponseStatus :: Lens' ListBonusPaymentsResponse Int
Creating a Request
listBonusPayments :: ListBonusPayments Source #
Creates a value of ListBonusPayments
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lbpNextToken
- Pagination tokenlbpHITId
- The ID of the HIT associated with the bonus payments to retrieve. If not specified, all bonus payments for all assignments for the given HIT are returned. Either the HITId parameter or the AssignmentId parameter must be specifiedlbpAssignmentId
- The ID of the assignment associated with the bonus payments to retrieve. If specified, only bonus payments for the given assignment are returned. Either the HITId parameter or the AssignmentId parameter must be specifiedlbpMaxResults
- Undocumented member.
data ListBonusPayments Source #
See: listBonusPayments
smart constructor.
Instances
Request Lenses
lbpNextToken :: Lens' ListBonusPayments (Maybe Text) Source #
Pagination token
lbpHITId :: Lens' ListBonusPayments (Maybe Text) Source #
The ID of the HIT associated with the bonus payments to retrieve. If not specified, all bonus payments for all assignments for the given HIT are returned. Either the HITId parameter or the AssignmentId parameter must be specified
lbpAssignmentId :: Lens' ListBonusPayments (Maybe Text) Source #
The ID of the assignment associated with the bonus payments to retrieve. If specified, only bonus payments for the given assignment are returned. Either the HITId parameter or the AssignmentId parameter must be specified
lbpMaxResults :: Lens' ListBonusPayments (Maybe Natural) Source #
Undocumented member.
Destructuring the Response
listBonusPaymentsResponse Source #
Creates a value of ListBonusPaymentsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lbprsBonusPayments
- A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.lbprsNextToken
- Undocumented member.lbprsNumResults
- The number of bonus payments on this page in the filtered results list, equivalent to the number of bonus payments being returned by this call.lbprsResponseStatus
- -- | The response status code.
data ListBonusPaymentsResponse Source #
See: listBonusPaymentsResponse
smart constructor.
Instances
Response Lenses
lbprsBonusPayments :: Lens' ListBonusPaymentsResponse [BonusPayment] Source #
A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.
lbprsNextToken :: Lens' ListBonusPaymentsResponse (Maybe Text) Source #
Undocumented member.
lbprsNumResults :: Lens' ListBonusPaymentsResponse (Maybe Int) Source #
The number of bonus payments on this page in the filtered results list, equivalent to the number of bonus payments being returned by this call.
lbprsResponseStatus :: Lens' ListBonusPaymentsResponse Int Source #
- - | The response status code.