IoTSiteWise / Client / cancel_query
cancel_query¶
- IoTSiteWise.Client.cancel_query(**kwargs)¶
Cancels a running query.
See also: AWS API Documentation
Request Syntax
response = client.cancel_query( workspaceName='string', queryId='string' )
- Parameters:
workspaceName (string) –
[REQUIRED]
The name of the workspace associated with the query.
queryId (string) –
[REQUIRED]
The unique identifier for the query execution to cancel.
- Return type:
dict
- Returns:
Response Syntax
{ 'queryId': 'string', 'status': 'SUBMITTED'|'RUNNING'|'COMPLETED'|'FAILED'|'CANCELED'|'CANCELING' }
Response Structure
(dict) –
Contains the response for the CancelQuery operation.
queryId (string) –
The unique identifier for the cancelled query.
status (string) –
The current query status.
Exceptions
IoTSiteWise.Client.exceptions.InternalFailureExceptionIoTSiteWise.Client.exceptions.AccessDeniedExceptionIoTSiteWise.Client.exceptions.InvalidRequestExceptionIoTSiteWise.Client.exceptions.ResourceNotFoundExceptionIoTSiteWise.Client.exceptions.ThrottlingExceptionIoTSiteWise.Client.exceptions.ConflictingOperationException