AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Logs::ScheduledQuery

CfnScheduledQuery

Creates a new Scheduled Query that allows you to define a Logs Insights query that will run on a schedule and configure actions to take with the query results.

Import

import { CfnScheduledQuery } from 'aws-cdk-lib/aws-logs';

Or use the module namespace:

import * as logs from 'aws-cdk-lib/aws-logs';
// logs.CfnScheduledQuery

Properties

Configuration passed to the constructor as CfnScheduledQueryProps.

executionRoleArnRequired
string
nameRequired
string
queryLanguageRequired
string
queryStringRequired
string
scheduleExpressionRequired
string
descriptionOptional
string
destinationConfigurationOptional
IResolvable | DestinationConfigurationProperty
logGroupIdentifiersOptional
string[]
scheduleEndTimeOptional
number
scheduleStartTimeOptional
number
startTimeOffsetOptional
number
stateOptional
string
tagsOptional
TagsItemsProperty[]
timezoneOptional
string

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter