diff --git a/packages/config-resolver/src/endpointsConfig/resolveEndpointsConfig.ts b/packages/config-resolver/src/endpointsConfig/resolveEndpointsConfig.ts index 2bc1d4465d7c..14a7511d1124 100644 --- a/packages/config-resolver/src/endpointsConfig/resolveEndpointsConfig.ts +++ b/packages/config-resolver/src/endpointsConfig/resolveEndpointsConfig.ts @@ -22,7 +22,7 @@ export interface EndpointsInputConfig { } interface PreviouslyResolved { - regionInfoProvider?: RegionInfoProvider; + regionInfoProvider: RegionInfoProvider; urlParser: UrlParser; region: Provider; useFipsEndpoint: Provider; @@ -56,7 +56,7 @@ export const resolveEndpointsConfig = ( tls: input.tls ?? true, endpoint: endpoint ? normalizeProvider(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) - : () => getEndpointFromRegion({ ...input, regionInfoProvider: input.regionInfoProvider!, useDualstackEndpoint, useFipsEndpoint }), + : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }), isCustomEndpoint: !!endpoint, useDualstackEndpoint, };