Skip to main content

cis_scan_results_aggregated_by_target_resources

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

Overview

Namecis_scan_results_aggregated_by_target_resources
TypeResource
Idaws.inspector2.cis_scan_results_aggregated_by_target_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe account ID for the CIS target resource. (pattern: <code>\d{12}</code>)
platformstringThe platform for the CIS target resource.
scan_arnstringThe scan ARN for the CIS target resource. (pattern: <code>arn:aws(-us-gov|-cn)?:inspector2:[-.a-z0-9]{0,20}:\d{12}:owner/(\d{12}|o-[a-z0-9]{10,32})/cis-scan/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}</code>)
status_countsobjectThe target resource status counts.
target_resource_idstringThe ID of the target resource. (pattern: <code>.(^arn:.:ecr:.:\d{12}:repository/[a-zA-Z0-9._/-]+(/sha256:[a-z0-9]{64})?$)|(^i-([a-z0-9]{8}|[a-z0-9]{17}|\)$|(^arn:(aws[a-zA-Z-])?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-.]+(:($LATEST|[a-zA-Z0-9-]+))?$)|(^arn:(aws[a-zA-Z-])?:inspector2:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:codesecurity-integration/[a-f0-9-]{36}/project-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$))|(^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourcegroups/[a-z0-9_-.()]+/providers/(microsoft.compute/virtualmachines/[a-z0-9_-]+|microsoft.web/sites/[a-z0-9_-]+|microsoft.containerregistry/registries/[a-z0-9_-]+(/repositories/[a-z0-9_-/]+/images?/sha256:[a-f0-9]{64})?)$).*</code>)
target_resource_tagsobjectThe tag for the target resource.
target_statusstringThe status of the target resource. (TIMED_OUT, CANCELLED, COMPLETED)
target_status_reasonstringThe reason for the target resource. (SCAN_IN_PROGRESS, UNSUPPORTED_OS, SSM_UNMANAGED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_cis_scan_results_aggregated_by_target_resourceselectregionLists scan results aggregated by a target resource.

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 scan results aggregated by a target resource.

SELECT
account_id,
platform,
scan_arn,
status_counts,
target_resource_id,
target_resource_tags,
target_status,
target_status_reason
FROM aws.inspector2.cis_scan_results_aggregated_by_target_resources
WHERE region = '{{ region }}' -- required
;