Skip to content

Upgrade SDK to 4.0#316

Merged
niemyjski merged 6 commits intomainfrom
feature/aws-sdk-4.0
Jun 16, 2025
Merged

Upgrade SDK to 4.0#316
niemyjski merged 6 commits intomainfrom
feature/aws-sdk-4.0

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

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
Contributor

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.

3 participants