Skip to content

iter_list_mitigation_actions async

iter_list_mitigation_actions(
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    action_type: Optional[MitigationActionType] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[MitigationActionIdentifier]
Source code in docs_src/capo_iot/_services/async_io_t.py
async def iter_list_mitigation_actions(
    self,
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    action_type: Optional[
        "capo_iot.types.mitigation_action_type.MitigationActionType"
    ] = None,
    max_results: Optional["capo_iot.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_iot.types.mitigation_action_identifier.MitigationActionIdentifier]":
    _token = next_token
    while True:
        _response = await self.list_mitigation_actions(
            config_overrides=config_overrides,
            action_type=action_type,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("action_identifiers",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break