Values.GetFindingStatisticsV2RequestSourceReturns 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.
type nonrec t = {groupByRules : GroupByRules.t;Specifies how security findings should be aggregated and organized in the statistical analysis. It can accept up to 5 groupBy fields in a single call.
*)scopes : FindingScopes.t option;Limits the results to findings from specific organizational units or from the delegated administrator's organization. Only the delegated administrator account can use this parameter. Other accounts receive an AccessDeniedException. This parameter is optional. If you omit it, the delegated administrator sees statistics from all accounts across the entire organization. Other accounts see only statistics for their own findings. You can specify up to 10 entries in Scopes.AwsOrganizations. If multiple entries are specified, the entries are combined using OR logic.
*)sortOrder : SortOrder.t option;Orders the aggregation count in descending or ascending order. Descending order is the default.
*)maxStatisticResults : MaxStatisticResults.t option;The maximum number of results to be returned.
*)}val make :
?scopes:??? ->
?sortOrder:??? ->
?maxStatisticResults:??? ->
groupByRules:GroupByRules.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `Integer of MaxStatisticResults.t
| `List of
[> `Structure of
(string
* [> `Enum of string
| `Structure of (string * Awso.Botodata.value) list ])
list ]
list
| `Structure of
(string
* [> `List of
[> `Structure of
(string * [> `String of NonEmptyString.t ]) list ]
list ])
list ])
list ]