Skip to content

iter_list_detect_mitigation_actions_executions async

iter_list_detect_mitigation_actions_executions(
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    task_id: Optional[MitigationActionsTaskId] = None,
    violation_id: Optional[ViolationId] = None,
    thing_name: Optional[DeviceDefenderThingName] = None,
    start_time: Optional[Timestamp] = None,
    end_time: Optional[Timestamp] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[DetectMitigationActionExecution]
Source code in docs_src/capo_iot/_services/async_io_t.py
async def iter_list_detect_mitigation_actions_executions(
    self,
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    task_id: Optional[
        "capo_iot.types.mitigation_actions_task_id.MitigationActionsTaskId"
    ] = None,
    violation_id: Optional["capo_iot.types.violation_id.ViolationId"] = None,
    thing_name: Optional[
        "capo_iot.types.device_defender_thing_name.DeviceDefenderThingName"
    ] = None,
    start_time: Optional["capo_iot.types.timestamp.Timestamp"] = None,
    end_time: Optional["capo_iot.types.timestamp.Timestamp"] = 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.detect_mitigation_action_execution.DetectMitigationActionExecution]":
    _token = next_token
    while True:
        _response = await self.list_detect_mitigation_actions_executions(
            config_overrides=config_overrides,
            task_id=task_id,
            violation_id=violation_id,
            thing_name=thing_name,
            start_time=start_time,
            end_time=end_time,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("actions_executions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break