aws-cdk-lib.aws_logs.CfnQueryDefinitionProps

interface CfnQueryDefinitionProps

LanguageType name
.NETAmazon.CDK.AWS.Logs.CfnQueryDefinitionProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslogs#CfnQueryDefinitionProps
Javasoftware.amazon.awscdk.services.logs.CfnQueryDefinitionProps
Pythonaws_cdk.aws_logs.CfnQueryDefinitionProps
TypeScript aws-cdk-lib » 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 { aws_logs as logs } from 'aws-cdk-lib';
const cfnQueryDefinitionProps: logs.CfnQueryDefinitionProps = {
  name: 'name',
  queryString: 'queryString',

  // the properties below are optional
  logGroupNames: ['logGroupNames'],
};

Properties

NameTypeDescription
namestringA name for the query definition.
queryStringstringThe query string to use for this query definition.
logGroupNames?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.