Paginators#
Index > ConnectCampaignService > Paginators
Auto-generated documentation for ConnectCampaignService type annotations stubs module types-boto3-connectcampaigns.
ListCampaignsPaginator#
Type annotations and code completion for boto3.client("connectcampaigns").get_paginator("list_campaigns")
.
boto3 documentation
# ListCampaignsPaginator usage example
from boto3.session import Session
from types_boto3_connectcampaigns.paginator import ListCampaignsPaginator
def get_list_campaigns_paginator() -> ListCampaignsPaginator:
return Session().client("connectcampaigns").get_paginator("list_campaigns")
# ListCampaignsPaginator usage example with type annotations
from boto3.session import Session
from types_boto3_connectcampaigns.paginator import ListCampaignsPaginator
session = Session()
client = Session().client("connectcampaigns") # (1)
paginator: ListCampaignsPaginator = client.get_paginator("list_campaigns") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: ConnectCampaignServiceClient
- paginator: ListCampaignsPaginator
- item: ListCampaignsResponseTypeDef
paginate#
Type annotations and code completion for ListCampaignsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
filters: CampaignFiltersTypeDef = ..., # (1)
PaginationConfig: PaginatorConfigTypeDef = ..., # (2)
) -> PageIterator[ListCampaignsResponseTypeDef]: # (3)
...
# paginate method usage example with argument unpacking
kwargs: ListCampaignsRequestPaginateTypeDef = { # (1)
"filters": ...,
}
parent.paginate(**kwargs)