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)
- client: ServiceDiscoveryClient
- paginator: ListInstancesPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: ListInstancesRequestPaginateTypeDef = { # (1)
"ServiceId": ...,
}
parent.paginate(**kwargs)
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)
- client: ServiceDiscoveryClient
- paginator: ListNamespacesPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: ListNamespacesRequestPaginateTypeDef = { # (1)
"Filters": ...,
}
parent.paginate(**kwargs)
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)
- client: ServiceDiscoveryClient
- paginator: ListOperationsPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: ListOperationsRequestPaginateTypeDef = { # (1)
"Filters": ...,
}
parent.paginate(**kwargs)
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)
- client: ServiceDiscoveryClient
- paginator: ListServicesPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: ListServicesRequestPaginateTypeDef = { # (1)
"Filters": ...,
}
parent.paginate(**kwargs)