Skip to main content

finding_statistics_v2s

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

Overview

Namefinding_statistics_v2s
TypeResource
Idaws.securityhub.finding_statistics_v2s

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
group_by_resultsarrayAggregated statistics about security findings based on specified grouping criteria.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_finding_statistics_v2selectregionReturns aggregated statistical data about findings. You can use the Scopes parameter to define the data boundary for the query. Currently, Scopes supports AwsOrganizations, which lets you aggregate findings from your entire organization or from specific organizational units. Only the delegated administrator account can use Scopes. GetFindingStatisticsV2 uses securityhub:GetAdhocInsightResults in the Action element of an IAM policy statement. You must have permission to perform the securityhub:GetAdhocInsightResults action.

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

Returns aggregated statistical data about findings. You can use the Scopes parameter to define the data boundary for the query. Currently, Scopes supports AwsOrganizations, which lets you aggregate findings from your entire organization or from specific organizational units. Only the delegated administrator account can use Scopes. GetFindingStatisticsV2 uses securityhub:GetAdhocInsightResults in the Action element of an IAM policy statement. You must have permission to perform the securityhub:GetAdhocInsightResults action.

SELECT
group_by_results
FROM aws.securityhub.finding_statistics_v2s
WHERE region = '{{ region }}' -- required
;