Skip to main content

findings

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

Overview

Namefindings
TypeResource
Idaws.guardduty.findings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
findingsarrayA list of findings.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_findingsselectdetector_id, regionDescribes Amazon GuardDuty findings specified by finding IDs.
list_findingsselectdetector_id, regionLists GuardDuty findings for the specified detector ID. There might be regional differences because some flags might not be available in all the Regions where GuardDuty is currently supported. For more information, see Regions and endpoints.
create_sample_findingsinsertdetector_id, regionGenerates sample findings of types specified by the list of finding types. If 'NULL' is specified for findingTypes, the API generates sample findings of all supported finding types.
update_findings_feedbackupdatedetector_id, region, FindingIds, FeedbackMarks the specified GuardDuty findings as useful or not useful.
archive_findingsexecdetector_id, region, FindingIdsArchives GuardDuty findings that are specified by the list of finding IDs. Only the administrator account can archive findings. Member accounts don't have permission to archive findings from their accounts.
unarchive_findingsexecdetector_id, region, FindingIdsUnarchives GuardDuty findings specified by the findingIds.

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
detector_idstringThe ID of the detector associated with the findings to unarchive. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.
regionstringAWS region (default: us-east-1)

SELECT examples

Describes Amazon GuardDuty findings specified by finding IDs.

SELECT
findings
FROM aws.guardduty.findings
WHERE detector_id = '{{ detector_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Generates sample findings of types specified by the list of finding types. If 'NULL' is specified for findingTypes, the API generates sample findings of all supported finding types.

INSERT INTO aws.guardduty.findings (
FindingTypes,
detector_id,
region
)
SELECT
'{{ FindingTypes }}',
'{{ detector_id }}',
'{{ region }}'
;

UPDATE examples

Marks the specified GuardDuty findings as useful or not useful.

UPDATE aws.guardduty.findings
SET
FindingIds = '{{ FindingIds }}',
Feedback = '{{ Feedback }}',
Comments = '{{ Comments }}'
WHERE
detector_id = '{{ detector_id }}' --required
AND region = '{{ region }}' --required
AND FindingIds = '{{ FindingIds }}' --required
AND Feedback = '{{ Feedback }}' --required;

Lifecycle Methods

Archives GuardDuty findings that are specified by the list of finding IDs. Only the administrator account can archive findings. Member accounts don't have permission to archive findings from their accounts.

EXEC aws.guardduty.findings.archive_findings
@detector_id='{{ detector_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"FindingIds": "{{ FindingIds }}"
}'
;