Skip to content

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,
  scheduleType)

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.

  • scheduleType

    Filter scheduled queries by schedule type. Valid values are CUSTOMER_MANAGED and AWS_MANAGED. If not specified, scheduled queries of all schedule types are returned.

Value

A list with the following syntax:

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

Request syntax

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