Skip to main content

usage_totals

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

Overview

Nameusage_totals
TypeResource
Idaws.macie2.usage_totals

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
time_rangestringAn inclusive time period that Amazon Macie usage data applies to. Possible values are: (MONTH_TO_DATE, PAST_30_DAYS)
usage_totalsarrayAn array of objects that contains the results of the query. Each object contains the data for a specific usage metric.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_usage_totalsselectregiontimeRangeRetrieves (queries) aggregated usage data for an account.

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)
timeRangestringThe inclusive time period to retrieve the data for. Valid values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days. If you don't specify a value for this parameter, Amazon Macie provides aggregated usage data for the preceding 30 days.

SELECT examples

Retrieves (queries) aggregated usage data for an account.

SELECT
time_range,
usage_totals
FROM aws.macie2.usage_totals
WHERE region = '{{ region }}' -- required
AND timeRange = '{{ timeRange }}'
;