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)
- client: SQSClient
- paginator: ListDeadLetterSourceQueuesPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: ListDeadLetterSourceQueuesRequestListDeadLetterSourceQueuesPaginateTypeDef = { # (1)
"QueueUrl": ...,
}
parent.paginate(**kwargs)
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)
- client: SQSClient
- paginator: ListQueuesPaginator
- item: