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

Delete aws_smithy_http::ResolveEndpoint and point usages to service-specific trait #3078

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Oct 18, 2023

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

  • 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 changed the title Update to remove old endpoint types Delete aws_smithy_http::ResolveEndpoint and point usages to service-specific trait Oct 18, 2023
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@rcoh rcoh marked this pull request as ready for review October 18, 2023 14:27
@rcoh rcoh requested review from a team as code owners October 18, 2023 14:27
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@rcoh rcoh added the breaking-change This will require a breaking change label Oct 18, 2023
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link
Collaborator

@jdisanti jdisanti left a 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.

aws/rust-runtime/aws-inlineable/src/endpoint_discovery.rs Outdated Show resolved Hide resolved
Comment on lines 111 to 113
/// provide a shared endpoint resolver, use [`Self::set_endpoint_resolver`].
/// ## Examples
/// ```no_run
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// 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

/// 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> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@rcoh rcoh enabled auto-merge October 18, 2023 20:35
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@rcoh rcoh added this pull request to the merge queue Oct 18, 2023
Merged via the queue into main with commit 12fa4d3 Oct 18, 2023
40 of 41 checks passed
@rcoh rcoh deleted the endpoints-removal branch October 18, 2023 21:23
rcoh added a commit that referenced this pull request Oct 19, 2023
…-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._
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This will require a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete or convert aws_smithy_http::ResolveEndpoint into a inlinable
3 participants