getInvestigation method

Future<GetInvestigationResponse> getInvestigation({
  1. required String detectorId,
  2. required String investigationId,
})

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.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalServerErrorException. May throw ResourceNotFoundException.

Parameter detectorId : The unique ID of the GuardDuty detector associated with the investigation.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

Parameter investigationId : The unique identifier of the investigation to retrieve.

Implementation

Future<GetInvestigationResponse> getInvestigation({
  required String detectorId,
  required String investigationId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/detector/${Uri.encodeComponent(detectorId)}/investigation/${Uri.encodeComponent(investigationId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetInvestigationResponse.fromJson(response);
}