describe_query_definitions
async
¶
describe_query_definitions(
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
query_language: Optional[QueryLanguage] = None,
query_definition_name_prefix: Optional[QueryDefinitionName] = None,
max_results: Optional[QueryListMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> 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.
Parameters:
-
query_language(Optional[QueryLanguage], default:None) –The query language used for this query. For more information about the query languages that CloudWatch Logs supports, see Supported query languages.
-
query_definition_name_prefix(Optional[QueryDefinitionName], default:None) –Use this parameter to filter your results to only the query definitions that have names that start with the prefix you specify.
-
max_results(Optional[QueryListMaxResults], default:None) –Limits the number of returned query definitions to the specified number.
Raises:
-
InvalidParameterException–A parameter is specified incorrectly.
-
ServiceUnavailableException–The service cannot complete the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_logs/_services/async_cloud_watch_logs.py
3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 | |