Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idaws.apigateway.accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
api_key_versionstringThe version of the API keys used for the account.
cloudwatch_role_arnstringThe ARN of an Amazon CloudWatch role for the current Account.
featuresarrayA list of features supported for the account. When usage plans are enabled, the features list will include an entry of "UsagePlans".
throttle_settingsobjectThe API request rate limits.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_accountselectregionGets information about the current Account resource.
update_accountupdateregionChanges information about the current Account resource.

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

Gets information about the current Account resource.

SELECT
api_key_version,
cloudwatch_role_arn,
features,
throttle_settings
FROM aws.apigateway.accounts
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Changes information about the current Account resource.

UPDATE aws.apigateway.accounts
SET
patchOperations = '{{ patchOperations }}'
WHERE
region = '{{ region }}' --required
RETURNING
api_key_version,
cloudwatch_role_arn,
features,
throttle_settings;