class QueryString
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Logs.QueryString |
Java | software.amazon.awscdk.services.logs.QueryString |
Python | aws_cdk.aws_logs.QueryString |
TypeScript (source) | @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
QueryString Props
Methods
| Name | Description |
|---|---|
| to | String representation of this QueryString. |
toString()
public toString(): string
Returns
string
String representation of this QueryString.

.NET
Java
Python
TypeScript (