Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

stop_query

stop_query(**kwargs)

Stops a CloudWatch Logs Insights query that is in progress. If the query has already ended, the operation returns an error indicating that the specified query is not running.

See also: AWS API Documentation

Request Syntax

response = client.stop_query(
    queryId='string'
)
Parameters
queryId (string) --

[REQUIRED]

The ID number of the query to stop. To find this ID number, use DescribeQueries .

Return type
dict
Returns
Response Syntax
{
    'success': True|False
}

Response Structure

  • (dict) --
    • success (boolean) --

      This is true if the query was stopped by the StopQuery operation.

Exceptions

  • CloudWatchLogs.Client.exceptions.InvalidParameterException
  • CloudWatchLogs.Client.exceptions.ResourceNotFoundException
  • CloudWatchLogs.Client.exceptions.ServiceUnavailableException