GuardDutyClient.create_investigation
rboto-guardduty==0.4.0 · Service index · Types
Model summary (excerpt): 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...
Install and imports
Signature
async def create_investigation(
*,
detector_id: str,
trigger_prompt: str,
client_token: str | None = None,
) -> CreateInvestigationOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
detector_id |
Yes | The 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. |
trigger_prompt |
Yes | 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" |
client_token |
No | The idempotency token for the create request. |
Output
CreateInvestigationOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
investigation_id |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_guardduty.exceptions:
AccessDeniedError, BadRequestError, InternalServerError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.