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

Add util-endpoints package #1043

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Oct 16, 2023

This PR migrates most of the @aws-sdk/util-endpoints package to this repository.

The AWS specific functions used for resolving endpoints will remain in @aws-sdk/util-endpoints. Those functions will be injected into AWS clients via the endpointFunctions container that has been added to this package.

AWS clients will inject AWS specific functions with the following by consuming the @aws-sdk/util-endpoints package.

The injected endpoint functions can then be used by this package to resolve endpoints along side the built-in endpoint resolution functions.

Follow-on PRs will update the smithy-typescript code generator to use this new dependency once it has been published to NPM.

If one or more of the packages in the /packages directory has been modified, be sure yarn changeset add has been run and its output has
been committed and included in this pull request. See CONTRIBUTING.md.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

customEndpointFunctions: null | EndpointFunctions;
} = {
customEndpointFunctions: null,
};
Copy link
Contributor

@kuhe kuhe Oct 17, 2023

Choose a reason for hiding this comment

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

  • todo from our discussion: allow multiple namespaces to be registered in customEndpointFunctions

@srchase srchase force-pushed the util-endpoints branch 3 times, most recently from 0f84f4f to a1b205a Compare October 17, 2023 20:41
@srchase srchase merged commit 926ba65 into smithy-lang:main Oct 24, 2023
7 checks passed
@srchase srchase deleted the util-endpoints branch October 24, 2023 20:19
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