Skip to content

Paginators#

Index > Kinesis > Paginators

Auto-generated documentation for Kinesis type annotations stubs module mypy-boto3-kinesis.

DescribeStreamPaginator#

Type annotations and code completion for boto3.client("kinesis").get_paginator("describe_stream"). boto3 documentation

# DescribeStreamPaginator usage example

from boto3.session import Session

from mypy_boto3_kinesis.paginator import DescribeStreamPaginator

def get_describe_stream_paginator() -> DescribeStreamPaginator:
    return Session().client("kinesis").get_paginator("describe_stream")
# DescribeStreamPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_kinesis.paginator import DescribeStreamPaginator

session = Session()

client = Session().client("kinesis")  # (1)
paginator: DescribeStreamPaginator = client.get_paginator("describe_stream")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: KinesisClient
  2. paginator: DescribeStreamPaginator
  3. item: DescribeStreamOutputTypeDef

paginate#

Type annotations and code completion for DescribeStreamPaginator.paginate method.

# paginate method definition

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

kwargs: DescribeStreamInputDescribeStreamPaginateTypeDef = {  # (1)
    "StreamName": ...,
}

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

ListShardsPaginator#

Type annotations and code completion for boto3.client("kinesis").get_paginator("list_shards"). boto3 documentation

# ListShardsPaginator usage example

from boto3.session import Session

from mypy_boto3_kinesis.paginator import ListShardsPaginator

def get_list_shards_paginator() -> ListShardsPaginator:
    return Session().client("kinesis").get_paginator("list_shards")
# ListShardsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_kinesis.paginator import ListShardsPaginator

session = Session()

client = Session().client("kinesis")  # (1)
paginator: ListShardsPaginator = client.get_paginator("list_shards")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: KinesisClient
  2. paginator: ListShardsPaginator
  3. item: ListShardsOutputTypeDef

paginate#

Type annotations and code completion for ListShardsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    StreamName: str = ...,
    ExclusiveStartShardId: str = ...,
    StreamCreationTimestamp: Union[datetime, str] = ...,
    ShardFilter: ShardFilterTypeDef = ...,  # (1)
    StreamARN: str = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> _PageIterator[ListShardsOutputTypeDef]:  # (3)
    ...
  1. See ShardFilterTypeDef
  2. See PaginatorConfigTypeDef
  3. See ListShardsOutputTypeDef
# paginate method usage example with argument unpacking

kwargs: ListShardsInputListShardsPaginateTypeDef = {  # (1)
    "StreamName": ...,
}

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

ListStreamConsumersPaginator#

Type annotations and code completion for boto3.client("kinesis").get_paginator("list_stream_consumers"). boto3 documentation

# ListStreamConsumersPaginator usage example

from boto3.session import Session

from mypy_boto3_kinesis.paginator import ListStreamConsumersPaginator

def get_list_stream_consumers_paginator() -> ListStreamConsumersPaginator:
    return Session().client("kinesis").get_paginator("list_stream_consumers")
# ListStreamConsumersPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_kinesis.paginator import ListStreamConsumersPaginator

session = Session()

client = Session().client("kinesis")  # (1)
paginator: ListStreamConsumersPaginator = client.get_paginator("list_stream_consumers")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: KinesisClient
  2. paginator: ListStreamConsumersPaginator
  3. item: ListStreamConsumersOutputTypeDef

paginate#

Type annotations and code completion for ListStreamConsumersPaginator.paginate method.

# paginate method definition

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

kwargs: ListStreamConsumersInputListStreamConsumersPaginateTypeDef = {  # (1)
    "StreamARN": ...,
}

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

ListStreamsPaginator#

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

# ListStreamsPaginator usage example

from boto3.session import Session

from mypy_boto3_kinesis.paginator import ListStreamsPaginator

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

from boto3.session import Session

from mypy_boto3_kinesis.paginator import ListStreamsPaginator

session = Session()

client = Session().client("kinesis")  # (1)
paginator: ListStreamsPaginator = client.get_paginator("list_streams")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: KinesisClient
  2. paginator: ListStreamsPaginator
  3. item: ListStreamsOutputTypeDef

paginate#

Type annotations and code completion for ListStreamsPaginator.paginate method.

# paginate method definition

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

kwargs: ListStreamsInputListStreamsPaginateTypeDef = {  # (1)
    "ExclusiveStartStreamName": ...,
}

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