insight_results
Creates, updates, deletes, gets or lists an insight_results resource.
Overview
| Name | insight_results |
| Type | Resource |
| Id | aws.securityhub.insight_results |
Fields
The following fields are returned by SELECT queries:
- get_insight_results
| Name | Datatype | Description |
|---|---|---|
group_by_attribute | string | The attribute that the findings are grouped by for the insight whose results are returned by the GetInsightResults operation. (pattern: <code>.\S.</code>) |
insight_arn | string | The ARN of the insight whose results are returned by the GetInsightResults operation. (pattern: <code>.\S.</code>) |
result_values | array | The list of insight result values returned by the GetInsightResults operation. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_insight_results | select | insight_arn, region | Lists 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.
| Name | Datatype | Description |
|---|---|---|
insight_arn | string | The ARN of the insight for which to return results. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_insight_results
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
;