cancelQuery method
Cancels 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 unique identifier of the query to cancel.
Implementation
Future<void> cancelQuery({
required String graphIdentifier,
required String queryId,
}) async {
final headers = <String, String>{
'graphIdentifier': graphIdentifier.toString(),
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/queries/${Uri.encodeComponent(queryId)}',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}