Skip to main content

usage_totals

Creates, updates, deletes, gets or lists a usage_totals resource.

Overview

Nameusage_totals
TypeResource
Idaws.inspector2.usage_totals

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe account ID of the account that usage data was retrieved for. (pattern: <code>.[0-9]{12}.</code>)
usagearrayAn object representing the total usage for an account.

Methods

The following methods are available for this resource:

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

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

SELECT examples

Lists the Amazon Inspector usage totals over the last 30 days.

SELECT
account_id,
usage
FROM aws.inspector2.usage_totals
WHERE region = '{{ region }}' -- required
;