interface CfnQueryDefinitionProps
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.Logs.CfnQueryDefinitionProps | 
  Java | software.amazon.awscdk.services.logs.CfnQueryDefinitionProps | 
  Python | aws_cdk.aws_logs.CfnQueryDefinitionProps | 
  TypeScript  | @aws-cdk/aws-logs » CfnQueryDefinitionProps | 
Properties for defining a CfnQueryDefinition.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as logs from '@aws-cdk/aws-logs';
const cfnQueryDefinitionProps: logs.CfnQueryDefinitionProps = {
  name: 'name',
  queryString: 'queryString',
  // the properties below are optional
  logGroupNames: ['logGroupNames'],
};
Properties
| Name | Type | Description | 
|---|---|---|
| name | string | A name for the query definition. | 
| query | string | The query string to use for this query definition. | 
| log | string[] | Use this parameter if you want the query to query only certain log groups. | 
name
Type:
string
A name for the query definition.
queryString
Type:
string
The query string to use for this query definition.
For more information, see CloudWatch Logs Insights Query Syntax .
logGroupNames?
Type:
string[]
(optional)
Use this parameter if you want the query to query only certain log groups.

 .NET
 Java
 Python
 TypeScript