Amazon S3 now supports AWS Region and bucket name filters for the ListBuckets API. In addition, paginated ListBuckets requests now return your S3 general purpose buckets and their corresponding AWS Regions in the response, helping you simplify applications that need to determine bucket locations across multiple Regions.
To get started, specify an AWS Region like “us-east-1” as a query parameter on a ListBuckets request to list your buckets in a particular Region. When using the bucket name filtering query parameter, you can also specify bucket name prefixes like “amzn-s3-demo-bucket” to return all of your bucket names that start with “amzn-s3-demo-bucket…” These new parameters can help you limit your ListBuckets API response to your desired buckets.
The ListBuckets API support for Region and bucket name prefix query parameters is now available in all AWS Regions. You can use the AWS SDK, API, or CLI to list your buckets for a specific AWS Region or prefix. To learn more about the ListBuckets API, visit the documentation.
Source:: Amazon AWS