Skip to main content

audit_findings

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

Overview

Nameaudit_findings
TypeResource
Idaws.iot.audit_findings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
check_namestringAn audit check name. Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
finding_idstringA unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings. (pattern: <code>[a-zA-Z0-9_-]+</code>)
finding_timestring (date-time)The time the result (finding) was discovered.
is_suppressedbooleanIndicates whether the audit finding was suppressed or not during reporting.
non_compliant_resourceobjectThe resource that was found to be noncompliant with the audit check.
reason_for_non_compliancestringThe reason the resource was noncompliant.
reason_for_non_compliance_codestringA code that indicates the reason that the resource was noncompliant.
related_resourcesarrayThe list of related resources.
severitystringThe severity of the result (finding). (CRITICAL, HIGH, MEDIUM, LOW)
task_idstringThe ID of the audit that generated this result (finding). (pattern: <code>[a-zA-Z0-9-]+</code>)
task_start_timestring (date-time)The time the audit started.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_audit_findingselectfinding_id, regionGets information about a single audit finding. Properties include the reason for noncompliance, the severity of the issue, and the start time when the audit that returned the finding. Requires permission to access the DescribeAuditFinding action.
list_audit_findingsselectregionLists the findings (results) of a Device Defender audit or of the audits performed during a specified time period. (Findings are retained for 90 days.) Requires permission to access the ListAuditFindings action.

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
finding_idstringA unique identifier for a single audit finding. You can use this identifier to apply mitigation actions to the finding.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about a single audit finding. Properties include the reason for noncompliance, the severity of the issue, and the start time when the audit that returned the finding. Requires permission to access the DescribeAuditFinding action.

SELECT
check_name,
finding_id,
finding_time,
is_suppressed,
non_compliant_resource,
reason_for_non_compliance,
reason_for_non_compliance_code,
related_resources,
severity,
task_id,
task_start_time
FROM aws.iot.audit_findings
WHERE finding_id = '{{ finding_id }}' -- required
AND region = '{{ region }}' -- required
;