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

feat(region-config-provider): Add region-config-provider package #5156

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

AndrewFossAWS
Copy link
Contributor

@AndrewFossAWS AndrewFossAWS commented Aug 30, 2023

Description

  • Migrate region config related files from smithy-typescript's config-resolver package to aws-sdk-js-v3's region-config-provider package
  • Add runtime extension for region

Testing

  • yarn build

Additional context


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

@AndrewFossAWS AndrewFossAWS requested review from a team as code owners August 30, 2023 20:38
@AndrewFossAWS AndrewFossAWS changed the title feat(package): Add region-config-provider package feat(region-config-provider): Add region-config-provider package Sep 1, 2023
* Resolved value for input {@link RegionInputConfig.useFipsEndpoint}
*/
useFipsEndpoint: Provider<boolean>;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

the input and resolved config are duplicates to types in smithy/config-resolver, what's the plan for these, co-existence or deprecation of one?

Can you just import the types from there?

Copy link
Contributor Author

@AndrewFossAWS AndrewFossAWS Sep 1, 2023

Choose a reason for hiding this comment

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

No because the concept of region is AWS specific and should belong to aws-js-sdk-v3. "region" related files in @smithy/config-resolver should be deprecated.

packages/region-config-resolver/CHANGELOG.md Outdated Show resolved Hide resolved
packages/region-config-resolver/package.json Show resolved Hide resolved
/**
* @internal
*/
export const getRealRegion = (region: string) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, where did the name for this function come from?

I'm wondering if there is a more descriptive name for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A lot of files from this PR are copied directly from @smithy/config-resolver. The names should be kept the same for now.

packages/region-config-resolver/src/regionConfig/config.ts Outdated Show resolved Hide resolved
packages/region-config-resolver/src/index.ts Outdated Show resolved Hide resolved
packages/region-config-resolver/package.json Outdated Show resolved Hide resolved
packages/region-config-resolver/src/extensions/index.ts Outdated Show resolved Hide resolved
packages/region-config-resolver/src/index.ts Outdated Show resolved Hide resolved
@AndrewFossAWS AndrewFossAWS merged commit d80f48c into aws:main Sep 7, 2023
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants