interface CfnQueryDefinitionMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Logs.CfnQueryDefinitionMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awslogs#CfnQueryDefinitionMixinProps |
Java | software.amazon.awscdk.cfnpropertymixins.services.logs.CfnQueryDefinitionMixinProps |
Python | aws_cdk.cfn_property_mixins.aws_logs.CfnQueryDefinitionMixinProps |
TypeScript | @aws-cdk/cfn-property-mixins » aws_logs » 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 { aws_logs as logs } from '@aws-cdk/cfn-property-mixins';
const cfnQueryDefinitionMixinProps: logs.CfnQueryDefinitionMixinProps = {
logGroupNames: ['logGroupNames'],
name: 'name',
parameters: [{
defaultValue: 'defaultValue',
description: 'description',
name: 'name',
}],
queryLanguage: 'queryLanguage',
queryString: 'queryString',
};
Properties
| Name | Type | Description |
|---|---|---|
| log | (string | ILog)[] | Use this parameter if you want the query to query only certain log groups. |
| name? | string | A name for the query definition. |
| parameters? | IResolvable | (IResolvable | Query)[] | Use this parameter to include specific query parameters as part of your 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 | ILog)[]
(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*.
parameters?
Type:
IResolvable | (IResolvable | Query)[]
(optional)
Use this parameter to include specific query parameters as part of your query definition.
Query parameters are supported only for Logs Insights QL queries. Query parameters allow you to use placeholder variables in your query string that are substituted with values at execution time. Use the {{parameterName}} syntax in your query string to reference a parameter.
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