GuardDuty / Client / create_investigation
create_investigation¶
- GuardDuty.Client.create_investigation(**kwargs)¶
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_ANALYSTfeature 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.
See also: AWS API Documentation
Request Syntax
response = client.create_investigation( DetectorId='string', TriggerPrompt='string', ClientToken='string' )
- Parameters:
DetectorId (string) –
[REQUIRED]
The unique ID of the GuardDuty detector for the account in which the investigation is created.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.TriggerPrompt (string) –
[REQUIRED]
A natural-language description of what to investigate. For example:
"Investigate finding 1ab2c3d4e5f6a7b8c9d0e1f2a3b4c5d6 in account 123456789012""Analyze findings in account with id 123456789012""Analyze findings in my organization"
ClientToken (string) –
The idempotency token for the create request.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'InvestigationId': 'string' }
Response Structure
(dict) –
InvestigationId (string) –
The unique identifier of the newly created investigation.
Exceptions