diff --git a/clients/client-accessanalyzer/src/endpoints.ts b/clients/client-accessanalyzer/src/endpoints.ts index 487beabc6c6ad..0e6190851fe70 100644 --- a/clients/client-accessanalyzer/src/endpoints.ts +++ b/clients/client-accessanalyzer/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "access-analyzer", diff --git a/clients/client-account/src/endpoints.ts b/clients/client-account/src/endpoints.ts index 4b678778fc7b7..c93574f9b789b 100644 --- a/clients/client-account/src/endpoints.ts +++ b/clients/client-account/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-cn-global": { @@ -63,7 +63,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "account", diff --git a/clients/client-acm-pca/src/endpoints.ts b/clients/client-acm-pca/src/endpoints.ts index 81f5c1676c1ee..6b8d92b747006 100644 --- a/clients/client-acm-pca/src/endpoints.ts +++ b/clients/client-acm-pca/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "acm-pca", diff --git a/clients/client-acm/src/endpoints.ts b/clients/client-acm/src/endpoints.ts index 81cb8b1f0ec84..db4fdce82be03 100644 --- a/clients/client-acm/src/endpoints.ts +++ b/clients/client-acm/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "ca-central-1-fips": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "acm", diff --git a/clients/client-alexa-for-business/src/endpoints.ts b/clients/client-alexa-for-business/src/endpoints.ts index dfb03b3501f82..312316dc95e95 100644 --- a/clients/client-alexa-for-business/src/endpoints.ts +++ b/clients/client-alexa-for-business/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "a4b", diff --git a/clients/client-amp/src/endpoints.ts b/clients/client-amp/src/endpoints.ts index 7a114a225547a..bed7fdb856814 100644 --- a/clients/client-amp/src/endpoints.ts +++ b/clients/client-amp/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "aps", diff --git a/clients/client-amplify/src/endpoints.ts b/clients/client-amplify/src/endpoints.ts index 5401279d67f4b..f79e5caa8ea47 100644 --- a/clients/client-amplify/src/endpoints.ts +++ b/clients/client-amplify/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "amplify", diff --git a/clients/client-amplifybackend/src/endpoints.ts b/clients/client-amplifybackend/src/endpoints.ts index 471b1c49372be..5cbe440e1420c 100644 --- a/clients/client-amplifybackend/src/endpoints.ts +++ b/clients/client-amplifybackend/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "amplifybackend", diff --git a/clients/client-api-gateway/src/endpoints.ts b/clients/client-api-gateway/src/endpoints.ts index 82c8d93f071d0..d3b2a173eb4a3 100644 --- a/clients/client-api-gateway/src/endpoints.ts +++ b/clients/client-api-gateway/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "apigateway", diff --git a/clients/client-apigatewaymanagementapi/src/endpoints.ts b/clients/client-apigatewaymanagementapi/src/endpoints.ts index 5ce5cb67cf347..2a1bee1c6fa6c 100644 --- a/clients/client-apigatewaymanagementapi/src/endpoints.ts +++ b/clients/client-apigatewaymanagementapi/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "execute-api", diff --git a/clients/client-apigatewayv2/src/endpoints.ts b/clients/client-apigatewayv2/src/endpoints.ts index 82c8d93f071d0..d3b2a173eb4a3 100644 --- a/clients/client-apigatewayv2/src/endpoints.ts +++ b/clients/client-apigatewayv2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "apigateway", diff --git a/clients/client-app-mesh/src/endpoints.ts b/clients/client-app-mesh/src/endpoints.ts index e224066247b51..db0abc8e83520 100644 --- a/clients/client-app-mesh/src/endpoints.ts +++ b/clients/client-app-mesh/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "appmesh", diff --git a/clients/client-appconfig/src/endpoints.ts b/clients/client-appconfig/src/endpoints.ts index 88c9e789a61ce..6826ebf5d1d51 100644 --- a/clients/client-appconfig/src/endpoints.ts +++ b/clients/client-appconfig/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "appconfig", diff --git a/clients/client-appflow/src/endpoints.ts b/clients/client-appflow/src/endpoints.ts index 1e67a005ae12f..c683cd88bb8d8 100644 --- a/clients/client-appflow/src/endpoints.ts +++ b/clients/client-appflow/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "appflow", diff --git a/clients/client-appintegrations/src/endpoints.ts b/clients/client-appintegrations/src/endpoints.ts index 011537b5e9499..8f62762616958 100644 --- a/clients/client-appintegrations/src/endpoints.ts +++ b/clients/client-appintegrations/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "app-integrations", diff --git a/clients/client-application-auto-scaling/src/endpoints.ts b/clients/client-application-auto-scaling/src/endpoints.ts index 63dbcaeceb556..48f574d26417c 100644 --- a/clients/client-application-auto-scaling/src/endpoints.ts +++ b/clients/client-application-auto-scaling/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "application-autoscaling", diff --git a/clients/client-application-discovery-service/src/endpoints.ts b/clients/client-application-discovery-service/src/endpoints.ts index dc271502929e5..25377a553723a 100644 --- a/clients/client-application-discovery-service/src/endpoints.ts +++ b/clients/client-application-discovery-service/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "discovery", diff --git a/clients/client-application-insights/src/endpoints.ts b/clients/client-application-insights/src/endpoints.ts index dae12612bd6e6..172b4909ce429 100644 --- a/clients/client-application-insights/src/endpoints.ts +++ b/clients/client-application-insights/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-gov-east-1": { @@ -62,7 +62,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "applicationinsights", diff --git a/clients/client-applicationcostprofiler/src/endpoints.ts b/clients/client-applicationcostprofiler/src/endpoints.ts index 3f05a7f56078c..e6d1f1d99102b 100644 --- a/clients/client-applicationcostprofiler/src/endpoints.ts +++ b/clients/client-applicationcostprofiler/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "application-cost-profiler", diff --git a/clients/client-apprunner/src/endpoints.ts b/clients/client-apprunner/src/endpoints.ts index ced654b65aa6f..ad80ac1888b7b 100644 --- a/clients/client-apprunner/src/endpoints.ts +++ b/clients/client-apprunner/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "apprunner", diff --git a/clients/client-appstream/src/endpoints.ts b/clients/client-appstream/src/endpoints.ts index a007ac13ad8f6..c715246df1a39 100644 --- a/clients/client-appstream/src/endpoints.ts +++ b/clients/client-appstream/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { fips: { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "appstream", diff --git a/clients/client-appsync/src/endpoints.ts b/clients/client-appsync/src/endpoints.ts index dbf7426ab32b5..71fec4dc1b5d6 100644 --- a/clients/client-appsync/src/endpoints.ts +++ b/clients/client-appsync/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "appsync", diff --git a/clients/client-athena/src/endpoints.ts b/clients/client-athena/src/endpoints.ts index ba6c118a6f84f..c05f4dfe1a716 100644 --- a/clients/client-athena/src/endpoints.ts +++ b/clients/client-athena/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "athena", diff --git a/clients/client-auditmanager/src/endpoints.ts b/clients/client-auditmanager/src/endpoints.ts index 1b4719e37930c..7eb0ff43eb402 100644 --- a/clients/client-auditmanager/src/endpoints.ts +++ b/clients/client-auditmanager/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "auditmanager", diff --git a/clients/client-auto-scaling-plans/src/endpoints.ts b/clients/client-auto-scaling-plans/src/endpoints.ts index 1b5d623df7d4f..212e18b7035bb 100644 --- a/clients/client-auto-scaling-plans/src/endpoints.ts +++ b/clients/client-auto-scaling-plans/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "autoscaling-plans", diff --git a/clients/client-auto-scaling/src/endpoints.ts b/clients/client-auto-scaling/src/endpoints.ts index 8e9e423caa4df..a504848103d29 100644 --- a/clients/client-auto-scaling/src/endpoints.ts +++ b/clients/client-auto-scaling/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "autoscaling", diff --git a/clients/client-backup/src/endpoints.ts b/clients/client-backup/src/endpoints.ts index 8ecf3d5c948f8..4d8b1dd11c16e 100644 --- a/clients/client-backup/src/endpoints.ts +++ b/clients/client-backup/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "backup", diff --git a/clients/client-batch/src/endpoints.ts b/clients/client-batch/src/endpoints.ts index df4fe3075392d..3f3811b624c7b 100644 --- a/clients/client-batch/src/endpoints.ts +++ b/clients/client-batch/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "batch", diff --git a/clients/client-braket/src/endpoints.ts b/clients/client-braket/src/endpoints.ts index fd20212cb8ba2..bae22003b956f 100644 --- a/clients/client-braket/src/endpoints.ts +++ b/clients/client-braket/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "braket", diff --git a/clients/client-budgets/src/endpoints.ts b/clients/client-budgets/src/endpoints.ts index f748d847f413a..610ad8cd3fc66 100644 --- a/clients/client-budgets/src/endpoints.ts +++ b/clients/client-budgets/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-cn-global": { @@ -63,7 +63,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "budgets", diff --git a/clients/client-chime-sdk-identity/src/endpoints.ts b/clients/client-chime-sdk-identity/src/endpoints.ts index b1c573a0c81ad..b988a789d6692 100644 --- a/clients/client-chime-sdk-identity/src/endpoints.ts +++ b/clients/client-chime-sdk-identity/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "chime", diff --git a/clients/client-chime-sdk-messaging/src/endpoints.ts b/clients/client-chime-sdk-messaging/src/endpoints.ts index 3839d57fc9a59..09fbedb601685 100644 --- a/clients/client-chime-sdk-messaging/src/endpoints.ts +++ b/clients/client-chime-sdk-messaging/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "chime", diff --git a/clients/client-chime/src/endpoints.ts b/clients/client-chime/src/endpoints.ts index 45f3323d7486f..fe61b8b138fc4 100644 --- a/clients/client-chime/src/endpoints.ts +++ b/clients/client-chime/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-global": { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "chime", diff --git a/clients/client-cloud9/src/endpoints.ts b/clients/client-cloud9/src/endpoints.ts index 51b4e581ebdd1..d7be702947969 100644 --- a/clients/client-cloud9/src/endpoints.ts +++ b/clients/client-cloud9/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cloud9", diff --git a/clients/client-cloudcontrol/src/endpoints.ts b/clients/client-cloudcontrol/src/endpoints.ts index bae4496c14a3b..cd2b61b42c122 100644 --- a/clients/client-cloudcontrol/src/endpoints.ts +++ b/clients/client-cloudcontrol/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cloudcontrolapi", diff --git a/clients/client-clouddirectory/src/endpoints.ts b/clients/client-clouddirectory/src/endpoints.ts index 5a264c1c593a2..b2c14497a0109 100644 --- a/clients/client-clouddirectory/src/endpoints.ts +++ b/clients/client-clouddirectory/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "clouddirectory", diff --git a/clients/client-cloudformation/src/endpoints.ts b/clients/client-cloudformation/src/endpoints.ts index 385fcde6c7216..8c4235eb43577 100644 --- a/clients/client-cloudformation/src/endpoints.ts +++ b/clients/client-cloudformation/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cloudformation", diff --git a/clients/client-cloudfront/src/endpoints.ts b/clients/client-cloudfront/src/endpoints.ts index fd46a6a36272c..3e80d1c414620 100644 --- a/clients/client-cloudfront/src/endpoints.ts +++ b/clients/client-cloudfront/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-cn-global": { @@ -63,7 +63,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cloudfront", diff --git a/clients/client-cloudhsm-v2/src/endpoints.ts b/clients/client-cloudhsm-v2/src/endpoints.ts index a1488a16a2b3d..2aa5db953e78f 100644 --- a/clients/client-cloudhsm-v2/src/endpoints.ts +++ b/clients/client-cloudhsm-v2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cloudhsm", diff --git a/clients/client-cloudhsm/src/endpoints.ts b/clients/client-cloudhsm/src/endpoints.ts index 7214a86d32a1f..baf20b34f9197 100644 --- a/clients/client-cloudhsm/src/endpoints.ts +++ b/clients/client-cloudhsm/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cloudhsm", diff --git a/clients/client-cloudsearch-domain/src/endpoints.ts b/clients/client-cloudsearch-domain/src/endpoints.ts index 73751fa1f8c86..a5fafa221b2f1 100644 --- a/clients/client-cloudsearch-domain/src/endpoints.ts +++ b/clients/client-cloudsearch-domain/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cloudsearch", diff --git a/clients/client-cloudsearch/src/endpoints.ts b/clients/client-cloudsearch/src/endpoints.ts index a1fa705303d78..0334106b9e813 100644 --- a/clients/client-cloudsearch/src/endpoints.ts +++ b/clients/client-cloudsearch/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cloudsearch", diff --git a/clients/client-cloudtrail/src/endpoints.ts b/clients/client-cloudtrail/src/endpoints.ts index f964f1ecccc4e..89e8bc2c7454b 100644 --- a/clients/client-cloudtrail/src/endpoints.ts +++ b/clients/client-cloudtrail/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cloudtrail", diff --git a/clients/client-cloudwatch-events/src/endpoints.ts b/clients/client-cloudwatch-events/src/endpoints.ts index 65fcfebb54ac7..29477f977b97f 100644 --- a/clients/client-cloudwatch-events/src/endpoints.ts +++ b/clients/client-cloudwatch-events/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "events", diff --git a/clients/client-cloudwatch-logs/src/endpoints.ts b/clients/client-cloudwatch-logs/src/endpoints.ts index 653d5653ff005..2d69eae2ba21f 100644 --- a/clients/client-cloudwatch-logs/src/endpoints.ts +++ b/clients/client-cloudwatch-logs/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "logs", diff --git a/clients/client-cloudwatch/src/endpoints.ts b/clients/client-cloudwatch/src/endpoints.ts index e307896369c06..c5fff4e129721 100644 --- a/clients/client-cloudwatch/src/endpoints.ts +++ b/clients/client-cloudwatch/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "monitoring", diff --git a/clients/client-codeartifact/src/endpoints.ts b/clients/client-codeartifact/src/endpoints.ts index 8c318047d02c2..24f6fc4d7490c 100644 --- a/clients/client-codeartifact/src/endpoints.ts +++ b/clients/client-codeartifact/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "codeartifact", diff --git a/clients/client-codebuild/src/endpoints.ts b/clients/client-codebuild/src/endpoints.ts index d51bfdb8368a9..9f6ce950bc557 100644 --- a/clients/client-codebuild/src/endpoints.ts +++ b/clients/client-codebuild/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "codebuild", diff --git a/clients/client-codecommit/src/endpoints.ts b/clients/client-codecommit/src/endpoints.ts index 1e5555c568d8f..512a1173e42b5 100644 --- a/clients/client-codecommit/src/endpoints.ts +++ b/clients/client-codecommit/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { fips: { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "codecommit", diff --git a/clients/client-codedeploy/src/endpoints.ts b/clients/client-codedeploy/src/endpoints.ts index 698cb082ffa44..0a8606aad6a50 100644 --- a/clients/client-codedeploy/src/endpoints.ts +++ b/clients/client-codedeploy/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "codedeploy", diff --git a/clients/client-codeguru-reviewer/src/endpoints.ts b/clients/client-codeguru-reviewer/src/endpoints.ts index e15c0206b753e..c0f6b3feb5cdf 100644 --- a/clients/client-codeguru-reviewer/src/endpoints.ts +++ b/clients/client-codeguru-reviewer/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "codeguru-reviewer", diff --git a/clients/client-codeguruprofiler/src/endpoints.ts b/clients/client-codeguruprofiler/src/endpoints.ts index cbb92922fac49..55a48f7722496 100644 --- a/clients/client-codeguruprofiler/src/endpoints.ts +++ b/clients/client-codeguruprofiler/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "codeguru-profiler", diff --git a/clients/client-codepipeline/src/endpoints.ts b/clients/client-codepipeline/src/endpoints.ts index 22d6329761bca..a7d3f5b62e13c 100644 --- a/clients/client-codepipeline/src/endpoints.ts +++ b/clients/client-codepipeline/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -83,7 +83,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "codepipeline", diff --git a/clients/client-codestar-connections/src/endpoints.ts b/clients/client-codestar-connections/src/endpoints.ts index bae97a6db70da..83e5333c7c5ae 100644 --- a/clients/client-codestar-connections/src/endpoints.ts +++ b/clients/client-codestar-connections/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "codestar-connections", diff --git a/clients/client-codestar-notifications/src/endpoints.ts b/clients/client-codestar-notifications/src/endpoints.ts index ed39cdb4b8d39..5a8db830c7a80 100644 --- a/clients/client-codestar-notifications/src/endpoints.ts +++ b/clients/client-codestar-notifications/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "codestar-notifications", diff --git a/clients/client-codestar/src/endpoints.ts b/clients/client-codestar/src/endpoints.ts index 36be2dc425fcc..6d9ad78123360 100644 --- a/clients/client-codestar/src/endpoints.ts +++ b/clients/client-codestar/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "codestar", diff --git a/clients/client-cognito-identity-provider/src/endpoints.ts b/clients/client-cognito-identity-provider/src/endpoints.ts index 88b9db2f029de..79d1f845f86b8 100644 --- a/clients/client-cognito-identity-provider/src/endpoints.ts +++ b/clients/client-cognito-identity-provider/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -78,7 +78,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cognito-idp", diff --git a/clients/client-cognito-identity/src/endpoints.ts b/clients/client-cognito-identity/src/endpoints.ts index bd08234ecf8a3..24851318d9077 100644 --- a/clients/client-cognito-identity/src/endpoints.ts +++ b/clients/client-cognito-identity/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -73,7 +73,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cognito-identity", diff --git a/clients/client-cognito-sync/src/endpoints.ts b/clients/client-cognito-sync/src/endpoints.ts index 492913e2481b9..cd6143f65d5b0 100644 --- a/clients/client-cognito-sync/src/endpoints.ts +++ b/clients/client-cognito-sync/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cognito-sync", diff --git a/clients/client-comprehend/src/endpoints.ts b/clients/client-comprehend/src/endpoints.ts index 03dd7006a7ac2..c5f2783e6244e 100644 --- a/clients/client-comprehend/src/endpoints.ts +++ b/clients/client-comprehend/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -73,7 +73,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "comprehend", diff --git a/clients/client-comprehendmedical/src/endpoints.ts b/clients/client-comprehendmedical/src/endpoints.ts index 9b25d15a6983c..42f77c1e30d0b 100644 --- a/clients/client-comprehendmedical/src/endpoints.ts +++ b/clients/client-comprehendmedical/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -73,7 +73,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "comprehendmedical", diff --git a/clients/client-compute-optimizer/src/endpoints.ts b/clients/client-compute-optimizer/src/endpoints.ts index 0cc403c1ef0a5..4b9ecadfe5817 100644 --- a/clients/client-compute-optimizer/src/endpoints.ts +++ b/clients/client-compute-optimizer/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "compute-optimizer", diff --git a/clients/client-config-service/src/endpoints.ts b/clients/client-config-service/src/endpoints.ts index dab68293dde73..f929863efac84 100644 --- a/clients/client-config-service/src/endpoints.ts +++ b/clients/client-config-service/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "config", diff --git a/clients/client-connect-contact-lens/src/endpoints.ts b/clients/client-connect-contact-lens/src/endpoints.ts index 8921a3e55e541..bf4b457eaf8d3 100644 --- a/clients/client-connect-contact-lens/src/endpoints.ts +++ b/clients/client-connect-contact-lens/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "connect", diff --git a/clients/client-connect/src/endpoints.ts b/clients/client-connect/src/endpoints.ts index 1ac5ee2aacd3e..dc6eb6f8261f2 100644 --- a/clients/client-connect/src/endpoints.ts +++ b/clients/client-connect/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "connect", diff --git a/clients/client-connectparticipant/src/endpoints.ts b/clients/client-connectparticipant/src/endpoints.ts index c3a1785f252b9..d7e6741e30303 100644 --- a/clients/client-connectparticipant/src/endpoints.ts +++ b/clients/client-connectparticipant/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "execute-api", diff --git a/clients/client-cost-and-usage-report-service/src/endpoints.ts b/clients/client-cost-and-usage-report-service/src/endpoints.ts index 8cbbf39bc8c33..313d629622218 100644 --- a/clients/client-cost-and-usage-report-service/src/endpoints.ts +++ b/clients/client-cost-and-usage-report-service/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "cur", diff --git a/clients/client-cost-explorer/src/endpoints.ts b/clients/client-cost-explorer/src/endpoints.ts index 7560a48e2f869..39f99b0ea433e 100644 --- a/clients/client-cost-explorer/src/endpoints.ts +++ b/clients/client-cost-explorer/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-cn-global": { @@ -63,7 +63,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ce", diff --git a/clients/client-customer-profiles/src/endpoints.ts b/clients/client-customer-profiles/src/endpoints.ts index 53c7f0cd69729..7ffe7324cdbcb 100644 --- a/clients/client-customer-profiles/src/endpoints.ts +++ b/clients/client-customer-profiles/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "profile", diff --git a/clients/client-data-pipeline/src/endpoints.ts b/clients/client-data-pipeline/src/endpoints.ts index 173d88b99d0aa..b6f20685f3a85 100644 --- a/clients/client-data-pipeline/src/endpoints.ts +++ b/clients/client-data-pipeline/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "datapipeline", diff --git a/clients/client-database-migration-service/src/endpoints.ts b/clients/client-database-migration-service/src/endpoints.ts index 21b5c73bd4bba..cf3bcc457add1 100644 --- a/clients/client-database-migration-service/src/endpoints.ts +++ b/clients/client-database-migration-service/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "dms-fips": { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "dms", diff --git a/clients/client-databrew/src/endpoints.ts b/clients/client-databrew/src/endpoints.ts index ef09b0cc69e66..cee4c5575b890 100644 --- a/clients/client-databrew/src/endpoints.ts +++ b/clients/client-databrew/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "databrew", diff --git a/clients/client-dataexchange/src/endpoints.ts b/clients/client-dataexchange/src/endpoints.ts index b611501277a18..fd195f136aba8 100644 --- a/clients/client-dataexchange/src/endpoints.ts +++ b/clients/client-dataexchange/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "dataexchange", diff --git a/clients/client-datasync/src/endpoints.ts b/clients/client-datasync/src/endpoints.ts index 60659795d384d..b48b25f206544 100644 --- a/clients/client-datasync/src/endpoints.ts +++ b/clients/client-datasync/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "datasync", diff --git a/clients/client-dax/src/endpoints.ts b/clients/client-dax/src/endpoints.ts index 22c10aeab79cd..b8f8aa295e8fc 100644 --- a/clients/client-dax/src/endpoints.ts +++ b/clients/client-dax/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "dax", diff --git a/clients/client-detective/src/endpoints.ts b/clients/client-detective/src/endpoints.ts index 005146c4869e5..d7b4a6468acf1 100644 --- a/clients/client-detective/src/endpoints.ts +++ b/clients/client-detective/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "detective", diff --git a/clients/client-device-farm/src/endpoints.ts b/clients/client-device-farm/src/endpoints.ts index fe23a593d19b8..0e9e59665679b 100644 --- a/clients/client-device-farm/src/endpoints.ts +++ b/clients/client-device-farm/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "devicefarm", diff --git a/clients/client-devops-guru/src/endpoints.ts b/clients/client-devops-guru/src/endpoints.ts index 8d092f9aa2a88..e7da8c661637a 100644 --- a/clients/client-devops-guru/src/endpoints.ts +++ b/clients/client-devops-guru/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "devops-guru", diff --git a/clients/client-direct-connect/src/endpoints.ts b/clients/client-direct-connect/src/endpoints.ts index dafb32b154dea..2508887731b4c 100644 --- a/clients/client-direct-connect/src/endpoints.ts +++ b/clients/client-direct-connect/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "directconnect", diff --git a/clients/client-directory-service/src/endpoints.ts b/clients/client-directory-service/src/endpoints.ts index 13d59f2b3159d..902fe3fe9966c 100644 --- a/clients/client-directory-service/src/endpoints.ts +++ b/clients/client-directory-service/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ds", diff --git a/clients/client-dlm/src/endpoints.ts b/clients/client-dlm/src/endpoints.ts index 1ec8eeb576ae3..a97e382e7a261 100644 --- a/clients/client-dlm/src/endpoints.ts +++ b/clients/client-dlm/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "dlm", diff --git a/clients/client-docdb/src/endpoints.ts b/clients/client-docdb/src/endpoints.ts index d1ea2a09c2193..8033fe8df7f70 100644 --- a/clients/client-docdb/src/endpoints.ts +++ b/clients/client-docdb/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "rds-fips.ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "rds", diff --git a/clients/client-dynamodb-streams/src/endpoints.ts b/clients/client-dynamodb-streams/src/endpoints.ts index e7d8db489ace9..c9839030ed23d 100644 --- a/clients/client-dynamodb-streams/src/endpoints.ts +++ b/clients/client-dynamodb-streams/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "ca-central-1-fips": { @@ -92,7 +92,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "dynamodb", diff --git a/clients/client-dynamodb/src/endpoints.ts b/clients/client-dynamodb/src/endpoints.ts index 888f13e83d4b6..b1fa57a95435e 100644 --- a/clients/client-dynamodb/src/endpoints.ts +++ b/clients/client-dynamodb/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "ca-central-1-fips": { @@ -92,7 +92,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "dynamodb", diff --git a/clients/client-ebs/src/endpoints.ts b/clients/client-ebs/src/endpoints.ts index 003d4a9fe3b42..4f560105d61ed 100644 --- a/clients/client-ebs/src/endpoints.ts +++ b/clients/client-ebs/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -79,7 +79,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ebs", diff --git a/clients/client-ec2-instance-connect/src/endpoints.ts b/clients/client-ec2-instance-connect/src/endpoints.ts index 23b3dd06ddb11..c21795d600aad 100644 --- a/clients/client-ec2-instance-connect/src/endpoints.ts +++ b/clients/client-ec2-instance-connect/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ec2-instance-connect", diff --git a/clients/client-ec2/src/endpoints.ts b/clients/client-ec2/src/endpoints.ts index 9843e07b5524e..6e22730f96a6b 100644 --- a/clients/client-ec2/src/endpoints.ts +++ b/clients/client-ec2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ec2", diff --git a/clients/client-ecr-public/src/endpoints.ts b/clients/client-ecr-public/src/endpoints.ts index da19fd8575713..d891f1a5c011d 100644 --- a/clients/client-ecr-public/src/endpoints.ts +++ b/clients/client-ecr-public/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ecr-public", diff --git a/clients/client-ecr/src/endpoints.ts b/clients/client-ecr/src/endpoints.ts index e01c816074244..d2b20bfc84c35 100644 --- a/clients/client-ecr/src/endpoints.ts +++ b/clients/client-ecr/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "af-south-1": { @@ -229,7 +229,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ecr", diff --git a/clients/client-ecs/src/endpoints.ts b/clients/client-ecs/src/endpoints.ts index 1cfce674f6fd3..37cdb7b8a7932 100644 --- a/clients/client-ecs/src/endpoints.ts +++ b/clients/client-ecs/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ecs", diff --git a/clients/client-efs/src/endpoints.ts b/clients/client-efs/src/endpoints.ts index c3313c0bd42de..d56e11f352bdf 100644 --- a/clients/client-efs/src/endpoints.ts +++ b/clients/client-efs/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-af-south-1": { @@ -179,7 +179,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "elasticfilesystem", diff --git a/clients/client-eks/src/endpoints.ts b/clients/client-eks/src/endpoints.ts index c4a309d4066d3..c1a7649985528 100644 --- a/clients/client-eks/src/endpoints.ts +++ b/clients/client-eks/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "eks", diff --git a/clients/client-elastic-beanstalk/src/endpoints.ts b/clients/client-elastic-beanstalk/src/endpoints.ts index 930d21c565c1f..6cb0a7e1b4afc 100644 --- a/clients/client-elastic-beanstalk/src/endpoints.ts +++ b/clients/client-elastic-beanstalk/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "elasticbeanstalk", diff --git a/clients/client-elastic-inference/src/endpoints.ts b/clients/client-elastic-inference/src/endpoints.ts index 10c3454804f70..38015723b879b 100644 --- a/clients/client-elastic-inference/src/endpoints.ts +++ b/clients/client-elastic-inference/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "ap-northeast-1": { @@ -72,7 +72,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "elastic-inference", diff --git a/clients/client-elastic-load-balancing-v2/src/endpoints.ts b/clients/client-elastic-load-balancing-v2/src/endpoints.ts index 74b3a37914872..ea17fc023c2dc 100644 --- a/clients/client-elastic-load-balancing-v2/src/endpoints.ts +++ b/clients/client-elastic-load-balancing-v2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "elasticloadbalancing", diff --git a/clients/client-elastic-load-balancing/src/endpoints.ts b/clients/client-elastic-load-balancing/src/endpoints.ts index 74b3a37914872..ea17fc023c2dc 100644 --- a/clients/client-elastic-load-balancing/src/endpoints.ts +++ b/clients/client-elastic-load-balancing/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "elasticloadbalancing", diff --git a/clients/client-elastic-transcoder/src/endpoints.ts b/clients/client-elastic-transcoder/src/endpoints.ts index dff2c2e54e845..29bb2de8d9452 100644 --- a/clients/client-elastic-transcoder/src/endpoints.ts +++ b/clients/client-elastic-transcoder/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "elastictranscoder", diff --git a/clients/client-elasticache/src/endpoints.ts b/clients/client-elasticache/src/endpoints.ts index 57002284c7c95..0f079a63e858b 100644 --- a/clients/client-elasticache/src/endpoints.ts +++ b/clients/client-elasticache/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { fips: { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "elasticache", diff --git a/clients/client-elasticsearch-service/src/endpoints.ts b/clients/client-elasticsearch-service/src/endpoints.ts index b682e53831beb..4042a8f4e9180 100644 --- a/clients/client-elasticsearch-service/src/endpoints.ts +++ b/clients/client-elasticsearch-service/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { fips: { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "es", diff --git a/clients/client-emr-containers/src/endpoints.ts b/clients/client-emr-containers/src/endpoints.ts index 3c27cb837c816..74da35c041b37 100644 --- a/clients/client-emr-containers/src/endpoints.ts +++ b/clients/client-emr-containers/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -79,7 +79,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "emr-containers", diff --git a/clients/client-emr/src/endpoints.ts b/clients/client-emr/src/endpoints.ts index 7819aba1ee389..6d1f13b802793 100644 --- a/clients/client-emr/src/endpoints.ts +++ b/clients/client-emr/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "elasticmapreduce", diff --git a/clients/client-eventbridge/src/endpoints.ts b/clients/client-eventbridge/src/endpoints.ts index 65fcfebb54ac7..29477f977b97f 100644 --- a/clients/client-eventbridge/src/endpoints.ts +++ b/clients/client-eventbridge/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "events", diff --git a/clients/client-finspace-data/src/endpoints.ts b/clients/client-finspace-data/src/endpoints.ts index 436c15b0efa23..713e4989dd099 100644 --- a/clients/client-finspace-data/src/endpoints.ts +++ b/clients/client-finspace-data/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "finspace-api", diff --git a/clients/client-finspace/src/endpoints.ts b/clients/client-finspace/src/endpoints.ts index 05ba867ec574a..348bbb586b10b 100644 --- a/clients/client-finspace/src/endpoints.ts +++ b/clients/client-finspace/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "finspace", diff --git a/clients/client-firehose/src/endpoints.ts b/clients/client-firehose/src/endpoints.ts index 9398deb342b4b..12bcaba0b1663 100644 --- a/clients/client-firehose/src/endpoints.ts +++ b/clients/client-firehose/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "firehose", diff --git a/clients/client-fis/src/endpoints.ts b/clients/client-fis/src/endpoints.ts index 021347e48465b..2dfb68524ef44 100644 --- a/clients/client-fis/src/endpoints.ts +++ b/clients/client-fis/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "fis", diff --git a/clients/client-fms/src/endpoints.ts b/clients/client-fms/src/endpoints.ts index 22112eb64bb77..b69b67327c9d9 100644 --- a/clients/client-fms/src/endpoints.ts +++ b/clients/client-fms/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-af-south-1": { @@ -157,7 +157,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "fms", diff --git a/clients/client-forecast/src/endpoints.ts b/clients/client-forecast/src/endpoints.ts index cc657d80edeed..ecb42c5c9072b 100644 --- a/clients/client-forecast/src/endpoints.ts +++ b/clients/client-forecast/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -69,7 +69,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "forecast", diff --git a/clients/client-forecastquery/src/endpoints.ts b/clients/client-forecastquery/src/endpoints.ts index e982dc0d4db2f..448f7572374b4 100644 --- a/clients/client-forecastquery/src/endpoints.ts +++ b/clients/client-forecastquery/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -69,7 +69,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "forecast", diff --git a/clients/client-frauddetector/src/endpoints.ts b/clients/client-frauddetector/src/endpoints.ts index 4ed80976cbb2f..944affde588b1 100644 --- a/clients/client-frauddetector/src/endpoints.ts +++ b/clients/client-frauddetector/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "frauddetector", diff --git a/clients/client-fsx/src/endpoints.ts b/clients/client-fsx/src/endpoints.ts index 110366bfdaf46..22e06563e083e 100644 --- a/clients/client-fsx/src/endpoints.ts +++ b/clients/client-fsx/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-prod-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "fsx", diff --git a/clients/client-gamelift/src/endpoints.ts b/clients/client-gamelift/src/endpoints.ts index 51bab7db70816..12ee60bfbb43b 100644 --- a/clients/client-gamelift/src/endpoints.ts +++ b/clients/client-gamelift/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "gamelift", diff --git a/clients/client-glacier/src/endpoints.ts b/clients/client-glacier/src/endpoints.ts index 19ccd6352a6c8..434fe0f0aaf77 100644 --- a/clients/client-glacier/src/endpoints.ts +++ b/clients/client-glacier/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "glacier", diff --git a/clients/client-global-accelerator/src/endpoints.ts b/clients/client-global-accelerator/src/endpoints.ts index 2669806437aac..dc37417613de2 100644 --- a/clients/client-global-accelerator/src/endpoints.ts +++ b/clients/client-global-accelerator/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "globalaccelerator", diff --git a/clients/client-glue/src/endpoints.ts b/clients/client-glue/src/endpoints.ts index 44721f874b90d..d5e94d5865fbc 100644 --- a/clients/client-glue/src/endpoints.ts +++ b/clients/client-glue/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "glue", diff --git a/clients/client-grafana/src/endpoints.ts b/clients/client-grafana/src/endpoints.ts index e4b0adb4e401f..91d839c94d74f 100644 --- a/clients/client-grafana/src/endpoints.ts +++ b/clients/client-grafana/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "ap-northeast-1": { @@ -94,7 +94,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "grafana", diff --git a/clients/client-greengrass/src/endpoints.ts b/clients/client-greengrass/src/endpoints.ts index 081bb5577d7e5..de25d3f5a2e41 100644 --- a/clients/client-greengrass/src/endpoints.ts +++ b/clients/client-greengrass/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "dataplane-us-gov-east-1": { @@ -80,7 +80,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "greengrass", diff --git a/clients/client-greengrassv2/src/endpoints.ts b/clients/client-greengrassv2/src/endpoints.ts index 081bb5577d7e5..de25d3f5a2e41 100644 --- a/clients/client-greengrassv2/src/endpoints.ts +++ b/clients/client-greengrassv2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "dataplane-us-gov-east-1": { @@ -80,7 +80,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "greengrass", diff --git a/clients/client-groundstation/src/endpoints.ts b/clients/client-groundstation/src/endpoints.ts index fd25a84ee0444..7d84b83f7fd2e 100644 --- a/clients/client-groundstation/src/endpoints.ts +++ b/clients/client-groundstation/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -69,7 +69,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "groundstation", diff --git a/clients/client-guardduty/src/endpoints.ts b/clients/client-guardduty/src/endpoints.ts index 9aa49dd5e5de4..25cb3ced8972f 100644 --- a/clients/client-guardduty/src/endpoints.ts +++ b/clients/client-guardduty/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "guardduty", diff --git a/clients/client-health/src/endpoints.ts b/clients/client-health/src/endpoints.ts index 7175eea6007e9..bbb9dcc185576 100644 --- a/clients/client-health/src/endpoints.ts +++ b/clients/client-health/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-2": { @@ -63,7 +63,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "health", diff --git a/clients/client-healthlake/src/endpoints.ts b/clients/client-healthlake/src/endpoints.ts index aa67727afc7af..bf4361818da50 100644 --- a/clients/client-healthlake/src/endpoints.ts +++ b/clients/client-healthlake/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "healthlake", diff --git a/clients/client-honeycode/src/endpoints.ts b/clients/client-honeycode/src/endpoints.ts index 70cd4492db5b5..019bbe57cdf13 100644 --- a/clients/client-honeycode/src/endpoints.ts +++ b/clients/client-honeycode/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "honeycode", diff --git a/clients/client-iam/src/endpoints.ts b/clients/client-iam/src/endpoints.ts index 11a3989153d7c..f15dbb9440ea7 100644 --- a/clients/client-iam/src/endpoints.ts +++ b/clients/client-iam/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-cn-global": { @@ -84,7 +84,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iam", diff --git a/clients/client-identitystore/src/endpoints.ts b/clients/client-identitystore/src/endpoints.ts index 879e286537bdc..d9f5ddf22952e 100644 --- a/clients/client-identitystore/src/endpoints.ts +++ b/clients/client-identitystore/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-gov-west-1": { @@ -58,7 +58,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "identitystore", diff --git a/clients/client-imagebuilder/src/endpoints.ts b/clients/client-imagebuilder/src/endpoints.ts index d4bc3dcc3bbe4..e5b54aac89668 100644 --- a/clients/client-imagebuilder/src/endpoints.ts +++ b/clients/client-imagebuilder/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "imagebuilder", diff --git a/clients/client-inspector/src/endpoints.ts b/clients/client-inspector/src/endpoints.ts index 9185257613863..42ed08a322e41 100644 --- a/clients/client-inspector/src/endpoints.ts +++ b/clients/client-inspector/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "inspector", diff --git a/clients/client-iot-1click-devices-service/src/endpoints.ts b/clients/client-iot-1click-devices-service/src/endpoints.ts index fd3b7071952d9..b23abc2039384 100644 --- a/clients/client-iot-1click-devices-service/src/endpoints.ts +++ b/clients/client-iot-1click-devices-service/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iot1click", diff --git a/clients/client-iot-1click-projects/src/endpoints.ts b/clients/client-iot-1click-projects/src/endpoints.ts index 3eb3c308c7fd9..d53a80fc2ea68 100644 --- a/clients/client-iot-1click-projects/src/endpoints.ts +++ b/clients/client-iot-1click-projects/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iot1click", diff --git a/clients/client-iot-data-plane/src/endpoints.ts b/clients/client-iot-data-plane/src/endpoints.ts index 4a56b4c6417f8..5b1549ebb2b30 100644 --- a/clients/client-iot-data-plane/src/endpoints.ts +++ b/clients/client-iot-data-plane/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iotdata", diff --git a/clients/client-iot-events-data/src/endpoints.ts b/clients/client-iot-events-data/src/endpoints.ts index 5fa307100c6b7..34befd3539d3b 100644 --- a/clients/client-iot-events-data/src/endpoints.ts +++ b/clients/client-iot-events-data/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ioteventsdata", diff --git a/clients/client-iot-events/src/endpoints.ts b/clients/client-iot-events/src/endpoints.ts index 77bac0ff9d81b..445c43b98d696 100644 --- a/clients/client-iot-events/src/endpoints.ts +++ b/clients/client-iot-events/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iotevents", diff --git a/clients/client-iot-jobs-data-plane/src/endpoints.ts b/clients/client-iot-jobs-data-plane/src/endpoints.ts index 2c130d448e8ba..aae166095ad95 100644 --- a/clients/client-iot-jobs-data-plane/src/endpoints.ts +++ b/clients/client-iot-jobs-data-plane/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iot-jobs-data", diff --git a/clients/client-iot-wireless/src/endpoints.ts b/clients/client-iot-wireless/src/endpoints.ts index c590a5409acfc..72daa9372a76c 100644 --- a/clients/client-iot-wireless/src/endpoints.ts +++ b/clients/client-iot-wireless/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iotwireless", diff --git a/clients/client-iot/src/endpoints.ts b/clients/client-iot/src/endpoints.ts index c03bcf0ba2aa1..d03e34703307f 100644 --- a/clients/client-iot/src/endpoints.ts +++ b/clients/client-iot/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "execute-api", diff --git a/clients/client-iotanalytics/src/endpoints.ts b/clients/client-iotanalytics/src/endpoints.ts index 59d07ca7f4b81..3a7dfa9a29e26 100644 --- a/clients/client-iotanalytics/src/endpoints.ts +++ b/clients/client-iotanalytics/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iotanalytics", diff --git a/clients/client-iotdeviceadvisor/src/endpoints.ts b/clients/client-iotdeviceadvisor/src/endpoints.ts index 3950d073f2351..d5fab7b011979 100644 --- a/clients/client-iotdeviceadvisor/src/endpoints.ts +++ b/clients/client-iotdeviceadvisor/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iotdeviceadvisor", diff --git a/clients/client-iotfleethub/src/endpoints.ts b/clients/client-iotfleethub/src/endpoints.ts index 4514cc9984321..4f6400fc4db0b 100644 --- a/clients/client-iotfleethub/src/endpoints.ts +++ b/clients/client-iotfleethub/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -74,7 +74,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iotfleethub", diff --git a/clients/client-iotsecuretunneling/src/endpoints.ts b/clients/client-iotsecuretunneling/src/endpoints.ts index 70afc8c9efcb0..edb1bdc683238 100644 --- a/clients/client-iotsecuretunneling/src/endpoints.ts +++ b/clients/client-iotsecuretunneling/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iotsecuredtunneling", diff --git a/clients/client-iotsitewise/src/endpoints.ts b/clients/client-iotsitewise/src/endpoints.ts index 8443518473656..b32f8fc82eb56 100644 --- a/clients/client-iotsitewise/src/endpoints.ts +++ b/clients/client-iotsitewise/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iotsitewise", diff --git a/clients/client-iotthingsgraph/src/endpoints.ts b/clients/client-iotthingsgraph/src/endpoints.ts index e701dd69075f4..9139e86429943 100644 --- a/clients/client-iotthingsgraph/src/endpoints.ts +++ b/clients/client-iotthingsgraph/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "iotthingsgraph", diff --git a/clients/client-ivs/src/endpoints.ts b/clients/client-ivs/src/endpoints.ts index 1b333aa968ceb..8847c87b6adab 100644 --- a/clients/client-ivs/src/endpoints.ts +++ b/clients/client-ivs/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ivs", diff --git a/clients/client-kafka/src/endpoints.ts b/clients/client-kafka/src/endpoints.ts index 918585051bcbb..fbcf022046193 100644 --- a/clients/client-kafka/src/endpoints.ts +++ b/clients/client-kafka/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "kafka", diff --git a/clients/client-kafkaconnect/src/endpoints.ts b/clients/client-kafkaconnect/src/endpoints.ts index 4af12c5f00bd8..a49af3b2151e2 100644 --- a/clients/client-kafkaconnect/src/endpoints.ts +++ b/clients/client-kafkaconnect/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "kafkaconnect", diff --git a/clients/client-kendra/src/endpoints.ts b/clients/client-kendra/src/endpoints.ts index 4f0ae4899f8d6..b5746e0688850 100644 --- a/clients/client-kendra/src/endpoints.ts +++ b/clients/client-kendra/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -73,7 +73,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "kendra", diff --git a/clients/client-kinesis-analytics-v2/src/endpoints.ts b/clients/client-kinesis-analytics-v2/src/endpoints.ts index 4b0fec194faba..18fa326b08f08 100644 --- a/clients/client-kinesis-analytics-v2/src/endpoints.ts +++ b/clients/client-kinesis-analytics-v2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "kinesisanalytics", diff --git a/clients/client-kinesis-analytics/src/endpoints.ts b/clients/client-kinesis-analytics/src/endpoints.ts index 4b0fec194faba..18fa326b08f08 100644 --- a/clients/client-kinesis-analytics/src/endpoints.ts +++ b/clients/client-kinesis-analytics/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "kinesisanalytics", diff --git a/clients/client-kinesis-video-archived-media/src/endpoints.ts b/clients/client-kinesis-video-archived-media/src/endpoints.ts index 85db15fb72c66..1462ba68a1378 100644 --- a/clients/client-kinesis-video-archived-media/src/endpoints.ts +++ b/clients/client-kinesis-video-archived-media/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "kinesisvideo", diff --git a/clients/client-kinesis-video-media/src/endpoints.ts b/clients/client-kinesis-video-media/src/endpoints.ts index 85db15fb72c66..1462ba68a1378 100644 --- a/clients/client-kinesis-video-media/src/endpoints.ts +++ b/clients/client-kinesis-video-media/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "kinesisvideo", diff --git a/clients/client-kinesis-video-signaling/src/endpoints.ts b/clients/client-kinesis-video-signaling/src/endpoints.ts index 85db15fb72c66..1462ba68a1378 100644 --- a/clients/client-kinesis-video-signaling/src/endpoints.ts +++ b/clients/client-kinesis-video-signaling/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "kinesisvideo", diff --git a/clients/client-kinesis-video/src/endpoints.ts b/clients/client-kinesis-video/src/endpoints.ts index 85db15fb72c66..1462ba68a1378 100644 --- a/clients/client-kinesis-video/src/endpoints.ts +++ b/clients/client-kinesis-video/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "kinesisvideo", diff --git a/clients/client-kinesis/src/endpoints.ts b/clients/client-kinesis/src/endpoints.ts index 2c5bfc811f428..1a2b2b57048cc 100644 --- a/clients/client-kinesis/src/endpoints.ts +++ b/clients/client-kinesis/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "kinesis", diff --git a/clients/client-kms/src/endpoints.ts b/clients/client-kms/src/endpoints.ts index 2936f1058ef04..a073f48763cb3 100644 --- a/clients/client-kms/src/endpoints.ts +++ b/clients/client-kms/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { ProdFips: { @@ -58,7 +58,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "kms", diff --git a/clients/client-lakeformation/src/endpoints.ts b/clients/client-lakeformation/src/endpoints.ts index df5ad94dd4e2d..26998ff9ca183 100644 --- a/clients/client-lakeformation/src/endpoints.ts +++ b/clients/client-lakeformation/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -78,7 +78,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "lakeformation", diff --git a/clients/client-lambda/src/endpoints.ts b/clients/client-lambda/src/endpoints.ts index d7455427a9066..e346bb99e91ab 100644 --- a/clients/client-lambda/src/endpoints.ts +++ b/clients/client-lambda/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "lambda", diff --git a/clients/client-lex-model-building-service/src/endpoints.ts b/clients/client-lex-model-building-service/src/endpoints.ts index 41c1e259b61ac..0f8f21ac03801 100644 --- a/clients/client-lex-model-building-service/src/endpoints.ts +++ b/clients/client-lex-model-building-service/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -68,7 +68,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "lex", diff --git a/clients/client-lex-models-v2/src/endpoints.ts b/clients/client-lex-models-v2/src/endpoints.ts index 2b348da74242b..264972112f16d 100644 --- a/clients/client-lex-models-v2/src/endpoints.ts +++ b/clients/client-lex-models-v2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "lex", diff --git a/clients/client-lex-runtime-service/src/endpoints.ts b/clients/client-lex-runtime-service/src/endpoints.ts index 86072320870f5..71a0a9ce2eb55 100644 --- a/clients/client-lex-runtime-service/src/endpoints.ts +++ b/clients/client-lex-runtime-service/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -68,7 +68,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "lex", diff --git a/clients/client-lex-runtime-v2/src/endpoints.ts b/clients/client-lex-runtime-v2/src/endpoints.ts index 44871334e8ffa..e0fdf1dc793f7 100644 --- a/clients/client-lex-runtime-v2/src/endpoints.ts +++ b/clients/client-lex-runtime-v2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "lex", diff --git a/clients/client-license-manager/src/endpoints.ts b/clients/client-license-manager/src/endpoints.ts index 96941d2628b3e..cb8664373f155 100644 --- a/clients/client-license-manager/src/endpoints.ts +++ b/clients/client-license-manager/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "license-manager", diff --git a/clients/client-lightsail/src/endpoints.ts b/clients/client-lightsail/src/endpoints.ts index b5ae64afaed17..21572d762b835 100644 --- a/clients/client-lightsail/src/endpoints.ts +++ b/clients/client-lightsail/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "lightsail", diff --git a/clients/client-location/src/endpoints.ts b/clients/client-location/src/endpoints.ts index 795b6e6f87fb5..3d2a6f1720011 100644 --- a/clients/client-location/src/endpoints.ts +++ b/clients/client-location/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "geo", diff --git a/clients/client-lookoutequipment/src/endpoints.ts b/clients/client-lookoutequipment/src/endpoints.ts index 60448c8c4a0ef..f385887b948a1 100644 --- a/clients/client-lookoutequipment/src/endpoints.ts +++ b/clients/client-lookoutequipment/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "lookoutequipment", diff --git a/clients/client-lookoutmetrics/src/endpoints.ts b/clients/client-lookoutmetrics/src/endpoints.ts index 0ad6ba2279e31..330606fce2f0f 100644 --- a/clients/client-lookoutmetrics/src/endpoints.ts +++ b/clients/client-lookoutmetrics/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "lookoutmetrics", diff --git a/clients/client-lookoutvision/src/endpoints.ts b/clients/client-lookoutvision/src/endpoints.ts index de0216ff69c14..e9e6a3825b63a 100644 --- a/clients/client-lookoutvision/src/endpoints.ts +++ b/clients/client-lookoutvision/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "lookoutvision", diff --git a/clients/client-machine-learning/src/endpoints.ts b/clients/client-machine-learning/src/endpoints.ts index 712a04049e71a..abe2353e4525c 100644 --- a/clients/client-machine-learning/src/endpoints.ts +++ b/clients/client-machine-learning/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "machinelearning", diff --git a/clients/client-macie/src/endpoints.ts b/clients/client-macie/src/endpoints.ts index b8c396bb51101..2391d025a16b0 100644 --- a/clients/client-macie/src/endpoints.ts +++ b/clients/client-macie/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -64,7 +64,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "macie", diff --git a/clients/client-macie2/src/endpoints.ts b/clients/client-macie2/src/endpoints.ts index 58bb2a2c16c37..3b967d2f88e56 100644 --- a/clients/client-macie2/src/endpoints.ts +++ b/clients/client-macie2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -74,7 +74,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "macie2", diff --git a/clients/client-managedblockchain/src/endpoints.ts b/clients/client-managedblockchain/src/endpoints.ts index 0756e9a5c27af..8f7275c4885d0 100644 --- a/clients/client-managedblockchain/src/endpoints.ts +++ b/clients/client-managedblockchain/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "managedblockchain", diff --git a/clients/client-marketplace-catalog/src/endpoints.ts b/clients/client-marketplace-catalog/src/endpoints.ts index ca1caeaf924a2..96084089d17c3 100644 --- a/clients/client-marketplace-catalog/src/endpoints.ts +++ b/clients/client-marketplace-catalog/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "aws-marketplace", diff --git a/clients/client-marketplace-commerce-analytics/src/endpoints.ts b/clients/client-marketplace-commerce-analytics/src/endpoints.ts index 8df1077e70edd..5a951649ae35b 100644 --- a/clients/client-marketplace-commerce-analytics/src/endpoints.ts +++ b/clients/client-marketplace-commerce-analytics/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "marketplacecommerceanalytics", diff --git a/clients/client-marketplace-entitlement-service/src/endpoints.ts b/clients/client-marketplace-entitlement-service/src/endpoints.ts index 9eee07668ce6b..c04835e4eab69 100644 --- a/clients/client-marketplace-entitlement-service/src/endpoints.ts +++ b/clients/client-marketplace-entitlement-service/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "aws-marketplace", diff --git a/clients/client-marketplace-metering/src/endpoints.ts b/clients/client-marketplace-metering/src/endpoints.ts index a96f82e58e64b..36973e51d7fce 100644 --- a/clients/client-marketplace-metering/src/endpoints.ts +++ b/clients/client-marketplace-metering/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "aws-marketplace", diff --git a/clients/client-mediaconnect/src/endpoints.ts b/clients/client-mediaconnect/src/endpoints.ts index 77061028c2e7c..c0426b9050cf1 100644 --- a/clients/client-mediaconnect/src/endpoints.ts +++ b/clients/client-mediaconnect/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mediaconnect", diff --git a/clients/client-mediaconvert/src/endpoints.ts b/clients/client-mediaconvert/src/endpoints.ts index e3c13447fd78f..dd20646c94f3c 100644 --- a/clients/client-mediaconvert/src/endpoints.ts +++ b/clients/client-mediaconvert/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "cn-northwest-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mediaconvert", diff --git a/clients/client-medialive/src/endpoints.ts b/clients/client-medialive/src/endpoints.ts index 30d293ba4a51e..873e493bb893e 100644 --- a/clients/client-medialive/src/endpoints.ts +++ b/clients/client-medialive/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -69,7 +69,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "medialive", diff --git a/clients/client-mediapackage-vod/src/endpoints.ts b/clients/client-mediapackage-vod/src/endpoints.ts index e51c1381737cd..05435a84abeb6 100644 --- a/clients/client-mediapackage-vod/src/endpoints.ts +++ b/clients/client-mediapackage-vod/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mediapackage-vod", diff --git a/clients/client-mediapackage/src/endpoints.ts b/clients/client-mediapackage/src/endpoints.ts index 21d31aa98f2c5..96ce70783baa5 100644 --- a/clients/client-mediapackage/src/endpoints.ts +++ b/clients/client-mediapackage/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mediapackage", diff --git a/clients/client-mediastore-data/src/endpoints.ts b/clients/client-mediastore-data/src/endpoints.ts index 7944787c36cab..28c0137e549ee 100644 --- a/clients/client-mediastore-data/src/endpoints.ts +++ b/clients/client-mediastore-data/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mediastore", diff --git a/clients/client-mediastore/src/endpoints.ts b/clients/client-mediastore/src/endpoints.ts index 55e48b6a58232..a6fbf2cd7bcd3 100644 --- a/clients/client-mediastore/src/endpoints.ts +++ b/clients/client-mediastore/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mediastore", diff --git a/clients/client-mediatailor/src/endpoints.ts b/clients/client-mediatailor/src/endpoints.ts index 9612482d4b0cc..121ec8016bab6 100644 --- a/clients/client-mediatailor/src/endpoints.ts +++ b/clients/client-mediatailor/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mediatailor", diff --git a/clients/client-memorydb/src/endpoints.ts b/clients/client-memorydb/src/endpoints.ts index cd09922f96a1e..329552b056aaf 100644 --- a/clients/client-memorydb/src/endpoints.ts +++ b/clients/client-memorydb/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "memorydb", diff --git a/clients/client-mgn/src/endpoints.ts b/clients/client-mgn/src/endpoints.ts index 9abb55ab8e2bf..eb10dc42d61c3 100644 --- a/clients/client-mgn/src/endpoints.ts +++ b/clients/client-mgn/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mgn", diff --git a/clients/client-migration-hub/src/endpoints.ts b/clients/client-migration-hub/src/endpoints.ts index 633cfad07b6c5..bf77f04962ed0 100644 --- a/clients/client-migration-hub/src/endpoints.ts +++ b/clients/client-migration-hub/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mgh", diff --git a/clients/client-migrationhub-config/src/endpoints.ts b/clients/client-migrationhub-config/src/endpoints.ts index df31ed29b9b37..21c25a84b28f4 100644 --- a/clients/client-migrationhub-config/src/endpoints.ts +++ b/clients/client-migrationhub-config/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mgh", diff --git a/clients/client-mobile/src/endpoints.ts b/clients/client-mobile/src/endpoints.ts index df56c68ba1c38..7cc5d8d839292 100644 --- a/clients/client-mobile/src/endpoints.ts +++ b/clients/client-mobile/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "awsmobilehubservice", diff --git a/clients/client-mq/src/endpoints.ts b/clients/client-mq/src/endpoints.ts index 7a347edcdf6fe..b76c720abd496 100644 --- a/clients/client-mq/src/endpoints.ts +++ b/clients/client-mq/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mq", diff --git a/clients/client-mturk/src/endpoints.ts b/clients/client-mturk/src/endpoints.ts index 0f472fabd3894..d2b66e6592332 100644 --- a/clients/client-mturk/src/endpoints.ts +++ b/clients/client-mturk/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { sandbox: { @@ -58,7 +58,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mturk-requester", diff --git a/clients/client-mwaa/src/endpoints.ts b/clients/client-mwaa/src/endpoints.ts index df4961fb648dc..fbc8d3dce68db 100644 --- a/clients/client-mwaa/src/endpoints.ts +++ b/clients/client-mwaa/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "airflow", diff --git a/clients/client-neptune/src/endpoints.ts b/clients/client-neptune/src/endpoints.ts index d1ea2a09c2193..8033fe8df7f70 100644 --- a/clients/client-neptune/src/endpoints.ts +++ b/clients/client-neptune/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "rds-fips.ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "rds", diff --git a/clients/client-network-firewall/src/endpoints.ts b/clients/client-network-firewall/src/endpoints.ts index aec8272595dae..ef2695b25fa61 100644 --- a/clients/client-network-firewall/src/endpoints.ts +++ b/clients/client-network-firewall/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "network-firewall", diff --git a/clients/client-networkmanager/src/endpoints.ts b/clients/client-networkmanager/src/endpoints.ts index 937203e117717..b68df2c253804 100644 --- a/clients/client-networkmanager/src/endpoints.ts +++ b/clients/client-networkmanager/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "networkmanager", diff --git a/clients/client-nimble/src/endpoints.ts b/clients/client-nimble/src/endpoints.ts index e1287d3bee8c0..0e24103f56e9e 100644 --- a/clients/client-nimble/src/endpoints.ts +++ b/clients/client-nimble/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "nimble", diff --git a/clients/client-opensearch/src/endpoints.ts b/clients/client-opensearch/src/endpoints.ts index b682e53831beb..4042a8f4e9180 100644 --- a/clients/client-opensearch/src/endpoints.ts +++ b/clients/client-opensearch/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { fips: { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "es", diff --git a/clients/client-opsworks/src/endpoints.ts b/clients/client-opsworks/src/endpoints.ts index c4a707e372a02..a7a5933ddad40 100644 --- a/clients/client-opsworks/src/endpoints.ts +++ b/clients/client-opsworks/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "opsworks", diff --git a/clients/client-opsworkscm/src/endpoints.ts b/clients/client-opsworkscm/src/endpoints.ts index d29e5ca9e7d57..9a817e5579f67 100644 --- a/clients/client-opsworkscm/src/endpoints.ts +++ b/clients/client-opsworkscm/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "opsworks-cm", diff --git a/clients/client-organizations/src/endpoints.ts b/clients/client-organizations/src/endpoints.ts index ca60f976b7e82..3d5896c1708c4 100644 --- a/clients/client-organizations/src/endpoints.ts +++ b/clients/client-organizations/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-cn-global": { @@ -76,7 +76,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "organizations", diff --git a/clients/client-outposts/src/endpoints.ts b/clients/client-outposts/src/endpoints.ts index af145b69537af..de969ad49780e 100644 --- a/clients/client-outposts/src/endpoints.ts +++ b/clients/client-outposts/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "outposts", diff --git a/clients/client-panorama/src/endpoints.ts b/clients/client-panorama/src/endpoints.ts index 2c7660dd8b2e4..9c75b80878cb7 100644 --- a/clients/client-panorama/src/endpoints.ts +++ b/clients/client-panorama/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "panorama", diff --git a/clients/client-personalize-events/src/endpoints.ts b/clients/client-personalize-events/src/endpoints.ts index d544ee4f3c628..37d9feed92b80 100644 --- a/clients/client-personalize-events/src/endpoints.ts +++ b/clients/client-personalize-events/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "personalize", diff --git a/clients/client-personalize-runtime/src/endpoints.ts b/clients/client-personalize-runtime/src/endpoints.ts index fc2b4dff7e283..58a6846f48e1e 100644 --- a/clients/client-personalize-runtime/src/endpoints.ts +++ b/clients/client-personalize-runtime/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "personalize", diff --git a/clients/client-personalize/src/endpoints.ts b/clients/client-personalize/src/endpoints.ts index 35e8372682587..bc11eefa7d52f 100644 --- a/clients/client-personalize/src/endpoints.ts +++ b/clients/client-personalize/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "personalize", diff --git a/clients/client-pi/src/endpoints.ts b/clients/client-pi/src/endpoints.ts index f4a376b88cb00..36fa00d15b3eb 100644 --- a/clients/client-pi/src/endpoints.ts +++ b/clients/client-pi/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "pi", diff --git a/clients/client-pinpoint-email/src/endpoints.ts b/clients/client-pinpoint-email/src/endpoints.ts index 7e35e642de089..fd64fb343c7f7 100644 --- a/clients/client-pinpoint-email/src/endpoints.ts +++ b/clients/client-pinpoint-email/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-gov-west-1": { @@ -58,7 +58,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ses", diff --git a/clients/client-pinpoint-sms-voice/src/endpoints.ts b/clients/client-pinpoint-sms-voice/src/endpoints.ts index 1cdb265708b02..e64c42f116f1b 100644 --- a/clients/client-pinpoint-sms-voice/src/endpoints.ts +++ b/clients/client-pinpoint-sms-voice/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "sms-voice", diff --git a/clients/client-pinpoint/src/endpoints.ts b/clients/client-pinpoint/src/endpoints.ts index ef0ae060ff62b..9bac44694cc26 100644 --- a/clients/client-pinpoint/src/endpoints.ts +++ b/clients/client-pinpoint/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -80,7 +80,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "mobiletargeting", diff --git a/clients/client-polly/src/endpoints.ts b/clients/client-polly/src/endpoints.ts index a76af10a84256..d6a93265e77af 100644 --- a/clients/client-polly/src/endpoints.ts +++ b/clients/client-polly/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -78,7 +78,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "polly", diff --git a/clients/client-pricing/src/endpoints.ts b/clients/client-pricing/src/endpoints.ts index 3732ee042227c..87d4373eab25a 100644 --- a/clients/client-pricing/src/endpoints.ts +++ b/clients/client-pricing/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "pricing", diff --git a/clients/client-proton/src/endpoints.ts b/clients/client-proton/src/endpoints.ts index d6fa05ba2a860..247c2a7d6b4cd 100644 --- a/clients/client-proton/src/endpoints.ts +++ b/clients/client-proton/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "proton", diff --git a/clients/client-qldb-session/src/endpoints.ts b/clients/client-qldb-session/src/endpoints.ts index 000a7b977f301..20923707f13a2 100644 --- a/clients/client-qldb-session/src/endpoints.ts +++ b/clients/client-qldb-session/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -69,7 +69,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "qldb", diff --git a/clients/client-qldb/src/endpoints.ts b/clients/client-qldb/src/endpoints.ts index 086b16d1d0b65..21947d0c3a124 100644 --- a/clients/client-qldb/src/endpoints.ts +++ b/clients/client-qldb/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -69,7 +69,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "qldb", diff --git a/clients/client-quicksight/src/endpoints.ts b/clients/client-quicksight/src/endpoints.ts index 7bb60b95e3d24..aadfeb68bd135 100644 --- a/clients/client-quicksight/src/endpoints.ts +++ b/clients/client-quicksight/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -54,7 +54,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "quicksight", diff --git a/clients/client-ram/src/endpoints.ts b/clients/client-ram/src/endpoints.ts index 8a2a295b2231d..c001a7b7fa956 100644 --- a/clients/client-ram/src/endpoints.ts +++ b/clients/client-ram/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ram", diff --git a/clients/client-rds-data/src/endpoints.ts b/clients/client-rds-data/src/endpoints.ts index 93b10378c1a10..d017013776cff 100644 --- a/clients/client-rds-data/src/endpoints.ts +++ b/clients/client-rds-data/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "rds-data", diff --git a/clients/client-rds/src/endpoints.ts b/clients/client-rds/src/endpoints.ts index d1ea2a09c2193..8033fe8df7f70 100644 --- a/clients/client-rds/src/endpoints.ts +++ b/clients/client-rds/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "rds-fips.ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "rds", diff --git a/clients/client-redshift-data/src/endpoints.ts b/clients/client-redshift-data/src/endpoints.ts index 09438420ee9fd..ad7eac42a8a3f 100644 --- a/clients/client-redshift-data/src/endpoints.ts +++ b/clients/client-redshift-data/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "redshift-data", diff --git a/clients/client-redshift/src/endpoints.ts b/clients/client-redshift/src/endpoints.ts index db23c3e9f05db..eeca0ebbc815e 100644 --- a/clients/client-redshift/src/endpoints.ts +++ b/clients/client-redshift/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "redshift", diff --git a/clients/client-rekognition/src/endpoints.ts b/clients/client-rekognition/src/endpoints.ts index b7494bc37162d..85552784669ad 100644 --- a/clients/client-rekognition/src/endpoints.ts +++ b/clients/client-rekognition/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "rekognition-fips.ca-central-1": { @@ -83,7 +83,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "rekognition", diff --git a/clients/client-resource-groups-tagging-api/src/endpoints.ts b/clients/client-resource-groups-tagging-api/src/endpoints.ts index 7ec8379d32238..4fdf98d3a27e6 100644 --- a/clients/client-resource-groups-tagging-api/src/endpoints.ts +++ b/clients/client-resource-groups-tagging-api/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "tagging", diff --git a/clients/client-resource-groups/src/endpoints.ts b/clients/client-resource-groups/src/endpoints.ts index d9faa6c7e6643..a9f0251fd4c78 100644 --- a/clients/client-resource-groups/src/endpoints.ts +++ b/clients/client-resource-groups/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "resource-groups", diff --git a/clients/client-robomaker/src/endpoints.ts b/clients/client-robomaker/src/endpoints.ts index 5e1dc3d31eb30..05951bdbc7e0e 100644 --- a/clients/client-robomaker/src/endpoints.ts +++ b/clients/client-robomaker/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "robomaker", diff --git a/clients/client-route-53-domains/src/endpoints.ts b/clients/client-route-53-domains/src/endpoints.ts index 451423ae64540..91ddd5db1b062 100644 --- a/clients/client-route-53-domains/src/endpoints.ts +++ b/clients/client-route-53-domains/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "route53domains", diff --git a/clients/client-route-53/src/endpoints.ts b/clients/client-route-53/src/endpoints.ts index eb95260700236..63aa81981d721 100644 --- a/clients/client-route-53/src/endpoints.ts +++ b/clients/client-route-53/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-cn-global": { @@ -84,7 +84,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "route53", diff --git a/clients/client-route53-recovery-cluster/src/endpoints.ts b/clients/client-route53-recovery-cluster/src/endpoints.ts index 78c318f1cbc25..952e8dfad1845 100644 --- a/clients/client-route53-recovery-cluster/src/endpoints.ts +++ b/clients/client-route53-recovery-cluster/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "route53-recovery-cluster", diff --git a/clients/client-route53-recovery-control-config/src/endpoints.ts b/clients/client-route53-recovery-control-config/src/endpoints.ts index bc2a796a6c056..7592ba72a136d 100644 --- a/clients/client-route53-recovery-control-config/src/endpoints.ts +++ b/clients/client-route53-recovery-control-config/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-global": { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "route53-recovery-control-config", diff --git a/clients/client-route53-recovery-readiness/src/endpoints.ts b/clients/client-route53-recovery-readiness/src/endpoints.ts index 75c06ec7db947..e3e6873c9e83d 100644 --- a/clients/client-route53-recovery-readiness/src/endpoints.ts +++ b/clients/client-route53-recovery-readiness/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "route53-recovery-readiness", diff --git a/clients/client-route53resolver/src/endpoints.ts b/clients/client-route53resolver/src/endpoints.ts index 418adbfaf47a5..d89457960450b 100644 --- a/clients/client-route53resolver/src/endpoints.ts +++ b/clients/client-route53resolver/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "route53resolver", diff --git a/clients/client-s3-control/src/endpoints.ts b/clients/client-s3-control/src/endpoints.ts index 3c0e697dcfda3..84e4f55ec78f0 100644 --- a/clients/client-s3-control/src/endpoints.ts +++ b/clients/client-s3-control/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "ap-northeast-1": { @@ -171,7 +171,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "s3", diff --git a/clients/client-s3/src/endpoints.ts b/clients/client-s3/src/endpoints.ts index 8d26ce2d5535d..ebea3379289fc 100644 --- a/clients/client-s3/src/endpoints.ts +++ b/clients/client-s3/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "accesspoint-af-south-1": { @@ -228,7 +228,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "s3", diff --git a/clients/client-s3outposts/src/endpoints.ts b/clients/client-s3outposts/src/endpoints.ts index 6a0e9d0a2faef..db082a629cc8c 100644 --- a/clients/client-s3outposts/src/endpoints.ts +++ b/clients/client-s3outposts/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "s3-outposts", diff --git a/clients/client-sagemaker-a2i-runtime/src/endpoints.ts b/clients/client-sagemaker-a2i-runtime/src/endpoints.ts index 53a1b470754c5..6deba417c2674 100644 --- a/clients/client-sagemaker-a2i-runtime/src/endpoints.ts +++ b/clients/client-sagemaker-a2i-runtime/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "sagemaker", diff --git a/clients/client-sagemaker-edge/src/endpoints.ts b/clients/client-sagemaker-edge/src/endpoints.ts index b36e6104c4e95..a8ac2f954ff9c 100644 --- a/clients/client-sagemaker-edge/src/endpoints.ts +++ b/clients/client-sagemaker-edge/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "sagemaker", diff --git a/clients/client-sagemaker-featurestore-runtime/src/endpoints.ts b/clients/client-sagemaker-featurestore-runtime/src/endpoints.ts index 275f91080b317..d929887f5a266 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/endpoints.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "sagemaker", diff --git a/clients/client-sagemaker-runtime/src/endpoints.ts b/clients/client-sagemaker-runtime/src/endpoints.ts index 53e4fd657fe03..be6d80980b00a 100644 --- a/clients/client-sagemaker-runtime/src/endpoints.ts +++ b/clients/client-sagemaker-runtime/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -78,7 +78,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "sagemaker", diff --git a/clients/client-sagemaker/src/endpoints.ts b/clients/client-sagemaker/src/endpoints.ts index 2efcac442f371..ff199bcd77896 100644 --- a/clients/client-sagemaker/src/endpoints.ts +++ b/clients/client-sagemaker/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "sagemaker", diff --git a/clients/client-savingsplans/src/endpoints.ts b/clients/client-savingsplans/src/endpoints.ts index 29799d001c7af..111921d464bc1 100644 --- a/clients/client-savingsplans/src/endpoints.ts +++ b/clients/client-savingsplans/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-global": { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "savingsplans", diff --git a/clients/client-schemas/src/endpoints.ts b/clients/client-schemas/src/endpoints.ts index de0715686f8cd..1d551384a525c 100644 --- a/clients/client-schemas/src/endpoints.ts +++ b/clients/client-schemas/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "schemas", diff --git a/clients/client-secrets-manager/src/endpoints.ts b/clients/client-secrets-manager/src/endpoints.ts index b133d0fd233d8..0ed701184fc69 100644 --- a/clients/client-secrets-manager/src/endpoints.ts +++ b/clients/client-secrets-manager/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "secretsmanager", diff --git a/clients/client-securityhub/src/endpoints.ts b/clients/client-securityhub/src/endpoints.ts index d7d58c139080e..f3d813ebed8b5 100644 --- a/clients/client-securityhub/src/endpoints.ts +++ b/clients/client-securityhub/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "securityhub", diff --git a/clients/client-serverlessapplicationrepository/src/endpoints.ts b/clients/client-serverlessapplicationrepository/src/endpoints.ts index c8bdcacd02eb8..c5378361a43b9 100644 --- a/clients/client-serverlessapplicationrepository/src/endpoints.ts +++ b/clients/client-serverlessapplicationrepository/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-gov-east-1": { @@ -62,7 +62,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "serverlessrepo", diff --git a/clients/client-service-catalog-appregistry/src/endpoints.ts b/clients/client-service-catalog-appregistry/src/endpoints.ts index 3b1b1d44d5cc6..886288086efab 100644 --- a/clients/client-service-catalog-appregistry/src/endpoints.ts +++ b/clients/client-service-catalog-appregistry/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "servicecatalog", diff --git a/clients/client-service-catalog/src/endpoints.ts b/clients/client-service-catalog/src/endpoints.ts index c254963a28d73..6fd7b75764f33 100644 --- a/clients/client-service-catalog/src/endpoints.ts +++ b/clients/client-service-catalog/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "servicecatalog", diff --git a/clients/client-service-quotas/src/endpoints.ts b/clients/client-service-quotas/src/endpoints.ts index 6b52c0d68a7ef..a0f4103f696b1 100644 --- a/clients/client-service-quotas/src/endpoints.ts +++ b/clients/client-service-quotas/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-gov-east-1": { @@ -62,7 +62,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "servicequotas", diff --git a/clients/client-servicediscovery/src/endpoints.ts b/clients/client-servicediscovery/src/endpoints.ts index 8303b39f9bdf8..4a46356b55857 100644 --- a/clients/client-servicediscovery/src/endpoints.ts +++ b/clients/client-servicediscovery/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "servicediscovery-fips": { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "servicediscovery", diff --git a/clients/client-ses/src/endpoints.ts b/clients/client-ses/src/endpoints.ts index 7e35e642de089..fd64fb343c7f7 100644 --- a/clients/client-ses/src/endpoints.ts +++ b/clients/client-ses/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-gov-west-1": { @@ -58,7 +58,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ses", diff --git a/clients/client-sesv2/src/endpoints.ts b/clients/client-sesv2/src/endpoints.ts index 7e35e642de089..fd64fb343c7f7 100644 --- a/clients/client-sesv2/src/endpoints.ts +++ b/clients/client-sesv2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-gov-west-1": { @@ -58,7 +58,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ses", diff --git a/clients/client-sfn/src/endpoints.ts b/clients/client-sfn/src/endpoints.ts index f1c112d1cf803..807910f2f7e52 100644 --- a/clients/client-sfn/src/endpoints.ts +++ b/clients/client-sfn/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "states", diff --git a/clients/client-shield/src/endpoints.ts b/clients/client-shield/src/endpoints.ts index 77d9f1ddb27a0..bb3bf3cb4ce60 100644 --- a/clients/client-shield/src/endpoints.ts +++ b/clients/client-shield/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-global": { @@ -64,7 +64,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "shield", diff --git a/clients/client-signer/src/endpoints.ts b/clients/client-signer/src/endpoints.ts index 88a7a95eedf45..df0b713f1ccce 100644 --- a/clients/client-signer/src/endpoints.ts +++ b/clients/client-signer/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "signer", diff --git a/clients/client-sms/src/endpoints.ts b/clients/client-sms/src/endpoints.ts index ff434eefdd6b8..822e2bb54c94f 100644 --- a/clients/client-sms/src/endpoints.ts +++ b/clients/client-sms/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "sms", diff --git a/clients/client-snow-device-management/src/endpoints.ts b/clients/client-snow-device-management/src/endpoints.ts index 28482867e40c4..b90bf1e817b5c 100644 --- a/clients/client-snow-device-management/src/endpoints.ts +++ b/clients/client-snow-device-management/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "snow-device-management", diff --git a/clients/client-snowball/src/endpoints.ts b/clients/client-snowball/src/endpoints.ts index 16d0ceb0a39c9..1c02a1b031f2d 100644 --- a/clients/client-snowball/src/endpoints.ts +++ b/clients/client-snowball/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ap-northeast-1": { @@ -150,7 +150,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "snowball", diff --git a/clients/client-sns/src/endpoints.ts b/clients/client-sns/src/endpoints.ts index 5d5abe9fb9411..900feee5a24c4 100644 --- a/clients/client-sns/src/endpoints.ts +++ b/clients/client-sns/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "sns", diff --git a/clients/client-sqs/src/endpoints.ts b/clients/client-sqs/src/endpoints.ts index 94d4a6ee282d0..13c287e248842 100644 --- a/clients/client-sqs/src/endpoints.ts +++ b/clients/client-sqs/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "sqs", diff --git a/clients/client-ssm-contacts/src/endpoints.ts b/clients/client-ssm-contacts/src/endpoints.ts index 57148ab0c38d3..b621894a9e778 100644 --- a/clients/client-ssm-contacts/src/endpoints.ts +++ b/clients/client-ssm-contacts/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ssm-contacts", diff --git a/clients/client-ssm-incidents/src/endpoints.ts b/clients/client-ssm-incidents/src/endpoints.ts index 86fb0d1bb0ca4..dce80d2922704 100644 --- a/clients/client-ssm-incidents/src/endpoints.ts +++ b/clients/client-ssm-incidents/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ssm-incidents", diff --git a/clients/client-ssm/src/endpoints.ts b/clients/client-ssm/src/endpoints.ts index eb2c4b6cb0a60..6d407424a24c9 100644 --- a/clients/client-ssm/src/endpoints.ts +++ b/clients/client-ssm/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "ssm", diff --git a/clients/client-sso-admin/src/endpoints.ts b/clients/client-sso-admin/src/endpoints.ts index 1cf480502f098..bb954dba649e5 100644 --- a/clients/client-sso-admin/src/endpoints.ts +++ b/clients/client-sso-admin/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "sso", diff --git a/clients/client-sso-oidc/src/endpoints.ts b/clients/client-sso-oidc/src/endpoints.ts index 404808b2d5e3e..b8723fce752dc 100644 --- a/clients/client-sso-oidc/src/endpoints.ts +++ b/clients/client-sso-oidc/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "ap-northeast-1": { @@ -118,7 +118,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "awsssooidc", diff --git a/clients/client-sso/src/endpoints.ts b/clients/client-sso/src/endpoints.ts index 1b19abc72e157..428e1c79dd5f8 100644 --- a/clients/client-sso/src/endpoints.ts +++ b/clients/client-sso/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "ap-southeast-1": { @@ -90,7 +90,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "awsssoportal", diff --git a/clients/client-storage-gateway/src/endpoints.ts b/clients/client-storage-gateway/src/endpoints.ts index d468818ec6fdc..79792c629c096 100644 --- a/clients/client-storage-gateway/src/endpoints.ts +++ b/clients/client-storage-gateway/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { fips: { @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "storagegateway", diff --git a/clients/client-sts/src/endpoints.ts b/clients/client-sts/src/endpoints.ts index 490818a92821a..66dda5bf9ad6d 100644 --- a/clients/client-sts/src/endpoints.ts +++ b/clients/client-sts/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-global": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "sts", diff --git a/clients/client-support/src/endpoints.ts b/clients/client-support/src/endpoints.ts index 6b4cd3d45dc6e..2f31b2dafdb0c 100644 --- a/clients/client-support/src/endpoints.ts +++ b/clients/client-support/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-cn-global": { @@ -79,7 +79,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "support", diff --git a/clients/client-swf/src/endpoints.ts b/clients/client-swf/src/endpoints.ts index 6b83176541d7a..4e8331b9d98d7 100644 --- a/clients/client-swf/src/endpoints.ts +++ b/clients/client-swf/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "swf", diff --git a/clients/client-synthetics/src/endpoints.ts b/clients/client-synthetics/src/endpoints.ts index 97fe9ac997889..bae44c2aa9caa 100644 --- a/clients/client-synthetics/src/endpoints.ts +++ b/clients/client-synthetics/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "synthetics", diff --git a/clients/client-textract/src/endpoints.ts b/clients/client-textract/src/endpoints.ts index 71335c4f95f87..86d7d2e75b426 100644 --- a/clients/client-textract/src/endpoints.ts +++ b/clients/client-textract/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "textract", diff --git a/clients/client-timestream-query/src/endpoints.ts b/clients/client-timestream-query/src/endpoints.ts index 90f0885d544b6..87f3f056dc8c6 100644 --- a/clients/client-timestream-query/src/endpoints.ts +++ b/clients/client-timestream-query/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "timestream", diff --git a/clients/client-timestream-write/src/endpoints.ts b/clients/client-timestream-write/src/endpoints.ts index ed33470377821..cc9b8ebdf545a 100644 --- a/clients/client-timestream-write/src/endpoints.ts +++ b/clients/client-timestream-write/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "timestream", diff --git a/clients/client-transcribe-streaming/src/endpoints.ts b/clients/client-transcribe-streaming/src/endpoints.ts index 2fd090652a56f..7bc450345c8c3 100644 --- a/clients/client-transcribe-streaming/src/endpoints.ts +++ b/clients/client-transcribe-streaming/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "transcribestreaming-fips-ca-central-1": { @@ -74,7 +74,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "transcribe", diff --git a/clients/client-transcribe/src/endpoints.ts b/clients/client-transcribe/src/endpoints.ts index 08ef84f2c63c8..2d9c82b6ffcfe 100644 --- a/clients/client-transcribe/src/endpoints.ts +++ b/clients/client-transcribe/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "cn-north-1": { @@ -90,7 +90,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "transcribe", diff --git a/clients/client-transfer/src/endpoints.ts b/clients/client-transfer/src/endpoints.ts index 02bccec521da7..931566f8f0416 100644 --- a/clients/client-transfer/src/endpoints.ts +++ b/clients/client-transfer/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-ca-central-1": { @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "transfer", diff --git a/clients/client-translate/src/endpoints.ts b/clients/client-translate/src/endpoints.ts index 69f51cfe52aa0..46c870c68e907 100644 --- a/clients/client-translate/src/endpoints.ts +++ b/clients/client-translate/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "us-east-1-fips": { @@ -73,7 +73,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "translate", diff --git a/clients/client-voice-id/src/endpoints.ts b/clients/client-voice-id/src/endpoints.ts index 07e4f42ecd5ef..b8d4a6c247ef4 100644 --- a/clients/client-voice-id/src/endpoints.ts +++ b/clients/client-voice-id/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "voiceid", diff --git a/clients/client-waf-regional/src/endpoints.ts b/clients/client-waf-regional/src/endpoints.ts index 7650d5a0bd54c..6158d97df487a 100644 --- a/clients/client-waf-regional/src/endpoints.ts +++ b/clients/client-waf-regional/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "af-south-1": { @@ -275,7 +275,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "waf-regional", diff --git a/clients/client-waf/src/endpoints.ts b/clients/client-waf/src/endpoints.ts index 804f6e61174f6..0b3f36d0f93c0 100644 --- a/clients/client-waf/src/endpoints.ts +++ b/clients/client-waf/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "aws-fips": { @@ -64,7 +64,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "waf", diff --git a/clients/client-wafv2/src/endpoints.ts b/clients/client-wafv2/src/endpoints.ts index 44f3d32250a6d..942ba3bd0f8d5 100644 --- a/clients/client-wafv2/src/endpoints.ts +++ b/clients/client-wafv2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "wafv2", diff --git a/clients/client-wellarchitected/src/endpoints.ts b/clients/client-wellarchitected/src/endpoints.ts index e840f2f102f43..6fb1791bc1954 100644 --- a/clients/client-wellarchitected/src/endpoints.ts +++ b/clients/client-wellarchitected/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "wellarchitected", diff --git a/clients/client-wisdom/src/endpoints.ts b/clients/client-wisdom/src/endpoints.ts index dfa42a758b0c0..1c64232239755 100644 --- a/clients/client-wisdom/src/endpoints.ts +++ b/clients/client-wisdom/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "wisdom", diff --git a/clients/client-workdocs/src/endpoints.ts b/clients/client-workdocs/src/endpoints.ts index 48f0ca1ea9f3c..d7ff6fcad41d4 100644 --- a/clients/client-workdocs/src/endpoints.ts +++ b/clients/client-workdocs/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -64,7 +64,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "workdocs", diff --git a/clients/client-worklink/src/endpoints.ts b/clients/client-worklink/src/endpoints.ts index e72f4f571bc6e..f9feee42a4b28 100644 --- a/clients/client-worklink/src/endpoints.ts +++ b/clients/client-worklink/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "worklink", diff --git a/clients/client-workmail/src/endpoints.ts b/clients/client-workmail/src/endpoints.ts index cb07fab2a42fe..627030b02becf 100644 --- a/clients/client-workmail/src/endpoints.ts +++ b/clients/client-workmail/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "workmail", diff --git a/clients/client-workmailmessageflow/src/endpoints.ts b/clients/client-workmailmessageflow/src/endpoints.ts index ce50b2483b944..9e5127896fc32 100644 --- a/clients/client-workmailmessageflow/src/endpoints.ts +++ b/clients/client-workmailmessageflow/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "workmailmessageflow", diff --git a/clients/client-workspaces/src/endpoints.ts b/clients/client-workspaces/src/endpoints.ts index 35b5fa07c9e38..b40d7232ffb34 100644 --- a/clients/client-workspaces/src/endpoints.ts +++ b/clients/client-workspaces/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -68,7 +68,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "workspaces", diff --git a/clients/client-xray/src/endpoints.ts b/clients/client-xray/src/endpoints.ts index 38e09c779ec6a..33fe2dd967a73 100644 --- a/clients/client-xray/src/endpoints.ts +++ b/clients/client-xray/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = { "fips-us-east-1": { @@ -82,7 +82,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "xray", diff --git a/private/aws-protocoltests-ec2/src/endpoints.ts b/private/aws-protocoltests-ec2/src/endpoints.ts index 1dff9bfbb8cbb..0e85dfecc22cf 100644 --- a/private/aws-protocoltests-ec2/src/endpoints.ts +++ b/private/aws-protocoltests-ec2/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "awsec2", diff --git a/private/aws-protocoltests-json-10/src/endpoints.ts b/private/aws-protocoltests-json-10/src/endpoints.ts index 113b0b9ec77fc..bd6726b853d27 100644 --- a/private/aws-protocoltests-json-10/src/endpoints.ts +++ b/private/aws-protocoltests-json-10/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "jsonrpc10", diff --git a/private/aws-protocoltests-json/src/endpoints.ts b/private/aws-protocoltests-json/src/endpoints.ts index 5b52f205dd6ad..28532a196b263 100644 --- a/private/aws-protocoltests-json/src/endpoints.ts +++ b/private/aws-protocoltests-json/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "foo", diff --git a/private/aws-protocoltests-query/src/endpoints.ts b/private/aws-protocoltests-query/src/endpoints.ts index fff1593194be8..1320d847af71c 100644 --- a/private/aws-protocoltests-query/src/endpoints.ts +++ b/private/aws-protocoltests-query/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "awsquery", diff --git a/private/aws-protocoltests-restjson/src/endpoints.ts b/private/aws-protocoltests-restjson/src/endpoints.ts index cb7b16a70f63e..e6a29f8908018 100644 --- a/private/aws-protocoltests-restjson/src/endpoints.ts +++ b/private/aws-protocoltests-restjson/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "restjson", diff --git a/private/aws-protocoltests-restxml/src/endpoints.ts b/private/aws-protocoltests-restxml/src/endpoints.ts index f06accf756ded..5625ad0d337b9 100644 --- a/private/aws-protocoltests-restxml/src/endpoints.ts +++ b/private/aws-protocoltests-restxml/src/endpoints.ts @@ -1,5 +1,5 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; -import { RegionInfoProvider } from "@aws-sdk/types"; +import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; const regionHash: RegionHash = {}; @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = { }, }; -export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) => +export const defaultRegionInfoProvider: RegionInfoProvider = async ( + region: string, + options?: RegionInfoProviderOptions +) => getRegionInfo(region, { ...options, signingService: "restxml",