aws logs put-query-definition
Creates or updates a query definition for CloudWatch Logs Insights. AWS CLI reference
7 options Its page in the AWS CLI reference
Options
--client-tokenUsed as an idempotency token, to avoid returning an exception if the service receives the same request twice because of a network error.--log-group-namesUse this parameter to include specific log groups as part of your query definition.--nameA name for the query definition.--parametersUse this parameter to include specific query parameters as part of your query definition.--query-definition-idIf you are updating a query definition, use this parameter to specify the ID of the query definition that you want to update.--query-languageSpecify the query language to use for this query.--query-stringThe query string to use for this definition.