CmdID / aws / aws securityhub
aws securityhub get-resources-statistics-v2
Retrieves statistical information about Amazon Web Services resources and their associated security findings. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--group-by-rulesHow resource statistics should be aggregated and organized in the response.--max-statistic-resultsThe maximum number of results to be returned.--scopesLimits the results to resources from specific organizational units or from the delegated administrator's organization.--sort-orderSorts aggregated statistics.