simply to use paginator instance
example code
paginator = s3_client.get_paginator('list_objects_v2')
pages = paginator.paginate(Bucket='bucket', Prefix='folder1/')
for page in pages:
for obj in page['Contents']:
print(obj['Key'])
.
simply to use paginator instance
example code
.
No comments:
Post a Comment