listImageScanFindingAggregations

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:

  • imageBuildVersionArn

  • imagePipelineArn

  • vulnerabilityId

Samples

// The following example aggregates vulnerability findings for images that the specified pipeline
// created, with counts grouped by severity level.
val resp = imagebuilderClient.listImageScanFindingAggregations {
    filter = Filter {
        name = "imagePipelineArn"
        values = listOf<String>(
            "arn:aws:imagebuilder:us-west-2:111122223333:image-pipeline/my-example-pipeline"
        )
    }
}