Skip to content

Paginators#

Index > WorkSpacesWeb > Paginators

Auto-generated documentation for WorkSpacesWeb type annotations stubs module mypy-boto3-workspaces-web.

ListDataProtectionSettingsPaginator#

Type annotations and code completion for boto3.client("workspaces-web").get_paginator("list_data_protection_settings"). boto3 documentation

# ListDataProtectionSettingsPaginator usage example

from boto3.session import Session

from mypy_boto3_workspaces_web.paginator import ListDataProtectionSettingsPaginator

def get_list_data_protection_settings_paginator() -> ListDataProtectionSettingsPaginator:
    return Session().client("workspaces-web").get_paginator("list_data_protection_settings")
# ListDataProtectionSettingsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_workspaces_web.paginator import ListDataProtectionSettingsPaginator

session = Session()

client = Session().client("workspaces-web")  # (1)
paginator: ListDataProtectionSettingsPaginator = client.get_paginator("list_data_protection_settings")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: WorkSpacesWebClient
  2. paginator: ListDataProtectionSettingsPaginator
  3. item: ListDataProtectionSettingsResponseTypeDef

paginate#

Type annotations and code completion for ListDataProtectionSettingsPaginator.paginate method.

# paginate method definition

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

kwargs: ListDataProtectionSettingsRequestListDataProtectionSettingsPaginateTypeDef = {  # (1)
    "PaginationConfig": ...,
}

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

ListSessionsPaginator#

Type annotations and code completion for boto3.client("workspaces-web").get_paginator("list_sessions"). boto3 documentation

# ListSessionsPaginator usage example

from boto3.session import Session

from mypy_boto3_workspaces_web.paginator import ListSessionsPaginator

def get_list_sessions_paginator() -> ListSessionsPaginator:
    return Session().client("workspaces-web").get_paginator("list_sessions")
# ListSessionsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_workspaces_web.paginator import ListSessionsPaginator

session = Session()

client = Session().client("workspaces-web")  # (1)
paginator: ListSessionsPaginator = client.get_paginator("list_sessions")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: WorkSpacesWebClient
  2. paginator: ListSessionsPaginator
  3. item: ListSessionsResponseTypeDef

paginate#

Type annotations and code completion for ListSessionsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    portalId: str,
    sessionId: str = ...,
    sortBy: SessionSortByType = ...,  # (1)
    status: SessionStatusType = ...,  # (2)
    username: str = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (3)
) -> _PageIterator[ListSessionsResponseTypeDef]:  # (4)
    ...
  1. See SessionSortByType
  2. See SessionStatusType
  3. See PaginatorConfigTypeDef
  4. See ListSessionsResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListSessionsRequestListSessionsPaginateTypeDef = {  # (1)
    "portalId": ...,
}

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