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

chore: update config properties overrides #1437

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Conversation

AndrewFossAWS
Copy link
Contributor

@AndrewFossAWS AndrewFossAWS commented Apr 11, 2024

  • Currently the default values for certain client config properties differ between smithy-swift and aws-sdk-swift
  • For example:
    • authSchemeResolver uses:
      • DefaultS3AuthSchemeResolver() in aws-sdk-swift
      • ClientRuntime.AuthSchemeResolver in smithy-swift

The idea is that people can add their own custom client config properties in SwiftIntegration.

However the code generator doesn't validate/error on duplicate properties. (The responsibility to ensure uniqnuess falls on the people adding the properties)

In the scenario where we have to override the default client config properties from smithy-swift (see above), HttpProtocolServiceClient.overrideConfigProperties method can be used to resolve the properties.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@AndrewFossAWS AndrewFossAWS marked this pull request as ready for review April 11, 2024 16:47
@AndrewFossAWS AndrewFossAWS requested review from milesziemer and removed request for syall April 11, 2024 16:59
@AndrewFossAWS AndrewFossAWS merged commit 9b40607 into main Apr 16, 2024
17 checks passed
@AndrewFossAWS AndrewFossAWS deleted the feat/test-package branch April 16, 2024 16:44
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.

3 participants