Skip to content

iter_list_managed_notification_channel_associations

iter_list_managed_notification_channel_associations(
    managed_notification_configuration_arn: ManagedNotificationConfigurationOsArn,
    *,
    config_overrides: Optional[NotificationsClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[NextToken] = None,
) -> Iterator[ManagedNotificationChannelAssociationSummary]
Source code in docs_src/capo_notifications/_services/notifications.py
def iter_list_managed_notification_channel_associations(
    self,
    managed_notification_configuration_arn: "capo_notifications.types.managed_notification_configuration_os_arn.ManagedNotificationConfigurationOsArn",
    *,
    config_overrides: Optional[NotificationsClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_notifications.types.next_token.NextToken"] = None,
) -> "Iterator[capo_notifications.types.managed_notification_channel_association_summary.ManagedNotificationChannelAssociationSummary]":
    _token = next_token
    while True:
        _response = self.list_managed_notification_channel_associations(
            managed_notification_configuration_arn,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("channel_associations",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break