coverage_statistics
Creates, updates, deletes, gets or lists a coverage_statistics resource.
Overview
| Name | coverage_statistics |
| Type | Resource |
| Id | aws.guardduty.coverage_statistics |
Fields
The following fields are returned by SELECT queries:
- get_coverage_statistics
| Name | Datatype | Description |
|---|---|---|
count_by_coverage_status | object | Represents coverage statistics for EKS clusters aggregated by coverage status. |
count_by_resource_type | object | Represents coverage statistics for EKS clusters aggregated by resource type. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_coverage_statistics | select | detector_id, region | Retrieves aggregated statistics for your account. If you are a GuardDuty administrator, you can retrieve the statistics for all the resources associated with the active member accounts in your organization who have enabled Runtime Monitoring and have the GuardDuty security agent running on their resources. |
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 |
|---|---|---|
detector_id | string | The unique ID of the GuardDuty detector. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_coverage_statistics
Retrieves aggregated statistics for your account. If you are a GuardDuty administrator, you can retrieve the statistics for all the resources associated with the active member accounts in your organization who have enabled Runtime Monitoring and have the GuardDuty security agent running on their resources.
SELECT
count_by_coverage_status,
count_by_resource_type
FROM aws.guardduty.coverage_statistics
WHERE detector_id = '{{ detector_id }}' -- required
AND region = '{{ region }}' -- required
;