-
Notifications
You must be signed in to change notification settings - Fork 192
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
Delete aws_smithy_http::ResolveEndpoint
and point usages to service-specific trait
#3078
Conversation
aws_smithy_http::ResolveEndpoint
and point usages to service-specific trait
A new generated diff is ready to view.
A new doc preview is ready to view. |
0985606
to
e11250d
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
e11250d
to
016ea77
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
016ea77
to
76ff6de
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
76ff6de
to
3ebc0ad
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Mostly minor comments.
...client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/ClientRustModule.kt
Show resolved
Hide resolved
...in/software/amazon/smithy/rust/codegen/client/smithy/endpoint/EndpointConfigCustomization.kt
Outdated
Show resolved
Hide resolved
...in/software/amazon/smithy/rust/codegen/client/smithy/endpoint/EndpointConfigCustomization.kt
Outdated
Show resolved
Hide resolved
/// provide a shared endpoint resolver, use [`Self::set_endpoint_resolver`]. | ||
/// ## Examples | ||
/// ```no_run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// provide a shared endpoint resolver, use [`Self::set_endpoint_resolver`]. | |
/// ## Examples | |
/// ```no_run | |
/// provide a shared endpoint resolver, use [`Self::set_endpoint_resolver`]. | |
/// | |
/// ## Examples | |
/// Create an endpoint resolver that gives a different endpoint per | |
/// stage (e.g., staging vs. production): | |
/// ```no_run |
...re/amazon/smithy/rust/codegen/client/smithy/endpoint/generators/EndpointResolverGenerator.kt
Outdated
Show resolved
Hide resolved
...re/amazon/smithy/rust/codegen/client/smithy/endpoint/generators/EndpointResolverGenerator.kt
Outdated
Show resolved
Hide resolved
...re/amazon/smithy/rust/codegen/client/smithy/endpoint/generators/EndpointResolverGenerator.kt
Show resolved
Hide resolved
/// endpoint params for the service. It then delegates endpoint resolution | ||
/// to an underlying resolver that is aware of the concrete type. | ||
#[derive(Clone, Debug)] | ||
pub struct DefaultEndpointResolver<Params> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
…-specific trait (#3078) ## Motivation and Context - Fixes #3043 As a follow up to #3072 this removes the old endpoint resolver interfaces in favor of creating a per-service resolver trait. This trait defines a `into_shared_resolver()` method which converts the local trait into a global resolver that can be used with the orchestrator. ## Description <!--- Describe your changes in detail --> ## Testing <!--- Please describe in detail how you tested your changes --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## Checklist <!--- If a checkbox below is not applicable, then please DELETE it rather than leaving it unchecked --> - [x] I have updated `CHANGELOG.next.toml` if I made changes to the smithy-rs codegen or runtime crates - [x] 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._
Motivation and Context
As a follow up to #3072 this removes the old endpoint resolver interfaces in favor of creating a per-service resolver trait.
This trait defines a
into_shared_resolver()
method which converts the local trait into a global resolver that can be used with the orchestrator.Description
Testing
Checklist
CHANGELOG.next.toml
if I made changes to the smithy-rs codegen or runtime cratesCHANGELOG.next.toml
if I made changes to the AWS SDK, generated SDK code, or SDK runtime cratesBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.