Paginators#
Auto-generated documentation for S3 type annotations stubs module mypy-boto3-s3.
ListBucketsPaginator#
Type annotations and code completion for boto3.client("s3").get_paginator("list_buckets")
.
boto3 documentation
# ListBucketsPaginator usage example
from boto3.session import Session
from mypy_boto3_s3.paginator import ListBucketsPaginator
def get_list_buckets_paginator() -> ListBucketsPaginator:
return Session().client("s3").get_paginator("list_buckets")
# ListBucketsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_s3.paginator import ListBucketsPaginator
session = Session()
client = Session().client("s3") # (1)
paginator: ListBucketsPaginator = client.get_paginator("list_buckets") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: S3Client
- paginator: ListBucketsPaginator
- item: ListBucketsOutputTypeDef
paginate#
Type annotations and code completion for ListBucketsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
Prefix: str = ...,
BucketRegion: str = ...,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListBucketsOutputTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListBucketsRequestListBucketsPaginateTypeDef = { # (1)
"Prefix": ...,
}
parent.paginate(**kwargs)
ListDirectoryBucketsPaginator#
Type annotations and code completion for boto3.client("s3").get_paginator("list_directory_buckets")
.
boto3 documentation
# ListDirectoryBucketsPaginator usage example
from boto3.session import Session
from mypy_boto3_s3.paginator import ListDirectoryBucketsPaginator
def get_list_directory_buckets_paginator() -> ListDirectoryBucketsPaginator:
return Session().client("s3").get_paginator("list_directory_buckets")
# ListDirectoryBucketsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_s3.paginator import ListDirectoryBucketsPaginator
session = Session()
client = Session().client("s3") # (1)
paginator: ListDirectoryBucketsPaginator = client.get_paginator("list_directory_buckets") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: S3Client
- paginator: ListDirectoryBucketsPaginator
- item: ListDirectoryBucketsOutputTypeDef
paginate#
Type annotations and code completion for ListDirectoryBucketsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListDirectoryBucketsOutputTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListDirectoryBucketsRequestListDirectoryBucketsPaginateTypeDef = { # (1)
"PaginationConfig": ...,
}
parent.paginate(**kwargs)
ListMultipartUploadsPaginator#
Type annotations and code completion for boto3.client("s3").get_paginator("list_multipart_uploads")
.
boto3 documentation
# ListMultipartUploadsPaginator usage example
from boto3.session import Session
from mypy_boto3_s3.paginator import ListMultipartUploadsPaginator
def get_list_multipart_uploads_paginator() -> ListMultipartUploadsPaginator:
return Session().client("s3").get_paginator("list_multipart_uploads")
# ListMultipartUploadsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_s3.paginator import ListMultipartUploadsPaginator
session = Session()
client = Session().client("s3") # (1)
paginator: ListMultipartUploadsPaginator = client.get_paginator("list_multipart_uploads") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: S3Client
- paginator: ListMultipartUploadsPaginator
- item: ListMultipartUploadsOutputTypeDef
paginate#
Type annotations and code completion for ListMultipartUploadsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
Bucket: str,
Delimiter: str = ...,
EncodingType: EncodingTypeType = ..., # (1)
Prefix: str = ...,
ExpectedBucketOwner: str = ...,
RequestPayer: RequestPayerType = ..., # (2)
PaginationConfig: PaginatorConfigTypeDef = ..., # (3)
) -> _PageIterator[ListMultipartUploadsOutputTypeDef]: # (4)
...
- See EncodingTypeType
- See RequestPayerType
- See PaginatorConfigTypeDef
- See ListMultipartUploadsOutputTypeDef
# paginate method usage example with argument unpacking
kwargs: ListMultipartUploadsRequestListMultipartUploadsPaginateTypeDef = { # (1)
"Bucket": ...,
}
parent.paginate(**kwargs)
ListObjectVersionsPaginator#
Type annotations and code completion for boto3.client("s3").get_paginator("list_object_versions")
.
boto3 documentation
# ListObjectVersionsPaginator usage example
from boto3.session import Session
from mypy_boto3_s3.paginator import ListObjectVersionsPaginator
def get_list_object_versions_paginator() -> ListObjectVersionsPaginator:
return Session().client("s3").get_paginator("list_object_versions")
# ListObjectVersionsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_s3.paginator import ListObjectVersionsPaginator
session = Session()
client = Session().client("s3") # (1)
paginator: ListObjectVersionsPaginator = client.get_paginator("list_object_versions") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: S3Client
- paginator: ListObjectVersionsPaginator
- item: ListObjectVersionsOutputTypeDef
paginate#
Type annotations and code completion for ListObjectVersionsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
Bucket: str,
Delimiter: str = ...,
EncodingType: EncodingTypeType = ..., # (1)
Prefix: str = ...,
ExpectedBucketOwner: str = ...,
RequestPayer: RequestPayerType = ..., # (2)
OptionalObjectAttributes: Sequence[OptionalObjectAttributesType] = ..., # (3)
PaginationConfig: PaginatorConfigTypeDef = ..., # (4)
) -> _PageIterator[ListObjectVersionsOutputTypeDef]: # (5)
...
- See EncodingTypeType
- See RequestPayerType
- See OptionalObjectAttributesType
- See PaginatorConfigTypeDef
- See ListObjectVersionsOutputTypeDef
# paginate method usage example with argument unpacking
kwargs: ListObjectVersionsRequestListObjectVersionsPaginateTypeDef = { # (1)
"Bucket": ...,
}
parent.paginate(**kwargs)
ListObjectsPaginator#
Type annotations and code completion for boto3.client("s3").get_paginator("list_objects")
.
boto3 documentation
# ListObjectsPaginator usage example
from boto3.session import Session
from mypy_boto3_s3.paginator import ListObjectsPaginator
def get_list_objects_paginator() -> ListObjectsPaginator:
return Session().client("s3").get_paginator("list_objects")
# ListObjectsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_s3.paginator import ListObjectsPaginator
session = Session()
client = Session().client("s3") # (1)
paginator: ListObjectsPaginator = client.get_paginator("list_objects") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: S3Client
- paginator: ListObjectsPaginator
- item: ListObjectsOutputTypeDef
paginate#
Type annotations and code completion for ListObjectsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
Bucket: str,
Delimiter: str = ...,
EncodingType: EncodingTypeType = ..., # (1)
Prefix: str = ...,
RequestPayer: RequestPayerType = ..., # (2)
ExpectedBucketOwner: str = ...,
OptionalObjectAttributes: Sequence[OptionalObjectAttributesType] = ..., # (3)
PaginationConfig: PaginatorConfigTypeDef = ..., # (4)
) -> _PageIterator[ListObjectsOutputTypeDef]: # (5)
...
- See EncodingTypeType
- See RequestPayerType
- See OptionalObjectAttributesType
- See PaginatorConfigTypeDef
- See ListObjectsOutputTypeDef
# paginate method usage example with argument unpacking
kwargs: ListObjectsRequestListObjectsPaginateTypeDef = { # (1)
"Bucket": ...,
}
parent.paginate(**kwargs)
ListObjectsV2Paginator#
Type annotations and code completion for boto3.client("s3").get_paginator("list_objects_v2")
.
boto3 documentation
# ListObjectsV2Paginator usage example
from boto3.session import Session
from mypy_boto3_s3.paginator import ListObjectsV2Paginator
def get_list_objects_v2_paginator() -> ListObjectsV2Paginator:
return Session().client("s3").get_paginator("list_objects_v2")
# ListObjectsV2Paginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_s3.paginator import ListObjectsV2Paginator
session = Session()
client = Session().client("s3") # (1)
paginator: ListObjectsV2Paginator = client.get_paginator("list_objects_v2") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: S3Client
- paginator: ListObjectsV2Paginator
- item: ListObjectsV2OutputTypeDef
paginate#
Type annotations and code completion for ListObjectsV2Paginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
Bucket: str,
Delimiter: str = ...,
EncodingType: EncodingTypeType = ..., # (1)
Prefix: str = ...,
FetchOwner: bool = ...,
StartAfter: str = ...,
RequestPayer: RequestPayerType = ..., # (2)
ExpectedBucketOwner: str = ...,
OptionalObjectAttributes: Sequence[OptionalObjectAttributesType] = ..., # (3)
PaginationConfig: PaginatorConfigTypeDef = ..., # (4)
) -> _PageIterator[ListObjectsV2OutputTypeDef]: # (5)
...
- See EncodingTypeType
- See RequestPayerType
- See OptionalObjectAttributesType
- See PaginatorConfigTypeDef
- See ListObjectsV2OutputTypeDef
# paginate method usage example with argument unpacking
kwargs: ListObjectsV2RequestListObjectsV2PaginateTypeDef = { # (1)
"Bucket": ...,
}
parent.paginate(**kwargs)
ListPartsPaginator#
Type annotations and code completion for boto3.client("s3").get_paginator("list_parts")
.
boto3 documentation
# ListPartsPaginator usage example
from boto3.session import Session
from mypy_boto3_s3.paginator import ListPartsPaginator
def get_list_parts_paginator() -> ListPartsPaginator:
return Session().client("s3").get_paginator("list_parts")
# ListPartsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_s3.paginator import ListPartsPaginator
session = Session()
client = Session().client("s3") # (1)
paginator: ListPartsPaginator = client.get_paginator("list_parts") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: S3Client
- paginator: ListPartsPaginator
- item: ListPartsOutputTypeDef
paginate#
Type annotations and code completion for ListPartsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
Bucket: str,
Key: str,
UploadId: str,
RequestPayer: RequestPayerType = ..., # (1)
ExpectedBucketOwner: str = ...,
SSECustomerAlgorithm: str = ...,
SSECustomerKey: str = ...,
SSECustomerKeyMD5: str = ...,
PaginationConfig: PaginatorConfigTypeDef = ..., # (2)
) -> _PageIterator[ListPartsOutputTypeDef]: # (3)
...
# paginate method usage example with argument unpacking
kwargs: ListPartsRequestListPartsPaginateTypeDef = { # (1)
"Bucket": ...,
"Key": ...,
"UploadId": ...,
}
parent.paginate(**kwargs)