Skip to content

List Scheduled Queries

cloudwatchlogs_list_scheduled_queries R Documentation

Lists all scheduled queries in your account and region

Description

Lists all scheduled queries in your account and region. You can filter results by state to show only enabled or disabled queries.

Usage

cloudwatchlogs_list_scheduled_queries(maxResults, nextToken, state)

Arguments

maxResults

The maximum number of scheduled queries to return. Valid range is 1 to 1000.

nextToken

The token for the next set of items to return. The token expires after 24 hours.

state

Filter scheduled queries by state. Valid values are ENABLED and DISABLED. If not specified, all scheduled queries are returned.

Value

A list with the following syntax:

list(
  nextToken = "string",
  scheduledQueries = list(
    list(
      scheduledQueryArn = "string",
      name = "string",
      state = "ENABLED"|"DISABLED",
      lastTriggeredTime = 123,
      lastExecutionStatus = "Running"|"InvalidQuery"|"Complete"|"Failed"|"Timeout",
      scheduleExpression = "string",
      timezone = "string",
      destinationConfiguration = list(
        s3Configuration = list(
          destinationIdentifier = "string",
          roleArn = "string",
          ownerAccountId = "string",
          kmsKeyId = "string"
        )
      ),
      creationTime = 123,
      lastUpdatedTime = 123
    )
  )
)

Request syntax

svc$list_scheduled_queries(
  maxResults = 123,
  nextToken = "string",
  state = "ENABLED"|"DISABLED"
)