updateInvestigationState method

Future<void> updateInvestigationState({
  1. required String graphArn,
  2. required String investigationId,
  3. required State state,
})

Updates the state of an investigation.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw TooManyRequestsException. May throw ValidationException.

Parameter graphArn : The Amazon Resource Name (ARN) of the behavior graph.

Parameter investigationId : The investigation ID of the investigation report.

Parameter state : The current state of the investigation. An archived investigation indicates you have completed reviewing the investigation.

Implementation

Future<void> updateInvestigationState({
  required String graphArn,
  required String investigationId,
  required State state,
}) async {
  final $payload = <String, dynamic>{
    'GraphArn': graphArn,
    'InvestigationId': investigationId,
    'State': state.value,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/investigations/updateInvestigationState',
    exceptionFnMap: _exceptionFns,
  );
}