list_investigation_records
async
¶
list_investigation_records(
detector_id: DetectorId,
*,
config_overrides: Optional[AsyncGuardDutyClientConfig] = None,
investigation_id: Optional[InvestigationId] = None,
record_types: Optional[RecordTypes] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListInvestigationRecordsResponse
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).
Returns the records for a specific GuardDuty investigation. Each record is one step in the reasoning that GuardDuty followed to reach the results of the investigation.
An administrator account can list the records of any investigation within the organization. Member accounts can only list the records of investigations that belong to them.
Parameters:
-
detector_id(DetectorId) –The unique ID of the GuardDuty detector associated with the investigation.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API. -
investigation_id(Optional[InvestigationId], default:None) –The unique identifier of the investigation whose records you want to list.
-
record_types(Optional[RecordTypes], default:None) –The types of records to return. Possible values are
UPDATE,FETCH,OBSERVATION,ANALYSIS, andMETADATA. If you don't specify this parameter, GuardDuty returns records of all types. -
max_results(Optional[MaxResults], default:None) –The maximum number of records to return in a single response. Valid values are 1 to 50. The default value is 20. A response can contain fewer records than this value, or no records, and still include a
NextToken. -
next_token(Optional[NextToken], default:None) –You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For subsequent calls to the action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data. Use the same
InvestigationIdandRecordTypesvalues that you used in the previous request.If you specify this parameter for an investigation whose status isn't
COMPLETED, the operation returns aBadRequestException. ANextTokenexpires 24 hours after it's returned.
Raises:
-
AccessDeniedException–An access denied exception object.
-
BadRequestException–A bad request exception object.
-
InternalServerErrorException–An internal server error exception object.
-
ResourceNotFoundException–The requested resource can't be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_guardduty/_services/async_guard_duty.py
4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 | |