interface QueryDefinitionProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Logs.QueryDefinitionProps |
Java | software.amazon.awscdk.services.logs.QueryDefinitionProps |
Python | aws_cdk.aws_logs.QueryDefinitionProps |
TypeScript (source) | @aws-cdk/aws-logs » QueryDefinitionProps |
Properties for a QueryDefinition.
Example
new logs.QueryDefinition(this, 'QueryDefinition', {
queryDefinitionName: 'MyQuery',
queryString: new logs.QueryString({
fields: ['@timestamp', '@message'],
sort: '@timestamp desc',
limit: 20,
}),
});
Properties
Name | Type | Description |
---|---|---|
query | string | Name of the query definition. |
query | Query | The query string to use for this query definition. |
log | ILog [] | Specify certain log groups for the query definition. |
queryDefinitionName
Type:
string
Name of the query definition.
queryString
Type:
Query
The query string to use for this query definition.
logGroups?
Type:
ILog
[]
(optional, default: no specified log groups)
Specify certain log groups for the query definition.