CmdID / aws / aws securityhub
aws securityhub get-finding-statistics-v2
Returns aggregated statistical data about findings. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--group-by-rulesSpecifies how security findings should be aggregated and organized in the statistical analysis.--max-statistic-resultsThe maximum number of results to be returned.--scopesLimits the results to findings from specific organizational units or from the delegated administrator's organization.--sort-orderOrders the aggregation count in descending or ascending order.