Skip to content

Paginators#

Index > SQS > Paginators

Auto-generated documentation for SQS type annotations stubs module mypy-boto3-sqs.

ListDeadLetterSourceQueuesPaginator#

Type annotations and code completion for boto3.client("sqs").get_paginator("list_dead_letter_source_queues"). boto3 documentation

# ListDeadLetterSourceQueuesPaginator usage example

from boto3.session import Session

from mypy_boto3_sqs.paginator import ListDeadLetterSourceQueuesPaginator

def get_list_dead_letter_source_queues_paginator() -> ListDeadLetterSourceQueuesPaginator:
    return Session().client("sqs").get_paginator("list_dead_letter_source_queues")
# ListDeadLetterSourceQueuesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_sqs.paginator import ListDeadLetterSourceQueuesPaginator

session = Session()

client = Session().client("sqs")  # (1)
paginator: ListDeadLetterSourceQueuesPaginator = client.get_paginator("list_dead_letter_source_queues")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: SQSClient
  2. paginator: ListDeadLetterSourceQueuesPaginator
  3. item: ListDeadLetterSourceQueuesResultTypeDef

paginate#

Type annotations and code completion for ListDeadLetterSourceQueuesPaginator.paginate method.

# paginate method definition

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

kwargs: ListDeadLetterSourceQueuesRequestListDeadLetterSourceQueuesPaginateTypeDef = {  # (1)
    "QueueUrl": ...,
}

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

ListQueuesPaginator#

Type annotations and code completion for boto3.client("sqs").get_paginator("list_queues"). boto3 documentation

# ListQueuesPaginator usage example

from boto3.session import Session

from mypy_boto3_sqs.paginator import ListQueuesPaginator

def get_list_queues_paginator() -> ListQueuesPaginator:
    return Session().client("sqs").get_paginator("list_queues")
# ListQueuesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_sqs.paginator import ListQueuesPaginator

session = Session()

client = Session().client("sqs")  # (1)
paginator: ListQueuesPaginator = client.get_paginator("list_queues")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: SQSClient
  2. paginator: ListQueuesPaginator
  3. item: ListQueuesResultTypeDef

paginate#

Type annotations and code completion for ListQueuesPaginator.paginate method.

# paginate method definition

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

kwargs: ListQueuesRequestListQueuesPaginateTypeDef = {  # (1)
    "QueueNamePrefix": ...,
}

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