interface CfnQueryDefinitionProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.CfnQueryDefinitionProps |
![]() | software.amazon.awscdk.services.logs.CfnQueryDefinitionProps |
![]() | aws_cdk.aws_logs.CfnQueryDefinitionProps |
![]() | @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.