-
Notifications
You must be signed in to change notification settings - Fork 24
PLFM-8873 #761
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
base: develop
Are you sure you want to change the base?
PLFM-8873 #761
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR migrates the codebase from AWS SDK v1 to AWS SDK v2 for S3 operations. The migration includes updating API calls, removing deprecated transfer manager implementations, and updating dependencies. The storage class enum values are also updated to match SDK v2 conventions (e.g., IntelligentTiering → INTELLIGENT_TIERING).
Changes:
- Migrated all S3 client usage from
AmazonS3(v1) toS3Client(v2) with updated API methods - Removed S3 transfer manager classes and replaced with native SDK v2 operations
- Updated storage class enum values to SDK v2 naming conventions (uppercase with underscores)
Reviewed changes
Copilot reviewed 35 out of 36 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pom.xml | Removed v1 S3 SDK dependency, added v2 S3 dependency |
| TemplateGuiceModule.java | Updated provider methods for SDK v2 S3 client, fixed typo in method name |
| S3BucketBuilderImpl.java | Migrated to SDK v2 S3 APIs, updated all S3 operations including encryption, lifecycle, inventory, notifications |
| S3BucketClassTransition.java | Changed storage class type from v1 to v2 enum |
| S3ConfigValidator.java | Updated storage class type, added inline event validation |
| CloudFormationClientWrapperImpl.java | Migrated S3 operations to SDK v2, fixed typo in javadoc |
| SecretBuilderImpl.java | Updated S3 upload to use SDK v2 RequestBody |
| ArtifactCopyImpl.java | Migrated to SDK v2 with HeadObject check and Path-based uploads |
| BedrockAgentContextProvider.java | Updated S3 putObject to use RequestBody |
| BedrockGridAgentContextProvider.java | Updated S3 putObject to use RequestBody |
| MarkDownItLambdaBuilderImpl.java | Updated S3 upload to use Path-based API |
| SynapseDocsBuilderImpl.java | Replaced transfer manager with SDK v2 copy/delete operations, implemented pagination |
| DataWarehouseBuilderImpl.java | Updated zip upload to use RequestBody |
| BackfillDataWarehouseBuilderImpl.java | Updated zip upload with improved error handling |
| ArtifactDownloadImpl.java | Added stream and bytes download methods |
| S3TransferManager*.java | Removed deprecated transfer manager classes |
| s3-buckets-config.json | Updated storage class values to uppercase convention |
| Test files | Updated all tests to mock SDK v2 S3 APIs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.