Skip to main content

usage_statistics

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

Overview

Nameusage_statistics
TypeResource
Idaws.macie2.usage_statistics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe unique identifier for the Amazon Web Services account that the data applies to.
automated_discovery_free_trial_start_datestring (date-time)The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data discovery started for the account. This value is null if automated sensitive data discovery hasn't been enabled for the account.
free_trial_start_datestring (date-time)The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the account.
usagearrayAn array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_usage_statisticsselectregionRetrieves (queries) quotas and aggregated usage data for one or more accounts.

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

Retrieves (queries) quotas and aggregated usage data for one or more accounts.

SELECT
account_id,
automated_discovery_free_trial_start_date,
free_trial_start_date,
usage
FROM aws.macie2.usage_statistics
WHERE region = '{{ region }}' -- required
;