Skip to content

Paginators#

Index > DynamoDB > Paginators

Auto-generated documentation for DynamoDB type annotations stubs module mypy-boto3-dynamodb.

ListBackupsPaginator#

Type annotations and code completion for boto3.client("dynamodb").get_paginator("list_backups"). boto3 documentation

# ListBackupsPaginator usage example

from boto3.session import Session

from mypy_boto3_dynamodb.paginator import ListBackupsPaginator

def get_list_backups_paginator() -> ListBackupsPaginator:
    return Session().client("dynamodb").get_paginator("list_backups")
# ListBackupsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_dynamodb.paginator import ListBackupsPaginator

session = Session()

client = Session().client("dynamodb")  # (1)
paginator: ListBackupsPaginator = client.get_paginator("list_backups")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: DynamoDBClient
  2. paginator: ListBackupsPaginator
  3. item: ListBackupsOutputTypeDef

paginate#

Type annotations and code completion for ListBackupsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    TableName: str = ...,
    TimeRangeLowerBound: TimestampTypeDef = ...,
    TimeRangeUpperBound: TimestampTypeDef = ...,
    BackupType: BackupTypeFilterType = ...,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> PageIterator[ListBackupsOutputTypeDef]:  # (3)
    ...
  1. See BackupTypeFilterType
  2. See PaginatorConfigTypeDef
  3. See ListBackupsOutputTypeDef
# paginate method usage example with argument unpacking

kwargs: ListBackupsInputPaginateTypeDef = {  # (1)
    "TableName": ...,
}

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

ListTablesPaginator#

Type annotations and code completion for boto3.client("dynamodb").get_paginator("list_tables"). boto3 documentation

# ListTablesPaginator usage example

from boto3.session import Session

from mypy_boto3_dynamodb.paginator import ListTablesPaginator

def get_list_tables_paginator() -> ListTablesPaginator:
    return Session().client("dynamodb").get_paginator("list_tables")
# ListTablesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_dynamodb.paginator import ListTablesPaginator

session = Session()

client = Session().client("dynamodb")  # (1)
paginator: ListTablesPaginator = client.get_paginator("list_tables")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: DynamoDBClient
  2. paginator: ListTablesPaginator
  3. item: ListTablesOutputTypeDef

paginate#

Type annotations and code completion for ListTablesPaginator.paginate method.

# paginate method definition

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

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

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

ListTagsOfResourcePaginator#

Type annotations and code completion for boto3.client("dynamodb").get_paginator("list_tags_of_resource"). boto3 documentation

# ListTagsOfResourcePaginator usage example

from boto3.session import Session

from mypy_boto3_dynamodb.paginator import ListTagsOfResourcePaginator

def get_list_tags_of_resource_paginator() -> ListTagsOfResourcePaginator:
    return Session().client("dynamodb").get_paginator("list_tags_of_resource")
# ListTagsOfResourcePaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_dynamodb.paginator import ListTagsOfResourcePaginator

session = Session()

client = Session().client("dynamodb")  # (1)
paginator: ListTagsOfResourcePaginator = client.get_paginator("list_tags_of_resource")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: DynamoDBClient
  2. paginator: ListTagsOfResourcePaginator
  3. item: ListTagsOfResourceOutputTypeDef

paginate#

Type annotations and code completion for ListTagsOfResourcePaginator.paginate method.

# paginate method definition

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

kwargs: ListTagsOfResourceInputPaginateTypeDef = {  # (1)
    "ResourceArn": ...,
}

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

QueryPaginator#

Type annotations and code completion for boto3.client("dynamodb").get_paginator("query"). boto3 documentation

# QueryPaginator usage example

from boto3.session import Session

from mypy_boto3_dynamodb.paginator import QueryPaginator

def get_query_paginator() -> QueryPaginator:
    return Session().client("dynamodb").get_paginator("query")
# QueryPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_dynamodb.paginator import QueryPaginator

session = Session()

client = Session().client("dynamodb")  # (1)
paginator: QueryPaginator = client.get_paginator("query")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: DynamoDBClient
  2. paginator: QueryPaginator
  3. item: QueryOutputTypeDef

paginate#

Type annotations and code completion for QueryPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    TableName: str,
    IndexName: str = ...,
    Select: SelectType = ...,  # (1)
    AttributesToGet: Sequence[str] = ...,
    ConsistentRead: bool = ...,
    KeyConditions: Mapping[str, ConditionTypeDef] = ...,  # (2)
    QueryFilter: Mapping[str, ConditionTypeDef] = ...,  # (2)
    ConditionalOperator: ConditionalOperatorType = ...,  # (4)
    ScanIndexForward: bool = ...,
    ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,  # (5)
    ProjectionExpression: str = ...,
    FilterExpression: str = ...,
    KeyConditionExpression: str = ...,
    ExpressionAttributeNames: Mapping[str, str] = ...,
    ExpressionAttributeValues: Mapping[str, UniversalAttributeValueTypeDef] = ...,  # (6)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (7)
) -> PageIterator[QueryOutputTypeDef]:  # (8)
    ...
  1. See SelectType
  2. See ConditionTypeDef
  3. See ConditionTypeDef
  4. See ConditionalOperatorType
  5. See ReturnConsumedCapacityType
  6. See AttributeValueTypeDef
  7. See PaginatorConfigTypeDef
  8. See QueryOutputTypeDef
# paginate method usage example with argument unpacking

kwargs: QueryInputPaginateTypeDef = {  # (1)
    "TableName": ...,
}

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

ScanPaginator#

Type annotations and code completion for boto3.client("dynamodb").get_paginator("scan"). boto3 documentation

# ScanPaginator usage example

from boto3.session import Session

from mypy_boto3_dynamodb.paginator import ScanPaginator

def get_scan_paginator() -> ScanPaginator:
    return Session().client("dynamodb").get_paginator("scan")
# ScanPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_dynamodb.paginator import ScanPaginator

session = Session()

client = Session().client("dynamodb")  # (1)
paginator: ScanPaginator = client.get_paginator("scan")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: DynamoDBClient
  2. paginator: ScanPaginator
  3. item: ScanOutputTypeDef

paginate#

Type annotations and code completion for ScanPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    TableName: str,
    IndexName: str = ...,
    AttributesToGet: Sequence[str] = ...,
    Select: SelectType = ...,  # (1)
    ScanFilter: Mapping[str, ConditionTypeDef] = ...,  # (2)
    ConditionalOperator: ConditionalOperatorType = ...,  # (3)
    ReturnConsumedCapacity: ReturnConsumedCapacityType = ...,  # (4)
    TotalSegments: int = ...,
    Segment: int = ...,
    ProjectionExpression: str = ...,
    FilterExpression: str = ...,
    ExpressionAttributeNames: Mapping[str, str] = ...,
    ExpressionAttributeValues: Mapping[str, UniversalAttributeValueTypeDef] = ...,  # (5)
    ConsistentRead: bool = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (6)
) -> PageIterator[ScanOutputTypeDef]:  # (7)
    ...
  1. See SelectType
  2. See ConditionTypeDef
  3. See ConditionalOperatorType
  4. See ReturnConsumedCapacityType
  5. See AttributeValueTypeDef
  6. See PaginatorConfigTypeDef
  7. See ScanOutputTypeDef
# paginate method usage example with argument unpacking

kwargs: ScanInputPaginateTypeDef = {  # (1)
    "TableName": ...,
}

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