Skip to content

iter_list_distributions_by_trust_store async

iter_list_distributions_by_trust_store(
    trust_store_identifier: string,
    *,
    config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
    marker: Optional[string] = None,
    max_items: Optional[integer] = None,
) -> AsyncIterator[DistributionSummary]
Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
async def iter_list_distributions_by_trust_store(
    self,
    trust_store_identifier: "capo_cloudfront.types.string.string",
    *,
    config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
    marker: Optional["capo_cloudfront.types.string.string"] = None,
    max_items: Optional["capo_cloudfront.types.integer.integer"] = None,
) -> (
    "AsyncIterator[capo_cloudfront.types.distribution_summary.DistributionSummary]"
):
    _token = marker
    while True:
        _response = await self.list_distributions_by_trust_store(
            trust_store_identifier,
            config_overrides=config_overrides,
            marker=_token,
            max_items=max_items,
        )
        _page = _resolve_path(_response, ("distribution_list", "items"))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("distribution_list", "next_marker"))
        if not _token:
            break