Skip to content

Describe Query Definitions

cloudwatchlogs_describe_query_definitions R Documentation

This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions

Description

This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions. You can retrieve query definitions from the current account or from a source account that is linked to the current account.

You can use the queryDefinitionNamePrefix parameter to limit the results to only the query definitions that have names that start with a certain string.

Usage

cloudwatchlogs_describe_query_definitions(queryDefinitionNamePrefix,
  maxResults, nextToken)

Arguments

queryDefinitionNamePrefix

Use this parameter to filter your results to only the query definitions that have names that start with the prefix you specify.

maxResults

Limits the number of returned query definitions to the specified number.

nextToken

Value

A list with the following syntax:

list(
  queryDefinitions = list(
    list(
      queryDefinitionId = "string",
      name = "string",
      queryString = "string",
      lastModified = 123,
      logGroupNames = list(
        "string"
      )
    )
  ),
  nextToken = "string"
)

Request syntax

svc$describe_query_definitions(
  queryDefinitionNamePrefix = "string",
  maxResults = 123,
  nextToken = "string"
)