Skip to main content

findings

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

Overview

Namefindings
TypeResource
Idaws.inspector.findings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
failed_itemsobjectFinding details that cannot be described. An error code is provided for each failed item.
findingsarrayInformation about the finding.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_findingsselectregionDescribes the findings that are specified by the ARNs of the findings.
list_findingsselectregionLists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
add_attributes_to_findingsupdateregion, findingArns, attributesAssigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
remove_attributes_from_findingsupdateregion, findingArns, attributeKeysRemoves entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.

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

Describes the findings that are specified by the ARNs of the findings.

SELECT
failed_items,
findings
FROM aws.inspector.findings
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.

UPDATE aws.inspector.findings
SET
findingArns = '{{ findingArns }}',
attributes = '{{ attributes }}'
WHERE
region = '{{ region }}' --required
AND findingArns = '{{ findingArns }}' --required
AND attributes = '{{ attributes }}' --required
RETURNING
failed_items;