Skip to content

iter_get_plan_execution

iter_get_plan_execution(
    plan_arn: PlanArn,
    execution_id: ExecutionId,
    *,
    config_overrides: Optional[ARCRegionswitchClientConfig] = None,
    max_results: Optional[GetPlanExecutionStepStatesMaxResults] = None,
    next_token: Optional[str] = None,
) -> Iterator[StepState]
Source code in docs_src/capo_arc_region_switch/_services/arc_regionswitch.py
def iter_get_plan_execution(
    self,
    plan_arn: "capo_arc_region_switch.types.plan_arn.PlanArn",
    execution_id: "capo_arc_region_switch.types.execution_id.ExecutionId",
    *,
    config_overrides: Optional[ARCRegionswitchClientConfig] = None,
    max_results: Optional[
        "capo_arc_region_switch.types.get_plan_execution_step_states_max_results.GetPlanExecutionStepStatesMaxResults"
    ] = None,
    next_token: Optional[str] = None,
) -> "Iterator[capo_arc_region_switch.types.step_state.StepState]":
    _token = next_token
    while True:
        _response = self.get_plan_execution(
            plan_arn,
            execution_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("step_states",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break