bonus_payments
Creates, updates, deletes, gets or lists a bonus_payments resource.
Overview
| Name | bonus_payments |
| Type | Resource |
| Id | aws.mturk.bonus_payments |
Fields
The following fields are returned by SELECT queries:
- list_bonus_payments
| Name | Datatype | Description |
|---|---|---|
assignment_id | string | The ID of the assignment associated with this bonus payment. (pattern: <code>^[A-Z0-9]+$</code>) |
bonus_amount | string | A string representing a currency amount. (pattern: <code>^[0-9]+(.)?[0-9]{0,2}$</code>) |
grant_time | string (date-time) | The date and time of when the bonus was granted. |
reason | string | The Reason text given when the bonus was granted, if any. |
worker_id | string | The ID of the Worker to whom the bonus was paid. (pattern: <code>^A[A-Z0-9]+$</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_bonus_payments | select | region | The ListBonusPayments operation retrieves the amounts of bonuses you have paid to Workers for a given HIT or assignment. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_bonus_payments
The ListBonusPayments operation retrieves the amounts of bonuses you have paid to Workers for a given HIT or assignment.
SELECT
assignment_id,
bonus_amount,
grant_time,
reason,
worker_id
FROM aws.mturk.bonus_payments
WHERE region = '{{ region }}' -- required
;