Skip to content

iter_describe_vpc_endpoint_connection_notifications async

iter_describe_vpc_endpoint_connection_notifications(
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    dry_run: Optional[Boolean] = None,
    connection_notification_id: Optional[ConnectionNotificationId] = None,
    filters: Optional[FilterList] = None,
    max_results: Optional[Integer] = None,
    next_token: Optional[String] = None,
) -> AsyncIterator[ConnectionNotification]
Source code in docs_src/capo_ec2/_services/async_ec2.py
async def iter_describe_vpc_endpoint_connection_notifications(
    self,
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
    connection_notification_id: Optional[
        "capo_ec2.types.connection_notification_id.ConnectionNotificationId"
    ] = None,
    filters: Optional["capo_ec2.types.filter_list.FilterList"] = None,
    max_results: Optional["capo_ec2.types.integer.Integer"] = None,
    next_token: Optional["capo_ec2.types.string.String"] = None,
) -> "AsyncIterator[capo_ec2.types.connection_notification.ConnectionNotification]":
    _token = next_token
    while True:
        _response = await self.describe_vpc_endpoint_connection_notifications(
            config_overrides=config_overrides,
            dry_run=dry_run,
            connection_notification_id=connection_notification_id,
            filters=filters,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("connection_notification_set",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break