Skip to content

Paginators#

Index > KeyspacesStreams > Paginators

Auto-generated documentation for KeyspacesStreams type annotations stubs module mypy-boto3-keyspacesstreams.

GetStreamPaginator#

Type annotations and code completion for boto3.client("keyspacesstreams").get_paginator("get_stream"). boto3 documentation

# GetStreamPaginator usage example

from boto3.session import Session

from mypy_boto3_keyspacesstreams.paginator import GetStreamPaginator

def get_get_stream_paginator() -> GetStreamPaginator:
    return Session().client("keyspacesstreams").get_paginator("get_stream")
# GetStreamPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_keyspacesstreams.paginator import GetStreamPaginator

session = Session()

client = Session().client("keyspacesstreams")  # (1)
paginator: GetStreamPaginator = client.get_paginator("get_stream")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: KeyspacesStreamsClient
  2. paginator: GetStreamPaginator
  3. item: PageIterator[GetStreamOutputTypeDef]

paginate#

Type annotations and code completion for GetStreamPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    streamArn: str,
    shardFilter: ShardFilterTypeDef = ...,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> botocore.paginate.PageIterator[GetStreamOutputTypeDef]:  # (3)
    ...
  1. See ShardFilterTypeDef
  2. See PaginatorConfigTypeDef
  3. See PageIterator[GetStreamOutputTypeDef]
# paginate method usage example with argument unpacking

kwargs: GetStreamInputPaginateTypeDef = {  # (1)
    "streamArn": ...,
}

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

ListStreamsPaginator#

Type annotations and code completion for boto3.client("keyspacesstreams").get_paginator("list_streams"). boto3 documentation

# ListStreamsPaginator usage example

from boto3.session import Session

from mypy_boto3_keyspacesstreams.paginator import ListStreamsPaginator

def get_list_streams_paginator() -> ListStreamsPaginator:
    return Session().client("keyspacesstreams").get_paginator("list_streams")
# ListStreamsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_keyspacesstreams.paginator import ListStreamsPaginator

session = Session()

client = Session().client("keyspacesstreams")  # (1)
paginator: ListStreamsPaginator = client.get_paginator("list_streams")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: KeyspacesStreamsClient
  2. paginator: ListStreamsPaginator
  3. item: PageIterator[ListStreamsOutputTypeDef]

paginate#

Type annotations and code completion for ListStreamsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    keyspaceName: str = ...,
    tableName: str = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> botocore.paginate.PageIterator[ListStreamsOutputTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See PageIterator[ListStreamsOutputTypeDef]
# paginate method usage example with argument unpacking

kwargs: ListStreamsInputPaginateTypeDef = {  # (1)
    "keyspaceName": ...,
}

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