cis_scan_results_aggregated_by_target_resources
Creates, updates, deletes, gets or lists a cis_scan_results_aggregated_by_target_resources resource.
Overview
| Name | cis_scan_results_aggregated_by_target_resources |
| Type | Resource |
| Id | aws.inspector2.cis_scan_results_aggregated_by_target_resources |
Fields
The following fields are returned by SELECT queries:
- list_cis_scan_results_aggregated_by_target_resource
| Name | Datatype | Description |
|---|---|---|
account_id | string | The account ID for the CIS target resource. (pattern: <code>\d{12}</code>) |
platform | string | The platform for the CIS target resource. |
scan_arn | string | The 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_counts | object | The target resource status counts. |
target_resource_id | string | The 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_tags | object | The tag for the target resource. |
target_status | string | The status of the target resource. (TIMED_OUT, CANCELLED, COMPLETED) |
target_status_reason | string | The reason for the target resource. (SCAN_IN_PROGRESS, UNSUPPORTED_OS, SSM_UNMANAGED) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_cis_scan_results_aggregated_by_target_resource | select | region | Lists 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_cis_scan_results_aggregated_by_target_resource
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
;