Skip to content

Stop Query

cloudwatchlogs_stop_query R Documentation

Stops a CloudWatch Logs Insights query that is in progress

Description

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.

This operation can be used to cancel both interactive queries and individual scheduled query executions. When used with scheduled queries, stop_query cancels only the specific execution identified by the query ID, not the scheduled query configuration itself.

Usage

cloudwatchlogs_stop_query(queryId)

Arguments

queryId

[required] The ID number of the query to stop. To find this ID number, use describe_queries.

Value

A list with the following syntax:

list(
  success = TRUE|FALSE
)

Request syntax

svc$stop_query(
  queryId = "string"
)