CancelQuery
Cancels a query that has been issued. Cancellation is provided only if the query has
not completed running before the cancellation request was issued. Because cancellation
is an idempotent operation, subsequent cancellation requests will return a
CancellationMessage
, indicating that the query has already been
canceled. See code
sample for details.
Request Syntax
{
"QueryId": "string
"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- QueryId
-
The ID of the query that needs to be cancelled.
QueryID
is returned as part of the query result.Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[a-zA-Z0-9]+
Required: Yes
Response Syntax
{
"CancellationMessage": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- CancellationMessage
-
A
CancellationMessage
is returned when aCancelQuery
request for the query specified byQueryId
has already been issued.Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
You do not have the necessary permissions to access the account settings.
HTTP Status Code: 400
- InternalServerException
-
An internal server error occurred while processing the request.
HTTP Status Code: 400
- InvalidEndpointException
-
The requested endpoint is invalid.
HTTP Status Code: 400
- ThrottlingException
-
The request was throttled due to excessive requests.
HTTP Status Code: 400
- ValidationException
-
Invalid or malformed request.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: