Skip to content

iter_list_managed_data_identifiers async

iter_list_managed_data_identifiers(
    *,
    config_overrides: Optional[AsyncMacie2ClientConfig] = None,
    next_token: Optional[__string] = None,
) -> AsyncIterator[ManagedDataIdentifierSummary]
Source code in docs_src/capo_macie2/_services/async_macie2.py
async def iter_list_managed_data_identifiers(
    self,
    *,
    config_overrides: Optional[AsyncMacie2ClientConfig] = None,
    next_token: Optional["capo_macie2.types.__string.__string"] = None,
) -> "AsyncIterator[capo_macie2.types.managed_data_identifier_summary.ManagedDataIdentifierSummary]":
    _token = next_token
    while True:
        _response = await self.list_managed_data_identifiers(
            config_overrides=config_overrides,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break