finding_v2s
Creates, updates, deletes, gets or lists a finding_v2s resource.
Overview
| Name | finding_v2s |
| Type | Resource |
| Id | aws.accessanalyzer.finding_v2s |
Fields
The following fields are returned by SELECT queries:
- get_finding_v2
| Name | Datatype | Description |
|---|---|---|
external_access_details | object | The details for an external access analyzer finding. |
internal_access_details | object | The details for an internal access analyzer finding. This contains information about access patterns identified within your Amazon Web Services organization or account. |
unused_iam_role_details | object | The details for an unused access analyzer finding with an unused IAM role finding type. |
unused_iam_user_access_key_details | object | The details for an unused access analyzer finding with an unused IAM user access key finding type. |
unused_iam_user_password_details | object | The details for an unused access analyzer finding with an unused IAM user password finding type. |
unused_permission_details | object | The details for an unused access analyzer finding with an unused permission finding type. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_finding_v2 | select | analyzerArn, id, region | maxResults, nextToken | Retrieves information about the specified finding. GetFinding and GetFindingV2 both use access-analyzer:GetFinding in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:GetFinding 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.
| Name | Datatype | Description |
|---|---|---|
analyzerArn | string | The ARN of the analyzer that generated the finding. |
id | string | The ID of the finding to retrieve. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of results to return in the response. |
nextToken | string | A token used for pagination of results returned. |
SELECT examples
- get_finding_v2
Retrieves information about the specified finding. GetFinding and GetFindingV2 both use access-analyzer:GetFinding in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:GetFinding action.
SELECT
external_access_details,
internal_access_details,
unused_iam_role_details,
unused_iam_user_access_key_details,
unused_iam_user_password_details,
unused_permission_details
FROM aws.accessanalyzer.finding_v2s
WHERE analyzerArn = '{{ analyzerArn }}' -- required
AND id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;