How to get paginated response using ListBuckets api using Go lang sdk

0

I am using go sdk to fetch the list of buckets. I am not able to find the option fetch the buckets using paginated option using api ListBuckets(&s3.ListBucketsInput{}). It seems options like continuation token, marker or isTruncated is not available to list the bucket. Any idea , which other options or api is available?

1 Answer
0

Unlike ListObjects/ListObjectsV2 List API, the ListBuckets API does not support pagination. ListBuckets can return up to 1,000 buckets in a single API call, which is the maximum number of buckets you can have for an AWS account.

Raymond
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions