aws logs describe-query-definitions
This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--max-resultsLimits the number of returned query definitions to the specified number.--next-tokenThe token for the next set of items to return.--query-definition-name-prefixUse this parameter to filter your results to only the query definitions that have names that start with the prefix you specify.--query-languageThe query language used for this query.