class QueryString
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.QueryString |
![]() | software.amazon.awscdk.services.logs.QueryString |
![]() | aws_cdk.aws_logs.QueryString |
![]() | @aws-cdk/aws-logs » QueryString |
Define a QueryString.
Example
new logs.QueryDefinition(this, 'QueryDefinition', {
queryDefinitionName: 'MyQuery',
queryString: new logs.QueryString({
fields: ['@timestamp', '@message'],
sort: '@timestamp desc',
limit: 20,
}),
});
Initializer
new QueryString(props?: QueryStringProps)
Parameters
- props
Query
String Props
Methods
Name | Description |
---|---|
to | String representation of this QueryString. |
toString()
public toString(): string
Returns
string
String representation of this QueryString.