Skip to content

Paginators#

Index > SSO > Paginators

Auto-generated documentation for SSO type annotations stubs module mypy-boto3-sso.

ListAccountRolesPaginator#

Type annotations and code completion for boto3.client("sso").get_paginator("list_account_roles"). boto3 documentation

# ListAccountRolesPaginator usage example

from boto3.session import Session

from mypy_boto3_sso.paginator import ListAccountRolesPaginator

def get_list_account_roles_paginator() -> ListAccountRolesPaginator:
    return Session().client("sso").get_paginator("list_account_roles")
# ListAccountRolesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_sso.paginator import ListAccountRolesPaginator

session = Session()

client = Session().client("sso")  # (1)
paginator: ListAccountRolesPaginator = client.get_paginator("list_account_roles")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: SSOClient
  2. paginator: ListAccountRolesPaginator
  3. item: ListAccountRolesResponseTypeDef

paginate#

Type annotations and code completion for ListAccountRolesPaginator.paginate method.

# paginate method definition

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

kwargs: ListAccountRolesRequestListAccountRolesPaginateTypeDef = {  # (1)
    "accessToken": ...,
    "accountId": ...,
}

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

ListAccountsPaginator#

Type annotations and code completion for boto3.client("sso").get_paginator("list_accounts"). boto3 documentation

# ListAccountsPaginator usage example

from boto3.session import Session

from mypy_boto3_sso.paginator import ListAccountsPaginator

def get_list_accounts_paginator() -> ListAccountsPaginator:
    return Session().client("sso").get_paginator("list_accounts")
# ListAccountsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_sso.paginator import ListAccountsPaginator

session = Session()

client = Session().client("sso")  # (1)
paginator: ListAccountsPaginator = client.get_paginator("list_accounts")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: SSOClient
  2. paginator: ListAccountsPaginator
  3. item: ListAccountsResponseTypeDef

paginate#

Type annotations and code completion for ListAccountsPaginator.paginate method.

# paginate method definition

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

kwargs: ListAccountsRequestListAccountsPaginateTypeDef = {  # (1)
    "accessToken": ...,
}

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