-
-
Notifications
You must be signed in to change notification settings - Fork 13
Upgrade SDK to 4.0 #316
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
Upgrade SDK to 4.0 #316
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
Upgrades the AWS SDK to v4.0 and adapts code for new nullable APIs, JSON handling, and C# 12 syntax.
- Swapped
FallbackCredentialsFactory
forDefaultAWSCredentialsIdentityResolver
across S3 and SQS. - Made AWS responses (e.g.,
LastModified
,IsTruncated
,Messages
) null-safe and replaced LitJson withSystem.Text.Json
. - Adopted C# 12 collection expressions and
JsonObject
for redrive policy serialization.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/Foundatio.AWS/Storage/S3FileStorage.cs | Updated credential resolution, null-safe LastModified conversion, and used collection expression for DeleteObjectsRequest.Objects . |
src/Foundatio.AWS/Queues/SQSQueueEntry.cs | Added null check before iterating MessageAttributes . |
src/Foundatio.AWS/Queues/SQSQueue.cs | Migrated credentials, JSON construction with JsonObject , null-safe message handling, and C# 12 enhancements. |
src/Foundatio.AWS/Queues/AttributeExtensions.cs | Removed LitJson, switched to JsonDocument for parsing RedrivePolicy . |
src/Foundatio.AWS/Foundatio.AWS.csproj | Bumped AWS SDK package versions to 4.x. |
src/Foundatio.AWS/Extensions/Extensions.cs | Null-safe mapping of S3Object LastModified and Size . |
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.
Looks good to me
Supports the new 4.0 client aws/aws-sdk-net#3362
Logged some initial feedback here: aws/aws-sdk-net#3784