Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java V2 update the S3 Java ListBuckets example #7192

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

scmacdon
Copy link
Contributor

This pull request updates the S3 Java ListBuckets example


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@scmacdon scmacdon added Java-v2 This issue relates to the AWS SDK for Java V2 Bug An update to fix incorrect code or typos. labels Jan 13, 2025
@scmacdon scmacdon self-assigned this Jan 13, 2025
@scmacdon scmacdon requested a review from tkhill-AWS January 15, 2025 17:49
@scmacdon scmacdon added Internal To help track internal tickets in a single location. and removed Bug An update to fix incorrect code or typos. labels Jan 15, 2025
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add junit-bom

ListBucketsIterable response = s3.listBucketsPaginator();

// Iterate over each response page and print bucket names.
response.stream()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

response.buckets().forEach(bucket ->
System.out.println("Bucket Name: " + bucket.name())

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this file should be in this PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use text blocks with indents for the policies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal To help track internal tickets in a single location. Java-v2 This issue relates to the AWS SDK for Java V2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants