usage_statistics
Creates, updates, deletes, gets or lists a usage_statistics resource.
Overview
| Name | usage_statistics |
| Type | Resource |
| Id | aws.macie2.usage_statistics |
Fields
The following fields are returned by SELECT queries:
- get_usage_statistics
| Name | Datatype | Description |
|---|---|---|
account_id | string | The unique identifier for the Amazon Web Services account that the data applies to. |
automated_discovery_free_trial_start_date | string (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_date | string (date-time) | The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the account. |
usage | array | An 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_usage_statistics | select | region | Retrieves (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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_usage_statistics
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
;