Skip to content

iter_list_notifications async

iter_list_notifications(
    *,
    config_overrides: Optional[AsyncWellArchitectedClientConfig] = None,
    workload_id: Optional[WorkloadId] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    resource_arn: Optional[ResourceArn] = None,
) -> AsyncIterator[ListNotificationsOutput]
Source code in docs_src/capo_wellarchitected/_services/async_well_architected.py
async def iter_list_notifications(
    self,
    *,
    config_overrides: Optional[AsyncWellArchitectedClientConfig] = None,
    workload_id: Optional[
        "capo_wellarchitected.types.workload_id.WorkloadId"
    ] = None,
    next_token: Optional["capo_wellarchitected.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_wellarchitected.types.max_results.MaxResults"
    ] = None,
    resource_arn: Optional[
        "capo_wellarchitected.types.resource_arn.ResourceArn"
    ] = None,
) -> "AsyncIterator[capo_wellarchitected.types.list_notifications_output.ListNotificationsOutput]":
    _token = next_token
    while True:
        _response = await self.list_notifications(
            config_overrides=config_overrides,
            workload_id=workload_id,
            next_token=_token,
            max_results=max_results,
            resource_arn=resource_arn,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break