Skip to main content

findings

Creates, updates, deletes, gets or lists a findings resource.

Overview

Namefindings
TypeResource
Idaws.codeguru_security.findings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
failed_findingsarrayA list of errors for individual findings which were not fetched. Each BatchGetFindingsError contains the scanName, findingId, errorCode and error message.
findingsarrayA list of all findings which were successfully fetched.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_findingsselectregionReturns a list of requested findings from standard scans.
get_findingsselectscan_name, regionnextToken, maxResults, statusReturns a list of all findings generated by a particular scan.

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
regionstringAWS region (default: us-east-1)
scan_namestringThe name of the scan you want to retrieve findings from.
maxResultsintegerThe maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken element is returned in the response. Use nextToken in a subsequent request to retrieve additional results. If not specified, returns 1000 results.
nextTokenstringA token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.
statusstringThe status of the findings you want to get. Pass either Open, Closed, or All.

SELECT examples

Returns a list of requested findings from standard scans.

SELECT
failed_findings,
findings
FROM aws.codeguru_security.findings
WHERE region = '{{ region }}' -- required
;