Skip to main content

insights_by_assessments

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

Overview

Nameinsights_by_assessments
TypeResource
Idaws.auditmanager.insights_by_assessments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
assessment_controls_count_by_noncompliant_evidenceintegerThe number of assessment controls that collected non-compliant evidence on the lastUpdated date.
compliant_evidence_countintegerThe number of compliance check evidence that Audit Manager classified as compliant. This includes evidence that was collected from Security Hub CSPM with a Pass ruling, or collected from Config with a Compliant ruling.
inconclusive_evidence_countintegerThe amount of evidence without a compliance check ruling. Evidence is inconclusive if the associated control uses Security Hub CSPM or Config as a data source and you didn't enable those services. This is also the case if a control uses a data source that doesn’t support compliance checks (for example, manual evidence, API calls, or CloudTrail). If evidence has a compliance check status of not applicable, it's classified as inconclusive in InsightsByAssessment data.
last_updatedstring (date-time)The time when the assessment insights were last updated.
noncompliant_evidence_countintegerThe number of compliance check evidence that Audit Manager classified as non-compliant. This includes evidence that was collected from Security Hub CSPM with a Fail ruling, or collected from Config with a Non-compliant ruling.
total_assessment_controls_countintegerThe total number of controls in the assessment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_insights_by_assessmentselectassessment_id, regionGets the latest analytics data for a specific active assessment.

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
assessment_idstringThe unique identifier for the assessment.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the latest analytics data for a specific active assessment.

SELECT
assessment_controls_count_by_noncompliant_evidence,
compliant_evidence_count,
inconclusive_evidence_count,
last_updated,
noncompliant_evidence_count,
total_assessment_controls_count
FROM aws.auditmanager.insights_by_assessments
WHERE assessment_id = '{{ assessment_id }}' -- required
AND region = '{{ region }}' -- required
;