Skip to main content

finding_aggregations

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

Overview

Namefinding_aggregations
TypeResource
Idaws.inspector2.finding_aggregations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_aggregationobjectAn object that contains details about an aggregation response based on Amazon Web Services account IDs.
ami_aggregationobjectAn object that contains details about an aggregation response based on Amazon Machine Images (AMIs).
aws_ecr_container_aggregationobjectAn object that contains details about an aggregation response based on Amazon ECR container images.
code_repository_aggregationobjectAn object that contains details about an aggregation response based on code repositories.
container_image_aggregationobjectAn object that contains details about an aggregation response based on container images.
ec_2_instance_aggregationobjectAn object that contains details about an aggregation response based on Amazon EC2 instances.
finding_type_aggregationobjectAn object that contains details about an aggregation response based on finding types.
image_layer_aggregationobjectAn object that contains details about an aggregation response based on container image layers.
lambda_function_aggregationobjectAn aggregation of findings by Amazon Web Services Lambda function.
lambda_layer_aggregationobjectAn aggregation of findings by Amazon Web Services Lambda layer.
package_aggregationobjectAn object that contains details about an aggregation response based on operating system package type.
repository_aggregationobjectAn object that contains details about an aggregation response based on Amazon ECR repositories.
serverless_function_aggregationobjectAn object that contains details about an aggregation response based on serverless functions.
title_aggregationobjectAn object that contains details about an aggregation response based on finding title.
vm_instance_aggregationobjectAn object that contains details about an aggregation response based on VM instances.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_finding_aggregationsselectregionLists aggregated finding data for your environment based on specific criteria.

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

Lists aggregated finding data for your environment based on specific criteria.

SELECT
account_aggregation,
ami_aggregation,
aws_ecr_container_aggregation,
code_repository_aggregation,
container_image_aggregation,
ec_2_instance_aggregation,
finding_type_aggregation,
image_layer_aggregation,
lambda_function_aggregation,
lambda_layer_aggregation,
package_aggregation,
repository_aggregation,
serverless_function_aggregation,
title_aggregation,
vm_instance_aggregation
FROM aws.inspector2.finding_aggregations
WHERE region = '{{ region }}' -- required
;