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

Improve configurability of connectors #984

Merged
merged 9 commits into from
Dec 17, 2021
Merged

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Dec 15, 2021

Motivation and Context

Description

Currently it's possible to use a fully custom connector with generated clients, but it's more cumbersome when using aws-config. Furthermore, the type of TcpConnector wasn't ideal since it didn't actually work when HTTPS was needed.

This change:

  • Allows tcp_connector to accept anything that Hyper can use
  • Adds a provider_config method (perhaps this should be named configure for symmetry?) to ConfigLoader
  • Adds an example of how one can set a custom CA store with Rustls

Testing

  • cargo hack
  • it/ut

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • 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.

@rcoh rcoh requested a review from a team as a code owner December 15, 2021 21:54
@rcoh rcoh force-pushed the aws-config-connector-config branch from 41a6a47 to c9c67c8 Compare December 15, 2021 21:54
@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@rcoh rcoh force-pushed the aws-config-connector-config branch from 529a1a2 to 465c3fa Compare December 16, 2021 20:46
@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@rcoh rcoh merged commit bc316a0 into main Dec 17, 2021
@rcoh rcoh deleted the aws-config-connector-config branch December 17, 2021 17:43
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.

2 participants