usage_totals
Creates, updates, deletes, gets or lists a usage_totals resource.
Overview
| Name | usage_totals |
| Type | Resource |
| Id | aws.inspector2.usage_totals |
Fields
The following fields are returned by SELECT queries:
- list_usage_totals
| Name | Datatype | Description |
|---|---|---|
account_id | string | The account ID of the account that usage data was retrieved for. (pattern: <code>.[0-9]{12}.</code>) |
usage | array | An object representing the total usage for an account. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_usage_totals | select | region | Lists the Amazon Inspector usage totals over the last 30 days. |
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_usage_totals
Lists the Amazon Inspector usage totals over the last 30 days.
SELECT
account_id,
usage
FROM aws.inspector2.usage_totals
WHERE region = '{{ region }}' -- required
;