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

Thread through BehaviorVersion to S3 Express identity provider #3478

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

ysaito1001
Copy link
Contributor

@ysaito1001 ysaito1001 commented Mar 12, 2024

Motivation and Context

A follow-up task that resolves one of the TODO(Post S3Express release)

Description

This PR ensures that BehaviorVersion is threaded through from an outer S3 client to the inner S3 client when DefaultS3ExpressIdentityProvider is constructed.

I considered the alternative where BehaviorVersion would be stored in ConfigBagusing another flavor like StoreOnce and obtained from the bag within DefaultS3ExpressIdentityProvider::express_session_credentials. But ensuring StoreOnce per ConfigBag was not enough for BehaviorVersion since there could be nested ConfigBags where each ConfigBag was separate. BehaviorVersion needs to be unique across those different ConfigBags and the fact that we store BehaviorVersion outside RuntimeComponents or ConfigBag is a reasonable choice from that perspective (the ease of guaranteeing the uniqueness of BehaviorVersion).

Testing

Relied on existing tests in CI.

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@ysaito1001 ysaito1001 marked this pull request as ready for review March 12, 2024 15:38
@ysaito1001 ysaito1001 requested review from a team as code owners March 12, 2024 15:38
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@ysaito1001 ysaito1001 added this pull request to the merge queue Mar 13, 2024
Merged via the queue into main with commit 2392a24 Mar 13, 2024
41 checks passed
@ysaito1001 ysaito1001 deleted the ysaito/thread-through-behavior-version branch March 13, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants