getQuery method

Future<GetQueryOutput> getQuery({
  1. required String graphIdentifier,
  2. required String queryId,
})

Retrieves the status of a specified query.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter graphIdentifier : The unique identifier of the Neptune Analytics graph.

Parameter queryId : The ID of the query in question.

Implementation

Future<GetQueryOutput> getQuery({
  required String graphIdentifier,
  required String queryId,
}) async {
  final headers = <String, String>{
    'graphIdentifier': graphIdentifier.toString(),
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/queries/${Uri.encodeComponent(queryId)}',
    headers: headers,
    endpoint: _resolveEndpoint(
      apiType: 'DataPlane',
    ),
    hostPrefix: '${graphIdentifier}.',
    exceptionFnMap: _exceptionFns,
  );
  return GetQueryOutput.fromJson(response);
}