Skip to content

iter_describe_configuration_templates

iter_describe_configuration_templates(
    *,
    config_overrides: Optional[CloudWatchLogsClientConfig] = None,
    service: Optional[Service] = None,
    log_types: Optional[LogTypes] = None,
    resource_types: Optional[ResourceTypes] = None,
    delivery_destination_types: Optional[DeliveryDestinationTypes] = None,
    next_token: Optional[NextToken] = None,
    limit: Optional[DescribeLimit] = None,
) -> Iterator[ConfigurationTemplate]
Source code in docs_src/capo_cloudwatch_logs/_services/cloud_watch_logs.py
def iter_describe_configuration_templates(
    self,
    *,
    config_overrides: Optional[CloudWatchLogsClientConfig] = None,
    service: Optional["capo_cloudwatch_logs.types.service.Service"] = None,
    log_types: Optional["capo_cloudwatch_logs.types.log_types.LogTypes"] = None,
    resource_types: Optional[
        "capo_cloudwatch_logs.types.resource_types.ResourceTypes"
    ] = None,
    delivery_destination_types: Optional[
        "capo_cloudwatch_logs.types.delivery_destination_types.DeliveryDestinationTypes"
    ] = None,
    next_token: Optional["capo_cloudwatch_logs.types.next_token.NextToken"] = None,
    limit: Optional[
        "capo_cloudwatch_logs.types.describe_limit.DescribeLimit"
    ] = None,
) -> "Iterator[capo_cloudwatch_logs.types.configuration_template.ConfigurationTemplate]":
    _token = next_token
    while True:
        _response = self.describe_configuration_templates(
            config_overrides=config_overrides,
            service=service,
            log_types=log_types,
            resource_types=resource_types,
            delivery_destination_types=delivery_destination_types,
            next_token=_token,
            limit=limit,
        )
        _page = _resolve_path(_response, ("configuration_templates",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break