Skip to main content

account_balances

Creates, updates, deletes, gets or lists an account_balances resource.

Overview

Nameaccount_balances
TypeResource
Idaws.mturk.account_balances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
available_balancestringA string representing a currency amount. (pattern: <code>^[0-9]+(.)?[0-9]{0,2}$</code>)
on_hold_balancestringA string representing a currency amount. (pattern: <code>^[0-9]+(.)?[0-9]{0,2}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_account_balanceselectregionThe 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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
;