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)
- client: WorkSpacesWebClient
- paginator: ListDataProtectionSettingsPaginator
- item: ListDataProtectionSettingsResponseTypeDef
paginate#
Type annotations and code completion for ListDataProtectionSettingsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> PageIterator[ListDataProtectionSettingsResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListDataProtectionSettingsRequestPaginateTypeDef = { # (1)
"PaginationConfig": ...,
}
parent.paginate(**kwargs)
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)
- client: WorkSpacesWebClient
- paginator: ListSessionsPaginator
- 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)
...
- See SessionSortByType
- See SessionStatusType
- See PaginatorConfigTypeDef
- See ListSessionsResponseTypeDef
# paginate method usage example with argument unpacking
kwargs: ListSessionsRequestPaginateTypeDef = { # (1)
"portalId": ...,
}
parent.paginate(**kwargs)