getFindingStatisticsV2
abstract suspend fun getFindingStatisticsV2(input: GetFindingStatisticsV2Request): GetFindingStatisticsV2Response
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.