describeQueryDefinitions

abstract suspend fun describeQueryDefinitions(input: DescribeQueryDefinitionsRequest = DescribeQueryDefinitionsRequest { }): DescribeQueryDefinitionsResponse

This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions. You can retrieve query definitions from the current account or from a source account that is linked to the current account.

You can use the queryDefinitionNamePrefix parameter to limit the results to only the query definitions that have names that start with a certain string.