public void ForEachBucket(Action<Bucket> action) { using (GetAllBucketsResponse response = new GetAllBucketsRequest(this).GetResponse()) foreach (Bucket bucket in response.Buckets) action(bucket); }