Skip to content

Paginators#

Index > SSO > Paginators

Auto-generated documentation for SSO type annotations stubs module types-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 types_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 types_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: ListAccountRolesRequestPaginateTypeDef = {  # (1)
    "accessToken": ...,
    "accountId": ...,
}

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

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 types_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 types_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: ListAccountsRequestPaginateTypeDef = {  # (1)
    "accessToken": ...,
}

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