Skip to content

Commit

Permalink
Add explanation of SigV4A being added to the end
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis committed Jan 23, 2024
1 parent 9138074 commit dc4e09d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class SigV4AsymmetricTraitCustomization : KotlinIntegration {
.build(),
)

// SigV4A is added at the end because these services model SigV4A through endpoint rules instead of the service shape.
// Because of that, SigV4A can apply to any operation, and the safest thing to do is add it at the end
// and let the endpoint rules change priority as needed.
val authTrait = shape.getTrait<AuthTrait>()?.let {
if (it.valueSet.contains(SigV4ATrait.ID)) {
it
Expand Down

0 comments on commit dc4e09d

Please sign in to comment.