aws s3api list-directory-buckets
Returns a list of all Amazon S3 directory buckets owned by the authenticated sender of the request. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--continuation-tokenContinuationToken indicates to Amazon S3 that the list is being continued on buckets in this account with a token.--max-directory-bucketsMaximum number of buckets to be returned in response.