getJob method

Future<GetJobResponse> getJob({
  1. required String jobArn,
  2. List<HybridJobAdditionalAttributeName>? additionalAttributeNames,
})

Retrieves the specified Amazon Braket hybrid job.

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

Parameter jobArn : The ARN of the hybrid job to retrieve.

Parameter additionalAttributeNames : A list of attributes to return additional information for. Only the QueueInfo additional attribute name is currently supported.

Implementation

Future<GetJobResponse> getJob({
  required String jobArn,
  List<HybridJobAdditionalAttributeName>? additionalAttributeNames,
}) async {
  final $query = <String, List<String>>{
    if (additionalAttributeNames != null)
      'additionalAttributeNames':
          additionalAttributeNames.map((e) => e.value).toList(),
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/job/${Uri.encodeComponent(jobArn)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetJobResponse.fromJson(response);
}