Skip to content

iter_list_virtual_mfa_devices async

iter_list_virtual_mfa_devices(
    *,
    config_overrides: Optional[AsyncIAMClientConfig] = None,
    assignment_status: Optional[assignmentStatusType] = None,
    marker: Optional[markerType] = None,
    max_items: Optional[maxItemsType] = None,
) -> AsyncIterator[VirtualMFADevice]
Source code in docs_src/capo_iam/_services/async_iam.py
async def iter_list_virtual_mfa_devices(
    self,
    *,
    config_overrides: Optional[AsyncIAMClientConfig] = None,
    assignment_status: Optional[
        "capo_iam.types.assignment_status_type.assignmentStatusType"
    ] = None,
    marker: Optional["capo_iam.types.marker_type.markerType"] = None,
    max_items: Optional["capo_iam.types.max_items_type.maxItemsType"] = None,
) -> "AsyncIterator[capo_iam.types.virtual_mfa_device.VirtualMFADevice]":
    _token = marker
    while True:
        _response = await self.list_virtual_mfa_devices(
            config_overrides=config_overrides,
            assignment_status=assignment_status,
            marker=_token,
            max_items=max_items,
        )
        _page = _resolve_path(_response, ("virtual_mfa_devices",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("marker",))
        if not _token or not _resolve_path(_response, ("is_truncated",)):
            break