Define a query definition for CloudWatch Logs Insights.
import { QueryDefinition } from 'aws-cdk-lib/aws-logs';Or use the module namespace:
import * as logs from 'aws-cdk-lib/aws-logs';
// logs.QueryDefinitionConfiguration passed to the constructor as QueryDefinitionProps.
queryDefinitionNameRequiredstringName of the query definition.
queryStringRequiredQueryStringThe query string to use for this query definition.
logGroupsOptionalILogGroupRef[]Specify certain log groups for the query definition.
Default: - no specified log groups
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-logs