Skip to main content

image_scan_finding_aggregations

Creates, updates, deletes, gets or lists an image_scan_finding_aggregations resource.

Overview

Nameimage_scan_finding_aggregations
TypeResource
Idaws.imagebuilder.image_scan_finding_aggregations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_aggregationobjectReturns an object that contains severity counts based on an account ID.
image_aggregationobjectReturns an object that contains severity counts based on the Amazon Resource Name (ARN) for a specific image.
image_pipeline_aggregationobjectReturns an object that contains severity counts based on an image pipeline ARN.
vulnerability_id_aggregationobjectReturns an object that contains severity counts based on vulnerability ID.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_image_scan_finding_aggregationsselectregionReturns a list of image scan aggregations for your account. You can filter by the type of key that Image Builder uses to group results. For example, if you want to get a list of findings by severity level for one of your pipelines, you might specify your pipeline with the imagePipelineArn filter. If you don't specify a filter, Image Builder returns an aggregation for your account. To streamline results, you can use the following filters in your request: accountId imageBuildVersionArn imagePipelineArn vulnerabilityId

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

Returns a list of image scan aggregations for your account. You can filter by the type of key that Image Builder uses to group results. For example, if you want to get a list of findings by severity level for one of your pipelines, you might specify your pipeline with the imagePipelineArn filter. If you don't specify a filter, Image Builder returns an aggregation for your account. To streamline results, you can use the following filters in your request: accountId imageBuildVersionArn imagePipelineArn vulnerabilityId

SELECT
account_aggregation,
image_aggregation,
image_pipeline_aggregation,
vulnerability_id_aggregation
FROM aws.imagebuilder.image_scan_finding_aggregations
WHERE region = '{{ region }}' -- required
;