Paginators#
Auto-generated documentation for Account type annotations stubs module types-boto3-account.
ListRegionsPaginator#
Type annotations and code completion for boto3.client("account").get_paginator("list_regions")
.
boto3 documentation
# ListRegionsPaginator usage example
from boto3.session import Session
from types_boto3_account.paginator import ListRegionsPaginator
def get_list_regions_paginator() -> ListRegionsPaginator:
return Session().client("account").get_paginator("list_regions")
# ListRegionsPaginator usage example with type annotations
from boto3.session import Session
from types_boto3_account.paginator import ListRegionsPaginator
session = Session()
client = Session().client("account") # (1)
paginator: ListRegionsPaginator = client.get_paginator("list_regions") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: AccountClient
- paginator: ListRegionsPaginator
- item: ListRegionsResponseTypeDef
paginate#
Type annotations and code completion for ListRegionsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
AccountId: str = ...,
RegionOptStatusContains: Sequence[RegionOptStatusType] = ..., # (1)
PaginationConfig: PaginatorConfigTypeDef = ..., # (2)
) -> PageIterator[ListRegionsResponseTypeDef]: # (3)
...
# paginate method usage example with argument unpacking
kwargs: ListRegionsRequestPaginateTypeDef = { # (1)
"AccountId": ...,
}
parent.paginate(**kwargs)