Skip to main content

investigations

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

Overview

Nameinvestigations
TypeResource
Idaws.guardduty.investigations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cloudobjectDetails about the cloud environment in which the investigation was performed, including the provider, region, and account.
confidencestringThe confidence level of the investigation's assessment. Possible values are Unknown, Low, Medium, and High. (Unknown, Low, Medium, High)
end_timestring (date-time)The timestamp at which the investigation completed.
errorstringDetails about the error if the investigation status is FAILED.
investigation_idstringThe unique identifier of the investigation. (pattern: <code>[a-fA-F0-9-]+</code>)
metadataobjectMetadata about the product and version that produced the investigation.
riskstringA human-readable description of the assessed risk.
risk_levelstringThe assessed risk level of the investigated threat. Possible values are Info, Low, Medium, High, and Critical. (Info, Low, Medium, High, Critical)
start_timestring (date-time)The timestamp at which the investigation started.
statusstringThe current status of the investigation. Possible values are RUNNING, COMPLETED, and FAILED. (RUNNING, COMPLETED, FAILED)
summarystringA structured summary of the investigation findings, including affected resources, threat assessment, and recommended remediation steps.
trigger_promptstringThe natural-language prompt that initiated this investigation.
triggered_bystringThe account that initiated the investigation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_investigationselectdetector_id, investigation_id, regionThis API is currently available as a preview. This feature is available in the following Amazon Web Services Regions: US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Paris), Europe (Stockholm), and Asia Pacific (Tokyo). Retrieves the results and status of a specific GuardDuty investigation. An administrator account can retrieve any investigation within the organization. Member accounts can only retrieve investigations that belong to them.
list_investigationsselectdetector_id, regionThis API is currently available as a preview. This feature is available in the following Amazon Web Services Regions: US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Paris), Europe (Stockholm), and Asia Pacific (Tokyo). Returns a list of investigations associated with the specified GuardDuty detector. An administrator account sees all investigations across the organization. Member accounts see only the investigations that belong to them.
create_investigationinsertdetector_id, region, TriggerPromptThis API is currently available as a preview. During the preview, you can initiate up to 10 investigations per account per day, with a total limit of 100 investigations per account. This feature is available in the following Amazon Web Services Regions: US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Paris), Europe (Stockholm), and Asia Pacific (Tokyo). Initiates a GuardDuty investigation that automatically analyzes security findings, correlates related activity, performs account-level analysis, and produces a structured investigation summary with recommended next steps. Only the administrator account can create an investigation. Member accounts don't have permission to create investigations from their accounts. To use this operation, the AI_ANALYST feature must be enabled on your detector. This feature uses Amazon Bedrock models that leverage Cross-Region Inference (CRIS), which automatically selects the optimal Amazon Web Services Region within your geography to process the investigation analysis and generate the investigation report. This maximizes available compute resources, model availability, and delivers the best customer experience. Your data remains stored only in the Region where the investigation request originates, however, investigation data and summary results may be processed outside that Region. All data is transmitted encrypted across Amazon's secure network. For more information, see GuardDuty Investigation.

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 unique ID of the GuardDuty detector for the account in which the investigation is created. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.
investigation_idstringThe unique identifier of the investigation to retrieve.
regionstringAWS region (default: us-east-1)

SELECT examples

This API is currently available as a preview. This feature is available in the following Amazon Web Services Regions: US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Paris), Europe (Stockholm), and Asia Pacific (Tokyo). Retrieves the results and status of a specific GuardDuty investigation. An administrator account can retrieve any investigation within the organization. Member accounts can only retrieve investigations that belong to them.

SELECT
cloud,
confidence,
end_time,
error,
investigation_id,
metadata,
risk,
risk_level,
start_time,
status,
summary,
trigger_prompt,
triggered_by
FROM aws.guardduty.investigations
WHERE detector_id = '{{ detector_id }}' -- required
AND investigation_id = '{{ investigation_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

This API is currently available as a preview. During the preview, you can initiate up to 10 investigations per account per day, with a total limit of 100 investigations per account. This feature is available in the following Amazon Web Services Regions: US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Paris), Europe (Stockholm), and Asia Pacific (Tokyo). Initiates a GuardDuty investigation that automatically analyzes security findings, correlates related activity, performs account-level analysis, and produces a structured investigation summary with recommended next steps. Only the administrator account can create an investigation. Member accounts don't have permission to create investigations from their accounts. To use this operation, the AI_ANALYST feature must be enabled on your detector. This feature uses Amazon Bedrock models that leverage Cross-Region Inference (CRIS), which automatically selects the optimal Amazon Web Services Region within your geography to process the investigation analysis and generate the investigation report. This maximizes available compute resources, model availability, and delivers the best customer experience. Your data remains stored only in the Region where the investigation request originates, however, investigation data and summary results may be processed outside that Region. All data is transmitted encrypted across Amazon's secure network. For more information, see GuardDuty Investigation.

INSERT INTO aws.guardduty.investigations (
TriggerPrompt,
ClientToken,
detector_id,
region
)
SELECT
'{{ TriggerPrompt }}' /* required */,
'{{ ClientToken }}',
'{{ detector_id }}',
'{{ region }}'
RETURNING
investigation_id
;