Skip to content

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

Merged
merged 6 commits into from
Jun 16, 2025
Merged

Upgrade SDK to 4.0 #316

merged 6 commits into from
Jun 16, 2025

Conversation

niemyjski
Copy link
Member

@niemyjski niemyjski commented May 1, 2025

Supports the new 4.0 client aws/aws-sdk-net#3362

Logged some initial feedback here: aws/aws-sdk-net#3784

@niemyjski niemyjski self-assigned this May 1, 2025
@niemyjski niemyjski added the dependencies Pull requests that update a dependency file label May 1, 2025
Copilot

This comment was marked as outdated.

@niemyjski niemyjski requested a review from Copilot June 16, 2025 17:23
@niemyjski niemyjski marked this pull request as ready for review June 16, 2025 17:23
Copy link

@Copilot Copilot AI left a 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 for DefaultAWSCredentialsIdentityResolver across S3 and SQS.
  • Made AWS responses (e.g., LastModified, IsTruncated, Messages) null-safe and replaced LitJson with System.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.

Copy link
Contributor

@ejsmith ejsmith left a 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

@niemyjski niemyjski merged commit 9eba71e into main Jun 16, 2025
3 checks passed
@niemyjski niemyjski deleted the feature/aws-sdk-4.0 branch June 16, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants