Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/long-experts-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Copy link
Contributor Author

Choose a reason for hiding this comment

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

no runtime code changes and this does not warrant a version bump

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { EndpointsInputConfig, EndpointsResolvedConfig } from "./resolveEndpoint

/**
* @public
* @deprecated superseded by default endpointRuleSet generation.
*/
export interface CustomEndpointsInputConfig extends EndpointsInputConfig {
/**
Expand All @@ -15,13 +16,15 @@ export interface CustomEndpointsInputConfig extends EndpointsInputConfig {

/**
* @internal
* @deprecated superseded by default endpointRuleSet generation.
*/
interface PreviouslyResolved {
urlParser: UrlParser;
}

/**
* @internal
* @deprecated superseded by default endpointRuleSet generation.
*/
export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig {
/**
Expand All @@ -33,6 +36,8 @@ export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig {

/**
* @internal
*
* @deprecated superseded by default endpointRuleSet generation.
*/
export const resolveCustomEndpointsConfig = <T>(
input: T & CustomEndpointsInputConfig & PreviouslyResolved
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { getEndpointFromRegion } from "./utils/getEndpointFromRegion";

/**
* @public
* @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig.
*/
export interface EndpointsInputConfig {
/**
Expand All @@ -26,6 +27,7 @@ export interface EndpointsInputConfig {

/**
* @internal
* @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig.
*/
interface PreviouslyResolved {
regionInfoProvider: RegionInfoProvider;
Expand All @@ -36,6 +38,7 @@ interface PreviouslyResolved {

/**
* @internal
* @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig.
*/
export interface EndpointsResolvedConfig extends Required<EndpointsInputConfig> {
/**
Expand Down
5 changes: 3 additions & 2 deletions packages/config-resolver/src/regionInfo/EndpointVariant.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { EndpointVariantTag } from "./EndpointVariantTag";

/**
* @internal
*
* Provides hostname information for specific host label.
*
* @internal
* @deprecated unused as of endpointsRuleSets.
*/
export type EndpointVariant = {
hostname: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/**
* @internal
*
*
* The tag which mentions which area variant is providing information for.
* Can be either "fips" or "dualstack".
*
* @internal
* @deprecated unused for endpointRuleSets.
*/
export type EndpointVariantTag = "fips" | "dualstack";
5 changes: 3 additions & 2 deletions packages/config-resolver/src/regionInfo/PartitionHash.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { EndpointVariant } from "./EndpointVariant";

/**
* @internal
*
* The hash of partition with the information specific to that partition.
* The information includes the list of regions belonging to that partition,
* and the hostname to be used for the partition.
*
* @internal
* @deprecated unused for endpointRuleSets.
*/
export type PartitionHash = Record<
string,
Expand Down
5 changes: 3 additions & 2 deletions packages/config-resolver/src/regionInfo/RegionHash.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { EndpointVariant } from "./EndpointVariant";

/**
* @internal
*
* The hash of region with the information specific to that region.
* The information can include hostname, signingService and signingRegion.
*
* @internal
* @deprecated unused for endpointRuleSets.
*/
export type RegionHash = Record<
string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { EndpointVariant } from "./EndpointVariant";

/**
* @internal
* @deprecated unused as of endpointsRuleSets.
*/
export interface GetHostnameFromVariantsOptions {
useFipsEndpoint: boolean;
Expand All @@ -10,6 +11,7 @@ export interface GetHostnameFromVariantsOptions {

/**
* @internal
* @deprecated unused as of endpointsRuleSets.
*/
export const getHostnameFromVariants = (
variants: EndpointVariant[] = [],
Expand Down
2 changes: 2 additions & 0 deletions packages/config-resolver/src/regionInfo/getRegionInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { RegionHash } from "./RegionHash";

/**
* @internal
* @deprecated unused as of endpointsRuleSets.
*/
export interface GetRegionInfoOptions {
useFipsEndpoint?: boolean;
Expand All @@ -20,6 +21,7 @@ export interface GetRegionInfoOptions {

/**
* @internal
* @deprecated unused as of endpointsRuleSets.
*/
export const getRegionInfo = (
region: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* @internal
* @deprecated unused for endpointRuleSets.
*/
export interface GetResolvedHostnameOptions {
regionHostname?: string;
Expand All @@ -8,6 +9,7 @@ export interface GetResolvedHostnameOptions {

/**
* @internal
* @deprecated unused for endpointRuleSets.
*/
export const getResolvedHostname = (
resolvedRegion: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import { PartitionHash } from "./PartitionHash";

/**
* @internal
* @deprecated unused for endpointRuleSets.
*/
export interface GetResolvedPartitionOptions {
partitionHash: PartitionHash;
}

/**
* @internal
* @deprecated unused for endpointRuleSets.
*/
export const getResolvedPartition = (region: string, { partitionHash }: GetResolvedPartitionOptions) =>
Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? "aws";
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* @internal
* @deprecated unused for endpointRuleSets.
*/
export interface GetResolvedSigningRegionOptions {
regionRegex: string;
Expand All @@ -9,6 +10,7 @@ export interface GetResolvedSigningRegionOptions {

/**
* @internal
* @deprecated unused for endpointRuleSets.
*/
export const getResolvedSigningRegion = (
hostname: string,
Expand Down