interface CfnQueryDefinitionMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins.CfnQueryDefinitionMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs/mixins#CfnQueryDefinitionMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.logs.mixins.CfnQueryDefinitionMixinProps |
Python | aws_cdk.mixins_preview.aws_logs.mixins.CfnQueryDefinitionMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_logs » mixins » CfnQueryDefinitionMixinProps |
Properties for CfnQueryDefinitionPropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as logs_mixins } from '@aws-cdk/mixins-preview/aws-logs';
const cfnQueryDefinitionMixinProps: logs_mixins.CfnQueryDefinitionMixinProps = {
logGroupNames: ['logGroupNames'],
name: 'name',
queryLanguage: 'queryLanguage',
queryString: 'queryString',
};
Properties
| Name | Type | Description |
|---|---|---|
| log | string[] | Use this parameter if you want the query to query only certain log groups. |
| name? | string | A name for the query definition. |
| query | string | The query language used for this query. |
| query | string | The query string to use for this query definition. |
logGroupNames?
Type:
string[]
(optional)
Use this parameter if you want the query to query only certain log groups.
name?
Type:
string
(optional)
A name for the query definition.
You can use the name to create a folder structure for your queries. To create a folder, use a forward slash (/) to prefix your desired query name with your desired folder name. For example,
*folder-name* / *query-name*.
queryLanguage?
Type:
string
(optional, default: "CWLI")
The query language used for this query.
For more information about the query languages that CloudWatch Logs supports, see Supported query languages .
queryString?
Type:
string
(optional)
The query string to use for this query definition.
For more information, see CloudWatch Logs Insights Query Syntax .

.NET
Go
Java
Python
TypeScript