Skip to content

Paginators#

Index > UserNotificationsContacts > Paginators

Auto-generated documentation for UserNotificationsContacts type annotations stubs module mypy-boto3-notificationscontacts.

ListEmailContactsPaginator#

Type annotations and code completion for boto3.client("notificationscontacts").get_paginator("list_email_contacts"). boto3 documentation

# ListEmailContactsPaginator usage example

from boto3.session import Session

from mypy_boto3_notificationscontacts.paginator import ListEmailContactsPaginator

def get_list_email_contacts_paginator() -> ListEmailContactsPaginator:
    return Session().client("notificationscontacts").get_paginator("list_email_contacts")
# ListEmailContactsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_notificationscontacts.paginator import ListEmailContactsPaginator

session = Session()

client = Session().client("notificationscontacts")  # (1)
paginator: ListEmailContactsPaginator = client.get_paginator("list_email_contacts")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: UserNotificationsContactsClient
  2. paginator: ListEmailContactsPaginator
  3. item: ListEmailContactsResponseTypeDef

paginate#

Type annotations and code completion for ListEmailContactsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> _PageIterator[ListEmailContactsResponseTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListEmailContactsResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListEmailContactsRequestListEmailContactsPaginateTypeDef = {  # (1)
    "PaginationConfig": ...,
}

parent.paginate(**kwargs)
  1. See ListEmailContactsRequestListEmailContactsPaginateTypeDef