account_balances
Creates, updates, deletes, gets or lists an account_balances resource.
Overview
| Name | account_balances |
| Type | Resource |
| Id | aws.mturk.account_balances |
Fields
The following fields are returned by SELECT queries:
- get_account_balance
| Name | Datatype | Description |
|---|---|---|
available_balance | string | A string representing a currency amount. (pattern: <code>^[0-9]+(.)?[0-9]{0,2}$</code>) |
on_hold_balance | string | A string representing a currency amount. (pattern: <code>^[0-9]+(.)?[0-9]{0,2}$</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_account_balance | select | region | The GetAccountBalance operation retrieves the Prepaid HITs balance in your Amazon Mechanical Turk account if you are a Prepaid Requester. Alternatively, this operation will retrieve the remaining available AWS Billing usage if you have enabled AWS Billing. Note: If you have enabled AWS Billing and still have a remaining Prepaid HITs balance, this balance can be viewed on the My Account page in the Requester console. |
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
- get_account_balance
The GetAccountBalance operation retrieves the Prepaid HITs balance in your Amazon Mechanical Turk account if you are a Prepaid Requester. Alternatively, this operation will retrieve the remaining available AWS Billing usage if you have enabled AWS Billing. Note: If you have enabled AWS Billing and still have a remaining Prepaid HITs balance, this balance can be viewed on the My Account page in the Requester console.
SELECT
available_balance,
on_hold_balance
FROM aws.mturk.account_balances
WHERE region = '{{ region }}' -- required
;