Skip to main content

insight_results

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

Overview

Nameinsight_results
TypeResource
Idaws.securityhub.insight_results

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
group_by_attributestringThe attribute that the findings are grouped by for the insight whose results are returned by the GetInsightResults operation. (pattern: <code>.\S.</code>)
insight_arnstringThe ARN of the insight whose results are returned by the GetInsightResults operation. (pattern: <code>.\S.</code>)
result_valuesarrayThe list of insight result values returned by the GetInsightResults operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_insight_resultsselectinsight_arn, regionLists the results of the Security Hub CSPM insight specified by the insight ARN.

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
insight_arnstringThe ARN of the insight for which to return results.
regionstringAWS region (default: us-east-1)

SELECT examples

Lists the results of the Security Hub CSPM insight specified by the insight ARN.

SELECT
group_by_attribute,
insight_arn,
result_values
FROM aws.securityhub.insight_results
WHERE insight_arn = '{{ insight_arn }}' -- required
AND region = '{{ region }}' -- required
;