Skip to content

Paginators#

Index > ServiceDiscovery > Paginators

Auto-generated documentation for ServiceDiscovery type annotations stubs module mypy-boto3-servicediscovery.

ListInstancesPaginator#

Type annotations and code completion for boto3.client("servicediscovery").get_paginator("list_instances"). boto3 documentation

# ListInstancesPaginator usage example

from boto3.session import Session

from mypy_boto3_servicediscovery.paginator import ListInstancesPaginator

def get_list_instances_paginator() -> ListInstancesPaginator:
    return Session().client("servicediscovery").get_paginator("list_instances")
# ListInstancesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_servicediscovery.paginator import ListInstancesPaginator

session = Session()

client = Session().client("servicediscovery")  # (1)
paginator: ListInstancesPaginator = client.get_paginator("list_instances")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ServiceDiscoveryClient
  2. paginator: ListInstancesPaginator
  3. item: ListInstancesResponseTypeDef

paginate#

Type annotations and code completion for ListInstancesPaginator.paginate method.

# paginate method definition

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

kwargs: ListInstancesRequestListInstancesPaginateTypeDef = {  # (1)
    "ServiceId": ...,
}

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

ListNamespacesPaginator#

Type annotations and code completion for boto3.client("servicediscovery").get_paginator("list_namespaces"). boto3 documentation

# ListNamespacesPaginator usage example

from boto3.session import Session

from mypy_boto3_servicediscovery.paginator import ListNamespacesPaginator

def get_list_namespaces_paginator() -> ListNamespacesPaginator:
    return Session().client("servicediscovery").get_paginator("list_namespaces")
# ListNamespacesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_servicediscovery.paginator import ListNamespacesPaginator

session = Session()

client = Session().client("servicediscovery")  # (1)
paginator: ListNamespacesPaginator = client.get_paginator("list_namespaces")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ServiceDiscoveryClient
  2. paginator: ListNamespacesPaginator
  3. item: ListNamespacesResponseTypeDef

paginate#

Type annotations and code completion for ListNamespacesPaginator.paginate method.

# paginate method definition

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

kwargs: ListNamespacesRequestListNamespacesPaginateTypeDef = {  # (1)
    "Filters": ...,
}

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

ListOperationsPaginator#

Type annotations and code completion for boto3.client("servicediscovery").get_paginator("list_operations"). boto3 documentation

# ListOperationsPaginator usage example

from boto3.session import Session

from mypy_boto3_servicediscovery.paginator import ListOperationsPaginator

def get_list_operations_paginator() -> ListOperationsPaginator:
    return Session().client("servicediscovery").get_paginator("list_operations")
# ListOperationsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_servicediscovery.paginator import ListOperationsPaginator

session = Session()

client = Session().client("servicediscovery")  # (1)
paginator: ListOperationsPaginator = client.get_paginator("list_operations")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ServiceDiscoveryClient
  2. paginator: ListOperationsPaginator
  3. item: ListOperationsResponseTypeDef

paginate#

Type annotations and code completion for ListOperationsPaginator.paginate method.

# paginate method definition

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

kwargs: ListOperationsRequestListOperationsPaginateTypeDef = {  # (1)
    "Filters": ...,
}

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

ListServicesPaginator#

Type annotations and code completion for boto3.client("servicediscovery").get_paginator("list_services"). boto3 documentation

# ListServicesPaginator usage example

from boto3.session import Session

from mypy_boto3_servicediscovery.paginator import ListServicesPaginator

def get_list_services_paginator() -> ListServicesPaginator:
    return Session().client("servicediscovery").get_paginator("list_services")
# ListServicesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_servicediscovery.paginator import ListServicesPaginator

session = Session()

client = Session().client("servicediscovery")  # (1)
paginator: ListServicesPaginator = client.get_paginator("list_services")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ServiceDiscoveryClient
  2. paginator: ListServicesPaginator
  3. item: ListServicesResponseTypeDef

paginate#

Type annotations and code completion for ListServicesPaginator.paginate method.

# paginate method definition

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

kwargs: ListServicesRequestListServicesPaginateTypeDef = {  # (1)
    "Filters": ...,
}

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