cancelJob method

Future<CancelJobResponse> cancelJob({
  1. required String jobArn,
})

Cancels an Amazon Braket hybrid job.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServiceException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter jobArn : The ARN of the Amazon Braket hybrid job to cancel.

Implementation

Future<CancelJobResponse> cancelJob({
  required String jobArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'PUT',
    requestUri: '/job/${Uri.encodeComponent(jobArn)}/cancel',
    exceptionFnMap: _exceptionFns,
  );
  return CancelJobResponse.fromJson(response);
}