Skip to content

iter_get_plan_evaluation_status async

iter_get_plan_evaluation_status(
    plan_arn: PlanArn,
    *,
    config_overrides: Optional[AsyncARCRegionswitchClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ResourceWarning]
Source code in docs_src/capo_arc_region_switch/_services/async_arc_regionswitch.py
async def iter_get_plan_evaluation_status(
    self,
    plan_arn: "capo_arc_region_switch.types.plan_arn.PlanArn",
    *,
    config_overrides: Optional[AsyncARCRegionswitchClientConfig] = None,
    max_results: Optional[
        "capo_arc_region_switch.types.max_results.MaxResults"
    ] = None,
    next_token: Optional[
        "capo_arc_region_switch.types.next_token.NextToken"
    ] = None,
) -> "AsyncIterator[capo_arc_region_switch.types.resource_warning.ResourceWarning]":
    _token = next_token
    while True:
        _response = await self.get_plan_evaluation_status(
            plan_arn,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("warnings",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break