The IAmazonS3.ListObjects
method you can check here limits the return in 1000 items per request however does not inform if it is possible to do pagination, I have buckets with more than 10 million files and I need to go through each of them. The description of the method in Portuguese is this:
Returns some or all (at most 1000) of the objects in a bucket. You can use request parameters as a selection criteria to return a set of objects in a bucket
Is it possible to paginate this request? I did not find anything on Google or the documentation.
My job is this:
static ListObjectsResponse GetBucketObjects(string bucketName)
{
ListObjectsRequest request = new ListObjectsRequest();
request.BucketName = bucketName;
request.MaxKeys = 1000; //Mesmo que eu coloque 90000000000, o sistema considera 1000
ListObjectsResponse response = client.ListObjects(request);
return response;
}