diff --git a/clients/client-accessanalyzer/package.json b/clients/client-accessanalyzer/package.json index 78634dac577ec..4e1abf61bf3c8 100644 --- a/clients/client-accessanalyzer/package.json +++ b/clients/client-accessanalyzer/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-accessanalyzer/src/runtimeConfig.shared.ts b/clients/client-accessanalyzer/src/runtimeConfig.shared.ts index 2279b9aac08fa..49a4bdc5038b2 100644 --- a/clients/client-accessanalyzer/src/runtimeConfig.shared.ts +++ b/clients/client-accessanalyzer/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => ({ - apiVersion: "2019-11-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "AccessAnalyzer", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => { + return { + apiVersion: "2019-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "AccessAnalyzer", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-accessanalyzer/src/runtimeConfig.ts b/clients/client-accessanalyzer/src/runtimeConfig.ts index 216700f71f4f6..f8c8d50b9ec52 100644 --- a/clients/client-accessanalyzer/src/runtimeConfig.ts +++ b/clients/client-accessanalyzer/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-account/package.json b/clients/client-account/package.json index a89c46f009390..7a440726535a0 100644 --- a/clients/client-account/package.json +++ b/clients/client-account/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-account/src/runtimeConfig.shared.ts b/clients/client-account/src/runtimeConfig.shared.ts index 00b6b892027a7..b6b4f6d941c41 100644 --- a/clients/client-account/src/runtimeConfig.shared.ts +++ b/clients/client-account/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AccountClientConfig) => ({ - apiVersion: "2021-02-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Account", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AccountClientConfig) => { + return { + apiVersion: "2021-02-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Account", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-account/src/runtimeConfig.ts b/clients/client-account/src/runtimeConfig.ts index 1a8b14609ac60..68445aaaad5cd 100644 --- a/clients/client-account/src/runtimeConfig.ts +++ b/clients/client-account/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AccountClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-acm-pca/package.json b/clients/client-acm-pca/package.json index 17a3b12e9168a..509fa87932999 100644 --- a/clients/client-acm-pca/package.json +++ b/clients/client-acm-pca/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-acm-pca/src/runtimeConfig.shared.ts b/clients/client-acm-pca/src/runtimeConfig.shared.ts index 3050ead269556..53fedc0408266 100644 --- a/clients/client-acm-pca/src/runtimeConfig.shared.ts +++ b/clients/client-acm-pca/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ACMPCAClientConfig) => ({ - apiVersion: "2017-08-22", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ACM PCA", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ACMPCAClientConfig) => { + return { + apiVersion: "2017-08-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ACM PCA", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-acm-pca/src/runtimeConfig.ts b/clients/client-acm-pca/src/runtimeConfig.ts index c07c7c4ba303c..8498f29c3fa14 100644 --- a/clients/client-acm-pca/src/runtimeConfig.ts +++ b/clients/client-acm-pca/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ACMPCAClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-acm/package.json b/clients/client-acm/package.json index 85e77676273d2..48212f34e6293 100644 --- a/clients/client-acm/package.json +++ b/clients/client-acm/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-acm/src/runtimeConfig.shared.ts b/clients/client-acm/src/runtimeConfig.shared.ts index 14a247ba54310..9ca1d4904d63f 100644 --- a/clients/client-acm/src/runtimeConfig.shared.ts +++ b/clients/client-acm/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ACMClientConfig) => ({ - apiVersion: "2015-12-08", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ACM", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ACMClientConfig) => { + return { + apiVersion: "2015-12-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ACM", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-acm/src/runtimeConfig.ts b/clients/client-acm/src/runtimeConfig.ts index 036ffaf3e24cd..6cea227abbe2c 100644 --- a/clients/client-acm/src/runtimeConfig.ts +++ b/clients/client-acm/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ACMClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-alexa-for-business/package.json b/clients/client-alexa-for-business/package.json index ae9f1bd0ef468..c676044ab2277 100644 --- a/clients/client-alexa-for-business/package.json +++ b/clients/client-alexa-for-business/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-alexa-for-business/src/runtimeConfig.shared.ts b/clients/client-alexa-for-business/src/runtimeConfig.shared.ts index 85ff8ae0f4a6d..386a7f49a5ebd 100644 --- a/clients/client-alexa-for-business/src/runtimeConfig.shared.ts +++ b/clients/client-alexa-for-business/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => ({ - apiVersion: "2017-11-09", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Alexa For Business", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => { + return { + apiVersion: "2017-11-09", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Alexa For Business", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-alexa-for-business/src/runtimeConfig.ts b/clients/client-alexa-for-business/src/runtimeConfig.ts index 3a0bb052cba57..e31658e16d3f8 100644 --- a/clients/client-alexa-for-business/src/runtimeConfig.ts +++ b/clients/client-alexa-for-business/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-amp/package.json b/clients/client-amp/package.json index 90f9f7b2f6437..361a62b669837 100644 --- a/clients/client-amp/package.json +++ b/clients/client-amp/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-amp/src/runtimeConfig.shared.ts b/clients/client-amp/src/runtimeConfig.shared.ts index da6fef01f4eb1..32ae51516fcb6 100644 --- a/clients/client-amp/src/runtimeConfig.shared.ts +++ b/clients/client-amp/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AmpClientConfig) => ({ - apiVersion: "2020-08-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "amp", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AmpClientConfig) => { + return { + apiVersion: "2020-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "amp", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-amp/src/runtimeConfig.ts b/clients/client-amp/src/runtimeConfig.ts index 10571dc693e13..02a7a1a9e4989 100644 --- a/clients/client-amp/src/runtimeConfig.ts +++ b/clients/client-amp/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AmpClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-amplify/package.json b/clients/client-amplify/package.json index 3c1a1be4139f5..bb9d402a82f46 100644 --- a/clients/client-amplify/package.json +++ b/clients/client-amplify/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-amplify/src/runtimeConfig.shared.ts b/clients/client-amplify/src/runtimeConfig.shared.ts index 5c6afce1438be..e516445259493 100644 --- a/clients/client-amplify/src/runtimeConfig.shared.ts +++ b/clients/client-amplify/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AmplifyClientConfig) => ({ - apiVersion: "2017-07-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Amplify", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AmplifyClientConfig) => { + return { + apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Amplify", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-amplify/src/runtimeConfig.ts b/clients/client-amplify/src/runtimeConfig.ts index d3aa1ac7e3927..652ff882915bd 100644 --- a/clients/client-amplify/src/runtimeConfig.ts +++ b/clients/client-amplify/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AmplifyClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-amplifybackend/package.json b/clients/client-amplifybackend/package.json index a3cb9728fe432..cc3a12c73db1c 100644 --- a/clients/client-amplifybackend/package.json +++ b/clients/client-amplifybackend/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-amplifybackend/src/runtimeConfig.shared.ts b/clients/client-amplifybackend/src/runtimeConfig.shared.ts index 31577f88d9d04..a37b20355225d 100644 --- a/clients/client-amplifybackend/src/runtimeConfig.shared.ts +++ b/clients/client-amplifybackend/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => ({ - apiVersion: "2020-08-11", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "AmplifyBackend", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => { + return { + apiVersion: "2020-08-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "AmplifyBackend", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-amplifybackend/src/runtimeConfig.ts b/clients/client-amplifybackend/src/runtimeConfig.ts index d0bb0f844c628..1ef513db95cf0 100644 --- a/clients/client-amplifybackend/src/runtimeConfig.ts +++ b/clients/client-amplifybackend/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-amplifyuibuilder/src/runtimeConfig.shared.ts b/clients/client-amplifyuibuilder/src/runtimeConfig.shared.ts index 39a941038c6a6..125d25b438261 100644 --- a/clients/client-amplifyuibuilder/src/runtimeConfig.shared.ts +++ b/clients/client-amplifyuibuilder/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AmplifyUIBuilderClientConfig) => ({ - apiVersion: "2021-08-11", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "AmplifyUIBuilder", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AmplifyUIBuilderClientConfig) => { + return { + apiVersion: "2021-08-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "AmplifyUIBuilder", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-amplifyuibuilder/src/runtimeConfig.ts b/clients/client-amplifyuibuilder/src/runtimeConfig.ts index 946c7af12e419..b7f38243cab38 100644 --- a/clients/client-amplifyuibuilder/src/runtimeConfig.ts +++ b/clients/client-amplifyuibuilder/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AmplifyUIBuilderClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-api-gateway/package.json b/clients/client-api-gateway/package.json index dce9cfb8b9ee8..68a5c07adef78 100644 --- a/clients/client-api-gateway/package.json +++ b/clients/client-api-gateway/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-api-gateway/src/runtimeConfig.shared.ts b/clients/client-api-gateway/src/runtimeConfig.shared.ts index b3bd5f0550bb6..dee01610f2f88 100644 --- a/clients/client-api-gateway/src/runtimeConfig.shared.ts +++ b/clients/client-api-gateway/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: APIGatewayClientConfig) => ({ - apiVersion: "2015-07-09", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "API Gateway", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: APIGatewayClientConfig) => { + return { + apiVersion: "2015-07-09", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "API Gateway", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-api-gateway/src/runtimeConfig.ts b/clients/client-api-gateway/src/runtimeConfig.ts index f84b92c73eb82..c9475ef2cfe6f 100644 --- a/clients/client-api-gateway/src/runtimeConfig.ts +++ b/clients/client-api-gateway/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: APIGatewayClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-apigatewaymanagementapi/package.json b/clients/client-apigatewaymanagementapi/package.json index 1772a632005af..1d4cbde930644 100644 --- a/clients/client-apigatewaymanagementapi/package.json +++ b/clients/client-apigatewaymanagementapi/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-apigatewaymanagementapi/src/runtimeConfig.shared.ts b/clients/client-apigatewaymanagementapi/src/runtimeConfig.shared.ts index 96dfc47ca1b39..cc692bb6382b1 100644 --- a/clients/client-apigatewaymanagementapi/src/runtimeConfig.shared.ts +++ b/clients/client-apigatewaymanagementapi/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) => ({ - apiVersion: "2018-11-29", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ApiGatewayManagementApi", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) => { + return { + apiVersion: "2018-11-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ApiGatewayManagementApi", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts b/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts index 0aa64a0f670c0..0a5966f611be0 100644 --- a/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts +++ b/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) => const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-apigatewayv2/package.json b/clients/client-apigatewayv2/package.json index d126ee11c1b6a..bddeb55e6a6fe 100644 --- a/clients/client-apigatewayv2/package.json +++ b/clients/client-apigatewayv2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-apigatewayv2/src/runtimeConfig.shared.ts b/clients/client-apigatewayv2/src/runtimeConfig.shared.ts index a8fd5309597ec..3c4767c6cbee7 100644 --- a/clients/client-apigatewayv2/src/runtimeConfig.shared.ts +++ b/clients/client-apigatewayv2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => ({ - apiVersion: "2018-11-29", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ApiGatewayV2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => { + return { + apiVersion: "2018-11-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ApiGatewayV2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-apigatewayv2/src/runtimeConfig.ts b/clients/client-apigatewayv2/src/runtimeConfig.ts index 582db1acb3f4a..acd68d27712d6 100644 --- a/clients/client-apigatewayv2/src/runtimeConfig.ts +++ b/clients/client-apigatewayv2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-app-mesh/package.json b/clients/client-app-mesh/package.json index 466cfcf04f2d6..6a845665abd0f 100644 --- a/clients/client-app-mesh/package.json +++ b/clients/client-app-mesh/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-app-mesh/src/runtimeConfig.shared.ts b/clients/client-app-mesh/src/runtimeConfig.shared.ts index 1a4ace3fcc291..05fc5083b7faf 100644 --- a/clients/client-app-mesh/src/runtimeConfig.shared.ts +++ b/clients/client-app-mesh/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AppMeshClientConfig) => ({ - apiVersion: "2019-01-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "App Mesh", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AppMeshClientConfig) => { + return { + apiVersion: "2019-01-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "App Mesh", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-app-mesh/src/runtimeConfig.ts b/clients/client-app-mesh/src/runtimeConfig.ts index aec4500132782..36c409cd7f94e 100644 --- a/clients/client-app-mesh/src/runtimeConfig.ts +++ b/clients/client-app-mesh/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AppMeshClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-appconfig/src/runtimeConfig.shared.ts b/clients/client-appconfig/src/runtimeConfig.shared.ts index 01881aba017ba..fb46f36c01b87 100644 --- a/clients/client-appconfig/src/runtimeConfig.shared.ts +++ b/clients/client-appconfig/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AppConfigClientConfig) => ({ - apiVersion: "2019-10-09", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "AppConfig", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AppConfigClientConfig) => { + return { + apiVersion: "2019-10-09", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "AppConfig", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-appconfig/src/runtimeConfig.ts b/clients/client-appconfig/src/runtimeConfig.ts index 1a1f5778be596..c893905af13cf 100644 --- a/clients/client-appconfig/src/runtimeConfig.ts +++ b/clients/client-appconfig/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AppConfigClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-appconfigdata/src/runtimeConfig.shared.ts b/clients/client-appconfigdata/src/runtimeConfig.shared.ts index 14cef2a3c8f1e..7b2cc81bb749a 100644 --- a/clients/client-appconfigdata/src/runtimeConfig.shared.ts +++ b/clients/client-appconfigdata/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AppConfigDataClientConfig) => ({ - apiVersion: "2021-11-11", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "AppConfigData", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AppConfigDataClientConfig) => { + return { + apiVersion: "2021-11-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "AppConfigData", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-appconfigdata/src/runtimeConfig.ts b/clients/client-appconfigdata/src/runtimeConfig.ts index ee54d5fd525b3..be8f3378bb44f 100644 --- a/clients/client-appconfigdata/src/runtimeConfig.ts +++ b/clients/client-appconfigdata/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AppConfigDataClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-appfabric/src/runtimeConfig.shared.ts b/clients/client-appfabric/src/runtimeConfig.shared.ts index d92ee3fc847ec..bff0df0dd1f8f 100644 --- a/clients/client-appfabric/src/runtimeConfig.shared.ts +++ b/clients/client-appfabric/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AppFabricClientConfig) => ({ - apiVersion: "2023-05-19", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "AppFabric", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AppFabricClientConfig) => { + return { + apiVersion: "2023-05-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "AppFabric", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-appfabric/src/runtimeConfig.ts b/clients/client-appfabric/src/runtimeConfig.ts index cfb721280af80..35f6a3d01caca 100644 --- a/clients/client-appfabric/src/runtimeConfig.ts +++ b/clients/client-appfabric/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AppFabricClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-appflow/package.json b/clients/client-appflow/package.json index cb02766cd5297..ca80cc6678eab 100644 --- a/clients/client-appflow/package.json +++ b/clients/client-appflow/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-appflow/src/runtimeConfig.shared.ts b/clients/client-appflow/src/runtimeConfig.shared.ts index 4e12d8c0c17b8..f3af2858b8067 100644 --- a/clients/client-appflow/src/runtimeConfig.shared.ts +++ b/clients/client-appflow/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AppflowClientConfig) => ({ - apiVersion: "2020-08-23", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Appflow", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AppflowClientConfig) => { + return { + apiVersion: "2020-08-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Appflow", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-appflow/src/runtimeConfig.ts b/clients/client-appflow/src/runtimeConfig.ts index ee7c9aa25c043..a1f340da1cf27 100644 --- a/clients/client-appflow/src/runtimeConfig.ts +++ b/clients/client-appflow/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AppflowClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-appintegrations/package.json b/clients/client-appintegrations/package.json index aef64df3a0b2a..0359baaeaf730 100644 --- a/clients/client-appintegrations/package.json +++ b/clients/client-appintegrations/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-appintegrations/src/runtimeConfig.shared.ts b/clients/client-appintegrations/src/runtimeConfig.shared.ts index 2de653301f6ad..afe4c40ce4953 100644 --- a/clients/client-appintegrations/src/runtimeConfig.shared.ts +++ b/clients/client-appintegrations/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AppIntegrationsClientConfig) => ({ - apiVersion: "2020-07-29", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "AppIntegrations", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AppIntegrationsClientConfig) => { + return { + apiVersion: "2020-07-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "AppIntegrations", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-appintegrations/src/runtimeConfig.ts b/clients/client-appintegrations/src/runtimeConfig.ts index 120c37ab1b26e..599b4fb2feafc 100644 --- a/clients/client-appintegrations/src/runtimeConfig.ts +++ b/clients/client-appintegrations/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AppIntegrationsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-application-auto-scaling/package.json b/clients/client-application-auto-scaling/package.json index c02b936a780be..ec1811b7a2b32 100644 --- a/clients/client-application-auto-scaling/package.json +++ b/clients/client-application-auto-scaling/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-application-auto-scaling/src/runtimeConfig.shared.ts b/clients/client-application-auto-scaling/src/runtimeConfig.shared.ts index b06aa0371a890..8bcd572f67af7 100644 --- a/clients/client-application-auto-scaling/src/runtimeConfig.shared.ts +++ b/clients/client-application-auto-scaling/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ApplicationAutoScalingClientConfig) => ({ - apiVersion: "2016-02-06", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Application Auto Scaling", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ApplicationAutoScalingClientConfig) => { + return { + apiVersion: "2016-02-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Application Auto Scaling", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-application-auto-scaling/src/runtimeConfig.ts b/clients/client-application-auto-scaling/src/runtimeConfig.ts index 4c23170cfb578..fe1760a3569f7 100644 --- a/clients/client-application-auto-scaling/src/runtimeConfig.ts +++ b/clients/client-application-auto-scaling/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ApplicationAutoScalingClientConfig) => const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-application-discovery-service/package.json b/clients/client-application-discovery-service/package.json index 209ff486e5334..80176398b71a2 100644 --- a/clients/client-application-discovery-service/package.json +++ b/clients/client-application-discovery-service/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-application-discovery-service/src/runtimeConfig.shared.ts b/clients/client-application-discovery-service/src/runtimeConfig.shared.ts index 2de3cc5d4ca27..3ca2f8ded2faf 100644 --- a/clients/client-application-discovery-service/src/runtimeConfig.shared.ts +++ b/clients/client-application-discovery-service/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ApplicationDiscoveryServiceClientConfig) => ({ - apiVersion: "2015-11-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Application Discovery Service", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ApplicationDiscoveryServiceClientConfig) => { + return { + apiVersion: "2015-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Application Discovery Service", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-application-discovery-service/src/runtimeConfig.ts b/clients/client-application-discovery-service/src/runtimeConfig.ts index 0fdecdd3e4569..cb5cdfc855a88 100644 --- a/clients/client-application-discovery-service/src/runtimeConfig.ts +++ b/clients/client-application-discovery-service/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ApplicationDiscoveryServiceClientConfig const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-application-insights/package.json b/clients/client-application-insights/package.json index 7db51cef1a80e..4a8511de9a33b 100644 --- a/clients/client-application-insights/package.json +++ b/clients/client-application-insights/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-application-insights/src/runtimeConfig.shared.ts b/clients/client-application-insights/src/runtimeConfig.shared.ts index 719767428e1f5..d3da68963d135 100644 --- a/clients/client-application-insights/src/runtimeConfig.shared.ts +++ b/clients/client-application-insights/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ApplicationInsightsClientConfig) => ({ - apiVersion: "2018-11-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Application Insights", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ApplicationInsightsClientConfig) => { + return { + apiVersion: "2018-11-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Application Insights", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-application-insights/src/runtimeConfig.ts b/clients/client-application-insights/src/runtimeConfig.ts index 4622e8bd4fe41..980d44ca124f5 100644 --- a/clients/client-application-insights/src/runtimeConfig.ts +++ b/clients/client-application-insights/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ApplicationInsightsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-applicationcostprofiler/package.json b/clients/client-applicationcostprofiler/package.json index a55b489350ddb..6da95bb2c2526 100644 --- a/clients/client-applicationcostprofiler/package.json +++ b/clients/client-applicationcostprofiler/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-applicationcostprofiler/src/runtimeConfig.shared.ts b/clients/client-applicationcostprofiler/src/runtimeConfig.shared.ts index 2c093e01af065..7bfe940d29b18 100644 --- a/clients/client-applicationcostprofiler/src/runtimeConfig.shared.ts +++ b/clients/client-applicationcostprofiler/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ApplicationCostProfilerClientConfig) => ({ - apiVersion: "2020-09-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ApplicationCostProfiler", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ApplicationCostProfilerClientConfig) => { + return { + apiVersion: "2020-09-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ApplicationCostProfiler", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-applicationcostprofiler/src/runtimeConfig.ts b/clients/client-applicationcostprofiler/src/runtimeConfig.ts index cd62b79a2c239..256cc0d80f960 100644 --- a/clients/client-applicationcostprofiler/src/runtimeConfig.ts +++ b/clients/client-applicationcostprofiler/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ApplicationCostProfilerClientConfig) => const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-apprunner/package.json b/clients/client-apprunner/package.json index c1e58bf25c534..c1a596c6cd06e 100644 --- a/clients/client-apprunner/package.json +++ b/clients/client-apprunner/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-apprunner/src/runtimeConfig.shared.ts b/clients/client-apprunner/src/runtimeConfig.shared.ts index 5219d17a2c447..ce29fc8f58b16 100644 --- a/clients/client-apprunner/src/runtimeConfig.shared.ts +++ b/clients/client-apprunner/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AppRunnerClientConfig) => ({ - apiVersion: "2020-05-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "AppRunner", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AppRunnerClientConfig) => { + return { + apiVersion: "2020-05-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "AppRunner", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-apprunner/src/runtimeConfig.ts b/clients/client-apprunner/src/runtimeConfig.ts index b11dfd5e3275c..ac05aff4db41c 100644 --- a/clients/client-apprunner/src/runtimeConfig.ts +++ b/clients/client-apprunner/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AppRunnerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-appstream/package.json b/clients/client-appstream/package.json index 285966e863824..0c82092601452 100644 --- a/clients/client-appstream/package.json +++ b/clients/client-appstream/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-appstream/src/runtimeConfig.shared.ts b/clients/client-appstream/src/runtimeConfig.shared.ts index 469ef4311569a..a22d3f934fbf4 100644 --- a/clients/client-appstream/src/runtimeConfig.shared.ts +++ b/clients/client-appstream/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AppStreamClientConfig) => ({ - apiVersion: "2016-12-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "AppStream", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AppStreamClientConfig) => { + return { + apiVersion: "2016-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "AppStream", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-appstream/src/runtimeConfig.ts b/clients/client-appstream/src/runtimeConfig.ts index 8c13fe1e027c1..5b6bc3c1a754a 100644 --- a/clients/client-appstream/src/runtimeConfig.ts +++ b/clients/client-appstream/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AppStreamClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-appsync/package.json b/clients/client-appsync/package.json index 895f3c0cc74c1..2f1a1315fe608 100644 --- a/clients/client-appsync/package.json +++ b/clients/client-appsync/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-appsync/src/runtimeConfig.shared.ts b/clients/client-appsync/src/runtimeConfig.shared.ts index efa049dea0c8e..851e38139ccd5 100644 --- a/clients/client-appsync/src/runtimeConfig.shared.ts +++ b/clients/client-appsync/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AppSyncClientConfig) => ({ - apiVersion: "2017-07-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "AppSync", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AppSyncClientConfig) => { + return { + apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "AppSync", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-appsync/src/runtimeConfig.ts b/clients/client-appsync/src/runtimeConfig.ts index fb424dc30d192..3bf3c5bbd45c0 100644 --- a/clients/client-appsync/src/runtimeConfig.ts +++ b/clients/client-appsync/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AppSyncClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-arc-zonal-shift/package.json b/clients/client-arc-zonal-shift/package.json index ae0bc22ce215e..81f37103a40bf 100644 --- a/clients/client-arc-zonal-shift/package.json +++ b/clients/client-arc-zonal-shift/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-arc-zonal-shift/src/runtimeConfig.shared.ts b/clients/client-arc-zonal-shift/src/runtimeConfig.shared.ts index fbf1f34449aa6..7de1dcc6b7190 100644 --- a/clients/client-arc-zonal-shift/src/runtimeConfig.shared.ts +++ b/clients/client-arc-zonal-shift/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ARCZonalShiftClientConfig) => ({ - apiVersion: "2022-10-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ARC Zonal Shift", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ARCZonalShiftClientConfig) => { + return { + apiVersion: "2022-10-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ARC Zonal Shift", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-arc-zonal-shift/src/runtimeConfig.ts b/clients/client-arc-zonal-shift/src/runtimeConfig.ts index 23c63948a4b30..bec22875c5404 100644 --- a/clients/client-arc-zonal-shift/src/runtimeConfig.ts +++ b/clients/client-arc-zonal-shift/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ARCZonalShiftClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-athena/package.json b/clients/client-athena/package.json index 6e1b0d3cefd5a..45a92e46d0f38 100644 --- a/clients/client-athena/package.json +++ b/clients/client-athena/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-athena/src/runtimeConfig.shared.ts b/clients/client-athena/src/runtimeConfig.shared.ts index 0f523a0b9691e..74a500b04f7d8 100644 --- a/clients/client-athena/src/runtimeConfig.shared.ts +++ b/clients/client-athena/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AthenaClientConfig) => ({ - apiVersion: "2017-05-18", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Athena", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AthenaClientConfig) => { + return { + apiVersion: "2017-05-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Athena", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-athena/src/runtimeConfig.ts b/clients/client-athena/src/runtimeConfig.ts index 02020d8818152..e9d4f618405b4 100644 --- a/clients/client-athena/src/runtimeConfig.ts +++ b/clients/client-athena/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AthenaClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-auditmanager/package.json b/clients/client-auditmanager/package.json index 31d28086408a0..4a92f3dfe67d5 100644 --- a/clients/client-auditmanager/package.json +++ b/clients/client-auditmanager/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-auditmanager/src/runtimeConfig.shared.ts b/clients/client-auditmanager/src/runtimeConfig.shared.ts index 1f14672acbce1..b2d882c15165a 100644 --- a/clients/client-auditmanager/src/runtimeConfig.shared.ts +++ b/clients/client-auditmanager/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AuditManagerClientConfig) => ({ - apiVersion: "2017-07-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "AuditManager", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AuditManagerClientConfig) => { + return { + apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "AuditManager", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-auditmanager/src/runtimeConfig.ts b/clients/client-auditmanager/src/runtimeConfig.ts index 20d83b5f48b92..58147df449341 100644 --- a/clients/client-auditmanager/src/runtimeConfig.ts +++ b/clients/client-auditmanager/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AuditManagerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-auto-scaling-plans/package.json b/clients/client-auto-scaling-plans/package.json index 14a6986b8448d..3005996a2c182 100644 --- a/clients/client-auto-scaling-plans/package.json +++ b/clients/client-auto-scaling-plans/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-auto-scaling-plans/src/runtimeConfig.shared.ts b/clients/client-auto-scaling-plans/src/runtimeConfig.shared.ts index 9cd301b7836bf..9ba519be38c50 100644 --- a/clients/client-auto-scaling-plans/src/runtimeConfig.shared.ts +++ b/clients/client-auto-scaling-plans/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AutoScalingPlansClientConfig) => ({ - apiVersion: "2018-01-06", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Auto Scaling Plans", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AutoScalingPlansClientConfig) => { + return { + apiVersion: "2018-01-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Auto Scaling Plans", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-auto-scaling-plans/src/runtimeConfig.ts b/clients/client-auto-scaling-plans/src/runtimeConfig.ts index 821d8743859da..b5018f0224535 100644 --- a/clients/client-auto-scaling-plans/src/runtimeConfig.ts +++ b/clients/client-auto-scaling-plans/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AutoScalingPlansClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-auto-scaling/package.json b/clients/client-auto-scaling/package.json index 54842b886d674..f8aa214c33746 100644 --- a/clients/client-auto-scaling/package.json +++ b/clients/client-auto-scaling/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-auto-scaling/src/runtimeConfig.shared.ts b/clients/client-auto-scaling/src/runtimeConfig.shared.ts index ae7aaf7312f9d..e7d53620ea1a6 100644 --- a/clients/client-auto-scaling/src/runtimeConfig.shared.ts +++ b/clients/client-auto-scaling/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: AutoScalingClientConfig) => ({ - apiVersion: "2011-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Auto Scaling", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: AutoScalingClientConfig) => { + return { + apiVersion: "2011-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Auto Scaling", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-auto-scaling/src/runtimeConfig.ts b/clients/client-auto-scaling/src/runtimeConfig.ts index 6d02d992723ee..dda5fcdf804dd 100644 --- a/clients/client-auto-scaling/src/runtimeConfig.ts +++ b/clients/client-auto-scaling/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: AutoScalingClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-backup-gateway/package.json b/clients/client-backup-gateway/package.json index f89d03d8e83d3..9c90f0c74b6eb 100644 --- a/clients/client-backup-gateway/package.json +++ b/clients/client-backup-gateway/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-backup-gateway/src/runtimeConfig.shared.ts b/clients/client-backup-gateway/src/runtimeConfig.shared.ts index 2e8a0634541c2..8ff807590f24b 100644 --- a/clients/client-backup-gateway/src/runtimeConfig.shared.ts +++ b/clients/client-backup-gateway/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: BackupGatewayClientConfig) => ({ - apiVersion: "2021-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Backup Gateway", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: BackupGatewayClientConfig) => { + return { + apiVersion: "2021-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Backup Gateway", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-backup-gateway/src/runtimeConfig.ts b/clients/client-backup-gateway/src/runtimeConfig.ts index cb4df755c3b64..da7f8246ca60c 100644 --- a/clients/client-backup-gateway/src/runtimeConfig.ts +++ b/clients/client-backup-gateway/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: BackupGatewayClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-backup/package.json b/clients/client-backup/package.json index 9f025708c7c51..3d02660473e23 100644 --- a/clients/client-backup/package.json +++ b/clients/client-backup/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-backup/src/runtimeConfig.shared.ts b/clients/client-backup/src/runtimeConfig.shared.ts index c5311cd4df9bd..40b0a0f30b6ce 100644 --- a/clients/client-backup/src/runtimeConfig.shared.ts +++ b/clients/client-backup/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: BackupClientConfig) => ({ - apiVersion: "2018-11-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Backup", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: BackupClientConfig) => { + return { + apiVersion: "2018-11-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Backup", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-backup/src/runtimeConfig.ts b/clients/client-backup/src/runtimeConfig.ts index 450086c8c0d85..e1c434f9b615b 100644 --- a/clients/client-backup/src/runtimeConfig.ts +++ b/clients/client-backup/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: BackupClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-backupstorage/package.json b/clients/client-backupstorage/package.json index 0943e1f0d1327..22f4f8cb7de40 100644 --- a/clients/client-backupstorage/package.json +++ b/clients/client-backupstorage/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-backupstorage/src/runtimeConfig.shared.ts b/clients/client-backupstorage/src/runtimeConfig.shared.ts index 1334a28d87611..cb1f4349ec575 100644 --- a/clients/client-backupstorage/src/runtimeConfig.shared.ts +++ b/clients/client-backupstorage/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: BackupStorageClientConfig) => ({ - apiVersion: "2018-04-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "BackupStorage", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: BackupStorageClientConfig) => { + return { + apiVersion: "2018-04-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "BackupStorage", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-backupstorage/src/runtimeConfig.ts b/clients/client-backupstorage/src/runtimeConfig.ts index 68c8c80530a9b..cfd7e3fd33615 100644 --- a/clients/client-backupstorage/src/runtimeConfig.ts +++ b/clients/client-backupstorage/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: BackupStorageClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-batch/package.json b/clients/client-batch/package.json index b2fdcf43bb893..59916bc1e6632 100644 --- a/clients/client-batch/package.json +++ b/clients/client-batch/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-batch/src/runtimeConfig.shared.ts b/clients/client-batch/src/runtimeConfig.shared.ts index 8ebd66d22abd3..d8e86abf396a9 100644 --- a/clients/client-batch/src/runtimeConfig.shared.ts +++ b/clients/client-batch/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: BatchClientConfig) => ({ - apiVersion: "2016-08-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Batch", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: BatchClientConfig) => { + return { + apiVersion: "2016-08-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Batch", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-batch/src/runtimeConfig.ts b/clients/client-batch/src/runtimeConfig.ts index 17c0acc35ed7a..400e1b5a156ae 100644 --- a/clients/client-batch/src/runtimeConfig.ts +++ b/clients/client-batch/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: BatchClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-bedrock-runtime/package.json b/clients/client-bedrock-runtime/package.json index f09f5769616b5..c02330dc46a94 100644 --- a/clients/client-bedrock-runtime/package.json +++ b/clients/client-bedrock-runtime/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-bedrock-runtime/src/runtimeConfig.shared.ts b/clients/client-bedrock-runtime/src/runtimeConfig.shared.ts index 01a65ab76bb8d..e08aab16ad4cd 100644 --- a/clients/client-bedrock-runtime/src/runtimeConfig.shared.ts +++ b/clients/client-bedrock-runtime/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: BedrockRuntimeClientConfig) => ({ - apiVersion: "2023-09-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Bedrock Runtime", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: BedrockRuntimeClientConfig) => { + return { + apiVersion: "2023-09-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Bedrock Runtime", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-bedrock-runtime/src/runtimeConfig.ts b/clients/client-bedrock-runtime/src/runtimeConfig.ts index c620370911c08..5aa23e13d3bda 100644 --- a/clients/client-bedrock-runtime/src/runtimeConfig.ts +++ b/clients/client-bedrock-runtime/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -32,6 +33,7 @@ export const getRuntimeConfig = (config: BedrockRuntimeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-bedrock/package.json b/clients/client-bedrock/package.json index 19435dab4d0b7..f9c7983b3f4e4 100644 --- a/clients/client-bedrock/package.json +++ b/clients/client-bedrock/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-bedrock/src/runtimeConfig.shared.ts b/clients/client-bedrock/src/runtimeConfig.shared.ts index 6a82e44fa631b..4c988bcaee913 100644 --- a/clients/client-bedrock/src/runtimeConfig.shared.ts +++ b/clients/client-bedrock/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: BedrockClientConfig) => ({ - apiVersion: "2023-04-20", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Bedrock", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: BedrockClientConfig) => { + return { + apiVersion: "2023-04-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Bedrock", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-bedrock/src/runtimeConfig.ts b/clients/client-bedrock/src/runtimeConfig.ts index 2fe346032a2e5..03c2b68307873 100644 --- a/clients/client-bedrock/src/runtimeConfig.ts +++ b/clients/client-bedrock/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: BedrockClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-billingconductor/package.json b/clients/client-billingconductor/package.json index 6de8bf893badc..4770e40107210 100644 --- a/clients/client-billingconductor/package.json +++ b/clients/client-billingconductor/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-billingconductor/src/runtimeConfig.shared.ts b/clients/client-billingconductor/src/runtimeConfig.shared.ts index 7eb6bf3cfdf46..d7e36bb282829 100644 --- a/clients/client-billingconductor/src/runtimeConfig.shared.ts +++ b/clients/client-billingconductor/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: BillingconductorClientConfig) => ({ - apiVersion: "2021-07-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "billingconductor", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: BillingconductorClientConfig) => { + return { + apiVersion: "2021-07-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "billingconductor", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-billingconductor/src/runtimeConfig.ts b/clients/client-billingconductor/src/runtimeConfig.ts index c1043feaf420c..d7282c45a9f40 100644 --- a/clients/client-billingconductor/src/runtimeConfig.ts +++ b/clients/client-billingconductor/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: BillingconductorClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-braket/package.json b/clients/client-braket/package.json index 05b14dd0760db..634d209452968 100644 --- a/clients/client-braket/package.json +++ b/clients/client-braket/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-braket/src/runtimeConfig.shared.ts b/clients/client-braket/src/runtimeConfig.shared.ts index 47f192d25d9a8..fcc3ee949bf63 100644 --- a/clients/client-braket/src/runtimeConfig.shared.ts +++ b/clients/client-braket/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: BraketClientConfig) => ({ - apiVersion: "2019-09-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Braket", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: BraketClientConfig) => { + return { + apiVersion: "2019-09-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Braket", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-braket/src/runtimeConfig.ts b/clients/client-braket/src/runtimeConfig.ts index bf19aa4361def..572c1a7acab67 100644 --- a/clients/client-braket/src/runtimeConfig.ts +++ b/clients/client-braket/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: BraketClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-budgets/package.json b/clients/client-budgets/package.json index a5ea3d5cb1318..db74a02bc1b9b 100644 --- a/clients/client-budgets/package.json +++ b/clients/client-budgets/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-budgets/src/runtimeConfig.shared.ts b/clients/client-budgets/src/runtimeConfig.shared.ts index 630bdbb84f99b..13e185e11f761 100644 --- a/clients/client-budgets/src/runtimeConfig.shared.ts +++ b/clients/client-budgets/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: BudgetsClientConfig) => ({ - apiVersion: "2016-10-20", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Budgets", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: BudgetsClientConfig) => { + return { + apiVersion: "2016-10-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Budgets", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-budgets/src/runtimeConfig.ts b/clients/client-budgets/src/runtimeConfig.ts index 92e1f68a9be10..31a7c086feeba 100644 --- a/clients/client-budgets/src/runtimeConfig.ts +++ b/clients/client-budgets/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: BudgetsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-chime-sdk-identity/package.json b/clients/client-chime-sdk-identity/package.json index 756df666a3cec..1ceee5864c1a1 100644 --- a/clients/client-chime-sdk-identity/package.json +++ b/clients/client-chime-sdk-identity/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-chime-sdk-identity/src/runtimeConfig.shared.ts b/clients/client-chime-sdk-identity/src/runtimeConfig.shared.ts index acabf46eaa56b..167afb75c16ff 100644 --- a/clients/client-chime-sdk-identity/src/runtimeConfig.shared.ts +++ b/clients/client-chime-sdk-identity/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ChimeSDKIdentityClientConfig) => ({ - apiVersion: "2021-04-20", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Chime SDK Identity", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ChimeSDKIdentityClientConfig) => { + return { + apiVersion: "2021-04-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Chime SDK Identity", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-chime-sdk-identity/src/runtimeConfig.ts b/clients/client-chime-sdk-identity/src/runtimeConfig.ts index 6a973145e3719..2df54b55eb9d5 100644 --- a/clients/client-chime-sdk-identity/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-identity/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ChimeSDKIdentityClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-chime-sdk-media-pipelines/package.json b/clients/client-chime-sdk-media-pipelines/package.json index c27f3468629aa..3e677fb27ec94 100644 --- a/clients/client-chime-sdk-media-pipelines/package.json +++ b/clients/client-chime-sdk-media-pipelines/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.shared.ts b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.shared.ts index 8e476ed3c892a..60e21d3c0c5c5 100644 --- a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.shared.ts +++ b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ChimeSDKMediaPipelinesClientConfig) => ({ - apiVersion: "2021-07-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Chime SDK Media Pipelines", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ChimeSDKMediaPipelinesClientConfig) => { + return { + apiVersion: "2021-07-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Chime SDK Media Pipelines", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts index 8b15b5a9d7ac3..050fc42bdf332 100644 --- a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ChimeSDKMediaPipelinesClientConfig) => const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-chime-sdk-meetings/package.json b/clients/client-chime-sdk-meetings/package.json index a746f36743e3d..bd4d8dd399e35 100644 --- a/clients/client-chime-sdk-meetings/package.json +++ b/clients/client-chime-sdk-meetings/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-chime-sdk-meetings/src/runtimeConfig.shared.ts b/clients/client-chime-sdk-meetings/src/runtimeConfig.shared.ts index d7ef0f82b45cc..33a411206321a 100644 --- a/clients/client-chime-sdk-meetings/src/runtimeConfig.shared.ts +++ b/clients/client-chime-sdk-meetings/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ChimeSDKMeetingsClientConfig) => ({ - apiVersion: "2021-07-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Chime SDK Meetings", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ChimeSDKMeetingsClientConfig) => { + return { + apiVersion: "2021-07-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Chime SDK Meetings", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-chime-sdk-meetings/src/runtimeConfig.ts b/clients/client-chime-sdk-meetings/src/runtimeConfig.ts index a524ae411d8f8..6917a9e50f7bd 100644 --- a/clients/client-chime-sdk-meetings/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-meetings/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ChimeSDKMeetingsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-chime-sdk-messaging/package.json b/clients/client-chime-sdk-messaging/package.json index ebd4b589d87ef..1d9e1e71ec4c5 100644 --- a/clients/client-chime-sdk-messaging/package.json +++ b/clients/client-chime-sdk-messaging/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-chime-sdk-messaging/src/runtimeConfig.shared.ts b/clients/client-chime-sdk-messaging/src/runtimeConfig.shared.ts index 53d5b63f8e19d..a25805cd94e20 100644 --- a/clients/client-chime-sdk-messaging/src/runtimeConfig.shared.ts +++ b/clients/client-chime-sdk-messaging/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ChimeSDKMessagingClientConfig) => ({ - apiVersion: "2021-05-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Chime SDK Messaging", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ChimeSDKMessagingClientConfig) => { + return { + apiVersion: "2021-05-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Chime SDK Messaging", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-chime-sdk-messaging/src/runtimeConfig.ts b/clients/client-chime-sdk-messaging/src/runtimeConfig.ts index be018d33b7a77..215ed2511bc93 100644 --- a/clients/client-chime-sdk-messaging/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-messaging/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ChimeSDKMessagingClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-chime-sdk-voice/package.json b/clients/client-chime-sdk-voice/package.json index f8a8a08ac837e..fcac148f0ed50 100644 --- a/clients/client-chime-sdk-voice/package.json +++ b/clients/client-chime-sdk-voice/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-chime-sdk-voice/src/runtimeConfig.shared.ts b/clients/client-chime-sdk-voice/src/runtimeConfig.shared.ts index 99bd0b6e46191..cffe3f1e0a186 100644 --- a/clients/client-chime-sdk-voice/src/runtimeConfig.shared.ts +++ b/clients/client-chime-sdk-voice/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ChimeSDKVoiceClientConfig) => ({ - apiVersion: "2022-08-03", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Chime SDK Voice", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ChimeSDKVoiceClientConfig) => { + return { + apiVersion: "2022-08-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Chime SDK Voice", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-chime-sdk-voice/src/runtimeConfig.ts b/clients/client-chime-sdk-voice/src/runtimeConfig.ts index 51c73e98b0dba..af60716484490 100644 --- a/clients/client-chime-sdk-voice/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-voice/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ChimeSDKVoiceClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-chime/package.json b/clients/client-chime/package.json index 9e5444a874b1f..9bcb5e863d8e7 100644 --- a/clients/client-chime/package.json +++ b/clients/client-chime/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-chime/src/runtimeConfig.shared.ts b/clients/client-chime/src/runtimeConfig.shared.ts index d5b76887cd195..d02ebdd8f65f4 100644 --- a/clients/client-chime/src/runtimeConfig.shared.ts +++ b/clients/client-chime/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ChimeClientConfig) => ({ - apiVersion: "2018-05-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Chime", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ChimeClientConfig) => { + return { + apiVersion: "2018-05-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Chime", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-chime/src/runtimeConfig.ts b/clients/client-chime/src/runtimeConfig.ts index 9f35152279485..c7e326752b932 100644 --- a/clients/client-chime/src/runtimeConfig.ts +++ b/clients/client-chime/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ChimeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cleanrooms/src/runtimeConfig.shared.ts b/clients/client-cleanrooms/src/runtimeConfig.shared.ts index 61c5a997c4f09..13d928723dcee 100644 --- a/clients/client-cleanrooms/src/runtimeConfig.shared.ts +++ b/clients/client-cleanrooms/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CleanRoomsClientConfig) => ({ - apiVersion: "2022-02-17", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CleanRooms", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CleanRoomsClientConfig) => { + return { + apiVersion: "2022-02-17", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CleanRooms", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cleanrooms/src/runtimeConfig.ts b/clients/client-cleanrooms/src/runtimeConfig.ts index 7569d37b056d1..66bdad4ad408a 100644 --- a/clients/client-cleanrooms/src/runtimeConfig.ts +++ b/clients/client-cleanrooms/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CleanRoomsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloud9/package.json b/clients/client-cloud9/package.json index 8d18dd1f11ae2..79705c48a55ec 100644 --- a/clients/client-cloud9/package.json +++ b/clients/client-cloud9/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloud9/src/runtimeConfig.shared.ts b/clients/client-cloud9/src/runtimeConfig.shared.ts index 5abefaa14a66e..2f90d9401efc8 100644 --- a/clients/client-cloud9/src/runtimeConfig.shared.ts +++ b/clients/client-cloud9/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: Cloud9ClientConfig) => ({ - apiVersion: "2017-09-23", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Cloud9", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: Cloud9ClientConfig) => { + return { + apiVersion: "2017-09-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Cloud9", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloud9/src/runtimeConfig.ts b/clients/client-cloud9/src/runtimeConfig.ts index fa1c97b282b61..181da3103e7fa 100644 --- a/clients/client-cloud9/src/runtimeConfig.ts +++ b/clients/client-cloud9/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: Cloud9ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudcontrol/package.json b/clients/client-cloudcontrol/package.json index d61587dc25317..989ac526729cb 100644 --- a/clients/client-cloudcontrol/package.json +++ b/clients/client-cloudcontrol/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudcontrol/src/runtimeConfig.shared.ts b/clients/client-cloudcontrol/src/runtimeConfig.shared.ts index 32d5419ab3d2a..660c5c5d27a92 100644 --- a/clients/client-cloudcontrol/src/runtimeConfig.shared.ts +++ b/clients/client-cloudcontrol/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudControlClientConfig) => ({ - apiVersion: "2021-09-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudControl", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudControlClientConfig) => { + return { + apiVersion: "2021-09-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudControl", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudcontrol/src/runtimeConfig.ts b/clients/client-cloudcontrol/src/runtimeConfig.ts index b810a73a4babc..8e17aee2531ca 100644 --- a/clients/client-cloudcontrol/src/runtimeConfig.ts +++ b/clients/client-cloudcontrol/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudControlClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-clouddirectory/src/runtimeConfig.shared.ts b/clients/client-clouddirectory/src/runtimeConfig.shared.ts index 100f8a781bb85..406f14827468f 100644 --- a/clients/client-clouddirectory/src/runtimeConfig.shared.ts +++ b/clients/client-clouddirectory/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudDirectoryClientConfig) => ({ - apiVersion: "2017-01-11", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudDirectory", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudDirectoryClientConfig) => { + return { + apiVersion: "2017-01-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudDirectory", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-clouddirectory/src/runtimeConfig.ts b/clients/client-clouddirectory/src/runtimeConfig.ts index 08f77aface7d8..e419de95a090e 100644 --- a/clients/client-clouddirectory/src/runtimeConfig.ts +++ b/clients/client-clouddirectory/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudDirectoryClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudformation/package.json b/clients/client-cloudformation/package.json index 08ab37a96ac78..10a6b3243f358 100644 --- a/clients/client-cloudformation/package.json +++ b/clients/client-cloudformation/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudformation/src/runtimeConfig.shared.ts b/clients/client-cloudformation/src/runtimeConfig.shared.ts index 7d2e944189971..05dbb158b7fe0 100644 --- a/clients/client-cloudformation/src/runtimeConfig.shared.ts +++ b/clients/client-cloudformation/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudFormationClientConfig) => ({ - apiVersion: "2010-05-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudFormation", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudFormationClientConfig) => { + return { + apiVersion: "2010-05-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudFormation", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudformation/src/runtimeConfig.ts b/clients/client-cloudformation/src/runtimeConfig.ts index 3ec7eabf47c5a..2a988f073734c 100644 --- a/clients/client-cloudformation/src/runtimeConfig.ts +++ b/clients/client-cloudformation/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudFormationClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudfront/package.json b/clients/client-cloudfront/package.json index 6444042df0b6d..feae6fed20826 100644 --- a/clients/client-cloudfront/package.json +++ b/clients/client-cloudfront/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudfront/src/runtimeConfig.shared.ts b/clients/client-cloudfront/src/runtimeConfig.shared.ts index 27aa25f14c929..71c5979a7ead2 100644 --- a/clients/client-cloudfront/src/runtimeConfig.shared.ts +++ b/clients/client-cloudfront/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudFrontClientConfig) => ({ - apiVersion: "2020-05-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudFront", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudFrontClientConfig) => { + return { + apiVersion: "2020-05-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudFront", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudfront/src/runtimeConfig.ts b/clients/client-cloudfront/src/runtimeConfig.ts index a01b38074884b..f3a27b6753f7d 100644 --- a/clients/client-cloudfront/src/runtimeConfig.ts +++ b/clients/client-cloudfront/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudFrontClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudhsm-v2/package.json b/clients/client-cloudhsm-v2/package.json index 9e030e5669474..fbb903b5906b8 100644 --- a/clients/client-cloudhsm-v2/package.json +++ b/clients/client-cloudhsm-v2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudhsm-v2/src/runtimeConfig.shared.ts b/clients/client-cloudhsm-v2/src/runtimeConfig.shared.ts index 58ce6e17839d1..0e3e5f9e049ec 100644 --- a/clients/client-cloudhsm-v2/src/runtimeConfig.shared.ts +++ b/clients/client-cloudhsm-v2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudHSMV2ClientConfig) => ({ - apiVersion: "2017-04-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudHSM V2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudHSMV2ClientConfig) => { + return { + apiVersion: "2017-04-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudHSM V2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudhsm-v2/src/runtimeConfig.ts b/clients/client-cloudhsm-v2/src/runtimeConfig.ts index ac16107692c87..4c586f32976af 100644 --- a/clients/client-cloudhsm-v2/src/runtimeConfig.ts +++ b/clients/client-cloudhsm-v2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudHSMV2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudhsm/package.json b/clients/client-cloudhsm/package.json index 05f013ebb0759..69c741f932427 100644 --- a/clients/client-cloudhsm/package.json +++ b/clients/client-cloudhsm/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudhsm/src/runtimeConfig.shared.ts b/clients/client-cloudhsm/src/runtimeConfig.shared.ts index df428ba446fbe..c7fef15408896 100644 --- a/clients/client-cloudhsm/src/runtimeConfig.shared.ts +++ b/clients/client-cloudhsm/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudHSMClientConfig) => ({ - apiVersion: "2014-05-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudHSM", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudHSMClientConfig) => { + return { + apiVersion: "2014-05-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudHSM", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudhsm/src/runtimeConfig.ts b/clients/client-cloudhsm/src/runtimeConfig.ts index f838a641aff81..fe3c98dbced28 100644 --- a/clients/client-cloudhsm/src/runtimeConfig.ts +++ b/clients/client-cloudhsm/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudHSMClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudsearch-domain/package.json b/clients/client-cloudsearch-domain/package.json index 277e11364d38f..1d944fa3edae6 100644 --- a/clients/client-cloudsearch-domain/package.json +++ b/clients/client-cloudsearch-domain/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudsearch-domain/src/runtimeConfig.shared.ts b/clients/client-cloudsearch-domain/src/runtimeConfig.shared.ts index fe798bbb3aeb1..838e7e3d9afe9 100644 --- a/clients/client-cloudsearch-domain/src/runtimeConfig.shared.ts +++ b/clients/client-cloudsearch-domain/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudSearchDomainClientConfig) => ({ - apiVersion: "2013-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudSearch Domain", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudSearchDomainClientConfig) => { + return { + apiVersion: "2013-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudSearch Domain", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudsearch-domain/src/runtimeConfig.ts b/clients/client-cloudsearch-domain/src/runtimeConfig.ts index 7a360f7cb0666..fa3c1ab7f6cb6 100644 --- a/clients/client-cloudsearch-domain/src/runtimeConfig.ts +++ b/clients/client-cloudsearch-domain/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudSearchDomainClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudsearch/package.json b/clients/client-cloudsearch/package.json index 4eeef9166d9ac..6e060ea0eb545 100644 --- a/clients/client-cloudsearch/package.json +++ b/clients/client-cloudsearch/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudsearch/src/runtimeConfig.shared.ts b/clients/client-cloudsearch/src/runtimeConfig.shared.ts index 65da0c583af37..464c0d3d6f6e0 100644 --- a/clients/client-cloudsearch/src/runtimeConfig.shared.ts +++ b/clients/client-cloudsearch/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudSearchClientConfig) => ({ - apiVersion: "2013-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudSearch", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudSearchClientConfig) => { + return { + apiVersion: "2013-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudSearch", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudsearch/src/runtimeConfig.ts b/clients/client-cloudsearch/src/runtimeConfig.ts index 48fbe2e437d52..a4c643f067be0 100644 --- a/clients/client-cloudsearch/src/runtimeConfig.ts +++ b/clients/client-cloudsearch/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudSearchClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudtrail-data/package.json b/clients/client-cloudtrail-data/package.json index a39fb628eadc6..40a4e6c39b761 100644 --- a/clients/client-cloudtrail-data/package.json +++ b/clients/client-cloudtrail-data/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudtrail-data/src/runtimeConfig.shared.ts b/clients/client-cloudtrail-data/src/runtimeConfig.shared.ts index 6a320293380fc..60a6434b1580d 100644 --- a/clients/client-cloudtrail-data/src/runtimeConfig.shared.ts +++ b/clients/client-cloudtrail-data/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudTrailDataClientConfig) => ({ - apiVersion: "2021-08-11", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudTrail Data", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudTrailDataClientConfig) => { + return { + apiVersion: "2021-08-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudTrail Data", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudtrail-data/src/runtimeConfig.ts b/clients/client-cloudtrail-data/src/runtimeConfig.ts index cb11475335588..1147226a6ed57 100644 --- a/clients/client-cloudtrail-data/src/runtimeConfig.ts +++ b/clients/client-cloudtrail-data/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudTrailDataClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudtrail/package.json b/clients/client-cloudtrail/package.json index 487671b4d2bc5..54506019b9c44 100644 --- a/clients/client-cloudtrail/package.json +++ b/clients/client-cloudtrail/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudtrail/src/runtimeConfig.shared.ts b/clients/client-cloudtrail/src/runtimeConfig.shared.ts index 35193a1f28a04..7e6c1066d3b3a 100644 --- a/clients/client-cloudtrail/src/runtimeConfig.shared.ts +++ b/clients/client-cloudtrail/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudTrailClientConfig) => ({ - apiVersion: "2013-11-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudTrail", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudTrailClientConfig) => { + return { + apiVersion: "2013-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudTrail", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudtrail/src/runtimeConfig.ts b/clients/client-cloudtrail/src/runtimeConfig.ts index 79f0c8b133ac9..3946de3a8ae3d 100644 --- a/clients/client-cloudtrail/src/runtimeConfig.ts +++ b/clients/client-cloudtrail/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudTrailClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudwatch-events/package.json b/clients/client-cloudwatch-events/package.json index 01d51b1734b63..b2ad8ff033f88 100644 --- a/clients/client-cloudwatch-events/package.json +++ b/clients/client-cloudwatch-events/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudwatch-events/src/runtimeConfig.shared.ts b/clients/client-cloudwatch-events/src/runtimeConfig.shared.ts index c260219ed54ef..c98182e8ecc1a 100644 --- a/clients/client-cloudwatch-events/src/runtimeConfig.shared.ts +++ b/clients/client-cloudwatch-events/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudWatchEventsClientConfig) => ({ - apiVersion: "2015-10-07", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudWatch Events", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudWatchEventsClientConfig) => { + return { + apiVersion: "2015-10-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudWatch Events", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudwatch-events/src/runtimeConfig.ts b/clients/client-cloudwatch-events/src/runtimeConfig.ts index 3796360897916..871c46c1e6e76 100644 --- a/clients/client-cloudwatch-events/src/runtimeConfig.ts +++ b/clients/client-cloudwatch-events/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudWatchEventsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudwatch-logs/package.json b/clients/client-cloudwatch-logs/package.json index f11f2d499feb4..60e3a8501673c 100644 --- a/clients/client-cloudwatch-logs/package.json +++ b/clients/client-cloudwatch-logs/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts b/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts index 33a49f4e6caed..550981951ad89 100644 --- a/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts +++ b/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudWatchLogsClientConfig) => ({ - apiVersion: "2014-03-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudWatch Logs", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudWatchLogsClientConfig) => { + return { + apiVersion: "2014-03-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudWatch Logs", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudwatch-logs/src/runtimeConfig.ts b/clients/client-cloudwatch-logs/src/runtimeConfig.ts index e480f33ee7326..83483d06cd5b5 100644 --- a/clients/client-cloudwatch-logs/src/runtimeConfig.ts +++ b/clients/client-cloudwatch-logs/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudWatchLogsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cloudwatch/package.json b/clients/client-cloudwatch/package.json index 2620ac06d4e7d..9b187d9c36bfc 100644 --- a/clients/client-cloudwatch/package.json +++ b/clients/client-cloudwatch/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cloudwatch/src/runtimeConfig.shared.ts b/clients/client-cloudwatch/src/runtimeConfig.shared.ts index 189faf3f41910..e342c282f0247 100644 --- a/clients/client-cloudwatch/src/runtimeConfig.shared.ts +++ b/clients/client-cloudwatch/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CloudWatchClientConfig) => ({ - apiVersion: "2010-08-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CloudWatch", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CloudWatchClientConfig) => { + return { + apiVersion: "2010-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CloudWatch", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cloudwatch/src/runtimeConfig.ts b/clients/client-cloudwatch/src/runtimeConfig.ts index 3afd7dfb5ddd3..b0e0eeb0e95af 100644 --- a/clients/client-cloudwatch/src/runtimeConfig.ts +++ b/clients/client-cloudwatch/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CloudWatchClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codeartifact/package.json b/clients/client-codeartifact/package.json index 51800aa7aef8c..94f2426797732 100644 --- a/clients/client-codeartifact/package.json +++ b/clients/client-codeartifact/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-codeartifact/src/runtimeConfig.shared.ts b/clients/client-codeartifact/src/runtimeConfig.shared.ts index c3af80eea5b6a..4285108eb0e77 100644 --- a/clients/client-codeartifact/src/runtimeConfig.shared.ts +++ b/clients/client-codeartifact/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodeartifactClientConfig) => ({ - apiVersion: "2018-09-22", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "codeartifact", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodeartifactClientConfig) => { + return { + apiVersion: "2018-09-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "codeartifact", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codeartifact/src/runtimeConfig.ts b/clients/client-codeartifact/src/runtimeConfig.ts index 86cc17bb3fc49..faa9ea4d8d6a7 100644 --- a/clients/client-codeartifact/src/runtimeConfig.ts +++ b/clients/client-codeartifact/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CodeartifactClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codebuild/package.json b/clients/client-codebuild/package.json index c5e18a23cd540..94c27c8f420bf 100644 --- a/clients/client-codebuild/package.json +++ b/clients/client-codebuild/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-codebuild/src/runtimeConfig.shared.ts b/clients/client-codebuild/src/runtimeConfig.shared.ts index 4f9f781b2d615..fad343d7bd354 100644 --- a/clients/client-codebuild/src/runtimeConfig.shared.ts +++ b/clients/client-codebuild/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodeBuildClientConfig) => ({ - apiVersion: "2016-10-06", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CodeBuild", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodeBuildClientConfig) => { + return { + apiVersion: "2016-10-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CodeBuild", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codebuild/src/runtimeConfig.ts b/clients/client-codebuild/src/runtimeConfig.ts index 29902dbb80e16..f648e2494e15d 100644 --- a/clients/client-codebuild/src/runtimeConfig.ts +++ b/clients/client-codebuild/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CodeBuildClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codecatalyst/package.json b/clients/client-codecatalyst/package.json index 35844ef0d34d6..bc40acce62847 100644 --- a/clients/client-codecatalyst/package.json +++ b/clients/client-codecatalyst/package.json @@ -21,6 +21,7 @@ "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", "@aws-sdk/middleware-recursion-detection": "*", diff --git a/clients/client-codecatalyst/src/runtimeConfig.shared.ts b/clients/client-codecatalyst/src/runtimeConfig.shared.ts index fad72b875560a..b943dc0d21d96 100644 --- a/clients/client-codecatalyst/src/runtimeConfig.shared.ts +++ b/clients/client-codecatalyst/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodeCatalystClientConfig) => ({ - apiVersion: "2022-09-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CodeCatalyst", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodeCatalystClientConfig) => { + return { + apiVersion: "2022-09-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CodeCatalyst", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codecatalyst/src/runtimeConfig.ts b/clients/client-codecatalyst/src/runtimeConfig.ts index e20ec751993d7..0d76cdde0898e 100644 --- a/clients/client-codecatalyst/src/runtimeConfig.ts +++ b/clients/client-codecatalyst/src/runtimeConfig.ts @@ -2,6 +2,7 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, @@ -27,6 +28,7 @@ export const getRuntimeConfig = (config: CodeCatalystClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codecommit/package.json b/clients/client-codecommit/package.json index 87f8968a1986a..08b21c1c7f28f 100644 --- a/clients/client-codecommit/package.json +++ b/clients/client-codecommit/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-codecommit/src/runtimeConfig.shared.ts b/clients/client-codecommit/src/runtimeConfig.shared.ts index 0d69afcf74ee7..7337bc3736940 100644 --- a/clients/client-codecommit/src/runtimeConfig.shared.ts +++ b/clients/client-codecommit/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodeCommitClientConfig) => ({ - apiVersion: "2015-04-13", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CodeCommit", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodeCommitClientConfig) => { + return { + apiVersion: "2015-04-13", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CodeCommit", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codecommit/src/runtimeConfig.ts b/clients/client-codecommit/src/runtimeConfig.ts index 06e7b10e36322..d63b5e6fa9c71 100644 --- a/clients/client-codecommit/src/runtimeConfig.ts +++ b/clients/client-codecommit/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CodeCommitClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codedeploy/package.json b/clients/client-codedeploy/package.json index 07088c2a2e82d..4811cc9b3dfb5 100644 --- a/clients/client-codedeploy/package.json +++ b/clients/client-codedeploy/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-codedeploy/src/runtimeConfig.shared.ts b/clients/client-codedeploy/src/runtimeConfig.shared.ts index bed0641b50dae..4c8934572da7c 100644 --- a/clients/client-codedeploy/src/runtimeConfig.shared.ts +++ b/clients/client-codedeploy/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodeDeployClientConfig) => ({ - apiVersion: "2014-10-06", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CodeDeploy", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodeDeployClientConfig) => { + return { + apiVersion: "2014-10-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CodeDeploy", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codedeploy/src/runtimeConfig.ts b/clients/client-codedeploy/src/runtimeConfig.ts index b8e03d88c9a7e..911efa56973dd 100644 --- a/clients/client-codedeploy/src/runtimeConfig.ts +++ b/clients/client-codedeploy/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CodeDeployClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codeguru-reviewer/package.json b/clients/client-codeguru-reviewer/package.json index 761e419470670..699e1c04a5ed6 100644 --- a/clients/client-codeguru-reviewer/package.json +++ b/clients/client-codeguru-reviewer/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-codeguru-reviewer/src/runtimeConfig.shared.ts b/clients/client-codeguru-reviewer/src/runtimeConfig.shared.ts index 0dedb16151b66..4c99e1ddc66f9 100644 --- a/clients/client-codeguru-reviewer/src/runtimeConfig.shared.ts +++ b/clients/client-codeguru-reviewer/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodeGuruReviewerClientConfig) => ({ - apiVersion: "2019-09-19", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CodeGuru Reviewer", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodeGuruReviewerClientConfig) => { + return { + apiVersion: "2019-09-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CodeGuru Reviewer", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codeguru-reviewer/src/runtimeConfig.ts b/clients/client-codeguru-reviewer/src/runtimeConfig.ts index 0bd1e53134a4b..3ea30d9f7e095 100644 --- a/clients/client-codeguru-reviewer/src/runtimeConfig.ts +++ b/clients/client-codeguru-reviewer/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CodeGuruReviewerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codeguru-security/src/runtimeConfig.shared.ts b/clients/client-codeguru-security/src/runtimeConfig.shared.ts index a9b1900b216b7..b2abd07568c72 100644 --- a/clients/client-codeguru-security/src/runtimeConfig.shared.ts +++ b/clients/client-codeguru-security/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodeGuruSecurityClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CodeGuru Security", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodeGuruSecurityClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CodeGuru Security", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codeguru-security/src/runtimeConfig.ts b/clients/client-codeguru-security/src/runtimeConfig.ts index dc52a9a601c55..b00c1f98e6907 100644 --- a/clients/client-codeguru-security/src/runtimeConfig.ts +++ b/clients/client-codeguru-security/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CodeGuruSecurityClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codeguruprofiler/package.json b/clients/client-codeguruprofiler/package.json index 9e784ad702024..bf51077c9f456 100644 --- a/clients/client-codeguruprofiler/package.json +++ b/clients/client-codeguruprofiler/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-codeguruprofiler/src/runtimeConfig.shared.ts b/clients/client-codeguruprofiler/src/runtimeConfig.shared.ts index 766243cb9293f..db57a2ce20c02 100644 --- a/clients/client-codeguruprofiler/src/runtimeConfig.shared.ts +++ b/clients/client-codeguruprofiler/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodeGuruProfilerClientConfig) => ({ - apiVersion: "2019-07-18", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CodeGuruProfiler", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodeGuruProfilerClientConfig) => { + return { + apiVersion: "2019-07-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CodeGuruProfiler", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codeguruprofiler/src/runtimeConfig.ts b/clients/client-codeguruprofiler/src/runtimeConfig.ts index 497818bf3359a..49559abfe99d8 100644 --- a/clients/client-codeguruprofiler/src/runtimeConfig.ts +++ b/clients/client-codeguruprofiler/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CodeGuruProfilerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codepipeline/package.json b/clients/client-codepipeline/package.json index 8ab31533d842c..597185251e6c9 100644 --- a/clients/client-codepipeline/package.json +++ b/clients/client-codepipeline/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-codepipeline/src/runtimeConfig.shared.ts b/clients/client-codepipeline/src/runtimeConfig.shared.ts index ccc93cb0ca82d..7bd6df4c1e3cd 100644 --- a/clients/client-codepipeline/src/runtimeConfig.shared.ts +++ b/clients/client-codepipeline/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodePipelineClientConfig) => ({ - apiVersion: "2015-07-09", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CodePipeline", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodePipelineClientConfig) => { + return { + apiVersion: "2015-07-09", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CodePipeline", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codepipeline/src/runtimeConfig.ts b/clients/client-codepipeline/src/runtimeConfig.ts index 1659fa376dd3c..90c01ccbfa7e5 100644 --- a/clients/client-codepipeline/src/runtimeConfig.ts +++ b/clients/client-codepipeline/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CodePipelineClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codestar-connections/package.json b/clients/client-codestar-connections/package.json index b09247126c418..16d2b205da29b 100644 --- a/clients/client-codestar-connections/package.json +++ b/clients/client-codestar-connections/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-codestar-connections/src/runtimeConfig.shared.ts b/clients/client-codestar-connections/src/runtimeConfig.shared.ts index f9ad14ed79d30..f15bb0c8c6dc3 100644 --- a/clients/client-codestar-connections/src/runtimeConfig.shared.ts +++ b/clients/client-codestar-connections/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodeStarConnectionsClientConfig) => ({ - apiVersion: "2019-12-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CodeStar connections", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodeStarConnectionsClientConfig) => { + return { + apiVersion: "2019-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CodeStar connections", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codestar-connections/src/runtimeConfig.ts b/clients/client-codestar-connections/src/runtimeConfig.ts index fada8d3cef77a..c710fcd5b9196 100644 --- a/clients/client-codestar-connections/src/runtimeConfig.ts +++ b/clients/client-codestar-connections/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CodeStarConnectionsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codestar-notifications/package.json b/clients/client-codestar-notifications/package.json index ed50127c4d94c..51bf66ecfd0b0 100644 --- a/clients/client-codestar-notifications/package.json +++ b/clients/client-codestar-notifications/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-codestar-notifications/src/runtimeConfig.shared.ts b/clients/client-codestar-notifications/src/runtimeConfig.shared.ts index 82ba9616272b4..b063287ad55c8 100644 --- a/clients/client-codestar-notifications/src/runtimeConfig.shared.ts +++ b/clients/client-codestar-notifications/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodestarNotificationsClientConfig) => ({ - apiVersion: "2019-10-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "codestar notifications", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodestarNotificationsClientConfig) => { + return { + apiVersion: "2019-10-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "codestar notifications", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codestar-notifications/src/runtimeConfig.ts b/clients/client-codestar-notifications/src/runtimeConfig.ts index 40f0945233917..35b2551f97a59 100644 --- a/clients/client-codestar-notifications/src/runtimeConfig.ts +++ b/clients/client-codestar-notifications/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CodestarNotificationsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-codestar/package.json b/clients/client-codestar/package.json index 07fb61a51b913..2dee0ff83d6a1 100644 --- a/clients/client-codestar/package.json +++ b/clients/client-codestar/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-codestar/src/runtimeConfig.shared.ts b/clients/client-codestar/src/runtimeConfig.shared.ts index d06a1e0d748af..402e56e332e5c 100644 --- a/clients/client-codestar/src/runtimeConfig.shared.ts +++ b/clients/client-codestar/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CodeStarClientConfig) => ({ - apiVersion: "2017-04-19", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "CodeStar", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CodeStarClientConfig) => { + return { + apiVersion: "2017-04-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "CodeStar", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-codestar/src/runtimeConfig.ts b/clients/client-codestar/src/runtimeConfig.ts index 1598a33dc32d8..83a9a446e564b 100644 --- a/clients/client-codestar/src/runtimeConfig.ts +++ b/clients/client-codestar/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CodeStarClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cognito-identity-provider/package.json b/clients/client-cognito-identity-provider/package.json index adc4b2daa8ec6..584b8dc06dee4 100644 --- a/clients/client-cognito-identity-provider/package.json +++ b/clients/client-cognito-identity-provider/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts b/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts index fc453628aa8e9..3e05396ce0f46 100644 --- a/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts +++ b/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CognitoIdentityProviderClientConfig) => ({ - apiVersion: "2016-04-18", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Cognito Identity Provider", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CognitoIdentityProviderClientConfig) => { + return { + apiVersion: "2016-04-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Cognito Identity Provider", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cognito-identity-provider/src/runtimeConfig.ts b/clients/client-cognito-identity-provider/src/runtimeConfig.ts index 8862052d29d7c..28019a58894cc 100644 --- a/clients/client-cognito-identity-provider/src/runtimeConfig.ts +++ b/clients/client-cognito-identity-provider/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CognitoIdentityProviderClientConfig) => const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cognito-identity/package.json b/clients/client-cognito-identity/package.json index dc94a82dd9bee..8a3fc7e9f2fff 100644 --- a/clients/client-cognito-identity/package.json +++ b/clients/client-cognito-identity/package.json @@ -23,6 +23,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cognito-identity/src/runtimeConfig.shared.ts b/clients/client-cognito-identity/src/runtimeConfig.shared.ts index 49853ae3743e6..a627873001029 100644 --- a/clients/client-cognito-identity/src/runtimeConfig.shared.ts +++ b/clients/client-cognito-identity/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CognitoIdentityClientConfig) => ({ - apiVersion: "2014-06-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Cognito Identity", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CognitoIdentityClientConfig) => { + return { + apiVersion: "2014-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Cognito Identity", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cognito-identity/src/runtimeConfig.ts b/clients/client-cognito-identity/src/runtimeConfig.ts index b6171e1eda7d5..5e87879e4ce4f 100644 --- a/clients/client-cognito-identity/src/runtimeConfig.ts +++ b/clients/client-cognito-identity/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CognitoIdentityClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cognito-sync/package.json b/clients/client-cognito-sync/package.json index e6a957d0898e0..ffa6d593be088 100644 --- a/clients/client-cognito-sync/package.json +++ b/clients/client-cognito-sync/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cognito-sync/src/runtimeConfig.shared.ts b/clients/client-cognito-sync/src/runtimeConfig.shared.ts index a32eca242ad3c..7515fcdfade0d 100644 --- a/clients/client-cognito-sync/src/runtimeConfig.shared.ts +++ b/clients/client-cognito-sync/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CognitoSyncClientConfig) => ({ - apiVersion: "2014-06-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Cognito Sync", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CognitoSyncClientConfig) => { + return { + apiVersion: "2014-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Cognito Sync", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cognito-sync/src/runtimeConfig.ts b/clients/client-cognito-sync/src/runtimeConfig.ts index 15008a865dc87..7ebce062320db 100644 --- a/clients/client-cognito-sync/src/runtimeConfig.ts +++ b/clients/client-cognito-sync/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CognitoSyncClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-comprehend/package.json b/clients/client-comprehend/package.json index 2b81e30340714..a774996c27526 100644 --- a/clients/client-comprehend/package.json +++ b/clients/client-comprehend/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-comprehend/src/runtimeConfig.shared.ts b/clients/client-comprehend/src/runtimeConfig.shared.ts index 11949b5f864ea..d921f82ab026c 100644 --- a/clients/client-comprehend/src/runtimeConfig.shared.ts +++ b/clients/client-comprehend/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ComprehendClientConfig) => ({ - apiVersion: "2017-11-27", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Comprehend", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ComprehendClientConfig) => { + return { + apiVersion: "2017-11-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Comprehend", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-comprehend/src/runtimeConfig.ts b/clients/client-comprehend/src/runtimeConfig.ts index 28fc5193e3ae3..25269fb63df26 100644 --- a/clients/client-comprehend/src/runtimeConfig.ts +++ b/clients/client-comprehend/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ComprehendClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-comprehendmedical/package.json b/clients/client-comprehendmedical/package.json index 97634a4430d46..54816ec0bf1c0 100644 --- a/clients/client-comprehendmedical/package.json +++ b/clients/client-comprehendmedical/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-comprehendmedical/src/runtimeConfig.shared.ts b/clients/client-comprehendmedical/src/runtimeConfig.shared.ts index 43e5d0d9fadf9..21e23ee8eb243 100644 --- a/clients/client-comprehendmedical/src/runtimeConfig.shared.ts +++ b/clients/client-comprehendmedical/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ComprehendMedicalClientConfig) => ({ - apiVersion: "2018-10-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ComprehendMedical", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ComprehendMedicalClientConfig) => { + return { + apiVersion: "2018-10-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ComprehendMedical", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-comprehendmedical/src/runtimeConfig.ts b/clients/client-comprehendmedical/src/runtimeConfig.ts index 0b74d569de9ba..6701ec9ec8c4d 100644 --- a/clients/client-comprehendmedical/src/runtimeConfig.ts +++ b/clients/client-comprehendmedical/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ComprehendMedicalClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-compute-optimizer/package.json b/clients/client-compute-optimizer/package.json index 8afb8679f97c1..9dee44034e2dc 100644 --- a/clients/client-compute-optimizer/package.json +++ b/clients/client-compute-optimizer/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-compute-optimizer/src/runtimeConfig.shared.ts b/clients/client-compute-optimizer/src/runtimeConfig.shared.ts index e3629349f947b..b1a4513899510 100644 --- a/clients/client-compute-optimizer/src/runtimeConfig.shared.ts +++ b/clients/client-compute-optimizer/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ComputeOptimizerClientConfig) => ({ - apiVersion: "2019-11-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Compute Optimizer", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ComputeOptimizerClientConfig) => { + return { + apiVersion: "2019-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Compute Optimizer", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-compute-optimizer/src/runtimeConfig.ts b/clients/client-compute-optimizer/src/runtimeConfig.ts index 6643dd34e6396..6844a01dfe05f 100644 --- a/clients/client-compute-optimizer/src/runtimeConfig.ts +++ b/clients/client-compute-optimizer/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ComputeOptimizerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-config-service/package.json b/clients/client-config-service/package.json index 20872364fa519..7e0dbbdd18528 100644 --- a/clients/client-config-service/package.json +++ b/clients/client-config-service/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-config-service/src/runtimeConfig.shared.ts b/clients/client-config-service/src/runtimeConfig.shared.ts index 908625cb225ed..5415bdabff79d 100644 --- a/clients/client-config-service/src/runtimeConfig.shared.ts +++ b/clients/client-config-service/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ConfigServiceClientConfig) => ({ - apiVersion: "2014-11-12", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Config Service", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ConfigServiceClientConfig) => { + return { + apiVersion: "2014-11-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Config Service", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-config-service/src/runtimeConfig.ts b/clients/client-config-service/src/runtimeConfig.ts index 00c643742148d..ed02025ce6ed2 100644 --- a/clients/client-config-service/src/runtimeConfig.ts +++ b/clients/client-config-service/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ConfigServiceClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-connect-contact-lens/package.json b/clients/client-connect-contact-lens/package.json index 22e789f5b923c..8ffec215ca8fe 100644 --- a/clients/client-connect-contact-lens/package.json +++ b/clients/client-connect-contact-lens/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-connect-contact-lens/src/runtimeConfig.shared.ts b/clients/client-connect-contact-lens/src/runtimeConfig.shared.ts index 47f2eb2b89fd3..a36fc2a08f973 100644 --- a/clients/client-connect-contact-lens/src/runtimeConfig.shared.ts +++ b/clients/client-connect-contact-lens/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ConnectContactLensClientConfig) => ({ - apiVersion: "2020-08-21", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Connect Contact Lens", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ConnectContactLensClientConfig) => { + return { + apiVersion: "2020-08-21", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Connect Contact Lens", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-connect-contact-lens/src/runtimeConfig.ts b/clients/client-connect-contact-lens/src/runtimeConfig.ts index ef8ed4cdf4c46..0a7c1fbef41d6 100644 --- a/clients/client-connect-contact-lens/src/runtimeConfig.ts +++ b/clients/client-connect-contact-lens/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ConnectContactLensClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-connect/src/runtimeConfig.shared.ts b/clients/client-connect/src/runtimeConfig.shared.ts index 6924e857bb85c..f07f77f25892b 100644 --- a/clients/client-connect/src/runtimeConfig.shared.ts +++ b/clients/client-connect/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ConnectClientConfig) => ({ - apiVersion: "2017-08-08", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Connect", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ConnectClientConfig) => { + return { + apiVersion: "2017-08-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Connect", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-connect/src/runtimeConfig.ts b/clients/client-connect/src/runtimeConfig.ts index dee215239acc9..47eae1c4869c4 100644 --- a/clients/client-connect/src/runtimeConfig.ts +++ b/clients/client-connect/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ConnectClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-connectcampaigns/src/runtimeConfig.shared.ts b/clients/client-connectcampaigns/src/runtimeConfig.shared.ts index 4187aa2379567..8f2850248c5a6 100644 --- a/clients/client-connectcampaigns/src/runtimeConfig.shared.ts +++ b/clients/client-connectcampaigns/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ConnectCampaignsClientConfig) => ({ - apiVersion: "2021-01-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ConnectCampaigns", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ConnectCampaignsClientConfig) => { + return { + apiVersion: "2021-01-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ConnectCampaigns", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-connectcampaigns/src/runtimeConfig.ts b/clients/client-connectcampaigns/src/runtimeConfig.ts index b340941bfc13f..addd95adb0c00 100644 --- a/clients/client-connectcampaigns/src/runtimeConfig.ts +++ b/clients/client-connectcampaigns/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ConnectCampaignsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-connectcases/src/runtimeConfig.shared.ts b/clients/client-connectcases/src/runtimeConfig.shared.ts index bcbca53f6c873..7d48e61ffa56e 100644 --- a/clients/client-connectcases/src/runtimeConfig.shared.ts +++ b/clients/client-connectcases/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ConnectCasesClientConfig) => ({ - apiVersion: "2022-10-03", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ConnectCases", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ConnectCasesClientConfig) => { + return { + apiVersion: "2022-10-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ConnectCases", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-connectcases/src/runtimeConfig.ts b/clients/client-connectcases/src/runtimeConfig.ts index 15902848f2164..d6ee0c0ebfcd6 100644 --- a/clients/client-connectcases/src/runtimeConfig.ts +++ b/clients/client-connectcases/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ConnectCasesClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-connectparticipant/package.json b/clients/client-connectparticipant/package.json index fb2e4bf1d087c..02e023443f881 100644 --- a/clients/client-connectparticipant/package.json +++ b/clients/client-connectparticipant/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-connectparticipant/src/runtimeConfig.shared.ts b/clients/client-connectparticipant/src/runtimeConfig.shared.ts index 7b9625320dc4b..298a4e7f20b65 100644 --- a/clients/client-connectparticipant/src/runtimeConfig.shared.ts +++ b/clients/client-connectparticipant/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ConnectParticipantClientConfig) => ({ - apiVersion: "2018-09-07", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ConnectParticipant", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ConnectParticipantClientConfig) => { + return { + apiVersion: "2018-09-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ConnectParticipant", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-connectparticipant/src/runtimeConfig.ts b/clients/client-connectparticipant/src/runtimeConfig.ts index c6a124d0cbe6d..087772663cc77 100644 --- a/clients/client-connectparticipant/src/runtimeConfig.ts +++ b/clients/client-connectparticipant/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ConnectParticipantClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-controltower/package.json b/clients/client-controltower/package.json index f2ef770cf19a8..cbf06cfc8298c 100644 --- a/clients/client-controltower/package.json +++ b/clients/client-controltower/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-controltower/src/runtimeConfig.shared.ts b/clients/client-controltower/src/runtimeConfig.shared.ts index 81278e9658947..3c52525772253 100644 --- a/clients/client-controltower/src/runtimeConfig.shared.ts +++ b/clients/client-controltower/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ControlTowerClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ControlTower", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ControlTowerClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ControlTower", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-controltower/src/runtimeConfig.ts b/clients/client-controltower/src/runtimeConfig.ts index 459b7fb22c608..b1cd5bc97cbcf 100644 --- a/clients/client-controltower/src/runtimeConfig.ts +++ b/clients/client-controltower/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ControlTowerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cost-and-usage-report-service/package.json b/clients/client-cost-and-usage-report-service/package.json index 0932800a2815b..7fb337cf62479 100644 --- a/clients/client-cost-and-usage-report-service/package.json +++ b/clients/client-cost-and-usage-report-service/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cost-and-usage-report-service/src/runtimeConfig.shared.ts b/clients/client-cost-and-usage-report-service/src/runtimeConfig.shared.ts index 0a27852cee9c8..95e088cddaab8 100644 --- a/clients/client-cost-and-usage-report-service/src/runtimeConfig.shared.ts +++ b/clients/client-cost-and-usage-report-service/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CostAndUsageReportServiceClientConfig) => ({ - apiVersion: "2017-01-06", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Cost and Usage Report Service", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CostAndUsageReportServiceClientConfig) => { + return { + apiVersion: "2017-01-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Cost and Usage Report Service", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cost-and-usage-report-service/src/runtimeConfig.ts b/clients/client-cost-and-usage-report-service/src/runtimeConfig.ts index 7fffc53a9be86..c2f83389745d3 100644 --- a/clients/client-cost-and-usage-report-service/src/runtimeConfig.ts +++ b/clients/client-cost-and-usage-report-service/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CostAndUsageReportServiceClientConfig) const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-cost-explorer/package.json b/clients/client-cost-explorer/package.json index e0e54a40fb5ac..fe73cc9781415 100644 --- a/clients/client-cost-explorer/package.json +++ b/clients/client-cost-explorer/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-cost-explorer/src/runtimeConfig.shared.ts b/clients/client-cost-explorer/src/runtimeConfig.shared.ts index cc03786870a4c..8ee3fa7ffbb0d 100644 --- a/clients/client-cost-explorer/src/runtimeConfig.shared.ts +++ b/clients/client-cost-explorer/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CostExplorerClientConfig) => ({ - apiVersion: "2017-10-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Cost Explorer", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CostExplorerClientConfig) => { + return { + apiVersion: "2017-10-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Cost Explorer", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-cost-explorer/src/runtimeConfig.ts b/clients/client-cost-explorer/src/runtimeConfig.ts index 85ee624a1d7c4..816b2eb784d5d 100644 --- a/clients/client-cost-explorer/src/runtimeConfig.ts +++ b/clients/client-cost-explorer/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CostExplorerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-customer-profiles/package.json b/clients/client-customer-profiles/package.json index c6c917f8d04b3..c9b6709c6a404 100644 --- a/clients/client-customer-profiles/package.json +++ b/clients/client-customer-profiles/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-customer-profiles/src/runtimeConfig.shared.ts b/clients/client-customer-profiles/src/runtimeConfig.shared.ts index ab2c1be8f221f..4871952f138b3 100644 --- a/clients/client-customer-profiles/src/runtimeConfig.shared.ts +++ b/clients/client-customer-profiles/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: CustomerProfilesClientConfig) => ({ - apiVersion: "2020-08-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Customer Profiles", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: CustomerProfilesClientConfig) => { + return { + apiVersion: "2020-08-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Customer Profiles", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-customer-profiles/src/runtimeConfig.ts b/clients/client-customer-profiles/src/runtimeConfig.ts index 9694f9e58dcc1..0c131db51c99d 100644 --- a/clients/client-customer-profiles/src/runtimeConfig.ts +++ b/clients/client-customer-profiles/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: CustomerProfilesClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-data-pipeline/package.json b/clients/client-data-pipeline/package.json index d002068f33df3..0b6860844a8d5 100644 --- a/clients/client-data-pipeline/package.json +++ b/clients/client-data-pipeline/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-data-pipeline/src/runtimeConfig.shared.ts b/clients/client-data-pipeline/src/runtimeConfig.shared.ts index 9886de07e5487..6db4aecd4455d 100644 --- a/clients/client-data-pipeline/src/runtimeConfig.shared.ts +++ b/clients/client-data-pipeline/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DataPipelineClientConfig) => ({ - apiVersion: "2012-10-29", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Data Pipeline", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DataPipelineClientConfig) => { + return { + apiVersion: "2012-10-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Data Pipeline", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-data-pipeline/src/runtimeConfig.ts b/clients/client-data-pipeline/src/runtimeConfig.ts index dcc5744998637..36ccebf846c22 100644 --- a/clients/client-data-pipeline/src/runtimeConfig.ts +++ b/clients/client-data-pipeline/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DataPipelineClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-database-migration-service/src/runtimeConfig.shared.ts b/clients/client-database-migration-service/src/runtimeConfig.shared.ts index a05d9e29018ea..f77b0ce2c8cca 100644 --- a/clients/client-database-migration-service/src/runtimeConfig.shared.ts +++ b/clients/client-database-migration-service/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DatabaseMigrationServiceClientConfig) => ({ - apiVersion: "2016-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Database Migration Service", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DatabaseMigrationServiceClientConfig) => { + return { + apiVersion: "2016-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Database Migration Service", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-database-migration-service/src/runtimeConfig.ts b/clients/client-database-migration-service/src/runtimeConfig.ts index 91236c2cbe6d3..27a4417450072 100644 --- a/clients/client-database-migration-service/src/runtimeConfig.ts +++ b/clients/client-database-migration-service/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DatabaseMigrationServiceClientConfig) = const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-databrew/package.json b/clients/client-databrew/package.json index f1bc86ce3369f..9aeea6927210c 100644 --- a/clients/client-databrew/package.json +++ b/clients/client-databrew/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-databrew/src/runtimeConfig.shared.ts b/clients/client-databrew/src/runtimeConfig.shared.ts index 661d77d298859..0622ca96c471c 100644 --- a/clients/client-databrew/src/runtimeConfig.shared.ts +++ b/clients/client-databrew/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DataBrewClientConfig) => ({ - apiVersion: "2017-07-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "DataBrew", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DataBrewClientConfig) => { + return { + apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "DataBrew", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-databrew/src/runtimeConfig.ts b/clients/client-databrew/src/runtimeConfig.ts index 1b5ddc4930aca..cafb31a603726 100644 --- a/clients/client-databrew/src/runtimeConfig.ts +++ b/clients/client-databrew/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DataBrewClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-dataexchange/package.json b/clients/client-dataexchange/package.json index c911cf2a38254..8397cb4d60aa7 100644 --- a/clients/client-dataexchange/package.json +++ b/clients/client-dataexchange/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-dataexchange/src/runtimeConfig.shared.ts b/clients/client-dataexchange/src/runtimeConfig.shared.ts index 36aa2a2cdd563..0763aad4798dd 100644 --- a/clients/client-dataexchange/src/runtimeConfig.shared.ts +++ b/clients/client-dataexchange/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DataExchangeClientConfig) => ({ - apiVersion: "2017-07-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "DataExchange", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DataExchangeClientConfig) => { + return { + apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "DataExchange", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-dataexchange/src/runtimeConfig.ts b/clients/client-dataexchange/src/runtimeConfig.ts index 6f0cc02f703a6..c9ac2ebc4d199 100644 --- a/clients/client-dataexchange/src/runtimeConfig.ts +++ b/clients/client-dataexchange/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DataExchangeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-datasync/package.json b/clients/client-datasync/package.json index e706895356419..7618d6ba8d4f2 100644 --- a/clients/client-datasync/package.json +++ b/clients/client-datasync/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-datasync/src/runtimeConfig.shared.ts b/clients/client-datasync/src/runtimeConfig.shared.ts index 07479652a45ca..ad37f3ee353b0 100644 --- a/clients/client-datasync/src/runtimeConfig.shared.ts +++ b/clients/client-datasync/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DataSyncClientConfig) => ({ - apiVersion: "2018-11-09", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "DataSync", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DataSyncClientConfig) => { + return { + apiVersion: "2018-11-09", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "DataSync", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-datasync/src/runtimeConfig.ts b/clients/client-datasync/src/runtimeConfig.ts index 7ecf777c73e96..992261fd974b5 100644 --- a/clients/client-datasync/src/runtimeConfig.ts +++ b/clients/client-datasync/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DataSyncClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-datazone/src/runtimeConfig.shared.ts b/clients/client-datazone/src/runtimeConfig.shared.ts index 64eccca878b5f..e421ae87cf5a4 100644 --- a/clients/client-datazone/src/runtimeConfig.shared.ts +++ b/clients/client-datazone/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DataZoneClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "DataZone", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DataZoneClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "DataZone", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-datazone/src/runtimeConfig.ts b/clients/client-datazone/src/runtimeConfig.ts index f5999ee0a9452..7d920e2695d48 100644 --- a/clients/client-datazone/src/runtimeConfig.ts +++ b/clients/client-datazone/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DataZoneClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-dax/package.json b/clients/client-dax/package.json index 6c0b6b8949699..f9cd11501e9d1 100644 --- a/clients/client-dax/package.json +++ b/clients/client-dax/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-dax/src/runtimeConfig.shared.ts b/clients/client-dax/src/runtimeConfig.shared.ts index c4641d2b18301..48c6343f76dcf 100644 --- a/clients/client-dax/src/runtimeConfig.shared.ts +++ b/clients/client-dax/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DAXClientConfig) => ({ - apiVersion: "2017-04-19", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "DAX", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DAXClientConfig) => { + return { + apiVersion: "2017-04-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "DAX", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-dax/src/runtimeConfig.ts b/clients/client-dax/src/runtimeConfig.ts index eca819a0db6b5..dd3ad545d2d6f 100644 --- a/clients/client-dax/src/runtimeConfig.ts +++ b/clients/client-dax/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DAXClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-detective/package.json b/clients/client-detective/package.json index 530a88004eda8..e40739d7131de 100644 --- a/clients/client-detective/package.json +++ b/clients/client-detective/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-detective/src/runtimeConfig.shared.ts b/clients/client-detective/src/runtimeConfig.shared.ts index 3f698979c5aa8..b82d47ceace7e 100644 --- a/clients/client-detective/src/runtimeConfig.shared.ts +++ b/clients/client-detective/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DetectiveClientConfig) => ({ - apiVersion: "2018-10-26", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Detective", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DetectiveClientConfig) => { + return { + apiVersion: "2018-10-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Detective", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-detective/src/runtimeConfig.ts b/clients/client-detective/src/runtimeConfig.ts index 15f268e408da5..390cb489871b9 100644 --- a/clients/client-detective/src/runtimeConfig.ts +++ b/clients/client-detective/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DetectiveClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-device-farm/package.json b/clients/client-device-farm/package.json index c3adc5c1386d1..88e5434ac4c30 100644 --- a/clients/client-device-farm/package.json +++ b/clients/client-device-farm/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-device-farm/src/runtimeConfig.shared.ts b/clients/client-device-farm/src/runtimeConfig.shared.ts index 8c445c9404534..6756d6407b76a 100644 --- a/clients/client-device-farm/src/runtimeConfig.shared.ts +++ b/clients/client-device-farm/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DeviceFarmClientConfig) => ({ - apiVersion: "2015-06-23", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Device Farm", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DeviceFarmClientConfig) => { + return { + apiVersion: "2015-06-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Device Farm", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-device-farm/src/runtimeConfig.ts b/clients/client-device-farm/src/runtimeConfig.ts index 7ab4730e827ec..70ba2cf5bb949 100644 --- a/clients/client-device-farm/src/runtimeConfig.ts +++ b/clients/client-device-farm/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DeviceFarmClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-devops-guru/package.json b/clients/client-devops-guru/package.json index f3fe037c722fa..1a691a76a9d66 100644 --- a/clients/client-devops-guru/package.json +++ b/clients/client-devops-guru/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-devops-guru/src/runtimeConfig.shared.ts b/clients/client-devops-guru/src/runtimeConfig.shared.ts index 4ad435eb38e1b..68a11cfb8bcf8 100644 --- a/clients/client-devops-guru/src/runtimeConfig.shared.ts +++ b/clients/client-devops-guru/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DevOpsGuruClientConfig) => ({ - apiVersion: "2020-12-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "DevOps Guru", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DevOpsGuruClientConfig) => { + return { + apiVersion: "2020-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "DevOps Guru", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-devops-guru/src/runtimeConfig.ts b/clients/client-devops-guru/src/runtimeConfig.ts index 549c77719f433..925e49b75168d 100644 --- a/clients/client-devops-guru/src/runtimeConfig.ts +++ b/clients/client-devops-guru/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DevOpsGuruClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-direct-connect/package.json b/clients/client-direct-connect/package.json index 97ebc3c39f097..7536b74d79301 100644 --- a/clients/client-direct-connect/package.json +++ b/clients/client-direct-connect/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-direct-connect/src/runtimeConfig.shared.ts b/clients/client-direct-connect/src/runtimeConfig.shared.ts index f3735f133fd1b..ea59ca88ac1e4 100644 --- a/clients/client-direct-connect/src/runtimeConfig.shared.ts +++ b/clients/client-direct-connect/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DirectConnectClientConfig) => ({ - apiVersion: "2012-10-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Direct Connect", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DirectConnectClientConfig) => { + return { + apiVersion: "2012-10-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Direct Connect", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-direct-connect/src/runtimeConfig.ts b/clients/client-direct-connect/src/runtimeConfig.ts index 406b659ff56d0..f72205d508f05 100644 --- a/clients/client-direct-connect/src/runtimeConfig.ts +++ b/clients/client-direct-connect/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DirectConnectClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-directory-service/package.json b/clients/client-directory-service/package.json index acb20dd280e85..5474bed1d9968 100644 --- a/clients/client-directory-service/package.json +++ b/clients/client-directory-service/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-directory-service/src/runtimeConfig.shared.ts b/clients/client-directory-service/src/runtimeConfig.shared.ts index 07bc83c86743a..a260832e4116e 100644 --- a/clients/client-directory-service/src/runtimeConfig.shared.ts +++ b/clients/client-directory-service/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DirectoryServiceClientConfig) => ({ - apiVersion: "2015-04-16", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Directory Service", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DirectoryServiceClientConfig) => { + return { + apiVersion: "2015-04-16", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Directory Service", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-directory-service/src/runtimeConfig.ts b/clients/client-directory-service/src/runtimeConfig.ts index 13611a71af05e..f61f96598b8d0 100644 --- a/clients/client-directory-service/src/runtimeConfig.ts +++ b/clients/client-directory-service/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DirectoryServiceClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-dlm/package.json b/clients/client-dlm/package.json index 6bc0a4427ea70..3ff0b89db7886 100644 --- a/clients/client-dlm/package.json +++ b/clients/client-dlm/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-dlm/src/runtimeConfig.shared.ts b/clients/client-dlm/src/runtimeConfig.shared.ts index 1aa19addda2e4..b8e797d38c23b 100644 --- a/clients/client-dlm/src/runtimeConfig.shared.ts +++ b/clients/client-dlm/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DLMClientConfig) => ({ - apiVersion: "2018-01-12", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "DLM", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DLMClientConfig) => { + return { + apiVersion: "2018-01-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "DLM", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-dlm/src/runtimeConfig.ts b/clients/client-dlm/src/runtimeConfig.ts index c206a2b312d38..afd8b604f3a82 100644 --- a/clients/client-dlm/src/runtimeConfig.ts +++ b/clients/client-dlm/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DLMClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-docdb-elastic/package.json b/clients/client-docdb-elastic/package.json index dd9ebb07847ed..2871b708e1f07 100644 --- a/clients/client-docdb-elastic/package.json +++ b/clients/client-docdb-elastic/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-docdb-elastic/src/runtimeConfig.shared.ts b/clients/client-docdb-elastic/src/runtimeConfig.shared.ts index bcbfbad383f8a..ed7cc4ce79882 100644 --- a/clients/client-docdb-elastic/src/runtimeConfig.shared.ts +++ b/clients/client-docdb-elastic/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DocDBElasticClientConfig) => ({ - apiVersion: "2022-11-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "DocDB Elastic", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DocDBElasticClientConfig) => { + return { + apiVersion: "2022-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "DocDB Elastic", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-docdb-elastic/src/runtimeConfig.ts b/clients/client-docdb-elastic/src/runtimeConfig.ts index 97505a74fac4d..4a3a8dc17d87b 100644 --- a/clients/client-docdb-elastic/src/runtimeConfig.ts +++ b/clients/client-docdb-elastic/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DocDBElasticClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-docdb/package.json b/clients/client-docdb/package.json index 777651f020a55..825143a25b7af 100644 --- a/clients/client-docdb/package.json +++ b/clients/client-docdb/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-docdb/src/runtimeConfig.shared.ts b/clients/client-docdb/src/runtimeConfig.shared.ts index 896561d5dc452..29a29d4605ab6 100644 --- a/clients/client-docdb/src/runtimeConfig.shared.ts +++ b/clients/client-docdb/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DocDBClientConfig) => ({ - apiVersion: "2014-10-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "DocDB", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DocDBClientConfig) => { + return { + apiVersion: "2014-10-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "DocDB", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-docdb/src/runtimeConfig.ts b/clients/client-docdb/src/runtimeConfig.ts index 99ec2ba0cc541..e66749d6bf7d9 100644 --- a/clients/client-docdb/src/runtimeConfig.ts +++ b/clients/client-docdb/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DocDBClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-drs/package.json b/clients/client-drs/package.json index cde2e1ce91100..f59e0ae74a79c 100644 --- a/clients/client-drs/package.json +++ b/clients/client-drs/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-drs/src/runtimeConfig.shared.ts b/clients/client-drs/src/runtimeConfig.shared.ts index bd6f1a1932ffb..d2a25d2b3ddfa 100644 --- a/clients/client-drs/src/runtimeConfig.shared.ts +++ b/clients/client-drs/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DrsClientConfig) => ({ - apiVersion: "2020-02-26", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "drs", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DrsClientConfig) => { + return { + apiVersion: "2020-02-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "drs", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-drs/src/runtimeConfig.ts b/clients/client-drs/src/runtimeConfig.ts index 148ed804d1cb8..b10cced5ddb6d 100644 --- a/clients/client-drs/src/runtimeConfig.ts +++ b/clients/client-drs/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DrsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-dynamodb-streams/src/runtimeConfig.shared.ts b/clients/client-dynamodb-streams/src/runtimeConfig.shared.ts index bc56b04e49527..1580e58ac1928 100644 --- a/clients/client-dynamodb-streams/src/runtimeConfig.shared.ts +++ b/clients/client-dynamodb-streams/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DynamoDBStreamsClientConfig) => ({ - apiVersion: "2012-08-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "DynamoDB Streams", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DynamoDBStreamsClientConfig) => { + return { + apiVersion: "2012-08-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "DynamoDB Streams", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-dynamodb-streams/src/runtimeConfig.ts b/clients/client-dynamodb-streams/src/runtimeConfig.ts index f0afa140087f7..906923ec38b25 100644 --- a/clients/client-dynamodb-streams/src/runtimeConfig.ts +++ b/clients/client-dynamodb-streams/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: DynamoDBStreamsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-dynamodb/src/runtimeConfig.shared.ts b/clients/client-dynamodb/src/runtimeConfig.shared.ts index 271c34c5b457b..060f66bf37c1c 100644 --- a/clients/client-dynamodb/src/runtimeConfig.shared.ts +++ b/clients/client-dynamodb/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: DynamoDBClientConfig) => ({ - apiVersion: "2012-08-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "DynamoDB", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: DynamoDBClientConfig) => { + return { + apiVersion: "2012-08-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "DynamoDB", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-dynamodb/src/runtimeConfig.ts b/clients/client-dynamodb/src/runtimeConfig.ts index fd868c8f67e5f..1701b2959f2e9 100644 --- a/clients/client-dynamodb/src/runtimeConfig.ts +++ b/clients/client-dynamodb/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -32,6 +33,7 @@ export const getRuntimeConfig = (config: DynamoDBClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ebs/package.json b/clients/client-ebs/package.json index cd232f5945987..2b1bf8e92731f 100644 --- a/clients/client-ebs/package.json +++ b/clients/client-ebs/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ebs/src/runtimeConfig.shared.ts b/clients/client-ebs/src/runtimeConfig.shared.ts index 1257068d8360c..0b10b5672f8b0 100644 --- a/clients/client-ebs/src/runtimeConfig.shared.ts +++ b/clients/client-ebs/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: EBSClientConfig) => ({ - apiVersion: "2019-11-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "EBS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EBSClientConfig) => { + return { + apiVersion: "2019-11-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "EBS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ebs/src/runtimeConfig.ts b/clients/client-ebs/src/runtimeConfig.ts index 59db3855d2ec8..c506c108a9ed4 100644 --- a/clients/client-ebs/src/runtimeConfig.ts +++ b/clients/client-ebs/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: EBSClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ec2-instance-connect/package.json b/clients/client-ec2-instance-connect/package.json index f9eca4f7f63b2..a1a4ad9defede 100644 --- a/clients/client-ec2-instance-connect/package.json +++ b/clients/client-ec2-instance-connect/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ec2-instance-connect/src/runtimeConfig.shared.ts b/clients/client-ec2-instance-connect/src/runtimeConfig.shared.ts index 3b46fe959b79f..1adefeac8029b 100644 --- a/clients/client-ec2-instance-connect/src/runtimeConfig.shared.ts +++ b/clients/client-ec2-instance-connect/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: EC2InstanceConnectClientConfig) => ({ - apiVersion: "2018-04-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "EC2 Instance Connect", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EC2InstanceConnectClientConfig) => { + return { + apiVersion: "2018-04-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "EC2 Instance Connect", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ec2-instance-connect/src/runtimeConfig.ts b/clients/client-ec2-instance-connect/src/runtimeConfig.ts index ef9f06696fde1..d4896c6218d38 100644 --- a/clients/client-ec2-instance-connect/src/runtimeConfig.ts +++ b/clients/client-ec2-instance-connect/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: EC2InstanceConnectClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ec2/package.json b/clients/client-ec2/package.json index 223e4704ae235..b56bd2007efa8 100644 --- a/clients/client-ec2/package.json +++ b/clients/client-ec2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ec2/src/runtimeConfig.shared.ts b/clients/client-ec2/src/runtimeConfig.shared.ts index 98dcf8c3e6d14..ce9884839dced 100644 --- a/clients/client-ec2/src/runtimeConfig.shared.ts +++ b/clients/client-ec2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: EC2ClientConfig) => ({ - apiVersion: "2016-11-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "EC2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EC2ClientConfig) => { + return { + apiVersion: "2016-11-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "EC2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ec2/src/runtimeConfig.ts b/clients/client-ec2/src/runtimeConfig.ts index 540ca082e88af..73c441055cb1e 100644 --- a/clients/client-ec2/src/runtimeConfig.ts +++ b/clients/client-ec2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: EC2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ecr-public/package.json b/clients/client-ecr-public/package.json index 00be6f3a52f6e..428950f6264c9 100644 --- a/clients/client-ecr-public/package.json +++ b/clients/client-ecr-public/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ecr-public/src/runtimeConfig.shared.ts b/clients/client-ecr-public/src/runtimeConfig.shared.ts index eb636ab2876b0..8898feb1535d0 100644 --- a/clients/client-ecr-public/src/runtimeConfig.shared.ts +++ b/clients/client-ecr-public/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ECRPUBLICClientConfig) => ({ - apiVersion: "2020-10-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ECR PUBLIC", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ECRPUBLICClientConfig) => { + return { + apiVersion: "2020-10-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ECR PUBLIC", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ecr-public/src/runtimeConfig.ts b/clients/client-ecr-public/src/runtimeConfig.ts index 17d21976e747f..3a788655caa0c 100644 --- a/clients/client-ecr-public/src/runtimeConfig.ts +++ b/clients/client-ecr-public/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ECRPUBLICClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ecr/package.json b/clients/client-ecr/package.json index c19ab025e51a4..2a48cb6df4a81 100644 --- a/clients/client-ecr/package.json +++ b/clients/client-ecr/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ecr/src/runtimeConfig.shared.ts b/clients/client-ecr/src/runtimeConfig.shared.ts index 5e4a48de6f9c5..fcaefdc5cd490 100644 --- a/clients/client-ecr/src/runtimeConfig.shared.ts +++ b/clients/client-ecr/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ECRClientConfig) => ({ - apiVersion: "2015-09-21", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ECR", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ECRClientConfig) => { + return { + apiVersion: "2015-09-21", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ECR", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ecr/src/runtimeConfig.ts b/clients/client-ecr/src/runtimeConfig.ts index 353218b8d473d..dfd24cc49e979 100644 --- a/clients/client-ecr/src/runtimeConfig.ts +++ b/clients/client-ecr/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ECRClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ecs/package.json b/clients/client-ecs/package.json index 10960d2279e2b..50536c9478898 100644 --- a/clients/client-ecs/package.json +++ b/clients/client-ecs/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ecs/src/runtimeConfig.shared.ts b/clients/client-ecs/src/runtimeConfig.shared.ts index 439a27671f7c3..95b658baf4833 100644 --- a/clients/client-ecs/src/runtimeConfig.shared.ts +++ b/clients/client-ecs/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ECSClientConfig) => ({ - apiVersion: "2014-11-13", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ECS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ECSClientConfig) => { + return { + apiVersion: "2014-11-13", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ECS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ecs/src/runtimeConfig.ts b/clients/client-ecs/src/runtimeConfig.ts index 11994dd33630d..867ebfa0a5b31 100644 --- a/clients/client-ecs/src/runtimeConfig.ts +++ b/clients/client-ecs/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ECSClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-efs/package.json b/clients/client-efs/package.json index 4a17727387629..24d07dd0bbf8a 100644 --- a/clients/client-efs/package.json +++ b/clients/client-efs/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-efs/src/runtimeConfig.shared.ts b/clients/client-efs/src/runtimeConfig.shared.ts index b2beb3ae4401e..97fcf7aa3bc8c 100644 --- a/clients/client-efs/src/runtimeConfig.shared.ts +++ b/clients/client-efs/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: EFSClientConfig) => ({ - apiVersion: "2015-02-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "EFS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EFSClientConfig) => { + return { + apiVersion: "2015-02-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "EFS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-efs/src/runtimeConfig.ts b/clients/client-efs/src/runtimeConfig.ts index 939b2cec39f2e..acc4114f2cdc8 100644 --- a/clients/client-efs/src/runtimeConfig.ts +++ b/clients/client-efs/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: EFSClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-eks/package.json b/clients/client-eks/package.json index 0eb3f9965f46a..62ffe7b080370 100644 --- a/clients/client-eks/package.json +++ b/clients/client-eks/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-eks/src/runtimeConfig.shared.ts b/clients/client-eks/src/runtimeConfig.shared.ts index de770709a6642..319862a568c39 100644 --- a/clients/client-eks/src/runtimeConfig.shared.ts +++ b/clients/client-eks/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: EKSClientConfig) => ({ - apiVersion: "2017-11-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "EKS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EKSClientConfig) => { + return { + apiVersion: "2017-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "EKS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-eks/src/runtimeConfig.ts b/clients/client-eks/src/runtimeConfig.ts index b88f84029e403..165f084b56122 100644 --- a/clients/client-eks/src/runtimeConfig.ts +++ b/clients/client-eks/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: EKSClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-elastic-beanstalk/package.json b/clients/client-elastic-beanstalk/package.json index c0e75b1c87b83..26ef63bb9d61a 100644 --- a/clients/client-elastic-beanstalk/package.json +++ b/clients/client-elastic-beanstalk/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-elastic-beanstalk/src/runtimeConfig.shared.ts b/clients/client-elastic-beanstalk/src/runtimeConfig.shared.ts index 4e1cba7ff05ec..673cdcf7cc0ec 100644 --- a/clients/client-elastic-beanstalk/src/runtimeConfig.shared.ts +++ b/clients/client-elastic-beanstalk/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ElasticBeanstalkClientConfig) => ({ - apiVersion: "2010-12-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Elastic Beanstalk", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ElasticBeanstalkClientConfig) => { + return { + apiVersion: "2010-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Elastic Beanstalk", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-elastic-beanstalk/src/runtimeConfig.ts b/clients/client-elastic-beanstalk/src/runtimeConfig.ts index 0c0ee6a07f3df..fb5a3b299559d 100644 --- a/clients/client-elastic-beanstalk/src/runtimeConfig.ts +++ b/clients/client-elastic-beanstalk/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ElasticBeanstalkClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-elastic-inference/package.json b/clients/client-elastic-inference/package.json index 1ea3a9c2597b0..606313f78b23f 100644 --- a/clients/client-elastic-inference/package.json +++ b/clients/client-elastic-inference/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-elastic-inference/src/runtimeConfig.shared.ts b/clients/client-elastic-inference/src/runtimeConfig.shared.ts index a874c32463f44..efd3b759577b9 100644 --- a/clients/client-elastic-inference/src/runtimeConfig.shared.ts +++ b/clients/client-elastic-inference/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ElasticInferenceClientConfig) => ({ - apiVersion: "2017-07-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Elastic Inference", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ElasticInferenceClientConfig) => { + return { + apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Elastic Inference", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-elastic-inference/src/runtimeConfig.ts b/clients/client-elastic-inference/src/runtimeConfig.ts index ec63b2d53b69e..e8866b462fabb 100644 --- a/clients/client-elastic-inference/src/runtimeConfig.ts +++ b/clients/client-elastic-inference/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ElasticInferenceClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-elastic-load-balancing-v2/package.json b/clients/client-elastic-load-balancing-v2/package.json index 770a6ffa8c589..ad5910c591c57 100644 --- a/clients/client-elastic-load-balancing-v2/package.json +++ b/clients/client-elastic-load-balancing-v2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.shared.ts b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.shared.ts index 080e72a66a4e2..b29d867115ac6 100644 --- a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.shared.ts +++ b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ElasticLoadBalancingV2ClientConfig) => ({ - apiVersion: "2015-12-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Elastic Load Balancing v2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ElasticLoadBalancingV2ClientConfig) => { + return { + apiVersion: "2015-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Elastic Load Balancing v2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts index 8c5368640e05d..f0e54a4c88d71 100644 --- a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts +++ b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ElasticLoadBalancingV2ClientConfig) => const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-elastic-load-balancing/package.json b/clients/client-elastic-load-balancing/package.json index e4da4cdf9ff07..3951a26fab8ce 100644 --- a/clients/client-elastic-load-balancing/package.json +++ b/clients/client-elastic-load-balancing/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-elastic-load-balancing/src/runtimeConfig.shared.ts b/clients/client-elastic-load-balancing/src/runtimeConfig.shared.ts index 0e0b56deced82..70b96371f7d3f 100644 --- a/clients/client-elastic-load-balancing/src/runtimeConfig.shared.ts +++ b/clients/client-elastic-load-balancing/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ElasticLoadBalancingClientConfig) => ({ - apiVersion: "2012-06-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Elastic Load Balancing", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ElasticLoadBalancingClientConfig) => { + return { + apiVersion: "2012-06-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Elastic Load Balancing", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-elastic-load-balancing/src/runtimeConfig.ts b/clients/client-elastic-load-balancing/src/runtimeConfig.ts index 3c8266fea7a0c..6001af23cbd7a 100644 --- a/clients/client-elastic-load-balancing/src/runtimeConfig.ts +++ b/clients/client-elastic-load-balancing/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ElasticLoadBalancingClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-elastic-transcoder/package.json b/clients/client-elastic-transcoder/package.json index 464b335167f20..dcdede5a1ac7e 100644 --- a/clients/client-elastic-transcoder/package.json +++ b/clients/client-elastic-transcoder/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-elastic-transcoder/src/runtimeConfig.shared.ts b/clients/client-elastic-transcoder/src/runtimeConfig.shared.ts index a71ccf9ebd318..295c62483e86c 100644 --- a/clients/client-elastic-transcoder/src/runtimeConfig.shared.ts +++ b/clients/client-elastic-transcoder/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ElasticTranscoderClientConfig) => ({ - apiVersion: "2012-09-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Elastic Transcoder", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ElasticTranscoderClientConfig) => { + return { + apiVersion: "2012-09-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Elastic Transcoder", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-elastic-transcoder/src/runtimeConfig.ts b/clients/client-elastic-transcoder/src/runtimeConfig.ts index 2f568fed4b896..7c3e32c201995 100644 --- a/clients/client-elastic-transcoder/src/runtimeConfig.ts +++ b/clients/client-elastic-transcoder/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ElasticTranscoderClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-elasticache/package.json b/clients/client-elasticache/package.json index 0d5f9d1dd528a..bb8ad8791bfe5 100644 --- a/clients/client-elasticache/package.json +++ b/clients/client-elasticache/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-elasticache/src/runtimeConfig.shared.ts b/clients/client-elasticache/src/runtimeConfig.shared.ts index fe95bd084184e..a874faf4de0c7 100644 --- a/clients/client-elasticache/src/runtimeConfig.shared.ts +++ b/clients/client-elasticache/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ElastiCacheClientConfig) => ({ - apiVersion: "2015-02-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ElastiCache", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ElastiCacheClientConfig) => { + return { + apiVersion: "2015-02-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ElastiCache", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-elasticache/src/runtimeConfig.ts b/clients/client-elasticache/src/runtimeConfig.ts index ddb53345ce230..157dbbeceeafa 100644 --- a/clients/client-elasticache/src/runtimeConfig.ts +++ b/clients/client-elasticache/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ElastiCacheClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-elasticsearch-service/package.json b/clients/client-elasticsearch-service/package.json index 5cae06145b3ec..3645e76d2344d 100644 --- a/clients/client-elasticsearch-service/package.json +++ b/clients/client-elasticsearch-service/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-elasticsearch-service/src/runtimeConfig.shared.ts b/clients/client-elasticsearch-service/src/runtimeConfig.shared.ts index 406e0176158c0..347592110816f 100644 --- a/clients/client-elasticsearch-service/src/runtimeConfig.shared.ts +++ b/clients/client-elasticsearch-service/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: ElasticsearchServiceClientConfig) => ({ - apiVersion: "2015-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Elasticsearch Service", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ElasticsearchServiceClientConfig) => { + return { + apiVersion: "2015-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Elasticsearch Service", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-elasticsearch-service/src/runtimeConfig.ts b/clients/client-elasticsearch-service/src/runtimeConfig.ts index 070428f9c4ac2..842cd27dc8648 100644 --- a/clients/client-elasticsearch-service/src/runtimeConfig.ts +++ b/clients/client-elasticsearch-service/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ElasticsearchServiceClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-emr-containers/src/runtimeConfig.shared.ts b/clients/client-emr-containers/src/runtimeConfig.shared.ts index ac7337c9b2050..7073cdd8a77ed 100644 --- a/clients/client-emr-containers/src/runtimeConfig.shared.ts +++ b/clients/client-emr-containers/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: EMRContainersClientConfig) => ({ - apiVersion: "2020-10-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "EMR containers", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EMRContainersClientConfig) => { + return { + apiVersion: "2020-10-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "EMR containers", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-emr-containers/src/runtimeConfig.ts b/clients/client-emr-containers/src/runtimeConfig.ts index 78ffbde5d976f..adec9e3ded33f 100644 --- a/clients/client-emr-containers/src/runtimeConfig.ts +++ b/clients/client-emr-containers/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: EMRContainersClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-emr-serverless/src/runtimeConfig.shared.ts b/clients/client-emr-serverless/src/runtimeConfig.shared.ts index 58ed7c33a0866..0832253a61833 100644 --- a/clients/client-emr-serverless/src/runtimeConfig.shared.ts +++ b/clients/client-emr-serverless/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: EMRServerlessClientConfig) => ({ - apiVersion: "2021-07-13", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "EMR Serverless", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EMRServerlessClientConfig) => { + return { + apiVersion: "2021-07-13", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "EMR Serverless", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-emr-serverless/src/runtimeConfig.ts b/clients/client-emr-serverless/src/runtimeConfig.ts index dd2b9fb4c27dd..114d49957a19c 100644 --- a/clients/client-emr-serverless/src/runtimeConfig.ts +++ b/clients/client-emr-serverless/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: EMRServerlessClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-emr/src/runtimeConfig.shared.ts b/clients/client-emr/src/runtimeConfig.shared.ts index 53a99e3215709..34b4b4798397e 100644 --- a/clients/client-emr/src/runtimeConfig.shared.ts +++ b/clients/client-emr/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; /** * @internal */ -export const getRuntimeConfig = (config: EMRClientConfig) => ({ - apiVersion: "2009-03-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "EMR", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EMRClientConfig) => { + return { + apiVersion: "2009-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "EMR", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-emr/src/runtimeConfig.ts b/clients/client-emr/src/runtimeConfig.ts index 1165be0827a5d..94dd0736036c5 100644 --- a/clients/client-emr/src/runtimeConfig.ts +++ b/clients/client-emr/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: EMRClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-entityresolution/src/runtimeConfig.shared.ts b/clients/client-entityresolution/src/runtimeConfig.shared.ts index 40a0b0bd93c38..a6fca7a89ad59 100644 --- a/clients/client-entityresolution/src/runtimeConfig.shared.ts +++ b/clients/client-entityresolution/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { EntityResolutionClientConfig } from "./EntityResolutionClient"; /** * @internal */ -export const getRuntimeConfig = (config: EntityResolutionClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "EntityResolution", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EntityResolutionClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "EntityResolution", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-entityresolution/src/runtimeConfig.ts b/clients/client-entityresolution/src/runtimeConfig.ts index 88af1f7ecffeb..c7165629426ad 100644 --- a/clients/client-entityresolution/src/runtimeConfig.ts +++ b/clients/client-entityresolution/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: EntityResolutionClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-eventbridge/package.json b/clients/client-eventbridge/package.json index a006968a399d2..9196515a1e575 100644 --- a/clients/client-eventbridge/package.json +++ b/clients/client-eventbridge/package.json @@ -24,6 +24,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-eventbridge/src/runtimeConfig.shared.ts b/clients/client-eventbridge/src/runtimeConfig.shared.ts index 7eb5a3b6e9e6b..c943d83e5fcfc 100644 --- a/clients/client-eventbridge/src/runtimeConfig.shared.ts +++ b/clients/client-eventbridge/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { EventBridgeClientConfig } from "./EventBridgeClient"; /** * @internal */ -export const getRuntimeConfig = (config: EventBridgeClientConfig) => ({ - apiVersion: "2015-10-07", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "EventBridge", - signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion, - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EventBridgeClientConfig) => { + return { + apiVersion: "2015-10-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "EventBridge", + signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion, + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-eventbridge/src/runtimeConfig.ts b/clients/client-eventbridge/src/runtimeConfig.ts index b439cce9d59dd..879c30ba0b7ec 100644 --- a/clients/client-eventbridge/src/runtimeConfig.ts +++ b/clients/client-eventbridge/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: EventBridgeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-evidently/src/runtimeConfig.shared.ts b/clients/client-evidently/src/runtimeConfig.shared.ts index 5c9ba3154c71d..21997cf6d9a91 100644 --- a/clients/client-evidently/src/runtimeConfig.shared.ts +++ b/clients/client-evidently/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { EvidentlyClientConfig } from "./EvidentlyClient"; /** * @internal */ -export const getRuntimeConfig = (config: EvidentlyClientConfig) => ({ - apiVersion: "2021-02-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Evidently", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EvidentlyClientConfig) => { + return { + apiVersion: "2021-02-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Evidently", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-evidently/src/runtimeConfig.ts b/clients/client-evidently/src/runtimeConfig.ts index 0fc2893dc9483..954e6e4e8f645 100644 --- a/clients/client-evidently/src/runtimeConfig.ts +++ b/clients/client-evidently/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: EvidentlyClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-finspace-data/package.json b/clients/client-finspace-data/package.json index 93b213e52ae1d..fab27dd908994 100644 --- a/clients/client-finspace-data/package.json +++ b/clients/client-finspace-data/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-finspace-data/src/runtimeConfig.shared.ts b/clients/client-finspace-data/src/runtimeConfig.shared.ts index 1311c4649580f..1b135d6e34293 100644 --- a/clients/client-finspace-data/src/runtimeConfig.shared.ts +++ b/clients/client-finspace-data/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { FinspaceDataClientConfig } from "./FinspaceDataClient"; /** * @internal */ -export const getRuntimeConfig = (config: FinspaceDataClientConfig) => ({ - apiVersion: "2020-07-13", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "finspace data", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: FinspaceDataClientConfig) => { + return { + apiVersion: "2020-07-13", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "finspace data", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-finspace-data/src/runtimeConfig.ts b/clients/client-finspace-data/src/runtimeConfig.ts index 6ab8b694c884e..85f336e59eaf4 100644 --- a/clients/client-finspace-data/src/runtimeConfig.ts +++ b/clients/client-finspace-data/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: FinspaceDataClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-finspace/package.json b/clients/client-finspace/package.json index 2c3a9cf77e036..9a7b4eb1dd29e 100644 --- a/clients/client-finspace/package.json +++ b/clients/client-finspace/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-finspace/src/runtimeConfig.shared.ts b/clients/client-finspace/src/runtimeConfig.shared.ts index 7768bc0fd9d49..57aa1093dc36a 100644 --- a/clients/client-finspace/src/runtimeConfig.shared.ts +++ b/clients/client-finspace/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { FinspaceClientConfig } from "./FinspaceClient"; /** * @internal */ -export const getRuntimeConfig = (config: FinspaceClientConfig) => ({ - apiVersion: "2021-03-12", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "finspace", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: FinspaceClientConfig) => { + return { + apiVersion: "2021-03-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "finspace", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-finspace/src/runtimeConfig.ts b/clients/client-finspace/src/runtimeConfig.ts index 7767b6f0ee851..a8a213cfe220e 100644 --- a/clients/client-finspace/src/runtimeConfig.ts +++ b/clients/client-finspace/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: FinspaceClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-firehose/package.json b/clients/client-firehose/package.json index d49fe32448165..61ff3b140ca49 100644 --- a/clients/client-firehose/package.json +++ b/clients/client-firehose/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-firehose/src/runtimeConfig.shared.ts b/clients/client-firehose/src/runtimeConfig.shared.ts index 3976682755ddf..45c375ef1bfda 100644 --- a/clients/client-firehose/src/runtimeConfig.shared.ts +++ b/clients/client-firehose/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { FirehoseClientConfig } from "./FirehoseClient"; /** * @internal */ -export const getRuntimeConfig = (config: FirehoseClientConfig) => ({ - apiVersion: "2015-08-04", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Firehose", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: FirehoseClientConfig) => { + return { + apiVersion: "2015-08-04", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Firehose", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-firehose/src/runtimeConfig.ts b/clients/client-firehose/src/runtimeConfig.ts index b1a2a322f315f..2969005d3b0ef 100644 --- a/clients/client-firehose/src/runtimeConfig.ts +++ b/clients/client-firehose/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: FirehoseClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-fis/package.json b/clients/client-fis/package.json index 40136871d3b00..655df4da28905 100644 --- a/clients/client-fis/package.json +++ b/clients/client-fis/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-fis/src/runtimeConfig.shared.ts b/clients/client-fis/src/runtimeConfig.shared.ts index a4d444dfde89f..03add0dffa358 100644 --- a/clients/client-fis/src/runtimeConfig.shared.ts +++ b/clients/client-fis/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { FisClientConfig } from "./FisClient"; /** * @internal */ -export const getRuntimeConfig = (config: FisClientConfig) => ({ - apiVersion: "2020-12-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "fis", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: FisClientConfig) => { + return { + apiVersion: "2020-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "fis", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-fis/src/runtimeConfig.ts b/clients/client-fis/src/runtimeConfig.ts index f6d29de9db484..9606122266ba5 100644 --- a/clients/client-fis/src/runtimeConfig.ts +++ b/clients/client-fis/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: FisClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-fms/package.json b/clients/client-fms/package.json index e02b9c4545b6d..065efbecaf8e5 100644 --- a/clients/client-fms/package.json +++ b/clients/client-fms/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-fms/src/runtimeConfig.shared.ts b/clients/client-fms/src/runtimeConfig.shared.ts index 34cd2a821dfef..5e9dd80edf9d1 100644 --- a/clients/client-fms/src/runtimeConfig.shared.ts +++ b/clients/client-fms/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { FMSClientConfig } from "./FMSClient"; /** * @internal */ -export const getRuntimeConfig = (config: FMSClientConfig) => ({ - apiVersion: "2018-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "FMS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: FMSClientConfig) => { + return { + apiVersion: "2018-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "FMS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-fms/src/runtimeConfig.ts b/clients/client-fms/src/runtimeConfig.ts index 68184ff2efc9e..d42832278d34a 100644 --- a/clients/client-fms/src/runtimeConfig.ts +++ b/clients/client-fms/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: FMSClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-forecast/package.json b/clients/client-forecast/package.json index ec6e57b747868..6f30253737521 100644 --- a/clients/client-forecast/package.json +++ b/clients/client-forecast/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-forecast/src/runtimeConfig.shared.ts b/clients/client-forecast/src/runtimeConfig.shared.ts index 2b40ff3da53b9..c94d976bc15b5 100644 --- a/clients/client-forecast/src/runtimeConfig.shared.ts +++ b/clients/client-forecast/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ForecastClientConfig } from "./ForecastClient"; /** * @internal */ -export const getRuntimeConfig = (config: ForecastClientConfig) => ({ - apiVersion: "2018-06-26", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "forecast", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ForecastClientConfig) => { + return { + apiVersion: "2018-06-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "forecast", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-forecast/src/runtimeConfig.ts b/clients/client-forecast/src/runtimeConfig.ts index a67d4321f593e..bea2c54522575 100644 --- a/clients/client-forecast/src/runtimeConfig.ts +++ b/clients/client-forecast/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ForecastClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-forecastquery/package.json b/clients/client-forecastquery/package.json index 3145342a2aa24..efd37f7309db8 100644 --- a/clients/client-forecastquery/package.json +++ b/clients/client-forecastquery/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-forecastquery/src/runtimeConfig.shared.ts b/clients/client-forecastquery/src/runtimeConfig.shared.ts index 141407a360b29..7242c41746ac6 100644 --- a/clients/client-forecastquery/src/runtimeConfig.shared.ts +++ b/clients/client-forecastquery/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ForecastqueryClientConfig } from "./ForecastqueryClient"; /** * @internal */ -export const getRuntimeConfig = (config: ForecastqueryClientConfig) => ({ - apiVersion: "2018-06-26", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "forecastquery", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ForecastqueryClientConfig) => { + return { + apiVersion: "2018-06-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "forecastquery", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-forecastquery/src/runtimeConfig.ts b/clients/client-forecastquery/src/runtimeConfig.ts index 29b280b2acee3..9ac0447d8c84b 100644 --- a/clients/client-forecastquery/src/runtimeConfig.ts +++ b/clients/client-forecastquery/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ForecastqueryClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-frauddetector/package.json b/clients/client-frauddetector/package.json index 7fbdb73fc8ecd..23d3ffe7591d7 100644 --- a/clients/client-frauddetector/package.json +++ b/clients/client-frauddetector/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-frauddetector/src/runtimeConfig.shared.ts b/clients/client-frauddetector/src/runtimeConfig.shared.ts index 52df7258bd47e..b8ed00414e694 100644 --- a/clients/client-frauddetector/src/runtimeConfig.shared.ts +++ b/clients/client-frauddetector/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { FraudDetectorClientConfig } from "./FraudDetectorClient"; /** * @internal */ -export const getRuntimeConfig = (config: FraudDetectorClientConfig) => ({ - apiVersion: "2019-11-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "FraudDetector", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: FraudDetectorClientConfig) => { + return { + apiVersion: "2019-11-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "FraudDetector", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-frauddetector/src/runtimeConfig.ts b/clients/client-frauddetector/src/runtimeConfig.ts index 0facf6e320f62..ee2c77a082fe0 100644 --- a/clients/client-frauddetector/src/runtimeConfig.ts +++ b/clients/client-frauddetector/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: FraudDetectorClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-fsx/package.json b/clients/client-fsx/package.json index 1bb2cd387257e..8b90dc4f23a09 100644 --- a/clients/client-fsx/package.json +++ b/clients/client-fsx/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-fsx/src/runtimeConfig.shared.ts b/clients/client-fsx/src/runtimeConfig.shared.ts index bc7483aae3344..85649f3fea41b 100644 --- a/clients/client-fsx/src/runtimeConfig.shared.ts +++ b/clients/client-fsx/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { FSxClientConfig } from "./FSxClient"; /** * @internal */ -export const getRuntimeConfig = (config: FSxClientConfig) => ({ - apiVersion: "2018-03-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "FSx", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: FSxClientConfig) => { + return { + apiVersion: "2018-03-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "FSx", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-fsx/src/runtimeConfig.ts b/clients/client-fsx/src/runtimeConfig.ts index 698fa9804bd63..c390b7f6b6a3d 100644 --- a/clients/client-fsx/src/runtimeConfig.ts +++ b/clients/client-fsx/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: FSxClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-gamelift/package.json b/clients/client-gamelift/package.json index 7726f5e8d6ece..b9c4d98c7f446 100644 --- a/clients/client-gamelift/package.json +++ b/clients/client-gamelift/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-gamelift/src/runtimeConfig.shared.ts b/clients/client-gamelift/src/runtimeConfig.shared.ts index 0903d4eeafac3..de7d7777b516e 100644 --- a/clients/client-gamelift/src/runtimeConfig.shared.ts +++ b/clients/client-gamelift/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { GameLiftClientConfig } from "./GameLiftClient"; /** * @internal */ -export const getRuntimeConfig = (config: GameLiftClientConfig) => ({ - apiVersion: "2015-10-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "GameLift", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: GameLiftClientConfig) => { + return { + apiVersion: "2015-10-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "GameLift", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-gamelift/src/runtimeConfig.ts b/clients/client-gamelift/src/runtimeConfig.ts index b991e7e9ad48e..ceb12d6657b18 100644 --- a/clients/client-gamelift/src/runtimeConfig.ts +++ b/clients/client-gamelift/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: GameLiftClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-glacier/package.json b/clients/client-glacier/package.json index 8ecf10add6375..0f6e5bc5785e2 100644 --- a/clients/client-glacier/package.json +++ b/clients/client-glacier/package.json @@ -24,6 +24,7 @@ "@aws-sdk/body-checksum-browser": "*", "@aws-sdk/body-checksum-node": "*", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-glacier/src/runtimeConfig.shared.ts b/clients/client-glacier/src/runtimeConfig.shared.ts index a5023247c6a66..36d6427a5e37d 100644 --- a/clients/client-glacier/src/runtimeConfig.shared.ts +++ b/clients/client-glacier/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { GlacierClientConfig } from "./GlacierClient"; /** * @internal */ -export const getRuntimeConfig = (config: GlacierClientConfig) => ({ - apiVersion: "2012-06-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "Glacier", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: GlacierClientConfig) => { + return { + apiVersion: "2012-06-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "Glacier", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-glacier/src/runtimeConfig.ts b/clients/client-glacier/src/runtimeConfig.ts index 997ed8a87450a..872edb2006a94 100644 --- a/clients/client-glacier/src/runtimeConfig.ts +++ b/clients/client-glacier/src/runtimeConfig.ts @@ -4,6 +4,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { bodyChecksumGenerator } from "@aws-sdk/body-checksum-node"; import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -32,6 +33,7 @@ export const getRuntimeConfig = (config: GlacierClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-global-accelerator/package.json b/clients/client-global-accelerator/package.json index 473577b245c52..d10551139979d 100644 --- a/clients/client-global-accelerator/package.json +++ b/clients/client-global-accelerator/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-global-accelerator/src/runtimeConfig.shared.ts b/clients/client-global-accelerator/src/runtimeConfig.shared.ts index 5a7f7eba7d42d..005edf76112b8 100644 --- a/clients/client-global-accelerator/src/runtimeConfig.shared.ts +++ b/clients/client-global-accelerator/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { GlobalAcceleratorClientConfig } from "./GlobalAcceleratorClient"; /** * @internal */ -export const getRuntimeConfig = (config: GlobalAcceleratorClientConfig) => ({ - apiVersion: "2018-08-08", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Global Accelerator", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: GlobalAcceleratorClientConfig) => { + return { + apiVersion: "2018-08-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Global Accelerator", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-global-accelerator/src/runtimeConfig.ts b/clients/client-global-accelerator/src/runtimeConfig.ts index 302f650424d42..789859258c1e0 100644 --- a/clients/client-global-accelerator/src/runtimeConfig.ts +++ b/clients/client-global-accelerator/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: GlobalAcceleratorClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-glue/package.json b/clients/client-glue/package.json index 9dc324b8c106c..69832c4985773 100644 --- a/clients/client-glue/package.json +++ b/clients/client-glue/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-glue/src/runtimeConfig.shared.ts b/clients/client-glue/src/runtimeConfig.shared.ts index 0caceeb2ddd82..30d9c3280f86d 100644 --- a/clients/client-glue/src/runtimeConfig.shared.ts +++ b/clients/client-glue/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { GlueClientConfig } from "./GlueClient"; /** * @internal */ -export const getRuntimeConfig = (config: GlueClientConfig) => ({ - apiVersion: "2017-03-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Glue", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: GlueClientConfig) => { + return { + apiVersion: "2017-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Glue", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-glue/src/runtimeConfig.ts b/clients/client-glue/src/runtimeConfig.ts index 7d4d3329ff820..579bd58e78758 100644 --- a/clients/client-glue/src/runtimeConfig.ts +++ b/clients/client-glue/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: GlueClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-grafana/package.json b/clients/client-grafana/package.json index 16af8fbb34b8f..d409af7d7b9c9 100644 --- a/clients/client-grafana/package.json +++ b/clients/client-grafana/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-grafana/src/runtimeConfig.shared.ts b/clients/client-grafana/src/runtimeConfig.shared.ts index 63573ada0f413..3a6d4884940dd 100644 --- a/clients/client-grafana/src/runtimeConfig.shared.ts +++ b/clients/client-grafana/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { GrafanaClientConfig } from "./GrafanaClient"; /** * @internal */ -export const getRuntimeConfig = (config: GrafanaClientConfig) => ({ - apiVersion: "2020-08-18", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "grafana", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: GrafanaClientConfig) => { + return { + apiVersion: "2020-08-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "grafana", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-grafana/src/runtimeConfig.ts b/clients/client-grafana/src/runtimeConfig.ts index 879e9921e13bb..373530445b63c 100644 --- a/clients/client-grafana/src/runtimeConfig.ts +++ b/clients/client-grafana/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: GrafanaClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-greengrass/package.json b/clients/client-greengrass/package.json index 13dbf3f10d1f5..36c72e1d7a175 100644 --- a/clients/client-greengrass/package.json +++ b/clients/client-greengrass/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-greengrass/src/runtimeConfig.shared.ts b/clients/client-greengrass/src/runtimeConfig.shared.ts index 6e4bbf95464a3..7b14f1b67870c 100644 --- a/clients/client-greengrass/src/runtimeConfig.shared.ts +++ b/clients/client-greengrass/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { GreengrassClientConfig } from "./GreengrassClient"; /** * @internal */ -export const getRuntimeConfig = (config: GreengrassClientConfig) => ({ - apiVersion: "2017-06-07", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Greengrass", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: GreengrassClientConfig) => { + return { + apiVersion: "2017-06-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Greengrass", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-greengrass/src/runtimeConfig.ts b/clients/client-greengrass/src/runtimeConfig.ts index 210442a9a127e..2a318cf0720e6 100644 --- a/clients/client-greengrass/src/runtimeConfig.ts +++ b/clients/client-greengrass/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: GreengrassClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-greengrassv2/package.json b/clients/client-greengrassv2/package.json index 1fdc3d5fba73e..7d8cbfd18d654 100644 --- a/clients/client-greengrassv2/package.json +++ b/clients/client-greengrassv2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-greengrassv2/src/runtimeConfig.shared.ts b/clients/client-greengrassv2/src/runtimeConfig.shared.ts index bb41055587a78..246442ef59bb7 100644 --- a/clients/client-greengrassv2/src/runtimeConfig.shared.ts +++ b/clients/client-greengrassv2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { GreengrassV2ClientConfig } from "./GreengrassV2Client"; /** * @internal */ -export const getRuntimeConfig = (config: GreengrassV2ClientConfig) => ({ - apiVersion: "2020-11-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "GreengrassV2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: GreengrassV2ClientConfig) => { + return { + apiVersion: "2020-11-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "GreengrassV2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-greengrassv2/src/runtimeConfig.ts b/clients/client-greengrassv2/src/runtimeConfig.ts index ca377cba507a7..bf7efbb8c7c27 100644 --- a/clients/client-greengrassv2/src/runtimeConfig.ts +++ b/clients/client-greengrassv2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: GreengrassV2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-groundstation/src/runtimeConfig.shared.ts b/clients/client-groundstation/src/runtimeConfig.shared.ts index db6ae30089811..2b3026dc79f2d 100644 --- a/clients/client-groundstation/src/runtimeConfig.shared.ts +++ b/clients/client-groundstation/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { GroundStationClientConfig } from "./GroundStationClient"; /** * @internal */ -export const getRuntimeConfig = (config: GroundStationClientConfig) => ({ - apiVersion: "2019-05-23", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "GroundStation", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: GroundStationClientConfig) => { + return { + apiVersion: "2019-05-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "GroundStation", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-groundstation/src/runtimeConfig.ts b/clients/client-groundstation/src/runtimeConfig.ts index a15c2ffacd496..6d8c63a439a8b 100644 --- a/clients/client-groundstation/src/runtimeConfig.ts +++ b/clients/client-groundstation/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: GroundStationClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-guardduty/package.json b/clients/client-guardduty/package.json index 762b6cbc12af8..1b96d3304ce3d 100644 --- a/clients/client-guardduty/package.json +++ b/clients/client-guardduty/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-guardduty/src/runtimeConfig.shared.ts b/clients/client-guardduty/src/runtimeConfig.shared.ts index 914f99f0d3558..491880cdcae07 100644 --- a/clients/client-guardduty/src/runtimeConfig.shared.ts +++ b/clients/client-guardduty/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { GuardDutyClientConfig } from "./GuardDutyClient"; /** * @internal */ -export const getRuntimeConfig = (config: GuardDutyClientConfig) => ({ - apiVersion: "2017-11-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "GuardDuty", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: GuardDutyClientConfig) => { + return { + apiVersion: "2017-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "GuardDuty", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-guardduty/src/runtimeConfig.ts b/clients/client-guardduty/src/runtimeConfig.ts index ab2d798ee7840..f67cfe0ee3e1a 100644 --- a/clients/client-guardduty/src/runtimeConfig.ts +++ b/clients/client-guardduty/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: GuardDutyClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-health/package.json b/clients/client-health/package.json index fcb8b6b98e995..81201e02324f8 100644 --- a/clients/client-health/package.json +++ b/clients/client-health/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-health/src/runtimeConfig.shared.ts b/clients/client-health/src/runtimeConfig.shared.ts index c080eb398b50a..541adcb3dca03 100644 --- a/clients/client-health/src/runtimeConfig.shared.ts +++ b/clients/client-health/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { HealthClientConfig } from "./HealthClient"; /** * @internal */ -export const getRuntimeConfig = (config: HealthClientConfig) => ({ - apiVersion: "2016-08-04", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Health", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: HealthClientConfig) => { + return { + apiVersion: "2016-08-04", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Health", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-health/src/runtimeConfig.ts b/clients/client-health/src/runtimeConfig.ts index fc794c68e3974..494d60b88d8cc 100644 --- a/clients/client-health/src/runtimeConfig.ts +++ b/clients/client-health/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: HealthClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-healthlake/src/runtimeConfig.shared.ts b/clients/client-healthlake/src/runtimeConfig.shared.ts index ef2e05c2893ff..1279b5e4abf45 100644 --- a/clients/client-healthlake/src/runtimeConfig.shared.ts +++ b/clients/client-healthlake/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { HealthLakeClientConfig } from "./HealthLakeClient"; /** * @internal */ -export const getRuntimeConfig = (config: HealthLakeClientConfig) => ({ - apiVersion: "2017-07-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "HealthLake", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: HealthLakeClientConfig) => { + return { + apiVersion: "2017-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "HealthLake", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-healthlake/src/runtimeConfig.ts b/clients/client-healthlake/src/runtimeConfig.ts index 8cc0a2319234d..f57c65cf06b19 100644 --- a/clients/client-healthlake/src/runtimeConfig.ts +++ b/clients/client-healthlake/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: HealthLakeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-honeycode/package.json b/clients/client-honeycode/package.json index f6d108beafcb2..962f69f0d529e 100644 --- a/clients/client-honeycode/package.json +++ b/clients/client-honeycode/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-honeycode/src/runtimeConfig.shared.ts b/clients/client-honeycode/src/runtimeConfig.shared.ts index 3ee1219a78268..0b09c639b6b4e 100644 --- a/clients/client-honeycode/src/runtimeConfig.shared.ts +++ b/clients/client-honeycode/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { HoneycodeClientConfig } from "./HoneycodeClient"; /** * @internal */ -export const getRuntimeConfig = (config: HoneycodeClientConfig) => ({ - apiVersion: "2020-03-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Honeycode", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: HoneycodeClientConfig) => { + return { + apiVersion: "2020-03-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Honeycode", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-honeycode/src/runtimeConfig.ts b/clients/client-honeycode/src/runtimeConfig.ts index 2d4ad2362a67b..55149c4abd573 100644 --- a/clients/client-honeycode/src/runtimeConfig.ts +++ b/clients/client-honeycode/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: HoneycodeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iam/package.json b/clients/client-iam/package.json index 6c81ef54b128e..d300195f25538 100644 --- a/clients/client-iam/package.json +++ b/clients/client-iam/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iam/src/runtimeConfig.shared.ts b/clients/client-iam/src/runtimeConfig.shared.ts index 83055a121199a..de0a1b3c380bb 100644 --- a/clients/client-iam/src/runtimeConfig.shared.ts +++ b/clients/client-iam/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IAMClientConfig } from "./IAMClient"; /** * @internal */ -export const getRuntimeConfig = (config: IAMClientConfig) => ({ - apiVersion: "2010-05-08", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IAM", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IAMClientConfig) => { + return { + apiVersion: "2010-05-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IAM", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iam/src/runtimeConfig.ts b/clients/client-iam/src/runtimeConfig.ts index 329745bc1f804..b107f574f872d 100644 --- a/clients/client-iam/src/runtimeConfig.ts +++ b/clients/client-iam/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IAMClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-identitystore/package.json b/clients/client-identitystore/package.json index 560612dfaa839..0883b73169fee 100644 --- a/clients/client-identitystore/package.json +++ b/clients/client-identitystore/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-identitystore/src/runtimeConfig.shared.ts b/clients/client-identitystore/src/runtimeConfig.shared.ts index 1b7bf86a6fb16..bdd663a9889fc 100644 --- a/clients/client-identitystore/src/runtimeConfig.shared.ts +++ b/clients/client-identitystore/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IdentitystoreClientConfig } from "./IdentitystoreClient"; /** * @internal */ -export const getRuntimeConfig = (config: IdentitystoreClientConfig) => ({ - apiVersion: "2020-06-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "identitystore", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IdentitystoreClientConfig) => { + return { + apiVersion: "2020-06-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "identitystore", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-identitystore/src/runtimeConfig.ts b/clients/client-identitystore/src/runtimeConfig.ts index 213d48257c3b7..c40258a7e20e7 100644 --- a/clients/client-identitystore/src/runtimeConfig.ts +++ b/clients/client-identitystore/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IdentitystoreClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-imagebuilder/package.json b/clients/client-imagebuilder/package.json index 0f5b5ecb93431..d24d92a91abe5 100644 --- a/clients/client-imagebuilder/package.json +++ b/clients/client-imagebuilder/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-imagebuilder/src/runtimeConfig.shared.ts b/clients/client-imagebuilder/src/runtimeConfig.shared.ts index 385a42a4e663c..8e4a16824a787 100644 --- a/clients/client-imagebuilder/src/runtimeConfig.shared.ts +++ b/clients/client-imagebuilder/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ImagebuilderClientConfig } from "./ImagebuilderClient"; /** * @internal */ -export const getRuntimeConfig = (config: ImagebuilderClientConfig) => ({ - apiVersion: "2019-12-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "imagebuilder", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ImagebuilderClientConfig) => { + return { + apiVersion: "2019-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "imagebuilder", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-imagebuilder/src/runtimeConfig.ts b/clients/client-imagebuilder/src/runtimeConfig.ts index 740edde373d82..c19aa9b98cb6b 100644 --- a/clients/client-imagebuilder/src/runtimeConfig.ts +++ b/clients/client-imagebuilder/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ImagebuilderClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-inspector/package.json b/clients/client-inspector/package.json index 8634aedebc5b0..104e206d709d1 100644 --- a/clients/client-inspector/package.json +++ b/clients/client-inspector/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-inspector/src/runtimeConfig.shared.ts b/clients/client-inspector/src/runtimeConfig.shared.ts index 42562dc358c9b..7b4c84bea8b3b 100644 --- a/clients/client-inspector/src/runtimeConfig.shared.ts +++ b/clients/client-inspector/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { InspectorClientConfig } from "./InspectorClient"; /** * @internal */ -export const getRuntimeConfig = (config: InspectorClientConfig) => ({ - apiVersion: "2016-02-16", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Inspector", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: InspectorClientConfig) => { + return { + apiVersion: "2016-02-16", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Inspector", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-inspector/src/runtimeConfig.ts b/clients/client-inspector/src/runtimeConfig.ts index 82aeb8b1ef101..bede357d46fb7 100644 --- a/clients/client-inspector/src/runtimeConfig.ts +++ b/clients/client-inspector/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: InspectorClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-inspector2/src/runtimeConfig.shared.ts b/clients/client-inspector2/src/runtimeConfig.shared.ts index 0e381a4f00f2f..862bc52a5e3cc 100644 --- a/clients/client-inspector2/src/runtimeConfig.shared.ts +++ b/clients/client-inspector2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { Inspector2ClientConfig } from "./Inspector2Client"; /** * @internal */ -export const getRuntimeConfig = (config: Inspector2ClientConfig) => ({ - apiVersion: "2020-06-08", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Inspector2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: Inspector2ClientConfig) => { + return { + apiVersion: "2020-06-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Inspector2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-inspector2/src/runtimeConfig.ts b/clients/client-inspector2/src/runtimeConfig.ts index 262030a8a41a0..d11218978b82f 100644 --- a/clients/client-inspector2/src/runtimeConfig.ts +++ b/clients/client-inspector2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: Inspector2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-internetmonitor/package.json b/clients/client-internetmonitor/package.json index d0977b1833093..e861ab191d905 100644 --- a/clients/client-internetmonitor/package.json +++ b/clients/client-internetmonitor/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-internetmonitor/src/runtimeConfig.shared.ts b/clients/client-internetmonitor/src/runtimeConfig.shared.ts index 9012f45b0528f..e84dd52160a50 100644 --- a/clients/client-internetmonitor/src/runtimeConfig.shared.ts +++ b/clients/client-internetmonitor/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { InternetMonitorClientConfig } from "./InternetMonitorClient"; /** * @internal */ -export const getRuntimeConfig = (config: InternetMonitorClientConfig) => ({ - apiVersion: "2021-06-03", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "InternetMonitor", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: InternetMonitorClientConfig) => { + return { + apiVersion: "2021-06-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "InternetMonitor", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-internetmonitor/src/runtimeConfig.ts b/clients/client-internetmonitor/src/runtimeConfig.ts index 1fc05724f95a9..408cd52a032b7 100644 --- a/clients/client-internetmonitor/src/runtimeConfig.ts +++ b/clients/client-internetmonitor/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: InternetMonitorClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iot-1click-devices-service/package.json b/clients/client-iot-1click-devices-service/package.json index 3984492ccb7ce..38c0a9fe97f30 100644 --- a/clients/client-iot-1click-devices-service/package.json +++ b/clients/client-iot-1click-devices-service/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iot-1click-devices-service/src/runtimeConfig.shared.ts b/clients/client-iot-1click-devices-service/src/runtimeConfig.shared.ts index 092fb941852fc..a0b2707f91bf2 100644 --- a/clients/client-iot-1click-devices-service/src/runtimeConfig.shared.ts +++ b/clients/client-iot-1click-devices-service/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoT1ClickDevicesServiceClientConfig } from "./IoT1ClickDevicesServiceCl /** * @internal */ -export const getRuntimeConfig = (config: IoT1ClickDevicesServiceClientConfig) => ({ - apiVersion: "2018-05-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoT 1Click Devices Service", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoT1ClickDevicesServiceClientConfig) => { + return { + apiVersion: "2018-05-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoT 1Click Devices Service", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iot-1click-devices-service/src/runtimeConfig.ts b/clients/client-iot-1click-devices-service/src/runtimeConfig.ts index c5cb061c97fdd..5435f1b663ca1 100644 --- a/clients/client-iot-1click-devices-service/src/runtimeConfig.ts +++ b/clients/client-iot-1click-devices-service/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoT1ClickDevicesServiceClientConfig) => const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iot-1click-projects/package.json b/clients/client-iot-1click-projects/package.json index 386a873ea775a..a4292f4b5c4bf 100644 --- a/clients/client-iot-1click-projects/package.json +++ b/clients/client-iot-1click-projects/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iot-1click-projects/src/runtimeConfig.shared.ts b/clients/client-iot-1click-projects/src/runtimeConfig.shared.ts index cf80aa4860ce4..fde839be622d5 100644 --- a/clients/client-iot-1click-projects/src/runtimeConfig.shared.ts +++ b/clients/client-iot-1click-projects/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoT1ClickProjectsClientConfig } from "./IoT1ClickProjectsClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoT1ClickProjectsClientConfig) => ({ - apiVersion: "2018-05-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoT 1Click Projects", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoT1ClickProjectsClientConfig) => { + return { + apiVersion: "2018-05-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoT 1Click Projects", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iot-1click-projects/src/runtimeConfig.ts b/clients/client-iot-1click-projects/src/runtimeConfig.ts index 58024a2c93cce..6ee4e6afa1d76 100644 --- a/clients/client-iot-1click-projects/src/runtimeConfig.ts +++ b/clients/client-iot-1click-projects/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoT1ClickProjectsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iot-data-plane/package.json b/clients/client-iot-data-plane/package.json index b2161e80d9124..8a0cf6c75f0c2 100644 --- a/clients/client-iot-data-plane/package.json +++ b/clients/client-iot-data-plane/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iot-data-plane/src/runtimeConfig.shared.ts b/clients/client-iot-data-plane/src/runtimeConfig.shared.ts index 31533c8275a91..aaa88834e3a4a 100644 --- a/clients/client-iot-data-plane/src/runtimeConfig.shared.ts +++ b/clients/client-iot-data-plane/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTDataPlaneClientConfig } from "./IoTDataPlaneClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTDataPlaneClientConfig) => ({ - apiVersion: "2015-05-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoT Data Plane", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTDataPlaneClientConfig) => { + return { + apiVersion: "2015-05-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoT Data Plane", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iot-data-plane/src/runtimeConfig.ts b/clients/client-iot-data-plane/src/runtimeConfig.ts index 9131c98845986..0f38360b74925 100644 --- a/clients/client-iot-data-plane/src/runtimeConfig.ts +++ b/clients/client-iot-data-plane/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTDataPlaneClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iot-events-data/package.json b/clients/client-iot-events-data/package.json index 4f2e2447ccbcd..26cf77493d79c 100644 --- a/clients/client-iot-events-data/package.json +++ b/clients/client-iot-events-data/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iot-events-data/src/runtimeConfig.shared.ts b/clients/client-iot-events-data/src/runtimeConfig.shared.ts index 3be02be3f605b..3ebb70c828270 100644 --- a/clients/client-iot-events-data/src/runtimeConfig.shared.ts +++ b/clients/client-iot-events-data/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTEventsDataClientConfig } from "./IoTEventsDataClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTEventsDataClientConfig) => ({ - apiVersion: "2018-10-23", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoT Events Data", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTEventsDataClientConfig) => { + return { + apiVersion: "2018-10-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoT Events Data", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iot-events-data/src/runtimeConfig.ts b/clients/client-iot-events-data/src/runtimeConfig.ts index 8afcf900670bf..569c3fd54d989 100644 --- a/clients/client-iot-events-data/src/runtimeConfig.ts +++ b/clients/client-iot-events-data/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTEventsDataClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iot-events/package.json b/clients/client-iot-events/package.json index 9e71f418f32db..ee16d87ae1da0 100644 --- a/clients/client-iot-events/package.json +++ b/clients/client-iot-events/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iot-events/src/runtimeConfig.shared.ts b/clients/client-iot-events/src/runtimeConfig.shared.ts index fbebf90fea3f2..9639e661748ce 100644 --- a/clients/client-iot-events/src/runtimeConfig.shared.ts +++ b/clients/client-iot-events/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTEventsClientConfig } from "./IoTEventsClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTEventsClientConfig) => ({ - apiVersion: "2018-07-27", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoT Events", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTEventsClientConfig) => { + return { + apiVersion: "2018-07-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoT Events", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iot-events/src/runtimeConfig.ts b/clients/client-iot-events/src/runtimeConfig.ts index 7e05883fc7beb..d6fd8e95340e6 100644 --- a/clients/client-iot-events/src/runtimeConfig.ts +++ b/clients/client-iot-events/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTEventsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iot-jobs-data-plane/package.json b/clients/client-iot-jobs-data-plane/package.json index df2ddbeda974d..9cb7798bbe267 100644 --- a/clients/client-iot-jobs-data-plane/package.json +++ b/clients/client-iot-jobs-data-plane/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iot-jobs-data-plane/src/runtimeConfig.shared.ts b/clients/client-iot-jobs-data-plane/src/runtimeConfig.shared.ts index afea216bd040e..e27fc9fac7008 100644 --- a/clients/client-iot-jobs-data-plane/src/runtimeConfig.shared.ts +++ b/clients/client-iot-jobs-data-plane/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTJobsDataPlaneClientConfig } from "./IoTJobsDataPlaneClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTJobsDataPlaneClientConfig) => ({ - apiVersion: "2017-09-29", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoT Jobs Data Plane", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTJobsDataPlaneClientConfig) => { + return { + apiVersion: "2017-09-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoT Jobs Data Plane", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts b/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts index 9bf54dc27f57a..23ddf8de77c4f 100644 --- a/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts +++ b/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTJobsDataPlaneClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iot-roborunner/src/runtimeConfig.shared.ts b/clients/client-iot-roborunner/src/runtimeConfig.shared.ts index 7c7cc1bb5ee04..26e5ba32c7e6f 100644 --- a/clients/client-iot-roborunner/src/runtimeConfig.shared.ts +++ b/clients/client-iot-roborunner/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTRoboRunnerClientConfig } from "./IoTRoboRunnerClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTRoboRunnerClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoT RoboRunner", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTRoboRunnerClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoT RoboRunner", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iot-roborunner/src/runtimeConfig.ts b/clients/client-iot-roborunner/src/runtimeConfig.ts index 367747a738e2b..60411a03e38a1 100644 --- a/clients/client-iot-roborunner/src/runtimeConfig.ts +++ b/clients/client-iot-roborunner/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTRoboRunnerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iot-wireless/package.json b/clients/client-iot-wireless/package.json index 273970165c495..a619c9509e7f4 100644 --- a/clients/client-iot-wireless/package.json +++ b/clients/client-iot-wireless/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iot-wireless/src/runtimeConfig.shared.ts b/clients/client-iot-wireless/src/runtimeConfig.shared.ts index 8cdc76240ff5d..2b1967b72bcae 100644 --- a/clients/client-iot-wireless/src/runtimeConfig.shared.ts +++ b/clients/client-iot-wireless/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTWirelessClientConfig } from "./IoTWirelessClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTWirelessClientConfig) => ({ - apiVersion: "2020-11-22", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoT Wireless", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTWirelessClientConfig) => { + return { + apiVersion: "2020-11-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoT Wireless", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iot-wireless/src/runtimeConfig.ts b/clients/client-iot-wireless/src/runtimeConfig.ts index 6dd929eaf63a0..233a733f3a0e8 100644 --- a/clients/client-iot-wireless/src/runtimeConfig.ts +++ b/clients/client-iot-wireless/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTWirelessClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iot/package.json b/clients/client-iot/package.json index 11389b88777b8..baf6f224220e9 100644 --- a/clients/client-iot/package.json +++ b/clients/client-iot/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iot/src/runtimeConfig.shared.ts b/clients/client-iot/src/runtimeConfig.shared.ts index 8508475046e75..6771c25ee531b 100644 --- a/clients/client-iot/src/runtimeConfig.shared.ts +++ b/clients/client-iot/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTClientConfig } from "./IoTClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTClientConfig) => ({ - apiVersion: "2015-05-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoT", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTClientConfig) => { + return { + apiVersion: "2015-05-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoT", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iot/src/runtimeConfig.ts b/clients/client-iot/src/runtimeConfig.ts index 46d5b6dfc1fec..2c251e81c2225 100644 --- a/clients/client-iot/src/runtimeConfig.ts +++ b/clients/client-iot/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iotanalytics/src/runtimeConfig.shared.ts b/clients/client-iotanalytics/src/runtimeConfig.shared.ts index a7df68df1ad99..fc36f56a4416e 100644 --- a/clients/client-iotanalytics/src/runtimeConfig.shared.ts +++ b/clients/client-iotanalytics/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTAnalyticsClientConfig } from "./IoTAnalyticsClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTAnalyticsClientConfig) => ({ - apiVersion: "2017-11-27", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoTAnalytics", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTAnalyticsClientConfig) => { + return { + apiVersion: "2017-11-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoTAnalytics", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iotanalytics/src/runtimeConfig.ts b/clients/client-iotanalytics/src/runtimeConfig.ts index c6cdf0655ebeb..5b0e52bc4bdad 100644 --- a/clients/client-iotanalytics/src/runtimeConfig.ts +++ b/clients/client-iotanalytics/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTAnalyticsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iotdeviceadvisor/package.json b/clients/client-iotdeviceadvisor/package.json index 9960d6e8176e6..b3f2d80aaba20 100644 --- a/clients/client-iotdeviceadvisor/package.json +++ b/clients/client-iotdeviceadvisor/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iotdeviceadvisor/src/runtimeConfig.shared.ts b/clients/client-iotdeviceadvisor/src/runtimeConfig.shared.ts index e339b5e6d209d..571560f809f67 100644 --- a/clients/client-iotdeviceadvisor/src/runtimeConfig.shared.ts +++ b/clients/client-iotdeviceadvisor/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IotDeviceAdvisorClientConfig } from "./IotDeviceAdvisorClient"; /** * @internal */ -export const getRuntimeConfig = (config: IotDeviceAdvisorClientConfig) => ({ - apiVersion: "2020-09-18", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IotDeviceAdvisor", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IotDeviceAdvisorClientConfig) => { + return { + apiVersion: "2020-09-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IotDeviceAdvisor", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iotdeviceadvisor/src/runtimeConfig.ts b/clients/client-iotdeviceadvisor/src/runtimeConfig.ts index 017e639246ecc..d0727bdb686d0 100644 --- a/clients/client-iotdeviceadvisor/src/runtimeConfig.ts +++ b/clients/client-iotdeviceadvisor/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IotDeviceAdvisorClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iotfleethub/package.json b/clients/client-iotfleethub/package.json index e55842fd2a7c9..840afe060464a 100644 --- a/clients/client-iotfleethub/package.json +++ b/clients/client-iotfleethub/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iotfleethub/src/runtimeConfig.shared.ts b/clients/client-iotfleethub/src/runtimeConfig.shared.ts index 40082a44bcdf3..1c2a1e8eb0bf9 100644 --- a/clients/client-iotfleethub/src/runtimeConfig.shared.ts +++ b/clients/client-iotfleethub/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTFleetHubClientConfig } from "./IoTFleetHubClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTFleetHubClientConfig) => ({ - apiVersion: "2020-11-03", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoTFleetHub", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTFleetHubClientConfig) => { + return { + apiVersion: "2020-11-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoTFleetHub", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iotfleethub/src/runtimeConfig.ts b/clients/client-iotfleethub/src/runtimeConfig.ts index 2f830499a79ba..9bbf6237d6f7e 100644 --- a/clients/client-iotfleethub/src/runtimeConfig.ts +++ b/clients/client-iotfleethub/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTFleetHubClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iotfleetwise/src/runtimeConfig.shared.ts b/clients/client-iotfleetwise/src/runtimeConfig.shared.ts index 53f686ed217ac..82cdf82449b96 100644 --- a/clients/client-iotfleetwise/src/runtimeConfig.shared.ts +++ b/clients/client-iotfleetwise/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTFleetWiseClientConfig } from "./IoTFleetWiseClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTFleetWiseClientConfig) => ({ - apiVersion: "2021-06-17", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoTFleetWise", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTFleetWiseClientConfig) => { + return { + apiVersion: "2021-06-17", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoTFleetWise", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iotfleetwise/src/runtimeConfig.ts b/clients/client-iotfleetwise/src/runtimeConfig.ts index 0bab4c04670a7..ea23b67d01a96 100644 --- a/clients/client-iotfleetwise/src/runtimeConfig.ts +++ b/clients/client-iotfleetwise/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTFleetWiseClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iotsecuretunneling/package.json b/clients/client-iotsecuretunneling/package.json index 61c604be23de5..0d12c9d214c43 100644 --- a/clients/client-iotsecuretunneling/package.json +++ b/clients/client-iotsecuretunneling/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iotsecuretunneling/src/runtimeConfig.shared.ts b/clients/client-iotsecuretunneling/src/runtimeConfig.shared.ts index a20a2bce3243b..36c57ecc6b64e 100644 --- a/clients/client-iotsecuretunneling/src/runtimeConfig.shared.ts +++ b/clients/client-iotsecuretunneling/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTSecureTunnelingClientConfig } from "./IoTSecureTunnelingClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTSecureTunnelingClientConfig) => ({ - apiVersion: "2018-10-05", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoTSecureTunneling", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTSecureTunnelingClientConfig) => { + return { + apiVersion: "2018-10-05", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoTSecureTunneling", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iotsecuretunneling/src/runtimeConfig.ts b/clients/client-iotsecuretunneling/src/runtimeConfig.ts index f063574f27146..aab8aa43bb0fc 100644 --- a/clients/client-iotsecuretunneling/src/runtimeConfig.ts +++ b/clients/client-iotsecuretunneling/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTSecureTunnelingClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iotsitewise/package.json b/clients/client-iotsitewise/package.json index 52b0be70143d1..c03f5913db02b 100644 --- a/clients/client-iotsitewise/package.json +++ b/clients/client-iotsitewise/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iotsitewise/src/runtimeConfig.shared.ts b/clients/client-iotsitewise/src/runtimeConfig.shared.ts index cfb635f9748fb..1ca228e671c2e 100644 --- a/clients/client-iotsitewise/src/runtimeConfig.shared.ts +++ b/clients/client-iotsitewise/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTSiteWiseClientConfig } from "./IoTSiteWiseClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTSiteWiseClientConfig) => ({ - apiVersion: "2019-12-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoTSiteWise", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTSiteWiseClientConfig) => { + return { + apiVersion: "2019-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoTSiteWise", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iotsitewise/src/runtimeConfig.ts b/clients/client-iotsitewise/src/runtimeConfig.ts index 0bfac302045cd..5c6911540f872 100644 --- a/clients/client-iotsitewise/src/runtimeConfig.ts +++ b/clients/client-iotsitewise/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTSiteWiseClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iotthingsgraph/package.json b/clients/client-iotthingsgraph/package.json index 6ddd4c6e41ab4..86a253d12d040 100644 --- a/clients/client-iotthingsgraph/package.json +++ b/clients/client-iotthingsgraph/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iotthingsgraph/src/runtimeConfig.shared.ts b/clients/client-iotthingsgraph/src/runtimeConfig.shared.ts index a3c15cac4ef86..cac8e3fbec5ce 100644 --- a/clients/client-iotthingsgraph/src/runtimeConfig.shared.ts +++ b/clients/client-iotthingsgraph/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTThingsGraphClientConfig } from "./IoTThingsGraphClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTThingsGraphClientConfig) => ({ - apiVersion: "2018-09-06", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoTThingsGraph", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTThingsGraphClientConfig) => { + return { + apiVersion: "2018-09-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoTThingsGraph", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iotthingsgraph/src/runtimeConfig.ts b/clients/client-iotthingsgraph/src/runtimeConfig.ts index f2a7c061e6308..e8d9a62b9df6a 100644 --- a/clients/client-iotthingsgraph/src/runtimeConfig.ts +++ b/clients/client-iotthingsgraph/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTThingsGraphClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-iottwinmaker/package.json b/clients/client-iottwinmaker/package.json index b9f8a58a97596..c36441d82b15c 100644 --- a/clients/client-iottwinmaker/package.json +++ b/clients/client-iottwinmaker/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-iottwinmaker/src/runtimeConfig.shared.ts b/clients/client-iottwinmaker/src/runtimeConfig.shared.ts index bb89867b16bda..d5696d7b89a49 100644 --- a/clients/client-iottwinmaker/src/runtimeConfig.shared.ts +++ b/clients/client-iottwinmaker/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IoTTwinMakerClientConfig } from "./IoTTwinMakerClient"; /** * @internal */ -export const getRuntimeConfig = (config: IoTTwinMakerClientConfig) => ({ - apiVersion: "2021-11-29", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IoTTwinMaker", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IoTTwinMakerClientConfig) => { + return { + apiVersion: "2021-11-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IoTTwinMaker", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-iottwinmaker/src/runtimeConfig.ts b/clients/client-iottwinmaker/src/runtimeConfig.ts index 5a7a3b80499de..ff5f8d2ea886b 100644 --- a/clients/client-iottwinmaker/src/runtimeConfig.ts +++ b/clients/client-iottwinmaker/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IoTTwinMakerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ivs-realtime/package.json b/clients/client-ivs-realtime/package.json index 7fc84e1b0e5b8..2533ed30ffcda 100644 --- a/clients/client-ivs-realtime/package.json +++ b/clients/client-ivs-realtime/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ivs-realtime/src/runtimeConfig.shared.ts b/clients/client-ivs-realtime/src/runtimeConfig.shared.ts index 3847b6a1fd1f0..43271d88e47bf 100644 --- a/clients/client-ivs-realtime/src/runtimeConfig.shared.ts +++ b/clients/client-ivs-realtime/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IVSRealTimeClientConfig } from "./IVSRealTimeClient"; /** * @internal */ -export const getRuntimeConfig = (config: IVSRealTimeClientConfig) => ({ - apiVersion: "2020-07-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "IVS RealTime", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IVSRealTimeClientConfig) => { + return { + apiVersion: "2020-07-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "IVS RealTime", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ivs-realtime/src/runtimeConfig.ts b/clients/client-ivs-realtime/src/runtimeConfig.ts index 31a7f0c5af043..469407d46b96a 100644 --- a/clients/client-ivs-realtime/src/runtimeConfig.ts +++ b/clients/client-ivs-realtime/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IVSRealTimeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ivs/package.json b/clients/client-ivs/package.json index f41c575562883..6d718e8babe13 100644 --- a/clients/client-ivs/package.json +++ b/clients/client-ivs/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ivs/src/runtimeConfig.shared.ts b/clients/client-ivs/src/runtimeConfig.shared.ts index 225dbb0b79ecd..f97d9e90376c3 100644 --- a/clients/client-ivs/src/runtimeConfig.shared.ts +++ b/clients/client-ivs/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IvsClientConfig } from "./IvsClient"; /** * @internal */ -export const getRuntimeConfig = (config: IvsClientConfig) => ({ - apiVersion: "2020-07-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ivs", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IvsClientConfig) => { + return { + apiVersion: "2020-07-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ivs", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ivs/src/runtimeConfig.ts b/clients/client-ivs/src/runtimeConfig.ts index 8bbdd29112ae8..8cd7337e7b09c 100644 --- a/clients/client-ivs/src/runtimeConfig.ts +++ b/clients/client-ivs/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IvsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ivschat/src/runtimeConfig.shared.ts b/clients/client-ivschat/src/runtimeConfig.shared.ts index 47cf8ace37024..c9a091875e8d4 100644 --- a/clients/client-ivschat/src/runtimeConfig.shared.ts +++ b/clients/client-ivschat/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { IvschatClientConfig } from "./IvschatClient"; /** * @internal */ -export const getRuntimeConfig = (config: IvschatClientConfig) => ({ - apiVersion: "2020-07-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ivschat", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: IvschatClientConfig) => { + return { + apiVersion: "2020-07-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ivschat", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ivschat/src/runtimeConfig.ts b/clients/client-ivschat/src/runtimeConfig.ts index 7cca53305bba5..ab6f644c49e43 100644 --- a/clients/client-ivschat/src/runtimeConfig.ts +++ b/clients/client-ivschat/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: IvschatClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kafka/package.json b/clients/client-kafka/package.json index 7cc83b6750a6e..0f5ae2135fcd6 100644 --- a/clients/client-kafka/package.json +++ b/clients/client-kafka/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kafka/src/runtimeConfig.shared.ts b/clients/client-kafka/src/runtimeConfig.shared.ts index 7115b6deb1e99..cc8f2dc048fd1 100644 --- a/clients/client-kafka/src/runtimeConfig.shared.ts +++ b/clients/client-kafka/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KafkaClientConfig } from "./KafkaClient"; /** * @internal */ -export const getRuntimeConfig = (config: KafkaClientConfig) => ({ - apiVersion: "2018-11-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Kafka", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KafkaClientConfig) => { + return { + apiVersion: "2018-11-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Kafka", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kafka/src/runtimeConfig.ts b/clients/client-kafka/src/runtimeConfig.ts index eb3203fb7147b..e70abcc7681e5 100644 --- a/clients/client-kafka/src/runtimeConfig.ts +++ b/clients/client-kafka/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KafkaClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kafkaconnect/package.json b/clients/client-kafkaconnect/package.json index 842e01a650ac8..1d02ed91e47c3 100644 --- a/clients/client-kafkaconnect/package.json +++ b/clients/client-kafkaconnect/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kafkaconnect/src/runtimeConfig.shared.ts b/clients/client-kafkaconnect/src/runtimeConfig.shared.ts index 0bbe9efbefa6e..286619a8e6d3d 100644 --- a/clients/client-kafkaconnect/src/runtimeConfig.shared.ts +++ b/clients/client-kafkaconnect/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KafkaConnectClientConfig } from "./KafkaConnectClient"; /** * @internal */ -export const getRuntimeConfig = (config: KafkaConnectClientConfig) => ({ - apiVersion: "2021-09-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "KafkaConnect", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KafkaConnectClientConfig) => { + return { + apiVersion: "2021-09-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "KafkaConnect", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kafkaconnect/src/runtimeConfig.ts b/clients/client-kafkaconnect/src/runtimeConfig.ts index 6b548e2b69d98..b30f1f7007104 100644 --- a/clients/client-kafkaconnect/src/runtimeConfig.ts +++ b/clients/client-kafkaconnect/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KafkaConnectClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kendra-ranking/package.json b/clients/client-kendra-ranking/package.json index 1e3a8391b925c..96a331e0b4367 100644 --- a/clients/client-kendra-ranking/package.json +++ b/clients/client-kendra-ranking/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kendra-ranking/src/runtimeConfig.shared.ts b/clients/client-kendra-ranking/src/runtimeConfig.shared.ts index 4bbedb501b931..6a0583b979148 100644 --- a/clients/client-kendra-ranking/src/runtimeConfig.shared.ts +++ b/clients/client-kendra-ranking/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KendraRankingClientConfig } from "./KendraRankingClient"; /** * @internal */ -export const getRuntimeConfig = (config: KendraRankingClientConfig) => ({ - apiVersion: "2022-10-19", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Kendra Ranking", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KendraRankingClientConfig) => { + return { + apiVersion: "2022-10-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Kendra Ranking", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kendra-ranking/src/runtimeConfig.ts b/clients/client-kendra-ranking/src/runtimeConfig.ts index a6273e057337a..693f76484d1e2 100644 --- a/clients/client-kendra-ranking/src/runtimeConfig.ts +++ b/clients/client-kendra-ranking/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KendraRankingClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kendra/package.json b/clients/client-kendra/package.json index ce920b7b075bb..2efec776a91fd 100644 --- a/clients/client-kendra/package.json +++ b/clients/client-kendra/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kendra/src/runtimeConfig.shared.ts b/clients/client-kendra/src/runtimeConfig.shared.ts index e58905d33ab11..6cf79bdc4f47a 100644 --- a/clients/client-kendra/src/runtimeConfig.shared.ts +++ b/clients/client-kendra/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KendraClientConfig } from "./KendraClient"; /** * @internal */ -export const getRuntimeConfig = (config: KendraClientConfig) => ({ - apiVersion: "2019-02-03", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "kendra", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KendraClientConfig) => { + return { + apiVersion: "2019-02-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "kendra", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kendra/src/runtimeConfig.ts b/clients/client-kendra/src/runtimeConfig.ts index 147e6cb4854f0..dafc7b5889d96 100644 --- a/clients/client-kendra/src/runtimeConfig.ts +++ b/clients/client-kendra/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KendraClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-keyspaces/package.json b/clients/client-keyspaces/package.json index 100658c281f26..72296a8c580f3 100644 --- a/clients/client-keyspaces/package.json +++ b/clients/client-keyspaces/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-keyspaces/src/runtimeConfig.shared.ts b/clients/client-keyspaces/src/runtimeConfig.shared.ts index 8ff5faefce3b8..4c2573b05175a 100644 --- a/clients/client-keyspaces/src/runtimeConfig.shared.ts +++ b/clients/client-keyspaces/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KeyspacesClientConfig } from "./KeyspacesClient"; /** * @internal */ -export const getRuntimeConfig = (config: KeyspacesClientConfig) => ({ - apiVersion: "2022-02-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Keyspaces", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KeyspacesClientConfig) => { + return { + apiVersion: "2022-02-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Keyspaces", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-keyspaces/src/runtimeConfig.ts b/clients/client-keyspaces/src/runtimeConfig.ts index 03a9249fd88d7..8e6a611552fdb 100644 --- a/clients/client-keyspaces/src/runtimeConfig.ts +++ b/clients/client-keyspaces/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KeyspacesClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kinesis-analytics-v2/package.json b/clients/client-kinesis-analytics-v2/package.json index 1ce54ac942627..f0e2558c84214 100644 --- a/clients/client-kinesis-analytics-v2/package.json +++ b/clients/client-kinesis-analytics-v2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kinesis-analytics-v2/src/runtimeConfig.shared.ts b/clients/client-kinesis-analytics-v2/src/runtimeConfig.shared.ts index 1d74b5b1c4769..828f2c6b1998e 100644 --- a/clients/client-kinesis-analytics-v2/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-analytics-v2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KinesisAnalyticsV2ClientConfig } from "./KinesisAnalyticsV2Client"; /** * @internal */ -export const getRuntimeConfig = (config: KinesisAnalyticsV2ClientConfig) => ({ - apiVersion: "2018-05-23", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Kinesis Analytics V2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KinesisAnalyticsV2ClientConfig) => { + return { + apiVersion: "2018-05-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Kinesis Analytics V2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts b/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts index 87c7a40fc7727..e4a0a2a154339 100644 --- a/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts +++ b/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KinesisAnalyticsV2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kinesis-analytics/package.json b/clients/client-kinesis-analytics/package.json index b54323cff9ead..595472fc70942 100644 --- a/clients/client-kinesis-analytics/package.json +++ b/clients/client-kinesis-analytics/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kinesis-analytics/src/runtimeConfig.shared.ts b/clients/client-kinesis-analytics/src/runtimeConfig.shared.ts index 25d883bfd6b73..4442b2b7975dc 100644 --- a/clients/client-kinesis-analytics/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-analytics/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KinesisAnalyticsClientConfig } from "./KinesisAnalyticsClient"; /** * @internal */ -export const getRuntimeConfig = (config: KinesisAnalyticsClientConfig) => ({ - apiVersion: "2015-08-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Kinesis Analytics", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KinesisAnalyticsClientConfig) => { + return { + apiVersion: "2015-08-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Kinesis Analytics", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kinesis-analytics/src/runtimeConfig.ts b/clients/client-kinesis-analytics/src/runtimeConfig.ts index 1654290eade9b..b2a728377a03f 100644 --- a/clients/client-kinesis-analytics/src/runtimeConfig.ts +++ b/clients/client-kinesis-analytics/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KinesisAnalyticsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kinesis-video-archived-media/package.json b/clients/client-kinesis-video-archived-media/package.json index e8086672a4940..3136da4107175 100644 --- a/clients/client-kinesis-video-archived-media/package.json +++ b/clients/client-kinesis-video-archived-media/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kinesis-video-archived-media/src/runtimeConfig.shared.ts b/clients/client-kinesis-video-archived-media/src/runtimeConfig.shared.ts index 708f089dcdcfc..e000ce4713f32 100644 --- a/clients/client-kinesis-video-archived-media/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-video-archived-media/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { KinesisVideoArchivedMediaClientConfig } from "./KinesisVideoArchivedMed /** * @internal */ -export const getRuntimeConfig = (config: KinesisVideoArchivedMediaClientConfig) => ({ - apiVersion: "2017-09-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "Kinesis Video Archived Media", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KinesisVideoArchivedMediaClientConfig) => { + return { + apiVersion: "2017-09-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "Kinesis Video Archived Media", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts b/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts index d81d167cf858b..98485a4b43af8 100644 --- a/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts +++ b/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KinesisVideoArchivedMediaClientConfig) const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kinesis-video-media/package.json b/clients/client-kinesis-video-media/package.json index 88224527aa536..4c466168d31ad 100644 --- a/clients/client-kinesis-video-media/package.json +++ b/clients/client-kinesis-video-media/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kinesis-video-media/src/runtimeConfig.shared.ts b/clients/client-kinesis-video-media/src/runtimeConfig.shared.ts index e1298e8af06f0..fcd8eff15e5e9 100644 --- a/clients/client-kinesis-video-media/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-video-media/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { KinesisVideoMediaClientConfig } from "./KinesisVideoMediaClient"; /** * @internal */ -export const getRuntimeConfig = (config: KinesisVideoMediaClientConfig) => ({ - apiVersion: "2017-09-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "Kinesis Video Media", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KinesisVideoMediaClientConfig) => { + return { + apiVersion: "2017-09-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "Kinesis Video Media", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kinesis-video-media/src/runtimeConfig.ts b/clients/client-kinesis-video-media/src/runtimeConfig.ts index 4a5d9630f9da4..6bb72b92d6c7a 100644 --- a/clients/client-kinesis-video-media/src/runtimeConfig.ts +++ b/clients/client-kinesis-video-media/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KinesisVideoMediaClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kinesis-video-signaling/package.json b/clients/client-kinesis-video-signaling/package.json index 33fb8e7f9bffa..0202d1d8d2fc9 100644 --- a/clients/client-kinesis-video-signaling/package.json +++ b/clients/client-kinesis-video-signaling/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kinesis-video-signaling/src/runtimeConfig.shared.ts b/clients/client-kinesis-video-signaling/src/runtimeConfig.shared.ts index 614f7403794f7..42492884d73d8 100644 --- a/clients/client-kinesis-video-signaling/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-video-signaling/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KinesisVideoSignalingClientConfig } from "./KinesisVideoSignalingClient /** * @internal */ -export const getRuntimeConfig = (config: KinesisVideoSignalingClientConfig) => ({ - apiVersion: "2019-12-04", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Kinesis Video Signaling", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KinesisVideoSignalingClientConfig) => { + return { + apiVersion: "2019-12-04", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Kinesis Video Signaling", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kinesis-video-signaling/src/runtimeConfig.ts b/clients/client-kinesis-video-signaling/src/runtimeConfig.ts index 442445b239b13..df56cd469e100 100644 --- a/clients/client-kinesis-video-signaling/src/runtimeConfig.ts +++ b/clients/client-kinesis-video-signaling/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KinesisVideoSignalingClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kinesis-video-webrtc-storage/package.json b/clients/client-kinesis-video-webrtc-storage/package.json index 7233bb5942b0f..d53cda7cf27a1 100644 --- a/clients/client-kinesis-video-webrtc-storage/package.json +++ b/clients/client-kinesis-video-webrtc-storage/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.shared.ts b/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.shared.ts index 330df4360a1fc..d878adae39563 100644 --- a/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KinesisVideoWebRTCStorageClientConfig } from "./KinesisVideoWebRTCStora /** * @internal */ -export const getRuntimeConfig = (config: KinesisVideoWebRTCStorageClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Kinesis Video WebRTC Storage", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KinesisVideoWebRTCStorageClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Kinesis Video WebRTC Storage", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.ts b/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.ts index 7a9f7c6aa7a9e..2e5dd3b2e8192 100644 --- a/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.ts +++ b/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KinesisVideoWebRTCStorageClientConfig) const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kinesis-video/package.json b/clients/client-kinesis-video/package.json index a0bb6501b1336..a54d7179124d3 100644 --- a/clients/client-kinesis-video/package.json +++ b/clients/client-kinesis-video/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kinesis-video/src/runtimeConfig.shared.ts b/clients/client-kinesis-video/src/runtimeConfig.shared.ts index f1536a711d0bc..a02115feb0168 100644 --- a/clients/client-kinesis-video/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-video/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KinesisVideoClientConfig } from "./KinesisVideoClient"; /** * @internal */ -export const getRuntimeConfig = (config: KinesisVideoClientConfig) => ({ - apiVersion: "2017-09-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Kinesis Video", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KinesisVideoClientConfig) => { + return { + apiVersion: "2017-09-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Kinesis Video", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kinesis-video/src/runtimeConfig.ts b/clients/client-kinesis-video/src/runtimeConfig.ts index 8ed50c7654527..f9bd7eefa568d 100644 --- a/clients/client-kinesis-video/src/runtimeConfig.ts +++ b/clients/client-kinesis-video/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KinesisVideoClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kinesis/package.json b/clients/client-kinesis/package.json index 7b09ac86a5109..927e46b33e534 100644 --- a/clients/client-kinesis/package.json +++ b/clients/client-kinesis/package.json @@ -23,6 +23,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kinesis/src/runtimeConfig.shared.ts b/clients/client-kinesis/src/runtimeConfig.shared.ts index 62def5f50685c..f0fa7f9f87f10 100644 --- a/clients/client-kinesis/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KinesisClientConfig } from "./KinesisClient"; /** * @internal */ -export const getRuntimeConfig = (config: KinesisClientConfig) => ({ - apiVersion: "2013-12-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Kinesis", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KinesisClientConfig) => { + return { + apiVersion: "2013-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Kinesis", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kinesis/src/runtimeConfig.ts b/clients/client-kinesis/src/runtimeConfig.ts index 8d40d37dcf484..ec928c4bb79b7 100644 --- a/clients/client-kinesis/src/runtimeConfig.ts +++ b/clients/client-kinesis/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -32,6 +33,7 @@ export const getRuntimeConfig = (config: KinesisClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-kms/package.json b/clients/client-kms/package.json index 0c259ccf69cca..40630b20c9237 100644 --- a/clients/client-kms/package.json +++ b/clients/client-kms/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-kms/src/runtimeConfig.shared.ts b/clients/client-kms/src/runtimeConfig.shared.ts index f3035175e00b4..7f8023610e156 100644 --- a/clients/client-kms/src/runtimeConfig.shared.ts +++ b/clients/client-kms/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { KMSClientConfig } from "./KMSClient"; /** * @internal */ -export const getRuntimeConfig = (config: KMSClientConfig) => ({ - apiVersion: "2014-11-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "KMS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: KMSClientConfig) => { + return { + apiVersion: "2014-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "KMS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-kms/src/runtimeConfig.ts b/clients/client-kms/src/runtimeConfig.ts index e245853192ad2..7ae8d3efb63d3 100644 --- a/clients/client-kms/src/runtimeConfig.ts +++ b/clients/client-kms/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: KMSClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-lakeformation/package.json b/clients/client-lakeformation/package.json index 6aef24ef23692..c2c72312a7bd1 100644 --- a/clients/client-lakeformation/package.json +++ b/clients/client-lakeformation/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-lakeformation/src/runtimeConfig.shared.ts b/clients/client-lakeformation/src/runtimeConfig.shared.ts index f7358f65e438f..45db0d2886322 100644 --- a/clients/client-lakeformation/src/runtimeConfig.shared.ts +++ b/clients/client-lakeformation/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { LakeFormationClientConfig } from "./LakeFormationClient"; /** * @internal */ -export const getRuntimeConfig = (config: LakeFormationClientConfig) => ({ - apiVersion: "2017-03-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "LakeFormation", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LakeFormationClientConfig) => { + return { + apiVersion: "2017-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "LakeFormation", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-lakeformation/src/runtimeConfig.ts b/clients/client-lakeformation/src/runtimeConfig.ts index 10cf378be2c61..4319a2e1454d8 100644 --- a/clients/client-lakeformation/src/runtimeConfig.ts +++ b/clients/client-lakeformation/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LakeFormationClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-lambda/package.json b/clients/client-lambda/package.json index bbfd8c668a406..b3ccd94122e99 100644 --- a/clients/client-lambda/package.json +++ b/clients/client-lambda/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-lambda/src/runtimeConfig.shared.ts b/clients/client-lambda/src/runtimeConfig.shared.ts index 690b6ad3c70ac..a6be306142971 100644 --- a/clients/client-lambda/src/runtimeConfig.shared.ts +++ b/clients/client-lambda/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { LambdaClientConfig } from "./LambdaClient"; /** * @internal */ -export const getRuntimeConfig = (config: LambdaClientConfig) => ({ - apiVersion: "2015-03-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Lambda", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LambdaClientConfig) => { + return { + apiVersion: "2015-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Lambda", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-lambda/src/runtimeConfig.ts b/clients/client-lambda/src/runtimeConfig.ts index 8c615af3cfcb0..9a8b7ffbca293 100644 --- a/clients/client-lambda/src/runtimeConfig.ts +++ b/clients/client-lambda/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -32,6 +33,7 @@ export const getRuntimeConfig = (config: LambdaClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-lex-model-building-service/package.json b/clients/client-lex-model-building-service/package.json index 93c3ca08437da..10d3d262f0078 100644 --- a/clients/client-lex-model-building-service/package.json +++ b/clients/client-lex-model-building-service/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-lex-model-building-service/src/runtimeConfig.shared.ts b/clients/client-lex-model-building-service/src/runtimeConfig.shared.ts index 2e06b9323a404..2f1fe98473ce1 100644 --- a/clients/client-lex-model-building-service/src/runtimeConfig.shared.ts +++ b/clients/client-lex-model-building-service/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { LexModelBuildingServiceClientConfig } from "./LexModelBuildingServiceCl /** * @internal */ -export const getRuntimeConfig = (config: LexModelBuildingServiceClientConfig) => ({ - apiVersion: "2017-04-19", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Lex Model Building Service", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LexModelBuildingServiceClientConfig) => { + return { + apiVersion: "2017-04-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Lex Model Building Service", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-lex-model-building-service/src/runtimeConfig.ts b/clients/client-lex-model-building-service/src/runtimeConfig.ts index f2cac40767abe..294d15a5b3fc5 100644 --- a/clients/client-lex-model-building-service/src/runtimeConfig.ts +++ b/clients/client-lex-model-building-service/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LexModelBuildingServiceClientConfig) => const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-lex-models-v2/package.json b/clients/client-lex-models-v2/package.json index 7d83958cc8049..0015243774059 100644 --- a/clients/client-lex-models-v2/package.json +++ b/clients/client-lex-models-v2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-lex-models-v2/src/runtimeConfig.shared.ts b/clients/client-lex-models-v2/src/runtimeConfig.shared.ts index 4cf2cd471e4ca..95cddb095465d 100644 --- a/clients/client-lex-models-v2/src/runtimeConfig.shared.ts +++ b/clients/client-lex-models-v2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { LexModelsV2ClientConfig } from "./LexModelsV2Client"; /** * @internal */ -export const getRuntimeConfig = (config: LexModelsV2ClientConfig) => ({ - apiVersion: "2020-08-07", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Lex Models V2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LexModelsV2ClientConfig) => { + return { + apiVersion: "2020-08-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Lex Models V2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-lex-models-v2/src/runtimeConfig.ts b/clients/client-lex-models-v2/src/runtimeConfig.ts index 240ecd61bbaa4..905e3be82fec9 100644 --- a/clients/client-lex-models-v2/src/runtimeConfig.ts +++ b/clients/client-lex-models-v2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LexModelsV2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-lex-runtime-service/package.json b/clients/client-lex-runtime-service/package.json index 7bdb41f55af12..3f5aba52914a9 100644 --- a/clients/client-lex-runtime-service/package.json +++ b/clients/client-lex-runtime-service/package.json @@ -24,6 +24,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-lex-runtime-service/src/runtimeConfig.shared.ts b/clients/client-lex-runtime-service/src/runtimeConfig.shared.ts index 9e47cc2a11ffa..ab8c6824dd4b5 100644 --- a/clients/client-lex-runtime-service/src/runtimeConfig.shared.ts +++ b/clients/client-lex-runtime-service/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { LexRuntimeServiceClientConfig } from "./LexRuntimeServiceClient"; /** * @internal */ -export const getRuntimeConfig = (config: LexRuntimeServiceClientConfig) => ({ - apiVersion: "2016-11-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "Lex Runtime Service", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LexRuntimeServiceClientConfig) => { + return { + apiVersion: "2016-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "Lex Runtime Service", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-lex-runtime-service/src/runtimeConfig.ts b/clients/client-lex-runtime-service/src/runtimeConfig.ts index 9e3ec10664886..3370d7fa0e5e2 100644 --- a/clients/client-lex-runtime-service/src/runtimeConfig.ts +++ b/clients/client-lex-runtime-service/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LexRuntimeServiceClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-lex-runtime-v2/package.json b/clients/client-lex-runtime-v2/package.json index ee83f32e712c4..7256503d2e558 100644 --- a/clients/client-lex-runtime-v2/package.json +++ b/clients/client-lex-runtime-v2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/eventstream-handler-node": "*", "@aws-sdk/middleware-eventstream": "*", diff --git a/clients/client-lex-runtime-v2/src/runtimeConfig.shared.ts b/clients/client-lex-runtime-v2/src/runtimeConfig.shared.ts index 71eea2dd045e3..ab7da3f214a5e 100644 --- a/clients/client-lex-runtime-v2/src/runtimeConfig.shared.ts +++ b/clients/client-lex-runtime-v2/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client"; /** * @internal */ -export const getRuntimeConfig = (config: LexRuntimeV2ClientConfig) => ({ - apiVersion: "2020-08-07", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "Lex Runtime V2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LexRuntimeV2ClientConfig) => { + return { + apiVersion: "2020-08-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "Lex Runtime V2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-lex-runtime-v2/src/runtimeConfig.ts b/clients/client-lex-runtime-v2/src/runtimeConfig.ts index e22b869e509c1..5eed6fa7119a0 100644 --- a/clients/client-lex-runtime-v2/src/runtimeConfig.ts +++ b/clients/client-lex-runtime-v2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -33,6 +34,7 @@ export const getRuntimeConfig = (config: LexRuntimeV2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-license-manager-linux-subscriptions/package.json b/clients/client-license-manager-linux-subscriptions/package.json index eab7882508977..4ccf60a616232 100644 --- a/clients/client-license-manager-linux-subscriptions/package.json +++ b/clients/client-license-manager-linux-subscriptions/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.shared.ts b/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.shared.ts index 32fa7a0a2da62..099e83feeefdb 100644 --- a/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.shared.ts +++ b/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { LicenseManagerLinuxSubscriptionsClientConfig } from "./LicenseManagerLi /** * @internal */ -export const getRuntimeConfig = (config: LicenseManagerLinuxSubscriptionsClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "License Manager Linux Subscriptions", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LicenseManagerLinuxSubscriptionsClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "License Manager Linux Subscriptions", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.ts b/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.ts index db49fc2085802..4f550321b636d 100644 --- a/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.ts +++ b/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LicenseManagerLinuxSubscriptionsClientC const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-license-manager-user-subscriptions/package.json b/clients/client-license-manager-user-subscriptions/package.json index 2d98b143f9142..e7ea216b9ac68 100644 --- a/clients/client-license-manager-user-subscriptions/package.json +++ b/clients/client-license-manager-user-subscriptions/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.shared.ts b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.shared.ts index 95f7d36013080..8e1d8925e4390 100644 --- a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.shared.ts +++ b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { LicenseManagerUserSubscriptionsClientConfig } from "./LicenseManagerUse /** * @internal */ -export const getRuntimeConfig = (config: LicenseManagerUserSubscriptionsClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "License Manager User Subscriptions", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LicenseManagerUserSubscriptionsClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "License Manager User Subscriptions", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts index 04b8975b38572..39ff8bf69126f 100644 --- a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts +++ b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LicenseManagerUserSubscriptionsClientCo const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-license-manager/package.json b/clients/client-license-manager/package.json index fd8dcaa141463..31a68fdb72a45 100644 --- a/clients/client-license-manager/package.json +++ b/clients/client-license-manager/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-license-manager/src/runtimeConfig.shared.ts b/clients/client-license-manager/src/runtimeConfig.shared.ts index 4d540fd5a006e..91d4839bef139 100644 --- a/clients/client-license-manager/src/runtimeConfig.shared.ts +++ b/clients/client-license-manager/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { LicenseManagerClientConfig } from "./LicenseManagerClient"; /** * @internal */ -export const getRuntimeConfig = (config: LicenseManagerClientConfig) => ({ - apiVersion: "2018-08-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "License Manager", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LicenseManagerClientConfig) => { + return { + apiVersion: "2018-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "License Manager", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-license-manager/src/runtimeConfig.ts b/clients/client-license-manager/src/runtimeConfig.ts index 7965bd29e1cf9..dd7ac9ae6a5e4 100644 --- a/clients/client-license-manager/src/runtimeConfig.ts +++ b/clients/client-license-manager/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LicenseManagerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-lightsail/package.json b/clients/client-lightsail/package.json index e91f09ebc211e..1a05c77eac5e4 100644 --- a/clients/client-lightsail/package.json +++ b/clients/client-lightsail/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-lightsail/src/runtimeConfig.shared.ts b/clients/client-lightsail/src/runtimeConfig.shared.ts index 08d46a19181cb..c9b508869c9f6 100644 --- a/clients/client-lightsail/src/runtimeConfig.shared.ts +++ b/clients/client-lightsail/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { LightsailClientConfig } from "./LightsailClient"; /** * @internal */ -export const getRuntimeConfig = (config: LightsailClientConfig) => ({ - apiVersion: "2016-11-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Lightsail", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LightsailClientConfig) => { + return { + apiVersion: "2016-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Lightsail", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-lightsail/src/runtimeConfig.ts b/clients/client-lightsail/src/runtimeConfig.ts index 24e3a84c1f36f..a5aca4394fd42 100644 --- a/clients/client-lightsail/src/runtimeConfig.ts +++ b/clients/client-lightsail/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LightsailClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-location/package.json b/clients/client-location/package.json index 5ea86009e522b..2da0c7d91c13d 100644 --- a/clients/client-location/package.json +++ b/clients/client-location/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-location/src/runtimeConfig.shared.ts b/clients/client-location/src/runtimeConfig.shared.ts index 63a4de4f036d5..681800074926e 100644 --- a/clients/client-location/src/runtimeConfig.shared.ts +++ b/clients/client-location/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { LocationClientConfig } from "./LocationClient"; /** * @internal */ -export const getRuntimeConfig = (config: LocationClientConfig) => ({ - apiVersion: "2020-11-19", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Location", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LocationClientConfig) => { + return { + apiVersion: "2020-11-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Location", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-location/src/runtimeConfig.ts b/clients/client-location/src/runtimeConfig.ts index 0200ff8a5dae4..46f1b0de3dcf7 100644 --- a/clients/client-location/src/runtimeConfig.ts +++ b/clients/client-location/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LocationClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-lookoutequipment/package.json b/clients/client-lookoutequipment/package.json index 4bf4079f65de0..211f37cc010b3 100644 --- a/clients/client-lookoutequipment/package.json +++ b/clients/client-lookoutequipment/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-lookoutequipment/src/runtimeConfig.shared.ts b/clients/client-lookoutequipment/src/runtimeConfig.shared.ts index 92902ebaee92f..5ec8b1a384d6d 100644 --- a/clients/client-lookoutequipment/src/runtimeConfig.shared.ts +++ b/clients/client-lookoutequipment/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { LookoutEquipmentClientConfig } from "./LookoutEquipmentClient"; /** * @internal */ -export const getRuntimeConfig = (config: LookoutEquipmentClientConfig) => ({ - apiVersion: "2020-12-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "LookoutEquipment", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LookoutEquipmentClientConfig) => { + return { + apiVersion: "2020-12-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "LookoutEquipment", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-lookoutequipment/src/runtimeConfig.ts b/clients/client-lookoutequipment/src/runtimeConfig.ts index f188632dc0585..edfdcbe2fca66 100644 --- a/clients/client-lookoutequipment/src/runtimeConfig.ts +++ b/clients/client-lookoutequipment/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LookoutEquipmentClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-lookoutmetrics/package.json b/clients/client-lookoutmetrics/package.json index ad8cfd1c67a69..75a5af5a8ed76 100644 --- a/clients/client-lookoutmetrics/package.json +++ b/clients/client-lookoutmetrics/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-lookoutmetrics/src/runtimeConfig.shared.ts b/clients/client-lookoutmetrics/src/runtimeConfig.shared.ts index 6d40c908c85f0..8efeb36c6ebe0 100644 --- a/clients/client-lookoutmetrics/src/runtimeConfig.shared.ts +++ b/clients/client-lookoutmetrics/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { LookoutMetricsClientConfig } from "./LookoutMetricsClient"; /** * @internal */ -export const getRuntimeConfig = (config: LookoutMetricsClientConfig) => ({ - apiVersion: "2017-07-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "LookoutMetrics", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LookoutMetricsClientConfig) => { + return { + apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "LookoutMetrics", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-lookoutmetrics/src/runtimeConfig.ts b/clients/client-lookoutmetrics/src/runtimeConfig.ts index 5b76d8c08d465..711d682dd77d2 100644 --- a/clients/client-lookoutmetrics/src/runtimeConfig.ts +++ b/clients/client-lookoutmetrics/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LookoutMetricsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-lookoutvision/package.json b/clients/client-lookoutvision/package.json index cebc1f4037893..fb98c36e96e9c 100644 --- a/clients/client-lookoutvision/package.json +++ b/clients/client-lookoutvision/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-lookoutvision/src/runtimeConfig.shared.ts b/clients/client-lookoutvision/src/runtimeConfig.shared.ts index f219ab87ed70c..9448086727c22 100644 --- a/clients/client-lookoutvision/src/runtimeConfig.shared.ts +++ b/clients/client-lookoutvision/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { LookoutVisionClientConfig } from "./LookoutVisionClient"; /** * @internal */ -export const getRuntimeConfig = (config: LookoutVisionClientConfig) => ({ - apiVersion: "2020-11-20", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "LookoutVision", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: LookoutVisionClientConfig) => { + return { + apiVersion: "2020-11-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "LookoutVision", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-lookoutvision/src/runtimeConfig.ts b/clients/client-lookoutvision/src/runtimeConfig.ts index 06ba930d88a82..fa1c7deb6cd8f 100644 --- a/clients/client-lookoutvision/src/runtimeConfig.ts +++ b/clients/client-lookoutvision/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: LookoutVisionClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-m2/src/runtimeConfig.shared.ts b/clients/client-m2/src/runtimeConfig.shared.ts index b8edbe22147cd..d7cc4b5e7c96b 100644 --- a/clients/client-m2/src/runtimeConfig.shared.ts +++ b/clients/client-m2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { M2ClientConfig } from "./M2Client"; /** * @internal */ -export const getRuntimeConfig = (config: M2ClientConfig) => ({ - apiVersion: "2021-04-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "m2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: M2ClientConfig) => { + return { + apiVersion: "2021-04-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "m2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-m2/src/runtimeConfig.ts b/clients/client-m2/src/runtimeConfig.ts index f192ec4bfa839..ad6efa051c870 100644 --- a/clients/client-m2/src/runtimeConfig.ts +++ b/clients/client-m2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: M2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-machine-learning/package.json b/clients/client-machine-learning/package.json index 241f33d82181e..3ade7af0b8997 100644 --- a/clients/client-machine-learning/package.json +++ b/clients/client-machine-learning/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-machine-learning/src/runtimeConfig.shared.ts b/clients/client-machine-learning/src/runtimeConfig.shared.ts index fe33b0450d8b6..c20b59291df9b 100644 --- a/clients/client-machine-learning/src/runtimeConfig.shared.ts +++ b/clients/client-machine-learning/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MachineLearningClientConfig } from "./MachineLearningClient"; /** * @internal */ -export const getRuntimeConfig = (config: MachineLearningClientConfig) => ({ - apiVersion: "2014-12-12", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Machine Learning", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MachineLearningClientConfig) => { + return { + apiVersion: "2014-12-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Machine Learning", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-machine-learning/src/runtimeConfig.ts b/clients/client-machine-learning/src/runtimeConfig.ts index 75f2e1e6a1da4..accd41d893e33 100644 --- a/clients/client-machine-learning/src/runtimeConfig.ts +++ b/clients/client-machine-learning/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MachineLearningClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-macie/package.json b/clients/client-macie/package.json index bc99452c9c730..1372108196abb 100644 --- a/clients/client-macie/package.json +++ b/clients/client-macie/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-macie/src/runtimeConfig.shared.ts b/clients/client-macie/src/runtimeConfig.shared.ts index d24d67e986518..8a2c6bedfbba6 100644 --- a/clients/client-macie/src/runtimeConfig.shared.ts +++ b/clients/client-macie/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MacieClientConfig } from "./MacieClient"; /** * @internal */ -export const getRuntimeConfig = (config: MacieClientConfig) => ({ - apiVersion: "2017-12-19", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Macie", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MacieClientConfig) => { + return { + apiVersion: "2017-12-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Macie", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-macie/src/runtimeConfig.ts b/clients/client-macie/src/runtimeConfig.ts index 92e6f6d2da455..7788e1e60452d 100644 --- a/clients/client-macie/src/runtimeConfig.ts +++ b/clients/client-macie/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MacieClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-macie2/package.json b/clients/client-macie2/package.json index c10d6baf805a6..b6ae3078cfbb3 100644 --- a/clients/client-macie2/package.json +++ b/clients/client-macie2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-macie2/src/runtimeConfig.shared.ts b/clients/client-macie2/src/runtimeConfig.shared.ts index a93bfac8e3798..b84886ba2d0a4 100644 --- a/clients/client-macie2/src/runtimeConfig.shared.ts +++ b/clients/client-macie2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { Macie2ClientConfig } from "./Macie2Client"; /** * @internal */ -export const getRuntimeConfig = (config: Macie2ClientConfig) => ({ - apiVersion: "2020-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Macie2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: Macie2ClientConfig) => { + return { + apiVersion: "2020-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Macie2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-macie2/src/runtimeConfig.ts b/clients/client-macie2/src/runtimeConfig.ts index 36ab739933d63..f40dc103550ce 100644 --- a/clients/client-macie2/src/runtimeConfig.ts +++ b/clients/client-macie2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: Macie2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-managedblockchain-query/package.json b/clients/client-managedblockchain-query/package.json index e3039711a3b8e..a121364ce0112 100644 --- a/clients/client-managedblockchain-query/package.json +++ b/clients/client-managedblockchain-query/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-managedblockchain-query/src/runtimeConfig.shared.ts b/clients/client-managedblockchain-query/src/runtimeConfig.shared.ts index 7b706046716b3..e22e466282c14 100644 --- a/clients/client-managedblockchain-query/src/runtimeConfig.shared.ts +++ b/clients/client-managedblockchain-query/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ManagedBlockchainQueryClientConfig } from "./ManagedBlockchainQueryClie /** * @internal */ -export const getRuntimeConfig = (config: ManagedBlockchainQueryClientConfig) => ({ - apiVersion: "2023-05-04", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ManagedBlockchain Query", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ManagedBlockchainQueryClientConfig) => { + return { + apiVersion: "2023-05-04", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ManagedBlockchain Query", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-managedblockchain-query/src/runtimeConfig.ts b/clients/client-managedblockchain-query/src/runtimeConfig.ts index ad966c302a3fa..7f52c4bb35826 100644 --- a/clients/client-managedblockchain-query/src/runtimeConfig.ts +++ b/clients/client-managedblockchain-query/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ManagedBlockchainQueryClientConfig) => const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-managedblockchain/package.json b/clients/client-managedblockchain/package.json index e77fab3e28867..db674adbd057c 100644 --- a/clients/client-managedblockchain/package.json +++ b/clients/client-managedblockchain/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-managedblockchain/src/runtimeConfig.shared.ts b/clients/client-managedblockchain/src/runtimeConfig.shared.ts index 32b49f79bc32a..3c3b2a407878c 100644 --- a/clients/client-managedblockchain/src/runtimeConfig.shared.ts +++ b/clients/client-managedblockchain/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ManagedBlockchainClientConfig } from "./ManagedBlockchainClient"; /** * @internal */ -export const getRuntimeConfig = (config: ManagedBlockchainClientConfig) => ({ - apiVersion: "2018-09-24", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ManagedBlockchain", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ManagedBlockchainClientConfig) => { + return { + apiVersion: "2018-09-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ManagedBlockchain", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-managedblockchain/src/runtimeConfig.ts b/clients/client-managedblockchain/src/runtimeConfig.ts index 80288d51183aa..f2b082c3418d2 100644 --- a/clients/client-managedblockchain/src/runtimeConfig.ts +++ b/clients/client-managedblockchain/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ManagedBlockchainClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-marketplace-catalog/package.json b/clients/client-marketplace-catalog/package.json index 7419c293e4ae4..aafc51188fecd 100644 --- a/clients/client-marketplace-catalog/package.json +++ b/clients/client-marketplace-catalog/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-marketplace-catalog/src/runtimeConfig.shared.ts b/clients/client-marketplace-catalog/src/runtimeConfig.shared.ts index 5ebe4d894be4e..4aec83673493b 100644 --- a/clients/client-marketplace-catalog/src/runtimeConfig.shared.ts +++ b/clients/client-marketplace-catalog/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MarketplaceCatalogClientConfig } from "./MarketplaceCatalogClient"; /** * @internal */ -export const getRuntimeConfig = (config: MarketplaceCatalogClientConfig) => ({ - apiVersion: "2018-09-17", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Marketplace Catalog", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MarketplaceCatalogClientConfig) => { + return { + apiVersion: "2018-09-17", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Marketplace Catalog", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-marketplace-catalog/src/runtimeConfig.ts b/clients/client-marketplace-catalog/src/runtimeConfig.ts index e19c8592bf1b4..27d4bbc3cced2 100644 --- a/clients/client-marketplace-catalog/src/runtimeConfig.ts +++ b/clients/client-marketplace-catalog/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MarketplaceCatalogClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-marketplace-commerce-analytics/package.json b/clients/client-marketplace-commerce-analytics/package.json index 048c4bb76f5da..e634bdfed2302 100644 --- a/clients/client-marketplace-commerce-analytics/package.json +++ b/clients/client-marketplace-commerce-analytics/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.shared.ts b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.shared.ts index 1371f2e7fd808..9f63a7991665a 100644 --- a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.shared.ts +++ b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MarketplaceCommerceAnalyticsClientConfig } from "./MarketplaceCommerceA /** * @internal */ -export const getRuntimeConfig = (config: MarketplaceCommerceAnalyticsClientConfig) => ({ - apiVersion: "2015-07-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Marketplace Commerce Analytics", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MarketplaceCommerceAnalyticsClientConfig) => { + return { + apiVersion: "2015-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Marketplace Commerce Analytics", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts index 772ad5763f293..1bf96b92e5792 100644 --- a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts +++ b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MarketplaceCommerceAnalyticsClientConfi const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-marketplace-entitlement-service/package.json b/clients/client-marketplace-entitlement-service/package.json index 99804b1217f75..3d1f4e09b0d06 100644 --- a/clients/client-marketplace-entitlement-service/package.json +++ b/clients/client-marketplace-entitlement-service/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-marketplace-entitlement-service/src/runtimeConfig.shared.ts b/clients/client-marketplace-entitlement-service/src/runtimeConfig.shared.ts index 6facac5c20a7a..f6ecb5668d849 100644 --- a/clients/client-marketplace-entitlement-service/src/runtimeConfig.shared.ts +++ b/clients/client-marketplace-entitlement-service/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MarketplaceEntitlementServiceClientConfig } from "./MarketplaceEntitlem /** * @internal */ -export const getRuntimeConfig = (config: MarketplaceEntitlementServiceClientConfig) => ({ - apiVersion: "2017-01-11", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Marketplace Entitlement Service", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MarketplaceEntitlementServiceClientConfig) => { + return { + apiVersion: "2017-01-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Marketplace Entitlement Service", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts b/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts index f1b3df2aea122..d92d92191a937 100644 --- a/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts +++ b/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MarketplaceEntitlementServiceClientConf const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-marketplace-metering/package.json b/clients/client-marketplace-metering/package.json index 12e73841ccf92..0a2f8b0e2c2d8 100644 --- a/clients/client-marketplace-metering/package.json +++ b/clients/client-marketplace-metering/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-marketplace-metering/src/runtimeConfig.shared.ts b/clients/client-marketplace-metering/src/runtimeConfig.shared.ts index 27115f51b9f20..958dd07656cbd 100644 --- a/clients/client-marketplace-metering/src/runtimeConfig.shared.ts +++ b/clients/client-marketplace-metering/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MarketplaceMeteringClientConfig } from "./MarketplaceMeteringClient"; /** * @internal */ -export const getRuntimeConfig = (config: MarketplaceMeteringClientConfig) => ({ - apiVersion: "2016-01-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Marketplace Metering", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MarketplaceMeteringClientConfig) => { + return { + apiVersion: "2016-01-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Marketplace Metering", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-marketplace-metering/src/runtimeConfig.ts b/clients/client-marketplace-metering/src/runtimeConfig.ts index 666575fc04cba..b0255fbb5a98b 100644 --- a/clients/client-marketplace-metering/src/runtimeConfig.ts +++ b/clients/client-marketplace-metering/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MarketplaceMeteringClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mediaconnect/package.json b/clients/client-mediaconnect/package.json index 871d11a82aad1..cfd35acef34dc 100644 --- a/clients/client-mediaconnect/package.json +++ b/clients/client-mediaconnect/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mediaconnect/src/runtimeConfig.shared.ts b/clients/client-mediaconnect/src/runtimeConfig.shared.ts index fd3a99780a33f..80c15d17d2a4f 100644 --- a/clients/client-mediaconnect/src/runtimeConfig.shared.ts +++ b/clients/client-mediaconnect/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MediaConnectClientConfig } from "./MediaConnectClient"; /** * @internal */ -export const getRuntimeConfig = (config: MediaConnectClientConfig) => ({ - apiVersion: "2018-11-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MediaConnect", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MediaConnectClientConfig) => { + return { + apiVersion: "2018-11-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MediaConnect", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mediaconnect/src/runtimeConfig.ts b/clients/client-mediaconnect/src/runtimeConfig.ts index 53ee972b5860c..fd5742c8cf567 100644 --- a/clients/client-mediaconnect/src/runtimeConfig.ts +++ b/clients/client-mediaconnect/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MediaConnectClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mediaconvert/package.json b/clients/client-mediaconvert/package.json index 663a6cbedc08d..22f8c194cce8a 100644 --- a/clients/client-mediaconvert/package.json +++ b/clients/client-mediaconvert/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mediaconvert/src/runtimeConfig.shared.ts b/clients/client-mediaconvert/src/runtimeConfig.shared.ts index b5ba0ee49c00a..0e6c205f48be9 100644 --- a/clients/client-mediaconvert/src/runtimeConfig.shared.ts +++ b/clients/client-mediaconvert/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MediaConvertClientConfig } from "./MediaConvertClient"; /** * @internal */ -export const getRuntimeConfig = (config: MediaConvertClientConfig) => ({ - apiVersion: "2017-08-29", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MediaConvert", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MediaConvertClientConfig) => { + return { + apiVersion: "2017-08-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MediaConvert", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mediaconvert/src/runtimeConfig.ts b/clients/client-mediaconvert/src/runtimeConfig.ts index e4587f1fc768a..20a340d0f3c01 100644 --- a/clients/client-mediaconvert/src/runtimeConfig.ts +++ b/clients/client-mediaconvert/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MediaConvertClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-medialive/package.json b/clients/client-medialive/package.json index 0482a7acc41be..e0321ff229430 100644 --- a/clients/client-medialive/package.json +++ b/clients/client-medialive/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-medialive/src/runtimeConfig.shared.ts b/clients/client-medialive/src/runtimeConfig.shared.ts index 0ad05535924ef..2e53bf60ae579 100644 --- a/clients/client-medialive/src/runtimeConfig.shared.ts +++ b/clients/client-medialive/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { MediaLiveClientConfig } from "./MediaLiveClient"; /** * @internal */ -export const getRuntimeConfig = (config: MediaLiveClientConfig) => ({ - apiVersion: "2017-10-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "MediaLive", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MediaLiveClientConfig) => { + return { + apiVersion: "2017-10-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "MediaLive", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-medialive/src/runtimeConfig.ts b/clients/client-medialive/src/runtimeConfig.ts index d8366a43f5363..4d43f5265905f 100644 --- a/clients/client-medialive/src/runtimeConfig.ts +++ b/clients/client-medialive/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MediaLiveClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mediapackage-vod/package.json b/clients/client-mediapackage-vod/package.json index 2798cf61bd18e..7d646ae9a5311 100644 --- a/clients/client-mediapackage-vod/package.json +++ b/clients/client-mediapackage-vod/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mediapackage-vod/src/runtimeConfig.shared.ts b/clients/client-mediapackage-vod/src/runtimeConfig.shared.ts index 3b52a6d36830d..8a878bc89da6d 100644 --- a/clients/client-mediapackage-vod/src/runtimeConfig.shared.ts +++ b/clients/client-mediapackage-vod/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MediaPackageVodClientConfig } from "./MediaPackageVodClient"; /** * @internal */ -export const getRuntimeConfig = (config: MediaPackageVodClientConfig) => ({ - apiVersion: "2018-11-07", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MediaPackage Vod", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MediaPackageVodClientConfig) => { + return { + apiVersion: "2018-11-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MediaPackage Vod", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mediapackage-vod/src/runtimeConfig.ts b/clients/client-mediapackage-vod/src/runtimeConfig.ts index a45d1aba67010..17e638341df5a 100644 --- a/clients/client-mediapackage-vod/src/runtimeConfig.ts +++ b/clients/client-mediapackage-vod/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MediaPackageVodClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mediapackage/package.json b/clients/client-mediapackage/package.json index f7888ab1b2ddd..3eb9666d25d94 100644 --- a/clients/client-mediapackage/package.json +++ b/clients/client-mediapackage/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mediapackage/src/runtimeConfig.shared.ts b/clients/client-mediapackage/src/runtimeConfig.shared.ts index 10427ebecaec8..c877c03ace4d1 100644 --- a/clients/client-mediapackage/src/runtimeConfig.shared.ts +++ b/clients/client-mediapackage/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MediaPackageClientConfig } from "./MediaPackageClient"; /** * @internal */ -export const getRuntimeConfig = (config: MediaPackageClientConfig) => ({ - apiVersion: "2017-10-12", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MediaPackage", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MediaPackageClientConfig) => { + return { + apiVersion: "2017-10-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MediaPackage", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mediapackage/src/runtimeConfig.ts b/clients/client-mediapackage/src/runtimeConfig.ts index 37314634e1b83..afa8d280dbecc 100644 --- a/clients/client-mediapackage/src/runtimeConfig.ts +++ b/clients/client-mediapackage/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MediaPackageClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mediapackagev2/package.json b/clients/client-mediapackagev2/package.json index 8724eee0584c2..f7b926b15665d 100644 --- a/clients/client-mediapackagev2/package.json +++ b/clients/client-mediapackagev2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mediapackagev2/src/runtimeConfig.shared.ts b/clients/client-mediapackagev2/src/runtimeConfig.shared.ts index c98f05ac0dd85..44bfc76c2d1c3 100644 --- a/clients/client-mediapackagev2/src/runtimeConfig.shared.ts +++ b/clients/client-mediapackagev2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MediaPackageV2ClientConfig } from "./MediaPackageV2Client"; /** * @internal */ -export const getRuntimeConfig = (config: MediaPackageV2ClientConfig) => ({ - apiVersion: "2022-12-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MediaPackageV2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MediaPackageV2ClientConfig) => { + return { + apiVersion: "2022-12-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MediaPackageV2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mediapackagev2/src/runtimeConfig.ts b/clients/client-mediapackagev2/src/runtimeConfig.ts index f2daae81117c0..a8b8bd1282b50 100644 --- a/clients/client-mediapackagev2/src/runtimeConfig.ts +++ b/clients/client-mediapackagev2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MediaPackageV2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mediastore-data/package.json b/clients/client-mediastore-data/package.json index be5ff006e67c3..0eb518aedb222 100644 --- a/clients/client-mediastore-data/package.json +++ b/clients/client-mediastore-data/package.json @@ -24,6 +24,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mediastore-data/src/runtimeConfig.shared.ts b/clients/client-mediastore-data/src/runtimeConfig.shared.ts index 4bc14b3e6f8c6..18d7aa5bd601f 100644 --- a/clients/client-mediastore-data/src/runtimeConfig.shared.ts +++ b/clients/client-mediastore-data/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { MediaStoreDataClientConfig } from "./MediaStoreDataClient"; /** * @internal */ -export const getRuntimeConfig = (config: MediaStoreDataClientConfig) => ({ - apiVersion: "2017-09-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "MediaStore Data", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MediaStoreDataClientConfig) => { + return { + apiVersion: "2017-09-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "MediaStore Data", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mediastore-data/src/runtimeConfig.ts b/clients/client-mediastore-data/src/runtimeConfig.ts index 6eba87b5d418f..b67bb19996428 100644 --- a/clients/client-mediastore-data/src/runtimeConfig.ts +++ b/clients/client-mediastore-data/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MediaStoreDataClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mediastore/package.json b/clients/client-mediastore/package.json index 51acfcc4be7c5..0cb712c44def0 100644 --- a/clients/client-mediastore/package.json +++ b/clients/client-mediastore/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mediastore/src/runtimeConfig.shared.ts b/clients/client-mediastore/src/runtimeConfig.shared.ts index e3b5e2548b1f5..ff57f1d2e6e9d 100644 --- a/clients/client-mediastore/src/runtimeConfig.shared.ts +++ b/clients/client-mediastore/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MediaStoreClientConfig } from "./MediaStoreClient"; /** * @internal */ -export const getRuntimeConfig = (config: MediaStoreClientConfig) => ({ - apiVersion: "2017-09-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MediaStore", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MediaStoreClientConfig) => { + return { + apiVersion: "2017-09-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MediaStore", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mediastore/src/runtimeConfig.ts b/clients/client-mediastore/src/runtimeConfig.ts index 45835f5a2708c..a1f2584ac87ee 100644 --- a/clients/client-mediastore/src/runtimeConfig.ts +++ b/clients/client-mediastore/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MediaStoreClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mediatailor/package.json b/clients/client-mediatailor/package.json index eff736b3f0f77..d9696d47d1e5a 100644 --- a/clients/client-mediatailor/package.json +++ b/clients/client-mediatailor/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mediatailor/src/runtimeConfig.shared.ts b/clients/client-mediatailor/src/runtimeConfig.shared.ts index e7bb05768d3fc..829989c153b0f 100644 --- a/clients/client-mediatailor/src/runtimeConfig.shared.ts +++ b/clients/client-mediatailor/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MediaTailorClientConfig } from "./MediaTailorClient"; /** * @internal */ -export const getRuntimeConfig = (config: MediaTailorClientConfig) => ({ - apiVersion: "2018-04-23", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MediaTailor", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MediaTailorClientConfig) => { + return { + apiVersion: "2018-04-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MediaTailor", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mediatailor/src/runtimeConfig.ts b/clients/client-mediatailor/src/runtimeConfig.ts index 3a9710055f704..eeb8b8b04350b 100644 --- a/clients/client-mediatailor/src/runtimeConfig.ts +++ b/clients/client-mediatailor/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MediaTailorClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-medical-imaging/package.json b/clients/client-medical-imaging/package.json index 1255d89cc0a02..1124691d990f4 100644 --- a/clients/client-medical-imaging/package.json +++ b/clients/client-medical-imaging/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-medical-imaging/src/runtimeConfig.shared.ts b/clients/client-medical-imaging/src/runtimeConfig.shared.ts index cdfbdca9811ee..58716923e3612 100644 --- a/clients/client-medical-imaging/src/runtimeConfig.shared.ts +++ b/clients/client-medical-imaging/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { MedicalImagingClientConfig } from "./MedicalImagingClient"; /** * @internal */ -export const getRuntimeConfig = (config: MedicalImagingClientConfig) => ({ - apiVersion: "2023-07-19", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "Medical Imaging", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MedicalImagingClientConfig) => { + return { + apiVersion: "2023-07-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "Medical Imaging", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-medical-imaging/src/runtimeConfig.ts b/clients/client-medical-imaging/src/runtimeConfig.ts index e1b8668bd3ecd..a7f3751c5d4ba 100644 --- a/clients/client-medical-imaging/src/runtimeConfig.ts +++ b/clients/client-medical-imaging/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MedicalImagingClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-memorydb/package.json b/clients/client-memorydb/package.json index 80a5ce777de7a..3f07bb4444bcc 100644 --- a/clients/client-memorydb/package.json +++ b/clients/client-memorydb/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-memorydb/src/runtimeConfig.shared.ts b/clients/client-memorydb/src/runtimeConfig.shared.ts index 6320db9832ea1..0c4818c47fcfc 100644 --- a/clients/client-memorydb/src/runtimeConfig.shared.ts +++ b/clients/client-memorydb/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MemoryDBClientConfig } from "./MemoryDBClient"; /** * @internal */ -export const getRuntimeConfig = (config: MemoryDBClientConfig) => ({ - apiVersion: "2021-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MemoryDB", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MemoryDBClientConfig) => { + return { + apiVersion: "2021-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MemoryDB", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-memorydb/src/runtimeConfig.ts b/clients/client-memorydb/src/runtimeConfig.ts index c43c744d34dc7..aaac1e52b1dd3 100644 --- a/clients/client-memorydb/src/runtimeConfig.ts +++ b/clients/client-memorydb/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MemoryDBClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mgn/package.json b/clients/client-mgn/package.json index 25fcbe94c250d..daa554e1faace 100644 --- a/clients/client-mgn/package.json +++ b/clients/client-mgn/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mgn/src/runtimeConfig.shared.ts b/clients/client-mgn/src/runtimeConfig.shared.ts index ef56c85f11358..fc6a980494c55 100644 --- a/clients/client-mgn/src/runtimeConfig.shared.ts +++ b/clients/client-mgn/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MgnClientConfig } from "./MgnClient"; /** * @internal */ -export const getRuntimeConfig = (config: MgnClientConfig) => ({ - apiVersion: "2020-02-26", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "mgn", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MgnClientConfig) => { + return { + apiVersion: "2020-02-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "mgn", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mgn/src/runtimeConfig.ts b/clients/client-mgn/src/runtimeConfig.ts index 2b4fbcb0a2ab9..3c775eb4fb84d 100644 --- a/clients/client-mgn/src/runtimeConfig.ts +++ b/clients/client-mgn/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MgnClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-migration-hub-refactor-spaces/package.json b/clients/client-migration-hub-refactor-spaces/package.json index ae1da70c2b664..7e14859ddfd44 100644 --- a/clients/client-migration-hub-refactor-spaces/package.json +++ b/clients/client-migration-hub-refactor-spaces/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.shared.ts b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.shared.ts index c8e330dccd89f..faf1f6e921039 100644 --- a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.shared.ts +++ b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MigrationHubRefactorSpacesClientConfig } from "./MigrationHubRefactorSp /** * @internal */ -export const getRuntimeConfig = (config: MigrationHubRefactorSpacesClientConfig) => ({ - apiVersion: "2021-10-26", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Migration Hub Refactor Spaces", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MigrationHubRefactorSpacesClientConfig) => { + return { + apiVersion: "2021-10-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Migration Hub Refactor Spaces", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts index 5e308d2f0df5e..bfdaeedd6068d 100644 --- a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts +++ b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MigrationHubRefactorSpacesClientConfig) const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-migration-hub/package.json b/clients/client-migration-hub/package.json index 417e5f34ee214..2e0d30a82ac18 100644 --- a/clients/client-migration-hub/package.json +++ b/clients/client-migration-hub/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-migration-hub/src/runtimeConfig.shared.ts b/clients/client-migration-hub/src/runtimeConfig.shared.ts index 6f761c0cc4c30..82b543b251fdb 100644 --- a/clients/client-migration-hub/src/runtimeConfig.shared.ts +++ b/clients/client-migration-hub/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MigrationHubClientConfig } from "./MigrationHubClient"; /** * @internal */ -export const getRuntimeConfig = (config: MigrationHubClientConfig) => ({ - apiVersion: "2017-05-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Migration Hub", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MigrationHubClientConfig) => { + return { + apiVersion: "2017-05-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Migration Hub", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-migration-hub/src/runtimeConfig.ts b/clients/client-migration-hub/src/runtimeConfig.ts index 9d5676dd8ea91..fc35ec98c6159 100644 --- a/clients/client-migration-hub/src/runtimeConfig.ts +++ b/clients/client-migration-hub/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MigrationHubClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-migrationhub-config/package.json b/clients/client-migrationhub-config/package.json index 2f5f8d33845a0..c9b4adb21dd7c 100644 --- a/clients/client-migrationhub-config/package.json +++ b/clients/client-migrationhub-config/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-migrationhub-config/src/runtimeConfig.shared.ts b/clients/client-migrationhub-config/src/runtimeConfig.shared.ts index 4798b4b333ad6..247e5a3a2d946 100644 --- a/clients/client-migrationhub-config/src/runtimeConfig.shared.ts +++ b/clients/client-migrationhub-config/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MigrationHubConfigClientConfig } from "./MigrationHubConfigClient"; /** * @internal */ -export const getRuntimeConfig = (config: MigrationHubConfigClientConfig) => ({ - apiVersion: "2019-06-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MigrationHub Config", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MigrationHubConfigClientConfig) => { + return { + apiVersion: "2019-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MigrationHub Config", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-migrationhub-config/src/runtimeConfig.ts b/clients/client-migrationhub-config/src/runtimeConfig.ts index 92799aa8a0213..19b3e24ac27a8 100644 --- a/clients/client-migrationhub-config/src/runtimeConfig.ts +++ b/clients/client-migrationhub-config/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MigrationHubConfigClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-migrationhuborchestrator/package.json b/clients/client-migrationhuborchestrator/package.json index 33fc362fb7ee5..e7b65a698521d 100644 --- a/clients/client-migrationhuborchestrator/package.json +++ b/clients/client-migrationhuborchestrator/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-migrationhuborchestrator/src/runtimeConfig.shared.ts b/clients/client-migrationhuborchestrator/src/runtimeConfig.shared.ts index 13fd6b8f52b49..a325da68cbe51 100644 --- a/clients/client-migrationhuborchestrator/src/runtimeConfig.shared.ts +++ b/clients/client-migrationhuborchestrator/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MigrationHubOrchestratorClientConfig } from "./MigrationHubOrchestrator /** * @internal */ -export const getRuntimeConfig = (config: MigrationHubOrchestratorClientConfig) => ({ - apiVersion: "2021-08-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MigrationHubOrchestrator", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MigrationHubOrchestratorClientConfig) => { + return { + apiVersion: "2021-08-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MigrationHubOrchestrator", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-migrationhuborchestrator/src/runtimeConfig.ts b/clients/client-migrationhuborchestrator/src/runtimeConfig.ts index 4c522e2e598e3..6f75b0359fc14 100644 --- a/clients/client-migrationhuborchestrator/src/runtimeConfig.ts +++ b/clients/client-migrationhuborchestrator/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MigrationHubOrchestratorClientConfig) = const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-migrationhubstrategy/package.json b/clients/client-migrationhubstrategy/package.json index 7c3089aaabed5..943848ca6de5c 100644 --- a/clients/client-migrationhubstrategy/package.json +++ b/clients/client-migrationhubstrategy/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-migrationhubstrategy/src/runtimeConfig.shared.ts b/clients/client-migrationhubstrategy/src/runtimeConfig.shared.ts index 590d34e6d969d..84fe4e2f566c4 100644 --- a/clients/client-migrationhubstrategy/src/runtimeConfig.shared.ts +++ b/clients/client-migrationhubstrategy/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MigrationHubStrategyClientConfig } from "./MigrationHubStrategyClient"; /** * @internal */ -export const getRuntimeConfig = (config: MigrationHubStrategyClientConfig) => ({ - apiVersion: "2020-02-19", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MigrationHubStrategy", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MigrationHubStrategyClientConfig) => { + return { + apiVersion: "2020-02-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MigrationHubStrategy", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-migrationhubstrategy/src/runtimeConfig.ts b/clients/client-migrationhubstrategy/src/runtimeConfig.ts index fe444545e3b3a..41f516fedeb7b 100644 --- a/clients/client-migrationhubstrategy/src/runtimeConfig.ts +++ b/clients/client-migrationhubstrategy/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MigrationHubStrategyClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mobile/package.json b/clients/client-mobile/package.json index fcd86601133e4..417626c912096 100644 --- a/clients/client-mobile/package.json +++ b/clients/client-mobile/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mobile/src/runtimeConfig.shared.ts b/clients/client-mobile/src/runtimeConfig.shared.ts index aa54fb81e0dda..bb06e85a6d9d3 100644 --- a/clients/client-mobile/src/runtimeConfig.shared.ts +++ b/clients/client-mobile/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MobileClientConfig } from "./MobileClient"; /** * @internal */ -export const getRuntimeConfig = (config: MobileClientConfig) => ({ - apiVersion: "2017-07-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Mobile", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MobileClientConfig) => { + return { + apiVersion: "2017-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Mobile", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mobile/src/runtimeConfig.ts b/clients/client-mobile/src/runtimeConfig.ts index 95b16ae8801ef..b985e4cb414fa 100644 --- a/clients/client-mobile/src/runtimeConfig.ts +++ b/clients/client-mobile/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MobileClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mq/package.json b/clients/client-mq/package.json index e7b0b4c1712a4..20549fe8e4e36 100644 --- a/clients/client-mq/package.json +++ b/clients/client-mq/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mq/src/runtimeConfig.shared.ts b/clients/client-mq/src/runtimeConfig.shared.ts index 56da0c022e2f1..ed6deef94af3b 100644 --- a/clients/client-mq/src/runtimeConfig.shared.ts +++ b/clients/client-mq/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MqClientConfig } from "./MqClient"; /** * @internal */ -export const getRuntimeConfig = (config: MqClientConfig) => ({ - apiVersion: "2017-11-27", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "mq", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MqClientConfig) => { + return { + apiVersion: "2017-11-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "mq", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mq/src/runtimeConfig.ts b/clients/client-mq/src/runtimeConfig.ts index b850652598b3e..54dc67fa3a165 100644 --- a/clients/client-mq/src/runtimeConfig.ts +++ b/clients/client-mq/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MqClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mturk/package.json b/clients/client-mturk/package.json index 4d6aacb42e2a0..d453e79a3628a 100644 --- a/clients/client-mturk/package.json +++ b/clients/client-mturk/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mturk/src/runtimeConfig.shared.ts b/clients/client-mturk/src/runtimeConfig.shared.ts index 4facbfbbe707b..df3b63011ecbe 100644 --- a/clients/client-mturk/src/runtimeConfig.shared.ts +++ b/clients/client-mturk/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MTurkClientConfig } from "./MTurkClient"; /** * @internal */ -export const getRuntimeConfig = (config: MTurkClientConfig) => ({ - apiVersion: "2017-01-17", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MTurk", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MTurkClientConfig) => { + return { + apiVersion: "2017-01-17", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MTurk", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mturk/src/runtimeConfig.ts b/clients/client-mturk/src/runtimeConfig.ts index 52b61984de795..2be30a716f647 100644 --- a/clients/client-mturk/src/runtimeConfig.ts +++ b/clients/client-mturk/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MTurkClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-mwaa/package.json b/clients/client-mwaa/package.json index e7def4cd99862..cdf10e957dc17 100644 --- a/clients/client-mwaa/package.json +++ b/clients/client-mwaa/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-mwaa/src/runtimeConfig.shared.ts b/clients/client-mwaa/src/runtimeConfig.shared.ts index 2d27ba587dcfc..8b15b54117c50 100644 --- a/clients/client-mwaa/src/runtimeConfig.shared.ts +++ b/clients/client-mwaa/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { MWAAClientConfig } from "./MWAAClient"; /** * @internal */ -export const getRuntimeConfig = (config: MWAAClientConfig) => ({ - apiVersion: "2020-07-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "MWAA", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: MWAAClientConfig) => { + return { + apiVersion: "2020-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "MWAA", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-mwaa/src/runtimeConfig.ts b/clients/client-mwaa/src/runtimeConfig.ts index 02cc05b656bd4..4b3936a77d9ab 100644 --- a/clients/client-mwaa/src/runtimeConfig.ts +++ b/clients/client-mwaa/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: MWAAClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-neptune/package.json b/clients/client-neptune/package.json index a588a79b78aee..b5c777de5fba1 100644 --- a/clients/client-neptune/package.json +++ b/clients/client-neptune/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-neptune/src/runtimeConfig.shared.ts b/clients/client-neptune/src/runtimeConfig.shared.ts index 6d6687364fee6..f9862c6298ae5 100644 --- a/clients/client-neptune/src/runtimeConfig.shared.ts +++ b/clients/client-neptune/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { NeptuneClientConfig } from "./NeptuneClient"; /** * @internal */ -export const getRuntimeConfig = (config: NeptuneClientConfig) => ({ - apiVersion: "2014-10-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Neptune", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: NeptuneClientConfig) => { + return { + apiVersion: "2014-10-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Neptune", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-neptune/src/runtimeConfig.ts b/clients/client-neptune/src/runtimeConfig.ts index b7a531c2441f3..1ee7316fa1116 100644 --- a/clients/client-neptune/src/runtimeConfig.ts +++ b/clients/client-neptune/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: NeptuneClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-neptunedata/package.json b/clients/client-neptunedata/package.json index a340bdedf131b..1f5a109f97f59 100644 --- a/clients/client-neptunedata/package.json +++ b/clients/client-neptunedata/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-neptunedata/src/runtimeConfig.shared.ts b/clients/client-neptunedata/src/runtimeConfig.shared.ts index 5cc7bfa8ebdec..5ba5959b01b4c 100644 --- a/clients/client-neptunedata/src/runtimeConfig.shared.ts +++ b/clients/client-neptunedata/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { NeptunedataClientConfig } from "./NeptunedataClient"; /** * @internal */ -export const getRuntimeConfig = (config: NeptunedataClientConfig) => ({ - apiVersion: "2023-08-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "neptunedata", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: NeptunedataClientConfig) => { + return { + apiVersion: "2023-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "neptunedata", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-neptunedata/src/runtimeConfig.ts b/clients/client-neptunedata/src/runtimeConfig.ts index e73248aef5104..77dfbc64b7e30 100644 --- a/clients/client-neptunedata/src/runtimeConfig.ts +++ b/clients/client-neptunedata/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: NeptunedataClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-network-firewall/package.json b/clients/client-network-firewall/package.json index c22536a22b407..08339194958c6 100644 --- a/clients/client-network-firewall/package.json +++ b/clients/client-network-firewall/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-network-firewall/src/runtimeConfig.shared.ts b/clients/client-network-firewall/src/runtimeConfig.shared.ts index 2b3183f6a4285..d58016510efb5 100644 --- a/clients/client-network-firewall/src/runtimeConfig.shared.ts +++ b/clients/client-network-firewall/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { NetworkFirewallClientConfig } from "./NetworkFirewallClient"; /** * @internal */ -export const getRuntimeConfig = (config: NetworkFirewallClientConfig) => ({ - apiVersion: "2020-11-12", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Network Firewall", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: NetworkFirewallClientConfig) => { + return { + apiVersion: "2020-11-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Network Firewall", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-network-firewall/src/runtimeConfig.ts b/clients/client-network-firewall/src/runtimeConfig.ts index b9a9861dc5342..a00d07c69c090 100644 --- a/clients/client-network-firewall/src/runtimeConfig.ts +++ b/clients/client-network-firewall/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: NetworkFirewallClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-networkmanager/package.json b/clients/client-networkmanager/package.json index 2f97802b418b5..9e0c9beb81337 100644 --- a/clients/client-networkmanager/package.json +++ b/clients/client-networkmanager/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-networkmanager/src/runtimeConfig.shared.ts b/clients/client-networkmanager/src/runtimeConfig.shared.ts index 21382faaa7c63..6998c54122693 100644 --- a/clients/client-networkmanager/src/runtimeConfig.shared.ts +++ b/clients/client-networkmanager/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { NetworkManagerClientConfig } from "./NetworkManagerClient"; /** * @internal */ -export const getRuntimeConfig = (config: NetworkManagerClientConfig) => ({ - apiVersion: "2019-07-05", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "NetworkManager", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: NetworkManagerClientConfig) => { + return { + apiVersion: "2019-07-05", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "NetworkManager", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-networkmanager/src/runtimeConfig.ts b/clients/client-networkmanager/src/runtimeConfig.ts index 258470d0543ec..fdc650ec7d4ef 100644 --- a/clients/client-networkmanager/src/runtimeConfig.ts +++ b/clients/client-networkmanager/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: NetworkManagerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-nimble/package.json b/clients/client-nimble/package.json index cb39f013be736..89bc165a7beac 100644 --- a/clients/client-nimble/package.json +++ b/clients/client-nimble/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-nimble/src/runtimeConfig.shared.ts b/clients/client-nimble/src/runtimeConfig.shared.ts index 18873d73b6f81..1ce98e0d8d8a4 100644 --- a/clients/client-nimble/src/runtimeConfig.shared.ts +++ b/clients/client-nimble/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { NimbleClientConfig } from "./NimbleClient"; /** * @internal */ -export const getRuntimeConfig = (config: NimbleClientConfig) => ({ - apiVersion: "2020-08-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "nimble", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: NimbleClientConfig) => { + return { + apiVersion: "2020-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "nimble", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-nimble/src/runtimeConfig.ts b/clients/client-nimble/src/runtimeConfig.ts index a30e7ffa7a1a9..856eeb3b9f1fd 100644 --- a/clients/client-nimble/src/runtimeConfig.ts +++ b/clients/client-nimble/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: NimbleClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-oam/package.json b/clients/client-oam/package.json index ace31611453b7..170b291adb36f 100644 --- a/clients/client-oam/package.json +++ b/clients/client-oam/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-oam/src/runtimeConfig.shared.ts b/clients/client-oam/src/runtimeConfig.shared.ts index dc56b1e97fd11..060e9dfdc27f0 100644 --- a/clients/client-oam/src/runtimeConfig.shared.ts +++ b/clients/client-oam/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { OAMClientConfig } from "./OAMClient"; /** * @internal */ -export const getRuntimeConfig = (config: OAMClientConfig) => ({ - apiVersion: "2022-06-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "OAM", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: OAMClientConfig) => { + return { + apiVersion: "2022-06-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "OAM", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-oam/src/runtimeConfig.ts b/clients/client-oam/src/runtimeConfig.ts index 051e57a561a78..47d9769d38c10 100644 --- a/clients/client-oam/src/runtimeConfig.ts +++ b/clients/client-oam/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: OAMClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-omics/src/runtimeConfig.shared.ts b/clients/client-omics/src/runtimeConfig.shared.ts index 08edfcb34a198..c6123804f527b 100644 --- a/clients/client-omics/src/runtimeConfig.shared.ts +++ b/clients/client-omics/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { OmicsClientConfig } from "./OmicsClient"; /** * @internal */ -export const getRuntimeConfig = (config: OmicsClientConfig) => ({ - apiVersion: "2022-11-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "Omics", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: OmicsClientConfig) => { + return { + apiVersion: "2022-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "Omics", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-omics/src/runtimeConfig.ts b/clients/client-omics/src/runtimeConfig.ts index b69af28a50762..ea5d9ceb0f68a 100644 --- a/clients/client-omics/src/runtimeConfig.ts +++ b/clients/client-omics/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: OmicsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-opensearch/package.json b/clients/client-opensearch/package.json index 90b5f02e555b3..0de8c7eeeb08d 100644 --- a/clients/client-opensearch/package.json +++ b/clients/client-opensearch/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-opensearch/src/runtimeConfig.shared.ts b/clients/client-opensearch/src/runtimeConfig.shared.ts index a0731ea69002c..064e695cb00c3 100644 --- a/clients/client-opensearch/src/runtimeConfig.shared.ts +++ b/clients/client-opensearch/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { OpenSearchClientConfig } from "./OpenSearchClient"; /** * @internal */ -export const getRuntimeConfig = (config: OpenSearchClientConfig) => ({ - apiVersion: "2021-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "OpenSearch", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: OpenSearchClientConfig) => { + return { + apiVersion: "2021-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "OpenSearch", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-opensearch/src/runtimeConfig.ts b/clients/client-opensearch/src/runtimeConfig.ts index af49fdc5a426b..2268ab29eec54 100644 --- a/clients/client-opensearch/src/runtimeConfig.ts +++ b/clients/client-opensearch/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: OpenSearchClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-opensearchserverless/package.json b/clients/client-opensearchserverless/package.json index f1952acbe034b..fe756d15004a5 100644 --- a/clients/client-opensearchserverless/package.json +++ b/clients/client-opensearchserverless/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-opensearchserverless/src/runtimeConfig.shared.ts b/clients/client-opensearchserverless/src/runtimeConfig.shared.ts index f5b85bd5f1c5e..cf22bd5a101d0 100644 --- a/clients/client-opensearchserverless/src/runtimeConfig.shared.ts +++ b/clients/client-opensearchserverless/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { OpenSearchServerlessClientConfig } from "./OpenSearchServerlessClient"; /** * @internal */ -export const getRuntimeConfig = (config: OpenSearchServerlessClientConfig) => ({ - apiVersion: "2021-11-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "OpenSearchServerless", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: OpenSearchServerlessClientConfig) => { + return { + apiVersion: "2021-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "OpenSearchServerless", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-opensearchserverless/src/runtimeConfig.ts b/clients/client-opensearchserverless/src/runtimeConfig.ts index e6cf3778a025e..32939b07bff5b 100644 --- a/clients/client-opensearchserverless/src/runtimeConfig.ts +++ b/clients/client-opensearchserverless/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: OpenSearchServerlessClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-opsworks/package.json b/clients/client-opsworks/package.json index 9e07b65054fab..d3b3cd68c3fd1 100644 --- a/clients/client-opsworks/package.json +++ b/clients/client-opsworks/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-opsworks/src/runtimeConfig.shared.ts b/clients/client-opsworks/src/runtimeConfig.shared.ts index 10b1a32fcbba0..c19873e8d77e9 100644 --- a/clients/client-opsworks/src/runtimeConfig.shared.ts +++ b/clients/client-opsworks/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { OpsWorksClientConfig } from "./OpsWorksClient"; /** * @internal */ -export const getRuntimeConfig = (config: OpsWorksClientConfig) => ({ - apiVersion: "2013-02-18", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "OpsWorks", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: OpsWorksClientConfig) => { + return { + apiVersion: "2013-02-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "OpsWorks", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-opsworks/src/runtimeConfig.ts b/clients/client-opsworks/src/runtimeConfig.ts index 64a8d3da74f28..ab1b7e2f4e041 100644 --- a/clients/client-opsworks/src/runtimeConfig.ts +++ b/clients/client-opsworks/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: OpsWorksClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-opsworkscm/package.json b/clients/client-opsworkscm/package.json index 01ef0966163cd..cfb7aa61149f2 100644 --- a/clients/client-opsworkscm/package.json +++ b/clients/client-opsworkscm/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-opsworkscm/src/runtimeConfig.shared.ts b/clients/client-opsworkscm/src/runtimeConfig.shared.ts index cf5d90f170a4b..d9b64267d7f82 100644 --- a/clients/client-opsworkscm/src/runtimeConfig.shared.ts +++ b/clients/client-opsworkscm/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { OpsWorksCMClientConfig } from "./OpsWorksCMClient"; /** * @internal */ -export const getRuntimeConfig = (config: OpsWorksCMClientConfig) => ({ - apiVersion: "2016-11-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "OpsWorksCM", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: OpsWorksCMClientConfig) => { + return { + apiVersion: "2016-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "OpsWorksCM", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-opsworkscm/src/runtimeConfig.ts b/clients/client-opsworkscm/src/runtimeConfig.ts index 177cfcddde904..1fd41d5a9ac5b 100644 --- a/clients/client-opsworkscm/src/runtimeConfig.ts +++ b/clients/client-opsworkscm/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: OpsWorksCMClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-organizations/package.json b/clients/client-organizations/package.json index aeda66a5e2ede..7a19109649bff 100644 --- a/clients/client-organizations/package.json +++ b/clients/client-organizations/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-organizations/src/runtimeConfig.shared.ts b/clients/client-organizations/src/runtimeConfig.shared.ts index e3c0a3ab5f6ba..a0f3698308d88 100644 --- a/clients/client-organizations/src/runtimeConfig.shared.ts +++ b/clients/client-organizations/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { OrganizationsClientConfig } from "./OrganizationsClient"; /** * @internal */ -export const getRuntimeConfig = (config: OrganizationsClientConfig) => ({ - apiVersion: "2016-11-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Organizations", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: OrganizationsClientConfig) => { + return { + apiVersion: "2016-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Organizations", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-organizations/src/runtimeConfig.ts b/clients/client-organizations/src/runtimeConfig.ts index 4771fe18d3312..09526e92b39e1 100644 --- a/clients/client-organizations/src/runtimeConfig.ts +++ b/clients/client-organizations/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: OrganizationsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-osis/package.json b/clients/client-osis/package.json index 9017a90428f14..04d1e174c42d9 100644 --- a/clients/client-osis/package.json +++ b/clients/client-osis/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-osis/src/runtimeConfig.shared.ts b/clients/client-osis/src/runtimeConfig.shared.ts index d178460c3db31..c62471dfc7f63 100644 --- a/clients/client-osis/src/runtimeConfig.shared.ts +++ b/clients/client-osis/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { OSISClientConfig } from "./OSISClient"; /** * @internal */ -export const getRuntimeConfig = (config: OSISClientConfig) => ({ - apiVersion: "2022-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "OSIS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: OSISClientConfig) => { + return { + apiVersion: "2022-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "OSIS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-osis/src/runtimeConfig.ts b/clients/client-osis/src/runtimeConfig.ts index 4c7e946541c79..cf7172bd0ed90 100644 --- a/clients/client-osis/src/runtimeConfig.ts +++ b/clients/client-osis/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: OSISClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-outposts/package.json b/clients/client-outposts/package.json index 57e94d7f7b4c1..8fe479c80e11f 100644 --- a/clients/client-outposts/package.json +++ b/clients/client-outposts/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-outposts/src/runtimeConfig.shared.ts b/clients/client-outposts/src/runtimeConfig.shared.ts index 0ae6d17641a06..0502e2cf38f69 100644 --- a/clients/client-outposts/src/runtimeConfig.shared.ts +++ b/clients/client-outposts/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { OutpostsClientConfig } from "./OutpostsClient"; /** * @internal */ -export const getRuntimeConfig = (config: OutpostsClientConfig) => ({ - apiVersion: "2019-12-03", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Outposts", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: OutpostsClientConfig) => { + return { + apiVersion: "2019-12-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Outposts", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-outposts/src/runtimeConfig.ts b/clients/client-outposts/src/runtimeConfig.ts index c22d7e8a6a435..e26775c67a96a 100644 --- a/clients/client-outposts/src/runtimeConfig.ts +++ b/clients/client-outposts/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: OutpostsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-panorama/src/runtimeConfig.shared.ts b/clients/client-panorama/src/runtimeConfig.shared.ts index 8b5f464268e4a..6ccbeed73bd60 100644 --- a/clients/client-panorama/src/runtimeConfig.shared.ts +++ b/clients/client-panorama/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PanoramaClientConfig } from "./PanoramaClient"; /** * @internal */ -export const getRuntimeConfig = (config: PanoramaClientConfig) => ({ - apiVersion: "2019-07-24", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Panorama", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PanoramaClientConfig) => { + return { + apiVersion: "2019-07-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Panorama", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-panorama/src/runtimeConfig.ts b/clients/client-panorama/src/runtimeConfig.ts index b72a812b1f9d1..b90e5037c7faa 100644 --- a/clients/client-panorama/src/runtimeConfig.ts +++ b/clients/client-panorama/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PanoramaClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-payment-cryptography-data/src/runtimeConfig.shared.ts b/clients/client-payment-cryptography-data/src/runtimeConfig.shared.ts index 8dc4ae63fe2cc..4cd9cd8a52de1 100644 --- a/clients/client-payment-cryptography-data/src/runtimeConfig.shared.ts +++ b/clients/client-payment-cryptography-data/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PaymentCryptographyDataClientConfig } from "./PaymentCryptographyDataCl /** * @internal */ -export const getRuntimeConfig = (config: PaymentCryptographyDataClientConfig) => ({ - apiVersion: "2022-02-03", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Payment Cryptography Data", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PaymentCryptographyDataClientConfig) => { + return { + apiVersion: "2022-02-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Payment Cryptography Data", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-payment-cryptography-data/src/runtimeConfig.ts b/clients/client-payment-cryptography-data/src/runtimeConfig.ts index 9d2210f91007a..f7aaaa48f044a 100644 --- a/clients/client-payment-cryptography-data/src/runtimeConfig.ts +++ b/clients/client-payment-cryptography-data/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PaymentCryptographyDataClientConfig) => const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-payment-cryptography/package.json b/clients/client-payment-cryptography/package.json index e246cb920e1cd..b5ddb7a8c0e7a 100644 --- a/clients/client-payment-cryptography/package.json +++ b/clients/client-payment-cryptography/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-payment-cryptography/src/runtimeConfig.shared.ts b/clients/client-payment-cryptography/src/runtimeConfig.shared.ts index 42facec3f4761..ab59ae6ce6559 100644 --- a/clients/client-payment-cryptography/src/runtimeConfig.shared.ts +++ b/clients/client-payment-cryptography/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PaymentCryptographyClientConfig } from "./PaymentCryptographyClient"; /** * @internal */ -export const getRuntimeConfig = (config: PaymentCryptographyClientConfig) => ({ - apiVersion: "2021-09-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Payment Cryptography", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PaymentCryptographyClientConfig) => { + return { + apiVersion: "2021-09-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Payment Cryptography", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-payment-cryptography/src/runtimeConfig.ts b/clients/client-payment-cryptography/src/runtimeConfig.ts index 6bff5fadd28b5..c739bb74f1dc8 100644 --- a/clients/client-payment-cryptography/src/runtimeConfig.ts +++ b/clients/client-payment-cryptography/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PaymentCryptographyClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-pca-connector-ad/src/runtimeConfig.shared.ts b/clients/client-pca-connector-ad/src/runtimeConfig.shared.ts index 08087e8c30607..14d04c9a5ccb0 100644 --- a/clients/client-pca-connector-ad/src/runtimeConfig.shared.ts +++ b/clients/client-pca-connector-ad/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PcaConnectorAdClientConfig } from "./PcaConnectorAdClient"; /** * @internal */ -export const getRuntimeConfig = (config: PcaConnectorAdClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Pca Connector Ad", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PcaConnectorAdClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Pca Connector Ad", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-pca-connector-ad/src/runtimeConfig.ts b/clients/client-pca-connector-ad/src/runtimeConfig.ts index 31fa719c11407..5908756d9f272 100644 --- a/clients/client-pca-connector-ad/src/runtimeConfig.ts +++ b/clients/client-pca-connector-ad/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PcaConnectorAdClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-personalize-events/package.json b/clients/client-personalize-events/package.json index ddc47487ed3a0..56d9cd5b3e943 100644 --- a/clients/client-personalize-events/package.json +++ b/clients/client-personalize-events/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-personalize-events/src/runtimeConfig.shared.ts b/clients/client-personalize-events/src/runtimeConfig.shared.ts index 2406748d8b8bf..14c992e4f30a8 100644 --- a/clients/client-personalize-events/src/runtimeConfig.shared.ts +++ b/clients/client-personalize-events/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PersonalizeEventsClientConfig } from "./PersonalizeEventsClient"; /** * @internal */ -export const getRuntimeConfig = (config: PersonalizeEventsClientConfig) => ({ - apiVersion: "2018-03-22", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Personalize Events", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PersonalizeEventsClientConfig) => { + return { + apiVersion: "2018-03-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Personalize Events", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-personalize-events/src/runtimeConfig.ts b/clients/client-personalize-events/src/runtimeConfig.ts index 34183693bdcf0..3e57a48091b4f 100644 --- a/clients/client-personalize-events/src/runtimeConfig.ts +++ b/clients/client-personalize-events/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PersonalizeEventsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-personalize-runtime/package.json b/clients/client-personalize-runtime/package.json index 5358e8b0e8b34..4e09d2e0361ba 100644 --- a/clients/client-personalize-runtime/package.json +++ b/clients/client-personalize-runtime/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-personalize-runtime/src/runtimeConfig.shared.ts b/clients/client-personalize-runtime/src/runtimeConfig.shared.ts index dd666efa000de..c6dd3d0055b0f 100644 --- a/clients/client-personalize-runtime/src/runtimeConfig.shared.ts +++ b/clients/client-personalize-runtime/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient"; /** * @internal */ -export const getRuntimeConfig = (config: PersonalizeRuntimeClientConfig) => ({ - apiVersion: "2018-05-22", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Personalize Runtime", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PersonalizeRuntimeClientConfig) => { + return { + apiVersion: "2018-05-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Personalize Runtime", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-personalize-runtime/src/runtimeConfig.ts b/clients/client-personalize-runtime/src/runtimeConfig.ts index cad5859468620..da5ccf8e88877 100644 --- a/clients/client-personalize-runtime/src/runtimeConfig.ts +++ b/clients/client-personalize-runtime/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PersonalizeRuntimeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-personalize/package.json b/clients/client-personalize/package.json index 19b8c51ca0efa..7f89edbb20d92 100644 --- a/clients/client-personalize/package.json +++ b/clients/client-personalize/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-personalize/src/runtimeConfig.shared.ts b/clients/client-personalize/src/runtimeConfig.shared.ts index a1e8509cbedc2..eb9f85eb2ad87 100644 --- a/clients/client-personalize/src/runtimeConfig.shared.ts +++ b/clients/client-personalize/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PersonalizeClientConfig } from "./PersonalizeClient"; /** * @internal */ -export const getRuntimeConfig = (config: PersonalizeClientConfig) => ({ - apiVersion: "2018-05-22", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Personalize", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PersonalizeClientConfig) => { + return { + apiVersion: "2018-05-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Personalize", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-personalize/src/runtimeConfig.ts b/clients/client-personalize/src/runtimeConfig.ts index dbec56f87bb2d..2a333cbb89362 100644 --- a/clients/client-personalize/src/runtimeConfig.ts +++ b/clients/client-personalize/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PersonalizeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-pi/package.json b/clients/client-pi/package.json index 4c1301e5cb085..d2599a11ba8db 100644 --- a/clients/client-pi/package.json +++ b/clients/client-pi/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-pi/src/runtimeConfig.shared.ts b/clients/client-pi/src/runtimeConfig.shared.ts index 92fdf7c5666f2..8d317fa89e15b 100644 --- a/clients/client-pi/src/runtimeConfig.shared.ts +++ b/clients/client-pi/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PIClientConfig } from "./PIClient"; /** * @internal */ -export const getRuntimeConfig = (config: PIClientConfig) => ({ - apiVersion: "2018-02-27", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "PI", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PIClientConfig) => { + return { + apiVersion: "2018-02-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "PI", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-pi/src/runtimeConfig.ts b/clients/client-pi/src/runtimeConfig.ts index b9555ef58a696..c5e9879ea3cf6 100644 --- a/clients/client-pi/src/runtimeConfig.ts +++ b/clients/client-pi/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PIClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-pinpoint-email/package.json b/clients/client-pinpoint-email/package.json index 7eaee1f75f3f8..4ec90d552aeaa 100644 --- a/clients/client-pinpoint-email/package.json +++ b/clients/client-pinpoint-email/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-pinpoint-email/src/runtimeConfig.shared.ts b/clients/client-pinpoint-email/src/runtimeConfig.shared.ts index f2ab2df067bf8..5f4ed5cc6dc7b 100644 --- a/clients/client-pinpoint-email/src/runtimeConfig.shared.ts +++ b/clients/client-pinpoint-email/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PinpointEmailClientConfig } from "./PinpointEmailClient"; /** * @internal */ -export const getRuntimeConfig = (config: PinpointEmailClientConfig) => ({ - apiVersion: "2018-07-26", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Pinpoint Email", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PinpointEmailClientConfig) => { + return { + apiVersion: "2018-07-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Pinpoint Email", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-pinpoint-email/src/runtimeConfig.ts b/clients/client-pinpoint-email/src/runtimeConfig.ts index c24b46ede12f5..25a81b1dcaf2e 100644 --- a/clients/client-pinpoint-email/src/runtimeConfig.ts +++ b/clients/client-pinpoint-email/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PinpointEmailClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-pinpoint-sms-voice-v2/package.json b/clients/client-pinpoint-sms-voice-v2/package.json index 036c49e15d1cc..a12b148ea3fcc 100644 --- a/clients/client-pinpoint-sms-voice-v2/package.json +++ b/clients/client-pinpoint-sms-voice-v2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.shared.ts b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.shared.ts index 64dfa258833b5..2cfb4a6689ed4 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.shared.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PinpointSMSVoiceV2ClientConfig } from "./PinpointSMSVoiceV2Client"; /** * @internal */ -export const getRuntimeConfig = (config: PinpointSMSVoiceV2ClientConfig) => ({ - apiVersion: "2022-03-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Pinpoint SMS Voice V2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PinpointSMSVoiceV2ClientConfig) => { + return { + apiVersion: "2022-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Pinpoint SMS Voice V2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts index bf1dd89f2d378..c24a1ecd654ad 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PinpointSMSVoiceV2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-pinpoint-sms-voice/package.json b/clients/client-pinpoint-sms-voice/package.json index 46d3beec2291e..4852de8532dd9 100644 --- a/clients/client-pinpoint-sms-voice/package.json +++ b/clients/client-pinpoint-sms-voice/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-pinpoint-sms-voice/src/runtimeConfig.shared.ts b/clients/client-pinpoint-sms-voice/src/runtimeConfig.shared.ts index 7783ada6ababf..ae070da9fa334 100644 --- a/clients/client-pinpoint-sms-voice/src/runtimeConfig.shared.ts +++ b/clients/client-pinpoint-sms-voice/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PinpointSMSVoiceClientConfig } from "./PinpointSMSVoiceClient"; /** * @internal */ -export const getRuntimeConfig = (config: PinpointSMSVoiceClientConfig) => ({ - apiVersion: "2018-09-05", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Pinpoint SMS Voice", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PinpointSMSVoiceClientConfig) => { + return { + apiVersion: "2018-09-05", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Pinpoint SMS Voice", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts b/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts index b5a5596914387..118d200c090dd 100644 --- a/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts +++ b/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PinpointSMSVoiceClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-pinpoint/package.json b/clients/client-pinpoint/package.json index 3ea44ad1fad7f..860a3c7772507 100644 --- a/clients/client-pinpoint/package.json +++ b/clients/client-pinpoint/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-pinpoint/src/runtimeConfig.shared.ts b/clients/client-pinpoint/src/runtimeConfig.shared.ts index 52d3d53093ffe..04cf7debb4b2f 100644 --- a/clients/client-pinpoint/src/runtimeConfig.shared.ts +++ b/clients/client-pinpoint/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PinpointClientConfig } from "./PinpointClient"; /** * @internal */ -export const getRuntimeConfig = (config: PinpointClientConfig) => ({ - apiVersion: "2016-12-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Pinpoint", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PinpointClientConfig) => { + return { + apiVersion: "2016-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Pinpoint", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-pinpoint/src/runtimeConfig.ts b/clients/client-pinpoint/src/runtimeConfig.ts index 0b9ac06b8aae2..1416cc0112a64 100644 --- a/clients/client-pinpoint/src/runtimeConfig.ts +++ b/clients/client-pinpoint/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PinpointClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-pipes/package.json b/clients/client-pipes/package.json index 4c73ee8814e69..7ec8ae4fec014 100644 --- a/clients/client-pipes/package.json +++ b/clients/client-pipes/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-pipes/src/runtimeConfig.shared.ts b/clients/client-pipes/src/runtimeConfig.shared.ts index 0e2d2b445f2b2..895284522db34 100644 --- a/clients/client-pipes/src/runtimeConfig.shared.ts +++ b/clients/client-pipes/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PipesClientConfig } from "./PipesClient"; /** * @internal */ -export const getRuntimeConfig = (config: PipesClientConfig) => ({ - apiVersion: "2015-10-07", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Pipes", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PipesClientConfig) => { + return { + apiVersion: "2015-10-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Pipes", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-pipes/src/runtimeConfig.ts b/clients/client-pipes/src/runtimeConfig.ts index c43bfd7b81088..3dbda97936c9f 100644 --- a/clients/client-pipes/src/runtimeConfig.ts +++ b/clients/client-pipes/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PipesClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-polly/package.json b/clients/client-polly/package.json index 284873db50146..edb9f99649e9b 100644 --- a/clients/client-polly/package.json +++ b/clients/client-polly/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-polly/src/runtimeConfig.shared.ts b/clients/client-polly/src/runtimeConfig.shared.ts index 01e7dcbfde440..8edb1f9be7ca9 100644 --- a/clients/client-polly/src/runtimeConfig.shared.ts +++ b/clients/client-polly/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { PollyClientConfig } from "./PollyClient"; /** * @internal */ -export const getRuntimeConfig = (config: PollyClientConfig) => ({ - apiVersion: "2016-06-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "Polly", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PollyClientConfig) => { + return { + apiVersion: "2016-06-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "Polly", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-polly/src/runtimeConfig.ts b/clients/client-polly/src/runtimeConfig.ts index 969b7f493d195..2a3b7bee56fd3 100644 --- a/clients/client-polly/src/runtimeConfig.ts +++ b/clients/client-polly/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PollyClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-pricing/package.json b/clients/client-pricing/package.json index bcec78c60859e..5709e9f02f256 100644 --- a/clients/client-pricing/package.json +++ b/clients/client-pricing/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-pricing/src/runtimeConfig.shared.ts b/clients/client-pricing/src/runtimeConfig.shared.ts index 330a2d345fa87..ab578f761240c 100644 --- a/clients/client-pricing/src/runtimeConfig.shared.ts +++ b/clients/client-pricing/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PricingClientConfig } from "./PricingClient"; /** * @internal */ -export const getRuntimeConfig = (config: PricingClientConfig) => ({ - apiVersion: "2017-10-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Pricing", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PricingClientConfig) => { + return { + apiVersion: "2017-10-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Pricing", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-pricing/src/runtimeConfig.ts b/clients/client-pricing/src/runtimeConfig.ts index 830ceca551983..9104a01b06de0 100644 --- a/clients/client-pricing/src/runtimeConfig.ts +++ b/clients/client-pricing/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PricingClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-privatenetworks/package.json b/clients/client-privatenetworks/package.json index 3bfe45da02c07..ea9d5440fea9d 100644 --- a/clients/client-privatenetworks/package.json +++ b/clients/client-privatenetworks/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-privatenetworks/src/runtimeConfig.shared.ts b/clients/client-privatenetworks/src/runtimeConfig.shared.ts index f8d64f89c0bb5..ea26c57d33138 100644 --- a/clients/client-privatenetworks/src/runtimeConfig.shared.ts +++ b/clients/client-privatenetworks/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { PrivateNetworksClientConfig } from "./PrivateNetworksClient"; /** * @internal */ -export const getRuntimeConfig = (config: PrivateNetworksClientConfig) => ({ - apiVersion: "2021-12-03", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "PrivateNetworks", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: PrivateNetworksClientConfig) => { + return { + apiVersion: "2021-12-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "PrivateNetworks", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-privatenetworks/src/runtimeConfig.ts b/clients/client-privatenetworks/src/runtimeConfig.ts index 51c158306ea37..cd1cf84b819b1 100644 --- a/clients/client-privatenetworks/src/runtimeConfig.ts +++ b/clients/client-privatenetworks/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: PrivateNetworksClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-proton/src/runtimeConfig.shared.ts b/clients/client-proton/src/runtimeConfig.shared.ts index 6a936e79d1f9a..efdb29f13051d 100644 --- a/clients/client-proton/src/runtimeConfig.shared.ts +++ b/clients/client-proton/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ProtonClientConfig } from "./ProtonClient"; /** * @internal */ -export const getRuntimeConfig = (config: ProtonClientConfig) => ({ - apiVersion: "2020-07-20", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Proton", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ProtonClientConfig) => { + return { + apiVersion: "2020-07-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Proton", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-proton/src/runtimeConfig.ts b/clients/client-proton/src/runtimeConfig.ts index 6b7b693da661e..7156849415bcf 100644 --- a/clients/client-proton/src/runtimeConfig.ts +++ b/clients/client-proton/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ProtonClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-qldb-session/package.json b/clients/client-qldb-session/package.json index 1c8dd589fca36..3a803acd6406a 100644 --- a/clients/client-qldb-session/package.json +++ b/clients/client-qldb-session/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-qldb-session/src/runtimeConfig.shared.ts b/clients/client-qldb-session/src/runtimeConfig.shared.ts index 460aa70b568f9..7b680bb7552f3 100644 --- a/clients/client-qldb-session/src/runtimeConfig.shared.ts +++ b/clients/client-qldb-session/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { QLDBSessionClientConfig } from "./QLDBSessionClient"; /** * @internal */ -export const getRuntimeConfig = (config: QLDBSessionClientConfig) => ({ - apiVersion: "2019-07-11", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "QLDB Session", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: QLDBSessionClientConfig) => { + return { + apiVersion: "2019-07-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "QLDB Session", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-qldb-session/src/runtimeConfig.ts b/clients/client-qldb-session/src/runtimeConfig.ts index 83bc6611a8e4f..5c3a6dbb0b6de 100644 --- a/clients/client-qldb-session/src/runtimeConfig.ts +++ b/clients/client-qldb-session/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: QLDBSessionClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-qldb/package.json b/clients/client-qldb/package.json index 9818a38909161..accf4c7805acf 100644 --- a/clients/client-qldb/package.json +++ b/clients/client-qldb/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-qldb/src/runtimeConfig.shared.ts b/clients/client-qldb/src/runtimeConfig.shared.ts index b0e6e1e401fcc..0d2d53e1cec31 100644 --- a/clients/client-qldb/src/runtimeConfig.shared.ts +++ b/clients/client-qldb/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { QLDBClientConfig } from "./QLDBClient"; /** * @internal */ -export const getRuntimeConfig = (config: QLDBClientConfig) => ({ - apiVersion: "2019-01-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "QLDB", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: QLDBClientConfig) => { + return { + apiVersion: "2019-01-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "QLDB", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-qldb/src/runtimeConfig.ts b/clients/client-qldb/src/runtimeConfig.ts index 7f66f6c8a0ad8..f9855f21cbabe 100644 --- a/clients/client-qldb/src/runtimeConfig.ts +++ b/clients/client-qldb/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: QLDBClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-quicksight/src/runtimeConfig.shared.ts b/clients/client-quicksight/src/runtimeConfig.shared.ts index 2e7fcbb24ce9d..d08233480b1d5 100644 --- a/clients/client-quicksight/src/runtimeConfig.shared.ts +++ b/clients/client-quicksight/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { QuickSightClientConfig } from "./QuickSightClient"; /** * @internal */ -export const getRuntimeConfig = (config: QuickSightClientConfig) => ({ - apiVersion: "2018-04-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "QuickSight", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: QuickSightClientConfig) => { + return { + apiVersion: "2018-04-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "QuickSight", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-quicksight/src/runtimeConfig.ts b/clients/client-quicksight/src/runtimeConfig.ts index 987fdf2716e33..878d45afff368 100644 --- a/clients/client-quicksight/src/runtimeConfig.ts +++ b/clients/client-quicksight/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: QuickSightClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ram/package.json b/clients/client-ram/package.json index e2a307862c526..dee62c4cd137f 100644 --- a/clients/client-ram/package.json +++ b/clients/client-ram/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ram/src/runtimeConfig.shared.ts b/clients/client-ram/src/runtimeConfig.shared.ts index 3a6b51a0e1478..234e50c0c62c1 100644 --- a/clients/client-ram/src/runtimeConfig.shared.ts +++ b/clients/client-ram/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RAMClientConfig } from "./RAMClient"; /** * @internal */ -export const getRuntimeConfig = (config: RAMClientConfig) => ({ - apiVersion: "2018-01-04", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "RAM", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RAMClientConfig) => { + return { + apiVersion: "2018-01-04", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "RAM", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ram/src/runtimeConfig.ts b/clients/client-ram/src/runtimeConfig.ts index 4da01d0fd732e..e41c134c2cfb0 100644 --- a/clients/client-ram/src/runtimeConfig.ts +++ b/clients/client-ram/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: RAMClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-rbin/package.json b/clients/client-rbin/package.json index 19fd1e35e0045..15168d27c2715 100644 --- a/clients/client-rbin/package.json +++ b/clients/client-rbin/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-rbin/src/runtimeConfig.shared.ts b/clients/client-rbin/src/runtimeConfig.shared.ts index 1acf9265daeef..6d346188ca917 100644 --- a/clients/client-rbin/src/runtimeConfig.shared.ts +++ b/clients/client-rbin/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RbinClientConfig } from "./RbinClient"; /** * @internal */ -export const getRuntimeConfig = (config: RbinClientConfig) => ({ - apiVersion: "2021-06-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "rbin", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RbinClientConfig) => { + return { + apiVersion: "2021-06-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "rbin", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-rbin/src/runtimeConfig.ts b/clients/client-rbin/src/runtimeConfig.ts index 34975db1c3483..85bf3554f49df 100644 --- a/clients/client-rbin/src/runtimeConfig.ts +++ b/clients/client-rbin/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: RbinClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-rds-data/src/runtimeConfig.shared.ts b/clients/client-rds-data/src/runtimeConfig.shared.ts index a2e0313ad22a1..a1e840f66470b 100644 --- a/clients/client-rds-data/src/runtimeConfig.shared.ts +++ b/clients/client-rds-data/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RDSDataClientConfig } from "./RDSDataClient"; /** * @internal */ -export const getRuntimeConfig = (config: RDSDataClientConfig) => ({ - apiVersion: "2018-08-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "RDS Data", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RDSDataClientConfig) => { + return { + apiVersion: "2018-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "RDS Data", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-rds-data/src/runtimeConfig.ts b/clients/client-rds-data/src/runtimeConfig.ts index 025721872a208..fcd7fa925ebd2 100644 --- a/clients/client-rds-data/src/runtimeConfig.ts +++ b/clients/client-rds-data/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: RDSDataClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-rds/package.json b/clients/client-rds/package.json index 8464b80bf024e..113a8e09a9f26 100644 --- a/clients/client-rds/package.json +++ b/clients/client-rds/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-rds/src/runtimeConfig.shared.ts b/clients/client-rds/src/runtimeConfig.shared.ts index c0939a3921a6b..ceaf19b86846b 100644 --- a/clients/client-rds/src/runtimeConfig.shared.ts +++ b/clients/client-rds/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RDSClientConfig } from "./RDSClient"; /** * @internal */ -export const getRuntimeConfig = (config: RDSClientConfig) => ({ - apiVersion: "2014-10-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "RDS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RDSClientConfig) => { + return { + apiVersion: "2014-10-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "RDS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-rds/src/runtimeConfig.ts b/clients/client-rds/src/runtimeConfig.ts index 17177575ef8d2..1df7d010c86d2 100644 --- a/clients/client-rds/src/runtimeConfig.ts +++ b/clients/client-rds/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: RDSClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-redshift-data/src/runtimeConfig.shared.ts b/clients/client-redshift-data/src/runtimeConfig.shared.ts index 98f54d5d7494e..40e1dc486b738 100644 --- a/clients/client-redshift-data/src/runtimeConfig.shared.ts +++ b/clients/client-redshift-data/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RedshiftDataClientConfig } from "./RedshiftDataClient"; /** * @internal */ -export const getRuntimeConfig = (config: RedshiftDataClientConfig) => ({ - apiVersion: "2019-12-20", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Redshift Data", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RedshiftDataClientConfig) => { + return { + apiVersion: "2019-12-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Redshift Data", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-redshift-data/src/runtimeConfig.ts b/clients/client-redshift-data/src/runtimeConfig.ts index 5958a03423eed..585ab94d2b1a8 100644 --- a/clients/client-redshift-data/src/runtimeConfig.ts +++ b/clients/client-redshift-data/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: RedshiftDataClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-redshift-serverless/package.json b/clients/client-redshift-serverless/package.json index d7e06f3c61d4f..f58d05ceacac5 100644 --- a/clients/client-redshift-serverless/package.json +++ b/clients/client-redshift-serverless/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-redshift-serverless/src/runtimeConfig.shared.ts b/clients/client-redshift-serverless/src/runtimeConfig.shared.ts index 9be0e03548b0a..167ee997c4331 100644 --- a/clients/client-redshift-serverless/src/runtimeConfig.shared.ts +++ b/clients/client-redshift-serverless/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RedshiftServerlessClientConfig } from "./RedshiftServerlessClient"; /** * @internal */ -export const getRuntimeConfig = (config: RedshiftServerlessClientConfig) => ({ - apiVersion: "2021-04-21", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Redshift Serverless", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RedshiftServerlessClientConfig) => { + return { + apiVersion: "2021-04-21", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Redshift Serverless", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-redshift-serverless/src/runtimeConfig.ts b/clients/client-redshift-serverless/src/runtimeConfig.ts index 588afa25a2bf8..71040b64e323c 100644 --- a/clients/client-redshift-serverless/src/runtimeConfig.ts +++ b/clients/client-redshift-serverless/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: RedshiftServerlessClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-redshift/package.json b/clients/client-redshift/package.json index 2b6818c007b0f..6aaea1388970f 100644 --- a/clients/client-redshift/package.json +++ b/clients/client-redshift/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-redshift/src/runtimeConfig.shared.ts b/clients/client-redshift/src/runtimeConfig.shared.ts index e341f2f94fb6b..ee5b436716364 100644 --- a/clients/client-redshift/src/runtimeConfig.shared.ts +++ b/clients/client-redshift/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RedshiftClientConfig } from "./RedshiftClient"; /** * @internal */ -export const getRuntimeConfig = (config: RedshiftClientConfig) => ({ - apiVersion: "2012-12-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Redshift", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RedshiftClientConfig) => { + return { + apiVersion: "2012-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Redshift", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-redshift/src/runtimeConfig.ts b/clients/client-redshift/src/runtimeConfig.ts index 7678ae6969349..0e71c852c7fd7 100644 --- a/clients/client-redshift/src/runtimeConfig.ts +++ b/clients/client-redshift/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: RedshiftClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-rekognition/package.json b/clients/client-rekognition/package.json index 92add81d1f885..7da3bbf1a49e5 100644 --- a/clients/client-rekognition/package.json +++ b/clients/client-rekognition/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-rekognition/src/runtimeConfig.shared.ts b/clients/client-rekognition/src/runtimeConfig.shared.ts index 2b8a49ca3c32e..d65f3ac6d5361 100644 --- a/clients/client-rekognition/src/runtimeConfig.shared.ts +++ b/clients/client-rekognition/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RekognitionClientConfig } from "./RekognitionClient"; /** * @internal */ -export const getRuntimeConfig = (config: RekognitionClientConfig) => ({ - apiVersion: "2016-06-27", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Rekognition", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RekognitionClientConfig) => { + return { + apiVersion: "2016-06-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Rekognition", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-rekognition/src/runtimeConfig.ts b/clients/client-rekognition/src/runtimeConfig.ts index c36f25e5a8d79..f145cb058b3e6 100644 --- a/clients/client-rekognition/src/runtimeConfig.ts +++ b/clients/client-rekognition/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: RekognitionClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-rekognitionstreaming/src/runtimeConfig.shared.ts b/clients/client-rekognitionstreaming/src/runtimeConfig.shared.ts index 403a4f7b11f5d..34fd97689d7c8 100644 --- a/clients/client-rekognitionstreaming/src/runtimeConfig.shared.ts +++ b/clients/client-rekognitionstreaming/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RekognitionStreamingClientConfig } from "./RekognitionStreamingClient"; /** * @internal */ -export const getRuntimeConfig = (config: RekognitionStreamingClientConfig) => ({ - apiVersion: "2022-05-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "RekognitionStreaming", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RekognitionStreamingClientConfig) => { + return { + apiVersion: "2022-05-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "RekognitionStreaming", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-rekognitionstreaming/src/runtimeConfig.ts b/clients/client-rekognitionstreaming/src/runtimeConfig.ts index b0acae30a9e8c..2eef06acce214 100644 --- a/clients/client-rekognitionstreaming/src/runtimeConfig.ts +++ b/clients/client-rekognitionstreaming/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -33,6 +34,7 @@ export const getRuntimeConfig = (config: RekognitionStreamingClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-resiliencehub/package.json b/clients/client-resiliencehub/package.json index d8f805d105c1d..cb4a8360a2340 100644 --- a/clients/client-resiliencehub/package.json +++ b/clients/client-resiliencehub/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-resiliencehub/src/runtimeConfig.shared.ts b/clients/client-resiliencehub/src/runtimeConfig.shared.ts index 3ae8dcf3836a1..2bc0cf1af6a6d 100644 --- a/clients/client-resiliencehub/src/runtimeConfig.shared.ts +++ b/clients/client-resiliencehub/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ResiliencehubClientConfig } from "./ResiliencehubClient"; /** * @internal */ -export const getRuntimeConfig = (config: ResiliencehubClientConfig) => ({ - apiVersion: "2020-04-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "resiliencehub", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ResiliencehubClientConfig) => { + return { + apiVersion: "2020-04-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "resiliencehub", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-resiliencehub/src/runtimeConfig.ts b/clients/client-resiliencehub/src/runtimeConfig.ts index 85a7f9b46b92a..ac4ca9c479e00 100644 --- a/clients/client-resiliencehub/src/runtimeConfig.ts +++ b/clients/client-resiliencehub/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ResiliencehubClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-resource-explorer-2/package.json b/clients/client-resource-explorer-2/package.json index bcbd8f2a04a7f..3c8f259a0b38f 100644 --- a/clients/client-resource-explorer-2/package.json +++ b/clients/client-resource-explorer-2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-resource-explorer-2/src/runtimeConfig.shared.ts b/clients/client-resource-explorer-2/src/runtimeConfig.shared.ts index 8b1d6d1c76a3e..2ddfcea66c41a 100644 --- a/clients/client-resource-explorer-2/src/runtimeConfig.shared.ts +++ b/clients/client-resource-explorer-2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ResourceExplorer2ClientConfig } from "./ResourceExplorer2Client"; /** * @internal */ -export const getRuntimeConfig = (config: ResourceExplorer2ClientConfig) => ({ - apiVersion: "2022-07-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Resource Explorer 2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ResourceExplorer2ClientConfig) => { + return { + apiVersion: "2022-07-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Resource Explorer 2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-resource-explorer-2/src/runtimeConfig.ts b/clients/client-resource-explorer-2/src/runtimeConfig.ts index ee245a6b345ea..0c30bd5de4431 100644 --- a/clients/client-resource-explorer-2/src/runtimeConfig.ts +++ b/clients/client-resource-explorer-2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ResourceExplorer2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-resource-groups-tagging-api/package.json b/clients/client-resource-groups-tagging-api/package.json index 1fc8d208e90b6..9119257d2c8a4 100644 --- a/clients/client-resource-groups-tagging-api/package.json +++ b/clients/client-resource-groups-tagging-api/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-resource-groups-tagging-api/src/runtimeConfig.shared.ts b/clients/client-resource-groups-tagging-api/src/runtimeConfig.shared.ts index ea5f72f24127d..5ebda04f73e93 100644 --- a/clients/client-resource-groups-tagging-api/src/runtimeConfig.shared.ts +++ b/clients/client-resource-groups-tagging-api/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ResourceGroupsTaggingAPIClientConfig } from "./ResourceGroupsTaggingAPI /** * @internal */ -export const getRuntimeConfig = (config: ResourceGroupsTaggingAPIClientConfig) => ({ - apiVersion: "2017-01-26", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Resource Groups Tagging API", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ResourceGroupsTaggingAPIClientConfig) => { + return { + apiVersion: "2017-01-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Resource Groups Tagging API", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts b/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts index 1d5e1876a3597..0545fcae0c104 100644 --- a/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts +++ b/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ResourceGroupsTaggingAPIClientConfig) = const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-resource-groups/package.json b/clients/client-resource-groups/package.json index 8d104ab5669fb..468f42a98e45b 100644 --- a/clients/client-resource-groups/package.json +++ b/clients/client-resource-groups/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-resource-groups/src/runtimeConfig.shared.ts b/clients/client-resource-groups/src/runtimeConfig.shared.ts index 4f4fc141a3dfa..e4a30d77a6b0f 100644 --- a/clients/client-resource-groups/src/runtimeConfig.shared.ts +++ b/clients/client-resource-groups/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ResourceGroupsClientConfig } from "./ResourceGroupsClient"; /** * @internal */ -export const getRuntimeConfig = (config: ResourceGroupsClientConfig) => ({ - apiVersion: "2017-11-27", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Resource Groups", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ResourceGroupsClientConfig) => { + return { + apiVersion: "2017-11-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Resource Groups", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-resource-groups/src/runtimeConfig.ts b/clients/client-resource-groups/src/runtimeConfig.ts index c7b8f00d2f6e8..9dcaf6d42101c 100644 --- a/clients/client-resource-groups/src/runtimeConfig.ts +++ b/clients/client-resource-groups/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ResourceGroupsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-robomaker/package.json b/clients/client-robomaker/package.json index 2831b4faf4921..570f51fddcd28 100644 --- a/clients/client-robomaker/package.json +++ b/clients/client-robomaker/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-robomaker/src/runtimeConfig.shared.ts b/clients/client-robomaker/src/runtimeConfig.shared.ts index cca07b0a98706..eca006ebef83b 100644 --- a/clients/client-robomaker/src/runtimeConfig.shared.ts +++ b/clients/client-robomaker/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RoboMakerClientConfig } from "./RoboMakerClient"; /** * @internal */ -export const getRuntimeConfig = (config: RoboMakerClientConfig) => ({ - apiVersion: "2018-06-29", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "RoboMaker", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RoboMakerClientConfig) => { + return { + apiVersion: "2018-06-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "RoboMaker", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-robomaker/src/runtimeConfig.ts b/clients/client-robomaker/src/runtimeConfig.ts index fe0761f257630..2caa1a44e56d8 100644 --- a/clients/client-robomaker/src/runtimeConfig.ts +++ b/clients/client-robomaker/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: RoboMakerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-rolesanywhere/package.json b/clients/client-rolesanywhere/package.json index 76c25e2e4a751..b8ba531968e83 100644 --- a/clients/client-rolesanywhere/package.json +++ b/clients/client-rolesanywhere/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-rolesanywhere/src/runtimeConfig.shared.ts b/clients/client-rolesanywhere/src/runtimeConfig.shared.ts index 968e4cae950d4..2afaadf0bb764 100644 --- a/clients/client-rolesanywhere/src/runtimeConfig.shared.ts +++ b/clients/client-rolesanywhere/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RolesAnywhereClientConfig } from "./RolesAnywhereClient"; /** * @internal */ -export const getRuntimeConfig = (config: RolesAnywhereClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "RolesAnywhere", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RolesAnywhereClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "RolesAnywhere", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-rolesanywhere/src/runtimeConfig.ts b/clients/client-rolesanywhere/src/runtimeConfig.ts index b1512f974824c..0f812dff6b63d 100644 --- a/clients/client-rolesanywhere/src/runtimeConfig.ts +++ b/clients/client-rolesanywhere/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: RolesAnywhereClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-route-53-domains/package.json b/clients/client-route-53-domains/package.json index ffbb69dea7b25..3ae97e3e88e08 100644 --- a/clients/client-route-53-domains/package.json +++ b/clients/client-route-53-domains/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-route-53-domains/src/runtimeConfig.shared.ts b/clients/client-route-53-domains/src/runtimeConfig.shared.ts index 2fc48785a2649..93d4820021490 100644 --- a/clients/client-route-53-domains/src/runtimeConfig.shared.ts +++ b/clients/client-route-53-domains/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { Route53DomainsClientConfig } from "./Route53DomainsClient"; /** * @internal */ -export const getRuntimeConfig = (config: Route53DomainsClientConfig) => ({ - apiVersion: "2014-05-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Route 53 Domains", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: Route53DomainsClientConfig) => { + return { + apiVersion: "2014-05-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Route 53 Domains", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-route-53-domains/src/runtimeConfig.ts b/clients/client-route-53-domains/src/runtimeConfig.ts index e24bd9bb765cb..8ece0a718d3f6 100644 --- a/clients/client-route-53-domains/src/runtimeConfig.ts +++ b/clients/client-route-53-domains/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: Route53DomainsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-route-53/package.json b/clients/client-route-53/package.json index 26c603b584a88..6d8443e0a0e45 100644 --- a/clients/client-route-53/package.json +++ b/clients/client-route-53/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-route-53/src/runtimeConfig.shared.ts b/clients/client-route-53/src/runtimeConfig.shared.ts index 22908c429fb49..f33f1e6218f54 100644 --- a/clients/client-route-53/src/runtimeConfig.shared.ts +++ b/clients/client-route-53/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { Route53ClientConfig } from "./Route53Client"; /** * @internal */ -export const getRuntimeConfig = (config: Route53ClientConfig) => ({ - apiVersion: "2013-04-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Route 53", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: Route53ClientConfig) => { + return { + apiVersion: "2013-04-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Route 53", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-route-53/src/runtimeConfig.ts b/clients/client-route-53/src/runtimeConfig.ts index b536d22b3755d..559ddd015102b 100644 --- a/clients/client-route-53/src/runtimeConfig.ts +++ b/clients/client-route-53/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: Route53ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-route53-recovery-cluster/package.json b/clients/client-route53-recovery-cluster/package.json index f9264cc1e5a50..19c30973acf92 100644 --- a/clients/client-route53-recovery-cluster/package.json +++ b/clients/client-route53-recovery-cluster/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-route53-recovery-cluster/src/runtimeConfig.shared.ts b/clients/client-route53-recovery-cluster/src/runtimeConfig.shared.ts index d4586f6e84993..6ccac5081985c 100644 --- a/clients/client-route53-recovery-cluster/src/runtimeConfig.shared.ts +++ b/clients/client-route53-recovery-cluster/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { Route53RecoveryClusterClientConfig } from "./Route53RecoveryClusterClie /** * @internal */ -export const getRuntimeConfig = (config: Route53RecoveryClusterClientConfig) => ({ - apiVersion: "2019-12-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Route53 Recovery Cluster", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: Route53RecoveryClusterClientConfig) => { + return { + apiVersion: "2019-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Route53 Recovery Cluster", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-route53-recovery-cluster/src/runtimeConfig.ts b/clients/client-route53-recovery-cluster/src/runtimeConfig.ts index cfc91be43805e..10a6df3a9db5d 100644 --- a/clients/client-route53-recovery-cluster/src/runtimeConfig.ts +++ b/clients/client-route53-recovery-cluster/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: Route53RecoveryClusterClientConfig) => const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-route53-recovery-control-config/package.json b/clients/client-route53-recovery-control-config/package.json index 08decc405660f..12fd6d4372f9b 100644 --- a/clients/client-route53-recovery-control-config/package.json +++ b/clients/client-route53-recovery-control-config/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-route53-recovery-control-config/src/runtimeConfig.shared.ts b/clients/client-route53-recovery-control-config/src/runtimeConfig.shared.ts index 7515582bc5def..ca190f541b3a7 100644 --- a/clients/client-route53-recovery-control-config/src/runtimeConfig.shared.ts +++ b/clients/client-route53-recovery-control-config/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { Route53RecoveryControlConfigClientConfig } from "./Route53RecoveryContr /** * @internal */ -export const getRuntimeConfig = (config: Route53RecoveryControlConfigClientConfig) => ({ - apiVersion: "2020-11-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Route53 Recovery Control Config", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: Route53RecoveryControlConfigClientConfig) => { + return { + apiVersion: "2020-11-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Route53 Recovery Control Config", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-route53-recovery-control-config/src/runtimeConfig.ts b/clients/client-route53-recovery-control-config/src/runtimeConfig.ts index 3e0c27af1f750..26c012654bbed 100644 --- a/clients/client-route53-recovery-control-config/src/runtimeConfig.ts +++ b/clients/client-route53-recovery-control-config/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: Route53RecoveryControlConfigClientConfi const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-route53-recovery-readiness/package.json b/clients/client-route53-recovery-readiness/package.json index 67e690947dc18..8462542850233 100644 --- a/clients/client-route53-recovery-readiness/package.json +++ b/clients/client-route53-recovery-readiness/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-route53-recovery-readiness/src/runtimeConfig.shared.ts b/clients/client-route53-recovery-readiness/src/runtimeConfig.shared.ts index 39784ee2eff0d..119290e42263b 100644 --- a/clients/client-route53-recovery-readiness/src/runtimeConfig.shared.ts +++ b/clients/client-route53-recovery-readiness/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { Route53RecoveryReadinessClientConfig } from "./Route53RecoveryReadiness /** * @internal */ -export const getRuntimeConfig = (config: Route53RecoveryReadinessClientConfig) => ({ - apiVersion: "2019-12-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Route53 Recovery Readiness", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: Route53RecoveryReadinessClientConfig) => { + return { + apiVersion: "2019-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Route53 Recovery Readiness", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-route53-recovery-readiness/src/runtimeConfig.ts b/clients/client-route53-recovery-readiness/src/runtimeConfig.ts index 273fdb4fc4a77..8f4a2d2ec0d06 100644 --- a/clients/client-route53-recovery-readiness/src/runtimeConfig.ts +++ b/clients/client-route53-recovery-readiness/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: Route53RecoveryReadinessClientConfig) = const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-route53resolver/package.json b/clients/client-route53resolver/package.json index 50fc8b696d28f..78da93a653c3c 100644 --- a/clients/client-route53resolver/package.json +++ b/clients/client-route53resolver/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-route53resolver/src/runtimeConfig.shared.ts b/clients/client-route53resolver/src/runtimeConfig.shared.ts index 632025c2dbcad..0da62f1c54885 100644 --- a/clients/client-route53resolver/src/runtimeConfig.shared.ts +++ b/clients/client-route53resolver/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { Route53ResolverClientConfig } from "./Route53ResolverClient"; /** * @internal */ -export const getRuntimeConfig = (config: Route53ResolverClientConfig) => ({ - apiVersion: "2018-04-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Route53Resolver", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: Route53ResolverClientConfig) => { + return { + apiVersion: "2018-04-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Route53Resolver", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-route53resolver/src/runtimeConfig.ts b/clients/client-route53resolver/src/runtimeConfig.ts index 8086386d6065f..9a10e871cd427 100644 --- a/clients/client-route53resolver/src/runtimeConfig.ts +++ b/clients/client-route53resolver/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: Route53ResolverClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-rum/package.json b/clients/client-rum/package.json index f0e714d6322cf..9e62aa85acf98 100644 --- a/clients/client-rum/package.json +++ b/clients/client-rum/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-rum/src/runtimeConfig.shared.ts b/clients/client-rum/src/runtimeConfig.shared.ts index 259b0756d2a1c..2fadef4cb019e 100644 --- a/clients/client-rum/src/runtimeConfig.shared.ts +++ b/clients/client-rum/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RUMClientConfig } from "./RUMClient"; /** * @internal */ -export const getRuntimeConfig = (config: RUMClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "RUM", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RUMClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "RUM", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-rum/src/runtimeConfig.ts b/clients/client-rum/src/runtimeConfig.ts index 46ed49fb2094f..17904581cfb15 100644 --- a/clients/client-rum/src/runtimeConfig.ts +++ b/clients/client-rum/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: RUMClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-s3-control/package.json b/clients/client-s3-control/package.json index 1ed63146e96c8..3024eb9912318 100644 --- a/clients/client-s3-control/package.json +++ b/clients/client-s3-control/package.json @@ -24,6 +24,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-s3-control/src/runtimeConfig.shared.ts b/clients/client-s3-control/src/runtimeConfig.shared.ts index 2a8c8e002ef23..54245cfc45369 100644 --- a/clients/client-s3-control/src/runtimeConfig.shared.ts +++ b/clients/client-s3-control/src/runtimeConfig.shared.ts @@ -10,17 +10,19 @@ import { S3ControlClientConfig } from "./S3ControlClient"; /** * @internal */ -export const getRuntimeConfig = (config: S3ControlClientConfig) => ({ - apiVersion: "2018-08-20", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "S3 Control", - signingEscapePath: config?.signingEscapePath ?? false, - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: S3ControlClientConfig) => { + return { + apiVersion: "2018-08-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "S3 Control", + signingEscapePath: config?.signingEscapePath ?? false, + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-s3-control/src/runtimeConfig.ts b/clients/client-s3-control/src/runtimeConfig.ts index 6c752749c6a15..d6808ca08a421 100644 --- a/clients/client-s3-control/src/runtimeConfig.ts +++ b/clients/client-s3-control/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -33,6 +34,7 @@ export const getRuntimeConfig = (config: S3ControlClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-s3/package.json b/clients/client-s3/package.json index e6d2b7908fc90..6c74474878a2f 100644 --- a/clients/client-s3/package.json +++ b/clients/client-s3/package.json @@ -26,6 +26,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-bucket-endpoint": "*", "@aws-sdk/middleware-expect-continue": "*", diff --git a/clients/client-s3/src/runtimeConfig.shared.ts b/clients/client-s3/src/runtimeConfig.shared.ts index d93d3d073ed93..7be05924efe9e 100644 --- a/clients/client-s3/src/runtimeConfig.shared.ts +++ b/clients/client-s3/src/runtimeConfig.shared.ts @@ -12,21 +12,23 @@ import { S3ClientConfig } from "./S3Client"; /** * @internal */ -export const getRuntimeConfig = (config: S3ClientConfig) => ({ - apiVersion: "2006-03-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? getAwsChunkedEncodingStream, - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "S3", - signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion, - signingEscapePath: config?.signingEscapePath ?? false, - urlParser: config?.urlParser ?? parseUrl, - useArnRegion: config?.useArnRegion ?? false, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: S3ClientConfig) => { + return { + apiVersion: "2006-03-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? getAwsChunkedEncodingStream, + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "S3", + signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion, + signingEscapePath: config?.signingEscapePath ?? false, + urlParser: config?.urlParser ?? parseUrl, + useArnRegion: config?.useArnRegion ?? false, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-s3/src/runtimeConfig.ts b/clients/client-s3/src/runtimeConfig.ts index 39f00a8144aab..c6466b38d2114 100644 --- a/clients/client-s3/src/runtimeConfig.ts +++ b/clients/client-s3/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { NODE_USE_ARN_REGION_CONFIG_OPTIONS } from "@aws-sdk/middleware-bucket-endpoint"; import { ChecksumConstructor as __ChecksumConstructor, HashConstructor as __HashConstructor } from "@aws-sdk/types"; @@ -35,6 +36,7 @@ export const getRuntimeConfig = (config: S3ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-s3outposts/package.json b/clients/client-s3outposts/package.json index cbc911a8f03eb..bae8c0726a4cb 100644 --- a/clients/client-s3outposts/package.json +++ b/clients/client-s3outposts/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-s3outposts/src/runtimeConfig.shared.ts b/clients/client-s3outposts/src/runtimeConfig.shared.ts index cdd1d4b64b4bf..980b8669e521f 100644 --- a/clients/client-s3outposts/src/runtimeConfig.shared.ts +++ b/clients/client-s3outposts/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { S3OutpostsClientConfig } from "./S3OutpostsClient"; /** * @internal */ -export const getRuntimeConfig = (config: S3OutpostsClientConfig) => ({ - apiVersion: "2017-07-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "S3Outposts", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: S3OutpostsClientConfig) => { + return { + apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "S3Outposts", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-s3outposts/src/runtimeConfig.ts b/clients/client-s3outposts/src/runtimeConfig.ts index 86ed75754012b..e198fdf764737 100644 --- a/clients/client-s3outposts/src/runtimeConfig.ts +++ b/clients/client-s3outposts/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: S3OutpostsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sagemaker-a2i-runtime/package.json b/clients/client-sagemaker-a2i-runtime/package.json index eb42241cce247..2513bfa7a7589 100644 --- a/clients/client-sagemaker-a2i-runtime/package.json +++ b/clients/client-sagemaker-a2i-runtime/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.shared.ts b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.shared.ts index 634708da3b610..5d4476f01be07 100644 --- a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SageMakerA2IRuntimeClientConfig } from "./SageMakerA2IRuntimeClient"; /** * @internal */ -export const getRuntimeConfig = (config: SageMakerA2IRuntimeClientConfig) => ({ - apiVersion: "2019-11-07", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SageMaker A2I Runtime", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SageMakerA2IRuntimeClientConfig) => { + return { + apiVersion: "2019-11-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SageMaker A2I Runtime", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts index 691d073f1cdc3..85b0bfa82ec6e 100644 --- a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts +++ b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SageMakerA2IRuntimeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sagemaker-edge/package.json b/clients/client-sagemaker-edge/package.json index 2550c677018b2..3026e11234c1d 100644 --- a/clients/client-sagemaker-edge/package.json +++ b/clients/client-sagemaker-edge/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sagemaker-edge/src/runtimeConfig.shared.ts b/clients/client-sagemaker-edge/src/runtimeConfig.shared.ts index 370f6bf79cea1..0962391d65d2a 100644 --- a/clients/client-sagemaker-edge/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker-edge/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient"; /** * @internal */ -export const getRuntimeConfig = (config: SagemakerEdgeClientConfig) => ({ - apiVersion: "2020-09-23", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Sagemaker Edge", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SagemakerEdgeClientConfig) => { + return { + apiVersion: "2020-09-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Sagemaker Edge", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sagemaker-edge/src/runtimeConfig.ts b/clients/client-sagemaker-edge/src/runtimeConfig.ts index 8abaa71cc7cad..88697db4d368a 100644 --- a/clients/client-sagemaker-edge/src/runtimeConfig.ts +++ b/clients/client-sagemaker-edge/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SagemakerEdgeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sagemaker-featurestore-runtime/package.json b/clients/client-sagemaker-featurestore-runtime/package.json index aa29644cf3bef..57564116e8f14 100644 --- a/clients/client-sagemaker-featurestore-runtime/package.json +++ b/clients/client-sagemaker-featurestore-runtime/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.shared.ts b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.shared.ts index dd6b6ce077508..df48a11ab17af 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SageMakerFeatureStoreRuntimeClientConfig } from "./SageMakerFeatureStor /** * @internal */ -export const getRuntimeConfig = (config: SageMakerFeatureStoreRuntimeClientConfig) => ({ - apiVersion: "2020-07-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SageMaker FeatureStore Runtime", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SageMakerFeatureStoreRuntimeClientConfig) => { + return { + apiVersion: "2020-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SageMaker FeatureStore Runtime", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts index f16c121566f86..9ec4fbb089dde 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SageMakerFeatureStoreRuntimeClientConfi const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sagemaker-geospatial/src/runtimeConfig.shared.ts b/clients/client-sagemaker-geospatial/src/runtimeConfig.shared.ts index cb7a936f4e0f2..18907fecd3bc8 100644 --- a/clients/client-sagemaker-geospatial/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker-geospatial/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { SageMakerGeospatialClientConfig } from "./SageMakerGeospatialClient"; /** * @internal */ -export const getRuntimeConfig = (config: SageMakerGeospatialClientConfig) => ({ - apiVersion: "2020-05-27", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "SageMaker Geospatial", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SageMakerGeospatialClientConfig) => { + return { + apiVersion: "2020-05-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "SageMaker Geospatial", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sagemaker-geospatial/src/runtimeConfig.ts b/clients/client-sagemaker-geospatial/src/runtimeConfig.ts index db7f2c25313c3..ca50814b04a21 100644 --- a/clients/client-sagemaker-geospatial/src/runtimeConfig.ts +++ b/clients/client-sagemaker-geospatial/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SageMakerGeospatialClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sagemaker-metrics/package.json b/clients/client-sagemaker-metrics/package.json index 5a37bd0c1c086..41dbe22c1f3ad 100644 --- a/clients/client-sagemaker-metrics/package.json +++ b/clients/client-sagemaker-metrics/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sagemaker-metrics/src/runtimeConfig.shared.ts b/clients/client-sagemaker-metrics/src/runtimeConfig.shared.ts index ecd7d130a33cf..c48d340686bad 100644 --- a/clients/client-sagemaker-metrics/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker-metrics/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SageMakerMetricsClientConfig } from "./SageMakerMetricsClient"; /** * @internal */ -export const getRuntimeConfig = (config: SageMakerMetricsClientConfig) => ({ - apiVersion: "2022-09-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SageMaker Metrics", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SageMakerMetricsClientConfig) => { + return { + apiVersion: "2022-09-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SageMaker Metrics", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sagemaker-metrics/src/runtimeConfig.ts b/clients/client-sagemaker-metrics/src/runtimeConfig.ts index 6b63470270399..8fdbdb1677817 100644 --- a/clients/client-sagemaker-metrics/src/runtimeConfig.ts +++ b/clients/client-sagemaker-metrics/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SageMakerMetricsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sagemaker-runtime/package.json b/clients/client-sagemaker-runtime/package.json index 87e6a731fb222..0c4e7e85bb38a 100644 --- a/clients/client-sagemaker-runtime/package.json +++ b/clients/client-sagemaker-runtime/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sagemaker-runtime/src/runtimeConfig.shared.ts b/clients/client-sagemaker-runtime/src/runtimeConfig.shared.ts index 2403fd2d076b8..f01b0c5eee9cc 100644 --- a/clients/client-sagemaker-runtime/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker-runtime/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient"; /** * @internal */ -export const getRuntimeConfig = (config: SageMakerRuntimeClientConfig) => ({ - apiVersion: "2017-05-13", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SageMaker Runtime", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SageMakerRuntimeClientConfig) => { + return { + apiVersion: "2017-05-13", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SageMaker Runtime", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sagemaker-runtime/src/runtimeConfig.ts b/clients/client-sagemaker-runtime/src/runtimeConfig.ts index b9e2904456681..d92b6bd6a103b 100644 --- a/clients/client-sagemaker-runtime/src/runtimeConfig.ts +++ b/clients/client-sagemaker-runtime/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -32,6 +33,7 @@ export const getRuntimeConfig = (config: SageMakerRuntimeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sagemaker/src/runtimeConfig.shared.ts b/clients/client-sagemaker/src/runtimeConfig.shared.ts index 55cda6e5e5eae..9e2cd085c76ab 100644 --- a/clients/client-sagemaker/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SageMakerClientConfig } from "./SageMakerClient"; /** * @internal */ -export const getRuntimeConfig = (config: SageMakerClientConfig) => ({ - apiVersion: "2017-07-24", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SageMaker", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SageMakerClientConfig) => { + return { + apiVersion: "2017-07-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SageMaker", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sagemaker/src/runtimeConfig.ts b/clients/client-sagemaker/src/runtimeConfig.ts index 3d22759dfc8fc..12a497ad521ac 100644 --- a/clients/client-sagemaker/src/runtimeConfig.ts +++ b/clients/client-sagemaker/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SageMakerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-savingsplans/package.json b/clients/client-savingsplans/package.json index 1e66e84a0e883..d28a88edcd395 100644 --- a/clients/client-savingsplans/package.json +++ b/clients/client-savingsplans/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-savingsplans/src/runtimeConfig.shared.ts b/clients/client-savingsplans/src/runtimeConfig.shared.ts index 3c7aece2e10cc..acea5c6d0320d 100644 --- a/clients/client-savingsplans/src/runtimeConfig.shared.ts +++ b/clients/client-savingsplans/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SavingsplansClientConfig } from "./SavingsplansClient"; /** * @internal */ -export const getRuntimeConfig = (config: SavingsplansClientConfig) => ({ - apiVersion: "2019-06-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "savingsplans", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SavingsplansClientConfig) => { + return { + apiVersion: "2019-06-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "savingsplans", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-savingsplans/src/runtimeConfig.ts b/clients/client-savingsplans/src/runtimeConfig.ts index c928d26a8ff95..abc1239e7f472 100644 --- a/clients/client-savingsplans/src/runtimeConfig.ts +++ b/clients/client-savingsplans/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SavingsplansClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-scheduler/package.json b/clients/client-scheduler/package.json index 2350540e88cc3..ac981a6774cbd 100644 --- a/clients/client-scheduler/package.json +++ b/clients/client-scheduler/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-scheduler/src/runtimeConfig.shared.ts b/clients/client-scheduler/src/runtimeConfig.shared.ts index bca4b0be84d24..ed49953a09a24 100644 --- a/clients/client-scheduler/src/runtimeConfig.shared.ts +++ b/clients/client-scheduler/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SchedulerClientConfig } from "./SchedulerClient"; /** * @internal */ -export const getRuntimeConfig = (config: SchedulerClientConfig) => ({ - apiVersion: "2021-06-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Scheduler", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SchedulerClientConfig) => { + return { + apiVersion: "2021-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Scheduler", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-scheduler/src/runtimeConfig.ts b/clients/client-scheduler/src/runtimeConfig.ts index 8165fd30a2be9..949d10ba6b996 100644 --- a/clients/client-scheduler/src/runtimeConfig.ts +++ b/clients/client-scheduler/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SchedulerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-schemas/package.json b/clients/client-schemas/package.json index 950e15a4333e4..aa14e2e48ea39 100644 --- a/clients/client-schemas/package.json +++ b/clients/client-schemas/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-schemas/src/runtimeConfig.shared.ts b/clients/client-schemas/src/runtimeConfig.shared.ts index cf8ffd3481653..5f11c2b60e51b 100644 --- a/clients/client-schemas/src/runtimeConfig.shared.ts +++ b/clients/client-schemas/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SchemasClientConfig } from "./SchemasClient"; /** * @internal */ -export const getRuntimeConfig = (config: SchemasClientConfig) => ({ - apiVersion: "2019-12-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "schemas", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SchemasClientConfig) => { + return { + apiVersion: "2019-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "schemas", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-schemas/src/runtimeConfig.ts b/clients/client-schemas/src/runtimeConfig.ts index 28d5fa68ab262..f04b5d58a472b 100644 --- a/clients/client-schemas/src/runtimeConfig.ts +++ b/clients/client-schemas/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SchemasClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-secrets-manager/package.json b/clients/client-secrets-manager/package.json index a227447e30cd0..87d531152f363 100644 --- a/clients/client-secrets-manager/package.json +++ b/clients/client-secrets-manager/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-secrets-manager/src/runtimeConfig.shared.ts b/clients/client-secrets-manager/src/runtimeConfig.shared.ts index 8430fb7ef65f2..94b248235476c 100644 --- a/clients/client-secrets-manager/src/runtimeConfig.shared.ts +++ b/clients/client-secrets-manager/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SecretsManagerClientConfig } from "./SecretsManagerClient"; /** * @internal */ -export const getRuntimeConfig = (config: SecretsManagerClientConfig) => ({ - apiVersion: "2017-10-17", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Secrets Manager", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SecretsManagerClientConfig) => { + return { + apiVersion: "2017-10-17", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Secrets Manager", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-secrets-manager/src/runtimeConfig.ts b/clients/client-secrets-manager/src/runtimeConfig.ts index 2d24578822582..6a8f0adbfd454 100644 --- a/clients/client-secrets-manager/src/runtimeConfig.ts +++ b/clients/client-secrets-manager/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SecretsManagerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-securityhub/package.json b/clients/client-securityhub/package.json index 045672701de96..9a3ae1d35074e 100644 --- a/clients/client-securityhub/package.json +++ b/clients/client-securityhub/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-securityhub/src/runtimeConfig.shared.ts b/clients/client-securityhub/src/runtimeConfig.shared.ts index 3f5c417b2493c..206858c2e399c 100644 --- a/clients/client-securityhub/src/runtimeConfig.shared.ts +++ b/clients/client-securityhub/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SecurityHubClientConfig } from "./SecurityHubClient"; /** * @internal */ -export const getRuntimeConfig = (config: SecurityHubClientConfig) => ({ - apiVersion: "2018-10-26", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SecurityHub", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SecurityHubClientConfig) => { + return { + apiVersion: "2018-10-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SecurityHub", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-securityhub/src/runtimeConfig.ts b/clients/client-securityhub/src/runtimeConfig.ts index 6c030d3bc05b1..48c2ac87f73e1 100644 --- a/clients/client-securityhub/src/runtimeConfig.ts +++ b/clients/client-securityhub/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SecurityHubClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-securitylake/package.json b/clients/client-securitylake/package.json index 0ad454af4f0fe..2c44f1dc1f3be 100644 --- a/clients/client-securitylake/package.json +++ b/clients/client-securitylake/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-securitylake/src/runtimeConfig.shared.ts b/clients/client-securitylake/src/runtimeConfig.shared.ts index 43a6b25ee5c4e..daa4e56fb46bb 100644 --- a/clients/client-securitylake/src/runtimeConfig.shared.ts +++ b/clients/client-securitylake/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SecurityLakeClientConfig } from "./SecurityLakeClient"; /** * @internal */ -export const getRuntimeConfig = (config: SecurityLakeClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SecurityLake", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SecurityLakeClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SecurityLake", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-securitylake/src/runtimeConfig.ts b/clients/client-securitylake/src/runtimeConfig.ts index 714855cc5e552..c7c5c713ba836 100644 --- a/clients/client-securitylake/src/runtimeConfig.ts +++ b/clients/client-securitylake/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SecurityLakeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-serverlessapplicationrepository/package.json b/clients/client-serverlessapplicationrepository/package.json index 488fab5aa2402..78fc5ffeb6bee 100644 --- a/clients/client-serverlessapplicationrepository/package.json +++ b/clients/client-serverlessapplicationrepository/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-serverlessapplicationrepository/src/runtimeConfig.shared.ts b/clients/client-serverlessapplicationrepository/src/runtimeConfig.shared.ts index c26300936cab9..228ca78fa7935 100644 --- a/clients/client-serverlessapplicationrepository/src/runtimeConfig.shared.ts +++ b/clients/client-serverlessapplicationrepository/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ServerlessApplicationRepositoryClientConfig } from "./ServerlessApplica /** * @internal */ -export const getRuntimeConfig = (config: ServerlessApplicationRepositoryClientConfig) => ({ - apiVersion: "2017-09-08", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ServerlessApplicationRepository", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ServerlessApplicationRepositoryClientConfig) => { + return { + apiVersion: "2017-09-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ServerlessApplicationRepository", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts b/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts index 65abe4e3f8066..693310f83064f 100644 --- a/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts +++ b/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ServerlessApplicationRepositoryClientCo const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-service-catalog-appregistry/package.json b/clients/client-service-catalog-appregistry/package.json index 74b825ef0ac73..4f970bd5a843e 100644 --- a/clients/client-service-catalog-appregistry/package.json +++ b/clients/client-service-catalog-appregistry/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-service-catalog-appregistry/src/runtimeConfig.shared.ts b/clients/client-service-catalog-appregistry/src/runtimeConfig.shared.ts index 2c02c52ec11a9..77ca718740653 100644 --- a/clients/client-service-catalog-appregistry/src/runtimeConfig.shared.ts +++ b/clients/client-service-catalog-appregistry/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ServiceCatalogAppRegistryClientConfig } from "./ServiceCatalogAppRegist /** * @internal */ -export const getRuntimeConfig = (config: ServiceCatalogAppRegistryClientConfig) => ({ - apiVersion: "2020-06-24", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Service Catalog AppRegistry", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ServiceCatalogAppRegistryClientConfig) => { + return { + apiVersion: "2020-06-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Service Catalog AppRegistry", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-service-catalog-appregistry/src/runtimeConfig.ts b/clients/client-service-catalog-appregistry/src/runtimeConfig.ts index f45293c08650d..745c51456796f 100644 --- a/clients/client-service-catalog-appregistry/src/runtimeConfig.ts +++ b/clients/client-service-catalog-appregistry/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ServiceCatalogAppRegistryClientConfig) const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-service-catalog/package.json b/clients/client-service-catalog/package.json index 390ea9e47fb20..5ba6b8e2c54e4 100644 --- a/clients/client-service-catalog/package.json +++ b/clients/client-service-catalog/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-service-catalog/src/runtimeConfig.shared.ts b/clients/client-service-catalog/src/runtimeConfig.shared.ts index 867ce9f6ae60e..6a47c6ab5e0ec 100644 --- a/clients/client-service-catalog/src/runtimeConfig.shared.ts +++ b/clients/client-service-catalog/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ServiceCatalogClientConfig } from "./ServiceCatalogClient"; /** * @internal */ -export const getRuntimeConfig = (config: ServiceCatalogClientConfig) => ({ - apiVersion: "2015-12-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Service Catalog", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ServiceCatalogClientConfig) => { + return { + apiVersion: "2015-12-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Service Catalog", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-service-catalog/src/runtimeConfig.ts b/clients/client-service-catalog/src/runtimeConfig.ts index fee35fb22ac6e..1be03048b9390 100644 --- a/clients/client-service-catalog/src/runtimeConfig.ts +++ b/clients/client-service-catalog/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ServiceCatalogClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-service-quotas/package.json b/clients/client-service-quotas/package.json index 7e08173c41115..a105283c10c7c 100644 --- a/clients/client-service-quotas/package.json +++ b/clients/client-service-quotas/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-service-quotas/src/runtimeConfig.shared.ts b/clients/client-service-quotas/src/runtimeConfig.shared.ts index baacbdf316c65..636b3d52dc60f 100644 --- a/clients/client-service-quotas/src/runtimeConfig.shared.ts +++ b/clients/client-service-quotas/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ServiceQuotasClientConfig } from "./ServiceQuotasClient"; /** * @internal */ -export const getRuntimeConfig = (config: ServiceQuotasClientConfig) => ({ - apiVersion: "2019-06-24", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Service Quotas", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ServiceQuotasClientConfig) => { + return { + apiVersion: "2019-06-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Service Quotas", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-service-quotas/src/runtimeConfig.ts b/clients/client-service-quotas/src/runtimeConfig.ts index 7399c4b44aa16..ad75e0bab7ad2 100644 --- a/clients/client-service-quotas/src/runtimeConfig.ts +++ b/clients/client-service-quotas/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ServiceQuotasClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-servicediscovery/package.json b/clients/client-servicediscovery/package.json index e48a1cc40432b..f13a069f68350 100644 --- a/clients/client-servicediscovery/package.json +++ b/clients/client-servicediscovery/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-servicediscovery/src/runtimeConfig.shared.ts b/clients/client-servicediscovery/src/runtimeConfig.shared.ts index df31dd44b5664..d2df61f6d93ec 100644 --- a/clients/client-servicediscovery/src/runtimeConfig.shared.ts +++ b/clients/client-servicediscovery/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ServiceDiscoveryClientConfig } from "./ServiceDiscoveryClient"; /** * @internal */ -export const getRuntimeConfig = (config: ServiceDiscoveryClientConfig) => ({ - apiVersion: "2017-03-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "ServiceDiscovery", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ServiceDiscoveryClientConfig) => { + return { + apiVersion: "2017-03-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "ServiceDiscovery", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-servicediscovery/src/runtimeConfig.ts b/clients/client-servicediscovery/src/runtimeConfig.ts index 39ae81d491d7b..5930c55f0a40d 100644 --- a/clients/client-servicediscovery/src/runtimeConfig.ts +++ b/clients/client-servicediscovery/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ServiceDiscoveryClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ses/package.json b/clients/client-ses/package.json index a77d98568811a..21db4454598f9 100644 --- a/clients/client-ses/package.json +++ b/clients/client-ses/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ses/src/runtimeConfig.shared.ts b/clients/client-ses/src/runtimeConfig.shared.ts index 8efb6be34ab2f..61daaa94d7db4 100644 --- a/clients/client-ses/src/runtimeConfig.shared.ts +++ b/clients/client-ses/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SESClientConfig } from "./SESClient"; /** * @internal */ -export const getRuntimeConfig = (config: SESClientConfig) => ({ - apiVersion: "2010-12-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SES", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SESClientConfig) => { + return { + apiVersion: "2010-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SES", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ses/src/runtimeConfig.ts b/clients/client-ses/src/runtimeConfig.ts index 47ebe6ba601e4..9d47693e4fe2d 100644 --- a/clients/client-ses/src/runtimeConfig.ts +++ b/clients/client-ses/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SESClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sesv2/package.json b/clients/client-sesv2/package.json index 51283fb3d970d..cd9893fed5b85 100644 --- a/clients/client-sesv2/package.json +++ b/clients/client-sesv2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sesv2/src/runtimeConfig.shared.ts b/clients/client-sesv2/src/runtimeConfig.shared.ts index 3f68c2ffd0eaf..236882a0fa6e1 100644 --- a/clients/client-sesv2/src/runtimeConfig.shared.ts +++ b/clients/client-sesv2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SESv2ClientConfig } from "./SESv2Client"; /** * @internal */ -export const getRuntimeConfig = (config: SESv2ClientConfig) => ({ - apiVersion: "2019-09-27", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SESv2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SESv2ClientConfig) => { + return { + apiVersion: "2019-09-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SESv2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sesv2/src/runtimeConfig.ts b/clients/client-sesv2/src/runtimeConfig.ts index f8186317ea2b2..e6b7442fa13a3 100644 --- a/clients/client-sesv2/src/runtimeConfig.ts +++ b/clients/client-sesv2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SESv2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sfn/package.json b/clients/client-sfn/package.json index 230bfb5e42165..7e74e91c92869 100644 --- a/clients/client-sfn/package.json +++ b/clients/client-sfn/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sfn/src/runtimeConfig.shared.ts b/clients/client-sfn/src/runtimeConfig.shared.ts index e5fa345a59087..b0055dd79253b 100644 --- a/clients/client-sfn/src/runtimeConfig.shared.ts +++ b/clients/client-sfn/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SFNClientConfig } from "./SFNClient"; /** * @internal */ -export const getRuntimeConfig = (config: SFNClientConfig) => ({ - apiVersion: "2016-11-23", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SFN", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SFNClientConfig) => { + return { + apiVersion: "2016-11-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SFN", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sfn/src/runtimeConfig.ts b/clients/client-sfn/src/runtimeConfig.ts index e161a169df51f..adf1db62431f4 100644 --- a/clients/client-sfn/src/runtimeConfig.ts +++ b/clients/client-sfn/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SFNClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-shield/package.json b/clients/client-shield/package.json index 1b64040b71db2..e1ab8b43ffe8d 100644 --- a/clients/client-shield/package.json +++ b/clients/client-shield/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-shield/src/runtimeConfig.shared.ts b/clients/client-shield/src/runtimeConfig.shared.ts index 30722c8cacd16..9cd26d7832ce3 100644 --- a/clients/client-shield/src/runtimeConfig.shared.ts +++ b/clients/client-shield/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { ShieldClientConfig } from "./ShieldClient"; /** * @internal */ -export const getRuntimeConfig = (config: ShieldClientConfig) => ({ - apiVersion: "2016-06-02", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Shield", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: ShieldClientConfig) => { + return { + apiVersion: "2016-06-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Shield", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-shield/src/runtimeConfig.ts b/clients/client-shield/src/runtimeConfig.ts index 67bde86e147ca..b04972891cf82 100644 --- a/clients/client-shield/src/runtimeConfig.ts +++ b/clients/client-shield/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: ShieldClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-signer/package.json b/clients/client-signer/package.json index d2e7aff5e8a78..46ac14f516979 100644 --- a/clients/client-signer/package.json +++ b/clients/client-signer/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-signer/src/runtimeConfig.shared.ts b/clients/client-signer/src/runtimeConfig.shared.ts index b622416deb48a..2ae9e6821e738 100644 --- a/clients/client-signer/src/runtimeConfig.shared.ts +++ b/clients/client-signer/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SignerClientConfig } from "./SignerClient"; /** * @internal */ -export const getRuntimeConfig = (config: SignerClientConfig) => ({ - apiVersion: "2017-08-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "signer", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SignerClientConfig) => { + return { + apiVersion: "2017-08-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "signer", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-signer/src/runtimeConfig.ts b/clients/client-signer/src/runtimeConfig.ts index 1e871e1a972db..219731a669a7f 100644 --- a/clients/client-signer/src/runtimeConfig.ts +++ b/clients/client-signer/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SignerClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-simspaceweaver/package.json b/clients/client-simspaceweaver/package.json index a8b87fb62eb51..4d026cdf568a9 100644 --- a/clients/client-simspaceweaver/package.json +++ b/clients/client-simspaceweaver/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-simspaceweaver/src/runtimeConfig.shared.ts b/clients/client-simspaceweaver/src/runtimeConfig.shared.ts index 59a4794e79359..01452562b9421 100644 --- a/clients/client-simspaceweaver/src/runtimeConfig.shared.ts +++ b/clients/client-simspaceweaver/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SimSpaceWeaverClientConfig } from "./SimSpaceWeaverClient"; /** * @internal */ -export const getRuntimeConfig = (config: SimSpaceWeaverClientConfig) => ({ - apiVersion: "2022-10-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SimSpaceWeaver", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SimSpaceWeaverClientConfig) => { + return { + apiVersion: "2022-10-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SimSpaceWeaver", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-simspaceweaver/src/runtimeConfig.ts b/clients/client-simspaceweaver/src/runtimeConfig.ts index 156c1b822f5f4..9846edb471988 100644 --- a/clients/client-simspaceweaver/src/runtimeConfig.ts +++ b/clients/client-simspaceweaver/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SimSpaceWeaverClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sms/package.json b/clients/client-sms/package.json index 76967b1d6b2d6..e619b143c39b2 100644 --- a/clients/client-sms/package.json +++ b/clients/client-sms/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sms/src/runtimeConfig.shared.ts b/clients/client-sms/src/runtimeConfig.shared.ts index e00b421b5556a..1b49826ec4299 100644 --- a/clients/client-sms/src/runtimeConfig.shared.ts +++ b/clients/client-sms/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SMSClientConfig } from "./SMSClient"; /** * @internal */ -export const getRuntimeConfig = (config: SMSClientConfig) => ({ - apiVersion: "2016-10-24", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SMS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SMSClientConfig) => { + return { + apiVersion: "2016-10-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SMS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sms/src/runtimeConfig.ts b/clients/client-sms/src/runtimeConfig.ts index d49f1a9e3506d..dd1016ec5b4cf 100644 --- a/clients/client-sms/src/runtimeConfig.ts +++ b/clients/client-sms/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SMSClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-snow-device-management/package.json b/clients/client-snow-device-management/package.json index 12a86b29dd6ce..b4ebaa8cceac9 100644 --- a/clients/client-snow-device-management/package.json +++ b/clients/client-snow-device-management/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-snow-device-management/src/runtimeConfig.shared.ts b/clients/client-snow-device-management/src/runtimeConfig.shared.ts index 39e08e998a176..01ef9fc7d4828 100644 --- a/clients/client-snow-device-management/src/runtimeConfig.shared.ts +++ b/clients/client-snow-device-management/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SnowDeviceManagementClientConfig } from "./SnowDeviceManagementClient"; /** * @internal */ -export const getRuntimeConfig = (config: SnowDeviceManagementClientConfig) => ({ - apiVersion: "2021-08-04", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Snow Device Management", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SnowDeviceManagementClientConfig) => { + return { + apiVersion: "2021-08-04", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Snow Device Management", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-snow-device-management/src/runtimeConfig.ts b/clients/client-snow-device-management/src/runtimeConfig.ts index e6fc33cd46229..e535d0cf566b8 100644 --- a/clients/client-snow-device-management/src/runtimeConfig.ts +++ b/clients/client-snow-device-management/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SnowDeviceManagementClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-snowball/package.json b/clients/client-snowball/package.json index 2620389186141..cd003648cdf78 100644 --- a/clients/client-snowball/package.json +++ b/clients/client-snowball/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-snowball/src/runtimeConfig.shared.ts b/clients/client-snowball/src/runtimeConfig.shared.ts index 3d7b2818da57a..c7dedd622476c 100644 --- a/clients/client-snowball/src/runtimeConfig.shared.ts +++ b/clients/client-snowball/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SnowballClientConfig } from "./SnowballClient"; /** * @internal */ -export const getRuntimeConfig = (config: SnowballClientConfig) => ({ - apiVersion: "2016-06-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Snowball", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SnowballClientConfig) => { + return { + apiVersion: "2016-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Snowball", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-snowball/src/runtimeConfig.ts b/clients/client-snowball/src/runtimeConfig.ts index 715038445284a..292a941236112 100644 --- a/clients/client-snowball/src/runtimeConfig.ts +++ b/clients/client-snowball/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SnowballClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sns/package.json b/clients/client-sns/package.json index 7ffa78d1fd94a..773ae40c5df12 100644 --- a/clients/client-sns/package.json +++ b/clients/client-sns/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sns/src/runtimeConfig.shared.ts b/clients/client-sns/src/runtimeConfig.shared.ts index 942c5218282f6..0d8936c9a50f1 100644 --- a/clients/client-sns/src/runtimeConfig.shared.ts +++ b/clients/client-sns/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SNSClientConfig } from "./SNSClient"; /** * @internal */ -export const getRuntimeConfig = (config: SNSClientConfig) => ({ - apiVersion: "2010-03-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SNS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SNSClientConfig) => { + return { + apiVersion: "2010-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SNS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sns/src/runtimeConfig.ts b/clients/client-sns/src/runtimeConfig.ts index ab60f2ff09960..b69cde7428a56 100644 --- a/clients/client-sns/src/runtimeConfig.ts +++ b/clients/client-sns/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SNSClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sqs/package.json b/clients/client-sqs/package.json index 9794b44ca8425..19cceced0bb84 100644 --- a/clients/client-sqs/package.json +++ b/clients/client-sqs/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sqs/src/runtimeConfig.shared.ts b/clients/client-sqs/src/runtimeConfig.shared.ts index d0c057936a682..6027dab48422f 100644 --- a/clients/client-sqs/src/runtimeConfig.shared.ts +++ b/clients/client-sqs/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SQSClientConfig } from "./SQSClient"; /** * @internal */ -export const getRuntimeConfig = (config: SQSClientConfig) => ({ - apiVersion: "2012-11-05", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SQS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SQSClientConfig) => { + return { + apiVersion: "2012-11-05", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SQS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sqs/src/runtimeConfig.ts b/clients/client-sqs/src/runtimeConfig.ts index bf95b24593c0d..9c2cb5cbf0f2e 100644 --- a/clients/client-sqs/src/runtimeConfig.ts +++ b/clients/client-sqs/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -32,6 +33,7 @@ export const getRuntimeConfig = (config: SQSClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ssm-contacts/package.json b/clients/client-ssm-contacts/package.json index fdefb395e4aa7..30fd8c70e081d 100644 --- a/clients/client-ssm-contacts/package.json +++ b/clients/client-ssm-contacts/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ssm-contacts/src/runtimeConfig.shared.ts b/clients/client-ssm-contacts/src/runtimeConfig.shared.ts index 2530ff8752d70..c17db29da6ad4 100644 --- a/clients/client-ssm-contacts/src/runtimeConfig.shared.ts +++ b/clients/client-ssm-contacts/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SSMContactsClientConfig } from "./SSMContactsClient"; /** * @internal */ -export const getRuntimeConfig = (config: SSMContactsClientConfig) => ({ - apiVersion: "2021-05-03", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSM Contacts", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SSMContactsClientConfig) => { + return { + apiVersion: "2021-05-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SSM Contacts", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ssm-contacts/src/runtimeConfig.ts b/clients/client-ssm-contacts/src/runtimeConfig.ts index d6f67f4914d67..acef4bf233527 100644 --- a/clients/client-ssm-contacts/src/runtimeConfig.ts +++ b/clients/client-ssm-contacts/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SSMContactsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ssm-incidents/src/runtimeConfig.shared.ts b/clients/client-ssm-incidents/src/runtimeConfig.shared.ts index bd23244c578d4..413614739ea9f 100644 --- a/clients/client-ssm-incidents/src/runtimeConfig.shared.ts +++ b/clients/client-ssm-incidents/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SSMIncidentsClientConfig } from "./SSMIncidentsClient"; /** * @internal */ -export const getRuntimeConfig = (config: SSMIncidentsClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSM Incidents", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SSMIncidentsClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SSM Incidents", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ssm-incidents/src/runtimeConfig.ts b/clients/client-ssm-incidents/src/runtimeConfig.ts index 611e7eb8a8771..38882a157657f 100644 --- a/clients/client-ssm-incidents/src/runtimeConfig.ts +++ b/clients/client-ssm-incidents/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SSMIncidentsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ssm-sap/package.json b/clients/client-ssm-sap/package.json index 2412eb79d8587..cc6fa38b51bd7 100644 --- a/clients/client-ssm-sap/package.json +++ b/clients/client-ssm-sap/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ssm-sap/src/runtimeConfig.shared.ts b/clients/client-ssm-sap/src/runtimeConfig.shared.ts index c66232fe9091a..32806db8d3d20 100644 --- a/clients/client-ssm-sap/src/runtimeConfig.shared.ts +++ b/clients/client-ssm-sap/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SsmSapClientConfig } from "./SsmSapClient"; /** * @internal */ -export const getRuntimeConfig = (config: SsmSapClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Ssm Sap", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SsmSapClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Ssm Sap", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ssm-sap/src/runtimeConfig.ts b/clients/client-ssm-sap/src/runtimeConfig.ts index e513e233fee1d..7b5d96b9ce946 100644 --- a/clients/client-ssm-sap/src/runtimeConfig.ts +++ b/clients/client-ssm-sap/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SsmSapClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-ssm/package.json b/clients/client-ssm/package.json index 495db85b1bd26..eb5528f2c68f5 100644 --- a/clients/client-ssm/package.json +++ b/clients/client-ssm/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-ssm/src/runtimeConfig.shared.ts b/clients/client-ssm/src/runtimeConfig.shared.ts index 18784871f8420..1fbd1313ba0ac 100644 --- a/clients/client-ssm/src/runtimeConfig.shared.ts +++ b/clients/client-ssm/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SSMClientConfig } from "./SSMClient"; /** * @internal */ -export const getRuntimeConfig = (config: SSMClientConfig) => ({ - apiVersion: "2014-11-06", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSM", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SSMClientConfig) => { + return { + apiVersion: "2014-11-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SSM", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-ssm/src/runtimeConfig.ts b/clients/client-ssm/src/runtimeConfig.ts index fb5153b1f058f..548df8d5382da 100644 --- a/clients/client-ssm/src/runtimeConfig.ts +++ b/clients/client-ssm/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SSMClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sso-admin/package.json b/clients/client-sso-admin/package.json index 1482d804e63a2..118899ddcfe72 100644 --- a/clients/client-sso-admin/package.json +++ b/clients/client-sso-admin/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sso-admin/src/runtimeConfig.shared.ts b/clients/client-sso-admin/src/runtimeConfig.shared.ts index ad35bd3e1e057..6fc94e3896a00 100644 --- a/clients/client-sso-admin/src/runtimeConfig.shared.ts +++ b/clients/client-sso-admin/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SSOAdminClientConfig } from "./SSOAdminClient"; /** * @internal */ -export const getRuntimeConfig = (config: SSOAdminClientConfig) => ({ - apiVersion: "2020-07-20", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSO Admin", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SSOAdminClientConfig) => { + return { + apiVersion: "2020-07-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SSO Admin", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sso-admin/src/runtimeConfig.ts b/clients/client-sso-admin/src/runtimeConfig.ts index 43b7d1f0e649d..8e9851ab5ad3f 100644 --- a/clients/client-sso-admin/src/runtimeConfig.ts +++ b/clients/client-sso-admin/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SSOAdminClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sso-oidc/package.json b/clients/client-sso-oidc/package.json index c04df6f86d450..0e60babbcfa8f 100644 --- a/clients/client-sso-oidc/package.json +++ b/clients/client-sso-oidc/package.json @@ -21,6 +21,7 @@ "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", "@aws-sdk/middleware-recursion-detection": "*", diff --git a/clients/client-sso-oidc/src/runtimeConfig.shared.ts b/clients/client-sso-oidc/src/runtimeConfig.shared.ts index b541acb1476d8..fb6450c97f86a 100644 --- a/clients/client-sso-oidc/src/runtimeConfig.shared.ts +++ b/clients/client-sso-oidc/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SSOOIDCClientConfig } from "./SSOOIDCClient"; /** * @internal */ -export const getRuntimeConfig = (config: SSOOIDCClientConfig) => ({ - apiVersion: "2019-06-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSO OIDC", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SSOOIDCClientConfig) => { + return { + apiVersion: "2019-06-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SSO OIDC", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sso-oidc/src/runtimeConfig.ts b/clients/client-sso-oidc/src/runtimeConfig.ts index b16782d612740..dfec155fb558e 100644 --- a/clients/client-sso-oidc/src/runtimeConfig.ts +++ b/clients/client-sso-oidc/src/runtimeConfig.ts @@ -2,6 +2,7 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { NODE_REGION_CONFIG_FILE_OPTIONS, @@ -29,6 +30,7 @@ export const getRuntimeConfig = (config: SSOOIDCClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sso/package.json b/clients/client-sso/package.json index bac7f9c3e42e8..eae76e300e463 100644 --- a/clients/client-sso/package.json +++ b/clients/client-sso/package.json @@ -21,6 +21,7 @@ "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", "@aws-sdk/middleware-recursion-detection": "*", diff --git a/clients/client-sso/src/runtimeConfig.shared.ts b/clients/client-sso/src/runtimeConfig.shared.ts index a23663512fedc..99b8afa005609 100644 --- a/clients/client-sso/src/runtimeConfig.shared.ts +++ b/clients/client-sso/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SSOClientConfig } from "./SSOClient"; /** * @internal */ -export const getRuntimeConfig = (config: SSOClientConfig) => ({ - apiVersion: "2019-06-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSO", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SSOClientConfig) => { + return { + apiVersion: "2019-06-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SSO", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sso/src/runtimeConfig.ts b/clients/client-sso/src/runtimeConfig.ts index 2bb1fb9f55e70..408c850c18e69 100644 --- a/clients/client-sso/src/runtimeConfig.ts +++ b/clients/client-sso/src/runtimeConfig.ts @@ -2,6 +2,7 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { NODE_REGION_CONFIG_FILE_OPTIONS, @@ -29,6 +30,7 @@ export const getRuntimeConfig = (config: SSOClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-storage-gateway/package.json b/clients/client-storage-gateway/package.json index e656e54668b29..3ed7d6acf370a 100644 --- a/clients/client-storage-gateway/package.json +++ b/clients/client-storage-gateway/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-storage-gateway/src/runtimeConfig.shared.ts b/clients/client-storage-gateway/src/runtimeConfig.shared.ts index 7d8eb2f4786d9..8189ff81808ff 100644 --- a/clients/client-storage-gateway/src/runtimeConfig.shared.ts +++ b/clients/client-storage-gateway/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { StorageGatewayClientConfig } from "./StorageGatewayClient"; /** * @internal */ -export const getRuntimeConfig = (config: StorageGatewayClientConfig) => ({ - apiVersion: "2013-06-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Storage Gateway", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: StorageGatewayClientConfig) => { + return { + apiVersion: "2013-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Storage Gateway", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-storage-gateway/src/runtimeConfig.ts b/clients/client-storage-gateway/src/runtimeConfig.ts index efe6086b67bea..2f1b314310d38 100644 --- a/clients/client-storage-gateway/src/runtimeConfig.ts +++ b/clients/client-storage-gateway/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: StorageGatewayClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-sts/package.json b/clients/client-sts/package.json index 4287e7a710346..411b967a4a48a 100644 --- a/clients/client-sts/package.json +++ b/clients/client-sts/package.json @@ -23,6 +23,7 @@ "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-sts/src/runtimeConfig.shared.ts b/clients/client-sts/src/runtimeConfig.shared.ts index 1bd2c6baf8fda..46ae21d2c1ce9 100644 --- a/clients/client-sts/src/runtimeConfig.shared.ts +++ b/clients/client-sts/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { STSClientConfig } from "./STSClient"; /** * @internal */ -export const getRuntimeConfig = (config: STSClientConfig) => ({ - apiVersion: "2011-06-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "STS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: STSClientConfig) => { + return { + apiVersion: "2011-06-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "STS", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-sts/src/runtimeConfig.ts b/clients/client-sts/src/runtimeConfig.ts index 32636785c82ce..e36833e164b82 100644 --- a/clients/client-sts/src/runtimeConfig.ts +++ b/clients/client-sts/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "./defaultStsRoleAssumers"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: STSClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-support-app/package.json b/clients/client-support-app/package.json index 0d8b0084ca63e..948cc536d7fab 100644 --- a/clients/client-support-app/package.json +++ b/clients/client-support-app/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-support-app/src/runtimeConfig.shared.ts b/clients/client-support-app/src/runtimeConfig.shared.ts index 6a2e880ef94a9..c3943b9acc2a7 100644 --- a/clients/client-support-app/src/runtimeConfig.shared.ts +++ b/clients/client-support-app/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SupportAppClientConfig } from "./SupportAppClient"; /** * @internal */ -export const getRuntimeConfig = (config: SupportAppClientConfig) => ({ - apiVersion: "2021-08-20", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Support App", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SupportAppClientConfig) => { + return { + apiVersion: "2021-08-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Support App", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-support-app/src/runtimeConfig.ts b/clients/client-support-app/src/runtimeConfig.ts index 4db1f73205ae3..4782def7198af 100644 --- a/clients/client-support-app/src/runtimeConfig.ts +++ b/clients/client-support-app/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SupportAppClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-support/package.json b/clients/client-support/package.json index d02ab2c5fdb69..99a46380a95cf 100644 --- a/clients/client-support/package.json +++ b/clients/client-support/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-support/src/runtimeConfig.shared.ts b/clients/client-support/src/runtimeConfig.shared.ts index e8672320f3092..f5832491018ca 100644 --- a/clients/client-support/src/runtimeConfig.shared.ts +++ b/clients/client-support/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SupportClientConfig } from "./SupportClient"; /** * @internal */ -export const getRuntimeConfig = (config: SupportClientConfig) => ({ - apiVersion: "2013-04-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Support", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SupportClientConfig) => { + return { + apiVersion: "2013-04-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Support", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-support/src/runtimeConfig.ts b/clients/client-support/src/runtimeConfig.ts index c6fefb6768bf5..59f553ca1fad5 100644 --- a/clients/client-support/src/runtimeConfig.ts +++ b/clients/client-support/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SupportClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-swf/package.json b/clients/client-swf/package.json index 24ffdb578a7c8..26d1baac5fb32 100644 --- a/clients/client-swf/package.json +++ b/clients/client-swf/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-swf/src/runtimeConfig.shared.ts b/clients/client-swf/src/runtimeConfig.shared.ts index e212629e6ddab..310f01f9eaf2a 100644 --- a/clients/client-swf/src/runtimeConfig.shared.ts +++ b/clients/client-swf/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SWFClientConfig } from "./SWFClient"; /** * @internal */ -export const getRuntimeConfig = (config: SWFClientConfig) => ({ - apiVersion: "2012-01-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SWF", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SWFClientConfig) => { + return { + apiVersion: "2012-01-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "SWF", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-swf/src/runtimeConfig.ts b/clients/client-swf/src/runtimeConfig.ts index 9c31bfe4751b7..22472b3681b47 100644 --- a/clients/client-swf/src/runtimeConfig.ts +++ b/clients/client-swf/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SWFClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-synthetics/package.json b/clients/client-synthetics/package.json index ec40016669563..db81c3b40bbfc 100644 --- a/clients/client-synthetics/package.json +++ b/clients/client-synthetics/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-synthetics/src/runtimeConfig.shared.ts b/clients/client-synthetics/src/runtimeConfig.shared.ts index 95054c1f492cf..dff0e8766343c 100644 --- a/clients/client-synthetics/src/runtimeConfig.shared.ts +++ b/clients/client-synthetics/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { SyntheticsClientConfig } from "./SyntheticsClient"; /** * @internal */ -export const getRuntimeConfig = (config: SyntheticsClientConfig) => ({ - apiVersion: "2017-10-11", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "synthetics", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: SyntheticsClientConfig) => { + return { + apiVersion: "2017-10-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "synthetics", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-synthetics/src/runtimeConfig.ts b/clients/client-synthetics/src/runtimeConfig.ts index 1fb9d7477dfd4..40282b533eed4 100644 --- a/clients/client-synthetics/src/runtimeConfig.ts +++ b/clients/client-synthetics/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: SyntheticsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-textract/package.json b/clients/client-textract/package.json index a0b033395e180..da36870ceb0c3 100644 --- a/clients/client-textract/package.json +++ b/clients/client-textract/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-textract/src/runtimeConfig.shared.ts b/clients/client-textract/src/runtimeConfig.shared.ts index 441fa36d3964b..6500b5011b3f9 100644 --- a/clients/client-textract/src/runtimeConfig.shared.ts +++ b/clients/client-textract/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { TextractClientConfig } from "./TextractClient"; /** * @internal */ -export const getRuntimeConfig = (config: TextractClientConfig) => ({ - apiVersion: "2018-06-27", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Textract", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: TextractClientConfig) => { + return { + apiVersion: "2018-06-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Textract", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-textract/src/runtimeConfig.ts b/clients/client-textract/src/runtimeConfig.ts index 16bd1ed7ed71f..e158de8fe1c55 100644 --- a/clients/client-textract/src/runtimeConfig.ts +++ b/clients/client-textract/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: TextractClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-timestream-query/package.json b/clients/client-timestream-query/package.json index 619ec0824dc60..8185e68a4d239 100644 --- a/clients/client-timestream-query/package.json +++ b/clients/client-timestream-query/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-endpoint-discovery": "*", "@aws-sdk/middleware-host-header": "*", diff --git a/clients/client-timestream-query/src/runtimeConfig.shared.ts b/clients/client-timestream-query/src/runtimeConfig.shared.ts index 84fd7dbe38808..c71ed511359c6 100644 --- a/clients/client-timestream-query/src/runtimeConfig.shared.ts +++ b/clients/client-timestream-query/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { TimestreamQueryClientConfig } from "./TimestreamQueryClient"; /** * @internal */ -export const getRuntimeConfig = (config: TimestreamQueryClientConfig) => ({ - apiVersion: "2018-11-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Timestream Query", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: TimestreamQueryClientConfig) => { + return { + apiVersion: "2018-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Timestream Query", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-timestream-query/src/runtimeConfig.ts b/clients/client-timestream-query/src/runtimeConfig.ts index 24f52f3d3e1f4..502356fcc186b 100644 --- a/clients/client-timestream-query/src/runtimeConfig.ts +++ b/clients/client-timestream-query/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -32,6 +33,7 @@ export const getRuntimeConfig = (config: TimestreamQueryClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-timestream-write/package.json b/clients/client-timestream-write/package.json index b3b8498d3435f..8e090c706b4cf 100644 --- a/clients/client-timestream-write/package.json +++ b/clients/client-timestream-write/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-endpoint-discovery": "*", "@aws-sdk/middleware-host-header": "*", diff --git a/clients/client-timestream-write/src/runtimeConfig.shared.ts b/clients/client-timestream-write/src/runtimeConfig.shared.ts index f9a99ebea464e..b138331fa6f7a 100644 --- a/clients/client-timestream-write/src/runtimeConfig.shared.ts +++ b/clients/client-timestream-write/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { TimestreamWriteClientConfig } from "./TimestreamWriteClient"; /** * @internal */ -export const getRuntimeConfig = (config: TimestreamWriteClientConfig) => ({ - apiVersion: "2018-11-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Timestream Write", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: TimestreamWriteClientConfig) => { + return { + apiVersion: "2018-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Timestream Write", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-timestream-write/src/runtimeConfig.ts b/clients/client-timestream-write/src/runtimeConfig.ts index 6cb920250c176..20a4d5a5f21d1 100644 --- a/clients/client-timestream-write/src/runtimeConfig.ts +++ b/clients/client-timestream-write/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -32,6 +33,7 @@ export const getRuntimeConfig = (config: TimestreamWriteClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-tnb/package.json b/clients/client-tnb/package.json index ea2b8468abcbb..698fa6e594a3c 100644 --- a/clients/client-tnb/package.json +++ b/clients/client-tnb/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-tnb/src/runtimeConfig.shared.ts b/clients/client-tnb/src/runtimeConfig.shared.ts index 69eb8766095f9..59c2f21fa72ac 100644 --- a/clients/client-tnb/src/runtimeConfig.shared.ts +++ b/clients/client-tnb/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { TnbClientConfig } from "./TnbClient"; /** * @internal */ -export const getRuntimeConfig = (config: TnbClientConfig) => ({ - apiVersion: "2008-10-21", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "tnb", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: TnbClientConfig) => { + return { + apiVersion: "2008-10-21", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "tnb", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-tnb/src/runtimeConfig.ts b/clients/client-tnb/src/runtimeConfig.ts index 06377021ecd6f..2753602b0f782 100644 --- a/clients/client-tnb/src/runtimeConfig.ts +++ b/clients/client-tnb/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: TnbClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-transcribe-streaming/package.json b/clients/client-transcribe-streaming/package.json index 23ca11f04fa3d..ae99fa78ca867 100644 --- a/clients/client-transcribe-streaming/package.json +++ b/clients/client-transcribe-streaming/package.json @@ -23,6 +23,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/eventstream-handler-node": "*", "@aws-sdk/middleware-eventstream": "*", diff --git a/clients/client-transcribe-streaming/src/runtimeConfig.shared.ts b/clients/client-transcribe-streaming/src/runtimeConfig.shared.ts index 32c108e2be423..3f1d04ae68bb8 100644 --- a/clients/client-transcribe-streaming/src/runtimeConfig.shared.ts +++ b/clients/client-transcribe-streaming/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient"; /** * @internal */ -export const getRuntimeConfig = (config: TranscribeStreamingClientConfig) => ({ - apiVersion: "2017-10-26", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Transcribe Streaming", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: TranscribeStreamingClientConfig) => { + return { + apiVersion: "2017-10-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Transcribe Streaming", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-transcribe-streaming/src/runtimeConfig.ts b/clients/client-transcribe-streaming/src/runtimeConfig.ts index 9e6c5fdb72ab7..4b5428b3db3d2 100644 --- a/clients/client-transcribe-streaming/src/runtimeConfig.ts +++ b/clients/client-transcribe-streaming/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -33,6 +34,7 @@ export const getRuntimeConfig = (config: TranscribeStreamingClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-transcribe/package.json b/clients/client-transcribe/package.json index f6326b14cf4a2..e2fc9b10f6295 100644 --- a/clients/client-transcribe/package.json +++ b/clients/client-transcribe/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-transcribe/src/runtimeConfig.shared.ts b/clients/client-transcribe/src/runtimeConfig.shared.ts index 8c7654236e47d..1359e80e2490c 100644 --- a/clients/client-transcribe/src/runtimeConfig.shared.ts +++ b/clients/client-transcribe/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { TranscribeClientConfig } from "./TranscribeClient"; /** * @internal */ -export const getRuntimeConfig = (config: TranscribeClientConfig) => ({ - apiVersion: "2017-10-26", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Transcribe", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: TranscribeClientConfig) => { + return { + apiVersion: "2017-10-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Transcribe", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-transcribe/src/runtimeConfig.ts b/clients/client-transcribe/src/runtimeConfig.ts index 725d667b5a369..8d2327642b4ba 100644 --- a/clients/client-transcribe/src/runtimeConfig.ts +++ b/clients/client-transcribe/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: TranscribeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-transfer/package.json b/clients/client-transfer/package.json index 07a58f64bc4ab..1c3b6eba8533c 100644 --- a/clients/client-transfer/package.json +++ b/clients/client-transfer/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-transfer/src/runtimeConfig.shared.ts b/clients/client-transfer/src/runtimeConfig.shared.ts index bcaf4e4c61233..716b2166eee0e 100644 --- a/clients/client-transfer/src/runtimeConfig.shared.ts +++ b/clients/client-transfer/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { TransferClientConfig } from "./TransferClient"; /** * @internal */ -export const getRuntimeConfig = (config: TransferClientConfig) => ({ - apiVersion: "2018-11-05", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Transfer", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: TransferClientConfig) => { + return { + apiVersion: "2018-11-05", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Transfer", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-transfer/src/runtimeConfig.ts b/clients/client-transfer/src/runtimeConfig.ts index a7dc3e1f73daf..ec9a876f8e297 100644 --- a/clients/client-transfer/src/runtimeConfig.ts +++ b/clients/client-transfer/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: TransferClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-translate/package.json b/clients/client-translate/package.json index f102812281e93..d04011b69fda4 100644 --- a/clients/client-translate/package.json +++ b/clients/client-translate/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-translate/src/runtimeConfig.shared.ts b/clients/client-translate/src/runtimeConfig.shared.ts index 58ae7387b15a5..179149ed5d153 100644 --- a/clients/client-translate/src/runtimeConfig.shared.ts +++ b/clients/client-translate/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { TranslateClientConfig } from "./TranslateClient"; /** * @internal */ -export const getRuntimeConfig = (config: TranslateClientConfig) => ({ - apiVersion: "2017-07-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Translate", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: TranslateClientConfig) => { + return { + apiVersion: "2017-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Translate", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-translate/src/runtimeConfig.ts b/clients/client-translate/src/runtimeConfig.ts index 157be93b01cdb..f28ad742abff9 100644 --- a/clients/client-translate/src/runtimeConfig.ts +++ b/clients/client-translate/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: TranslateClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-verifiedpermissions/src/runtimeConfig.shared.ts b/clients/client-verifiedpermissions/src/runtimeConfig.shared.ts index 8dc7d1e4e3bb0..619522994dec4 100644 --- a/clients/client-verifiedpermissions/src/runtimeConfig.shared.ts +++ b/clients/client-verifiedpermissions/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { VerifiedPermissionsClientConfig } from "./VerifiedPermissionsClient"; /** * @internal */ -export const getRuntimeConfig = (config: VerifiedPermissionsClientConfig) => ({ - apiVersion: "2021-12-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "VerifiedPermissions", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: VerifiedPermissionsClientConfig) => { + return { + apiVersion: "2021-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "VerifiedPermissions", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-verifiedpermissions/src/runtimeConfig.ts b/clients/client-verifiedpermissions/src/runtimeConfig.ts index d5d6b3bb5ced5..71e24acf37c4d 100644 --- a/clients/client-verifiedpermissions/src/runtimeConfig.ts +++ b/clients/client-verifiedpermissions/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: VerifiedPermissionsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-voice-id/package.json b/clients/client-voice-id/package.json index ea93b0b5a0988..5163bc655b55e 100644 --- a/clients/client-voice-id/package.json +++ b/clients/client-voice-id/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-voice-id/src/runtimeConfig.shared.ts b/clients/client-voice-id/src/runtimeConfig.shared.ts index c95051be86cef..25fb627a2c92b 100644 --- a/clients/client-voice-id/src/runtimeConfig.shared.ts +++ b/clients/client-voice-id/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { VoiceIDClientConfig } from "./VoiceIDClient"; /** * @internal */ -export const getRuntimeConfig = (config: VoiceIDClientConfig) => ({ - apiVersion: "2021-09-27", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Voice ID", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: VoiceIDClientConfig) => { + return { + apiVersion: "2021-09-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Voice ID", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-voice-id/src/runtimeConfig.ts b/clients/client-voice-id/src/runtimeConfig.ts index c72a09a8f5b8d..a1c7fb675e9d1 100644 --- a/clients/client-voice-id/src/runtimeConfig.ts +++ b/clients/client-voice-id/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: VoiceIDClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-vpc-lattice/src/runtimeConfig.shared.ts b/clients/client-vpc-lattice/src/runtimeConfig.shared.ts index 1d3fdf4a32667..37402cc86e337 100644 --- a/clients/client-vpc-lattice/src/runtimeConfig.shared.ts +++ b/clients/client-vpc-lattice/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { VPCLatticeClientConfig } from "./VPCLatticeClient"; /** * @internal */ -export const getRuntimeConfig = (config: VPCLatticeClientConfig) => ({ - apiVersion: "2022-11-30", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "VPC Lattice", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: VPCLatticeClientConfig) => { + return { + apiVersion: "2022-11-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "VPC Lattice", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-vpc-lattice/src/runtimeConfig.ts b/clients/client-vpc-lattice/src/runtimeConfig.ts index fd774ea4b44c9..12f7fd2aa8261 100644 --- a/clients/client-vpc-lattice/src/runtimeConfig.ts +++ b/clients/client-vpc-lattice/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: VPCLatticeClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-waf-regional/package.json b/clients/client-waf-regional/package.json index 172c45f260c86..a73c255901813 100644 --- a/clients/client-waf-regional/package.json +++ b/clients/client-waf-regional/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-waf-regional/src/runtimeConfig.shared.ts b/clients/client-waf-regional/src/runtimeConfig.shared.ts index 11eee53780dbe..a95cf43613ab9 100644 --- a/clients/client-waf-regional/src/runtimeConfig.shared.ts +++ b/clients/client-waf-regional/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { WAFRegionalClientConfig } from "./WAFRegionalClient"; /** * @internal */ -export const getRuntimeConfig = (config: WAFRegionalClientConfig) => ({ - apiVersion: "2016-11-28", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "WAF Regional", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WAFRegionalClientConfig) => { + return { + apiVersion: "2016-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "WAF Regional", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-waf-regional/src/runtimeConfig.ts b/clients/client-waf-regional/src/runtimeConfig.ts index d85db5656f511..eb8b9b341da26 100644 --- a/clients/client-waf-regional/src/runtimeConfig.ts +++ b/clients/client-waf-regional/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: WAFRegionalClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-waf/package.json b/clients/client-waf/package.json index a6ea5ea62010b..24c7356abc9a7 100644 --- a/clients/client-waf/package.json +++ b/clients/client-waf/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-waf/src/runtimeConfig.shared.ts b/clients/client-waf/src/runtimeConfig.shared.ts index da0209f02a73c..70ead4efa864d 100644 --- a/clients/client-waf/src/runtimeConfig.shared.ts +++ b/clients/client-waf/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { WAFClientConfig } from "./WAFClient"; /** * @internal */ -export const getRuntimeConfig = (config: WAFClientConfig) => ({ - apiVersion: "2015-08-24", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "WAF", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WAFClientConfig) => { + return { + apiVersion: "2015-08-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "WAF", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-waf/src/runtimeConfig.ts b/clients/client-waf/src/runtimeConfig.ts index ce49302beaea9..d43d8eb7bc8df 100644 --- a/clients/client-waf/src/runtimeConfig.ts +++ b/clients/client-waf/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: WAFClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-wafv2/package.json b/clients/client-wafv2/package.json index 915f806799894..7b3936699efd2 100644 --- a/clients/client-wafv2/package.json +++ b/clients/client-wafv2/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-wafv2/src/runtimeConfig.shared.ts b/clients/client-wafv2/src/runtimeConfig.shared.ts index 011d2fee80a2f..8288a391d743a 100644 --- a/clients/client-wafv2/src/runtimeConfig.shared.ts +++ b/clients/client-wafv2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { WAFV2ClientConfig } from "./WAFV2Client"; /** * @internal */ -export const getRuntimeConfig = (config: WAFV2ClientConfig) => ({ - apiVersion: "2019-07-29", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "WAFV2", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WAFV2ClientConfig) => { + return { + apiVersion: "2019-07-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "WAFV2", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-wafv2/src/runtimeConfig.ts b/clients/client-wafv2/src/runtimeConfig.ts index f9114f630c72f..74e5148560ec3 100644 --- a/clients/client-wafv2/src/runtimeConfig.ts +++ b/clients/client-wafv2/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: WAFV2ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-wellarchitected/package.json b/clients/client-wellarchitected/package.json index 606ca78f7e017..71a05e952d2e6 100644 --- a/clients/client-wellarchitected/package.json +++ b/clients/client-wellarchitected/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-wellarchitected/src/runtimeConfig.shared.ts b/clients/client-wellarchitected/src/runtimeConfig.shared.ts index 0cd5e30e80d20..4bee9488f65f9 100644 --- a/clients/client-wellarchitected/src/runtimeConfig.shared.ts +++ b/clients/client-wellarchitected/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { WellArchitectedClientConfig } from "./WellArchitectedClient"; /** * @internal */ -export const getRuntimeConfig = (config: WellArchitectedClientConfig) => ({ - apiVersion: "2020-03-31", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "WellArchitected", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WellArchitectedClientConfig) => { + return { + apiVersion: "2020-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "WellArchitected", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-wellarchitected/src/runtimeConfig.ts b/clients/client-wellarchitected/src/runtimeConfig.ts index f50db2811b569..c86ee208320ec 100644 --- a/clients/client-wellarchitected/src/runtimeConfig.ts +++ b/clients/client-wellarchitected/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: WellArchitectedClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-wisdom/src/runtimeConfig.shared.ts b/clients/client-wisdom/src/runtimeConfig.shared.ts index 176f9b441834b..83b2de9309bb1 100644 --- a/clients/client-wisdom/src/runtimeConfig.shared.ts +++ b/clients/client-wisdom/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { WisdomClientConfig } from "./WisdomClient"; /** * @internal */ -export const getRuntimeConfig = (config: WisdomClientConfig) => ({ - apiVersion: "2020-10-19", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "Wisdom", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WisdomClientConfig) => { + return { + apiVersion: "2020-10-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "Wisdom", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-wisdom/src/runtimeConfig.ts b/clients/client-wisdom/src/runtimeConfig.ts index 4f94df3bdc1c8..37c9b3388c10f 100644 --- a/clients/client-wisdom/src/runtimeConfig.ts +++ b/clients/client-wisdom/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: WisdomClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-workdocs/package.json b/clients/client-workdocs/package.json index d60b01a820e3e..54277e5d95536 100644 --- a/clients/client-workdocs/package.json +++ b/clients/client-workdocs/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-workdocs/src/runtimeConfig.shared.ts b/clients/client-workdocs/src/runtimeConfig.shared.ts index 3d409755f9200..44e39e7f11507 100644 --- a/clients/client-workdocs/src/runtimeConfig.shared.ts +++ b/clients/client-workdocs/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { WorkDocsClientConfig } from "./WorkDocsClient"; /** * @internal */ -export const getRuntimeConfig = (config: WorkDocsClientConfig) => ({ - apiVersion: "2016-05-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "WorkDocs", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WorkDocsClientConfig) => { + return { + apiVersion: "2016-05-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "WorkDocs", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-workdocs/src/runtimeConfig.ts b/clients/client-workdocs/src/runtimeConfig.ts index adfa354a81a09..fba1581e1f221 100644 --- a/clients/client-workdocs/src/runtimeConfig.ts +++ b/clients/client-workdocs/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: WorkDocsClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-worklink/package.json b/clients/client-worklink/package.json index 0cf92137f514a..0dcb5a484b10c 100644 --- a/clients/client-worklink/package.json +++ b/clients/client-worklink/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-worklink/src/runtimeConfig.shared.ts b/clients/client-worklink/src/runtimeConfig.shared.ts index 7f256a10c6721..01f60c677767c 100644 --- a/clients/client-worklink/src/runtimeConfig.shared.ts +++ b/clients/client-worklink/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { WorkLinkClientConfig } from "./WorkLinkClient"; /** * @internal */ -export const getRuntimeConfig = (config: WorkLinkClientConfig) => ({ - apiVersion: "2018-09-25", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "WorkLink", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WorkLinkClientConfig) => { + return { + apiVersion: "2018-09-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "WorkLink", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-worklink/src/runtimeConfig.ts b/clients/client-worklink/src/runtimeConfig.ts index 0c685b4db7518..33531084b7d42 100644 --- a/clients/client-worklink/src/runtimeConfig.ts +++ b/clients/client-worklink/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: WorkLinkClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-workmail/package.json b/clients/client-workmail/package.json index ce26ee30a6dc4..e44e36f75c848 100644 --- a/clients/client-workmail/package.json +++ b/clients/client-workmail/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-workmail/src/runtimeConfig.shared.ts b/clients/client-workmail/src/runtimeConfig.shared.ts index bbce37ab0d9aa..0b1f0bc8c68d9 100644 --- a/clients/client-workmail/src/runtimeConfig.shared.ts +++ b/clients/client-workmail/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { WorkMailClientConfig } from "./WorkMailClient"; /** * @internal */ -export const getRuntimeConfig = (config: WorkMailClientConfig) => ({ - apiVersion: "2017-10-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "WorkMail", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WorkMailClientConfig) => { + return { + apiVersion: "2017-10-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "WorkMail", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-workmail/src/runtimeConfig.ts b/clients/client-workmail/src/runtimeConfig.ts index 5b5f943b4c01a..782ffa52c469b 100644 --- a/clients/client-workmail/src/runtimeConfig.ts +++ b/clients/client-workmail/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: WorkMailClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-workmailmessageflow/package.json b/clients/client-workmailmessageflow/package.json index 3c7d99e87d2a7..635f275b96118 100644 --- a/clients/client-workmailmessageflow/package.json +++ b/clients/client-workmailmessageflow/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-workmailmessageflow/src/runtimeConfig.shared.ts b/clients/client-workmailmessageflow/src/runtimeConfig.shared.ts index 135a143df74a2..f0b38846c95c8 100644 --- a/clients/client-workmailmessageflow/src/runtimeConfig.shared.ts +++ b/clients/client-workmailmessageflow/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { WorkMailMessageFlowClientConfig } from "./WorkMailMessageFlowClient"; /** * @internal */ -export const getRuntimeConfig = (config: WorkMailMessageFlowClientConfig) => ({ - apiVersion: "2019-05-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "WorkMailMessageFlow", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WorkMailMessageFlowClientConfig) => { + return { + apiVersion: "2019-05-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "WorkMailMessageFlow", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-workmailmessageflow/src/runtimeConfig.ts b/clients/client-workmailmessageflow/src/runtimeConfig.ts index d9b31a2c90349..2df5ef4d00f96 100644 --- a/clients/client-workmailmessageflow/src/runtimeConfig.ts +++ b/clients/client-workmailmessageflow/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: WorkMailMessageFlowClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-workspaces-web/package.json b/clients/client-workspaces-web/package.json index 09dbefafcabc8..0fbfc3c8ad936 100644 --- a/clients/client-workspaces-web/package.json +++ b/clients/client-workspaces-web/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-workspaces-web/src/runtimeConfig.shared.ts b/clients/client-workspaces-web/src/runtimeConfig.shared.ts index 129b77fd9788e..3358787959774 100644 --- a/clients/client-workspaces-web/src/runtimeConfig.shared.ts +++ b/clients/client-workspaces-web/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { WorkSpacesWebClientConfig } from "./WorkSpacesWebClient"; /** * @internal */ -export const getRuntimeConfig = (config: WorkSpacesWebClientConfig) => ({ - apiVersion: "2020-07-08", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "WorkSpaces Web", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WorkSpacesWebClientConfig) => { + return { + apiVersion: "2020-07-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "WorkSpaces Web", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-workspaces-web/src/runtimeConfig.ts b/clients/client-workspaces-web/src/runtimeConfig.ts index 0d1ad1c8caa49..3a5afd8bf24a9 100644 --- a/clients/client-workspaces-web/src/runtimeConfig.ts +++ b/clients/client-workspaces-web/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: WorkSpacesWebClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-workspaces/package.json b/clients/client-workspaces/package.json index f116568b4cfe7..d099101db759d 100644 --- a/clients/client-workspaces/package.json +++ b/clients/client-workspaces/package.json @@ -22,6 +22,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/clients/client-workspaces/src/runtimeConfig.shared.ts b/clients/client-workspaces/src/runtimeConfig.shared.ts index ac8e4a9fe6be0..4d622a1d2d253 100644 --- a/clients/client-workspaces/src/runtimeConfig.shared.ts +++ b/clients/client-workspaces/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { WorkSpacesClientConfig } from "./WorkSpacesClient"; /** * @internal */ -export const getRuntimeConfig = (config: WorkSpacesClientConfig) => ({ - apiVersion: "2015-04-08", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "WorkSpaces", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WorkSpacesClientConfig) => { + return { + apiVersion: "2015-04-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "WorkSpaces", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-workspaces/src/runtimeConfig.ts b/clients/client-workspaces/src/runtimeConfig.ts index 166c196de83e1..792f42cdc5556 100644 --- a/clients/client-workspaces/src/runtimeConfig.ts +++ b/clients/client-workspaces/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: WorkSpacesClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/clients/client-xray/src/runtimeConfig.shared.ts b/clients/client-xray/src/runtimeConfig.shared.ts index 41b475ae8f092..5a9982e7044ad 100644 --- a/clients/client-xray/src/runtimeConfig.shared.ts +++ b/clients/client-xray/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { XRayClientConfig } from "./XRayClient"; /** * @internal */ -export const getRuntimeConfig = (config: XRayClientConfig) => ({ - apiVersion: "2016-04-12", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "XRay", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: XRayClientConfig) => { + return { + apiVersion: "2016-04-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "XRay", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/clients/client-xray/src/runtimeConfig.ts b/clients/client-xray/src/runtimeConfig.ts index ab1e669ac62d6..d0a66ea5a1c3e 100644 --- a/clients/client-xray/src/runtimeConfig.ts +++ b/clients/client-xray/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: XRayClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java index 264b1283deaaa..a592498c92e59 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java @@ -138,6 +138,20 @@ public List getExtensionConfigurationInterfaces return List.of(new AwsRegionExtensionConfiguration()); } + @Override + public void prepareCustomizations( + TypeScriptWriter writer, + LanguageTarget target, + TypeScriptSettings settings, + Model model + ) { + if (target.equals(LanguageTarget.NODE)) { + writer.addDependency(AwsDependency.AWS_SDK_CORE); + writer.addImport("emitWarningIfUnsupportedVersion", "awsCheckVersion", AwsDependency.AWS_SDK_CORE); + writer.write("awsCheckVersion(process.version);"); + } + } + private Map> getDefaultConfig( LanguageTarget target, TypeScriptSettings settings, diff --git a/packages/core/package.json b/packages/core/package.json index a55c49220e5ff..a09b8c46be2c3 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -4,11 +4,12 @@ "description": "Core functions & classes shared by multiple AWS SDK clients", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", + "build:cjs": "tsc -p tsconfig.cjs.json && yarn lint", "build:es": "tsc -p tsconfig.es.json", "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", + "lint": "node ./scripts/lint.js", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", "test": "jest --passWithNoTests" @@ -16,6 +17,7 @@ "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", "types": "./dist-types/index.d.ts", + "sideEffects": false, "author": { "name": "AWS SDK for JavaScript Team", "url": "https://aws.amazon.com/javascript/" diff --git a/packages/core/scripts/lint.js b/packages/core/scripts/lint.js new file mode 100644 index 0000000000000..ffaa9c4edf5fe --- /dev/null +++ b/packages/core/scripts/lint.js @@ -0,0 +1,24 @@ +const fs = require("fs"); +const path = require("path"); +const assert = require("assert"); + +const root = path.join(__dirname, ".."); + +const pkgJson = require(path.join(root, "package.json")); +const srcFolders = fs.readdirSync(path.join(root, "src")); + +assert(pkgJson.exports === undefined, "We cannot support package.json exports yet."); + +/** + * We probably can't enable package.json exports until + * dropping support for Node.js 14.x and TypeScript 4.6. + */ +process.exit(0); + +for (const srcFolder of srcFolders) { + if (fs.lstatSync(path.join(root, "src", srcFolder)).isDirectory()) { + if (!pkgJson.exports["./" + srcFolder]) { + throw new Error(`${srcFolder} is missing exports statement in package.json`); + } + } +} diff --git a/packages/core/src/client/emitWarningIfUnsupportedVersion.spec.ts b/packages/core/src/client/emitWarningIfUnsupportedVersion.spec.ts new file mode 100644 index 0000000000000..7bb2f56e0acf5 --- /dev/null +++ b/packages/core/src/client/emitWarningIfUnsupportedVersion.spec.ts @@ -0,0 +1,70 @@ +describe("emitWarningIfUnsupportedVersion", () => { + let emitWarningIfUnsupportedVersion; + const emitWarning = process.emitWarning; + const supportedVersion = "16.0.0"; + + beforeEach(() => { + const module = require("./emitWarningIfUnsupportedVersion"); + emitWarningIfUnsupportedVersion = module.emitWarningIfUnsupportedVersion; + }); + + afterEach(() => { + jest.clearAllMocks(); + jest.resetModules(); + process.emitWarning = emitWarning; + }); + + describe(`emits warning for Node.js <${supportedVersion}`, () => { + const getPreviousMajorVersion = (major: number) => (major === 0 ? 0 : major - 1); + + const getPreviousMinorVersion = ([major, minor]: [number, number]) => + minor === 0 ? [getPreviousMajorVersion(major), 9] : [major, minor - 1]; + + const getPreviousPatchVersion = ([major, minor, patch]: [number, number, number]) => + patch === 0 ? [...getPreviousMinorVersion([major, minor]), 9] : [major, minor, patch - 1]; + + const [major, minor, patch] = supportedVersion.split(".").map(Number); + it.each( + [ + getPreviousPatchVersion([major, minor, patch]), + [...getPreviousMinorVersion([major, minor]), 0], + [getPreviousMajorVersion(major), 0, 0], + ].map((arr) => `v${arr.join(".")}`) + )(`%s`, async (unsupportedVersion) => { + process.emitWarning = jest.fn(); + emitWarningIfUnsupportedVersion(unsupportedVersion); + + // Verify that the warning was emitted. + expect(process.emitWarning).toHaveBeenCalledTimes(1); + expect(process.emitWarning).toHaveBeenCalledWith( + `NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will +no longer support Node.js 14.x on May 1, 2024. + +To continue receiving updates to AWS services, bug fixes, and security +updates please upgrade to an active Node.js LTS version. + +More information can be found at: https://a.co/dzr2AJd` + ); + + // Verify that the warning emits only once. + emitWarningIfUnsupportedVersion(unsupportedVersion); + expect(process.emitWarning).toHaveBeenCalledTimes(1); + }); + }); + + describe(`emits no warning for Node.js >=${supportedVersion}`, () => { + const [major, minor, patch] = supportedVersion.split(".").map(Number); + it.each( + [ + [major, minor, patch], + [major, minor, patch + 1], + [major, minor + 1, 0], + [major + 1, 0, 0], + ].map((arr) => `v${arr.join(".")}`) + )(`%s`, async (unsupportedVersion) => { + process.emitWarning = jest.fn(); + emitWarningIfUnsupportedVersion(unsupportedVersion); + expect(process.emitWarning).not.toHaveBeenCalled(); + }); + }); +}); diff --git a/packages/core/src/client/emitWarningIfUnsupportedVersion.ts b/packages/core/src/client/emitWarningIfUnsupportedVersion.ts new file mode 100644 index 0000000000000..2f33ab128dd53 --- /dev/null +++ b/packages/core/src/client/emitWarningIfUnsupportedVersion.ts @@ -0,0 +1,25 @@ +// Stores whether the warning was already emitted. +let warningEmitted = false; + +/** + * @internal + * + * Emits warning if the provided Node.js version string is + * pending deprecation by AWS SDK JSv3. + * + * @param version - The Node.js version string. + */ +export const emitWarningIfUnsupportedVersion = (version: string) => { + if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) { + warningEmitted = true; + process.emitWarning( + `NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will +no longer support Node.js 14.x on May 1, 2024. + +To continue receiving updates to AWS services, bug fixes, and security +updates please upgrade to an active Node.js LTS version. + +More information can be found at: https://a.co/dzr2AJd` + ); + } +}; diff --git a/packages/core/src/client/index.ts b/packages/core/src/client/index.ts new file mode 100644 index 0000000000000..ed9af92686a26 --- /dev/null +++ b/packages/core/src/client/index.ts @@ -0,0 +1 @@ +export * from "./emitWarningIfUnsupportedVersion"; diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 5c50f27cde9b5..2501accc917c8 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1 +1,2 @@ +export * from "./client/index"; export * from "./protocols/index"; diff --git a/private/aws-echo-service/package.json b/private/aws-echo-service/package.json index 9316822050c36..8c1e2329d230a 100644 --- a/private/aws-echo-service/package.json +++ b/private/aws-echo-service/package.json @@ -19,6 +19,7 @@ "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", "@aws-sdk/middleware-recursion-detection": "*", diff --git a/private/aws-echo-service/src/runtimeConfig.shared.ts b/private/aws-echo-service/src/runtimeConfig.shared.ts index 49e61049a8ea1..81ca8ab2fc811 100644 --- a/private/aws-echo-service/src/runtimeConfig.shared.ts +++ b/private/aws-echo-service/src/runtimeConfig.shared.ts @@ -8,14 +8,16 @@ import { EchoServiceClientConfig } from "./EchoServiceClient"; /** * @internal */ -export const getRuntimeConfig = (config: EchoServiceClientConfig) => ({ - apiVersion: "2018-05-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EchoServiceClientConfig) => { + return { + apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/private/aws-echo-service/src/runtimeConfig.ts b/private/aws-echo-service/src/runtimeConfig.ts index aeafd1dffe04e..b38b1bff7be4a 100644 --- a/private/aws-echo-service/src/runtimeConfig.ts +++ b/private/aws-echo-service/src/runtimeConfig.ts @@ -2,6 +2,7 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { Hash } from "@smithy/hash-node"; import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry"; @@ -23,6 +24,7 @@ export const getRuntimeConfig = (config: EchoServiceClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/private/aws-protocoltests-ec2/package.json b/private/aws-protocoltests-ec2/package.json index 3cdfc78f2c8f3..e442b2c31b0e7 100644 --- a/private/aws-protocoltests-ec2/package.json +++ b/private/aws-protocoltests-ec2/package.json @@ -19,6 +19,7 @@ "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", "@aws-sdk/middleware-recursion-detection": "*", diff --git a/private/aws-protocoltests-ec2/src/runtimeConfig.shared.ts b/private/aws-protocoltests-ec2/src/runtimeConfig.shared.ts index c1244681f99a6..74873ad915c50 100644 --- a/private/aws-protocoltests-ec2/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-ec2/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { defaultRegionInfoProvider } from "./endpoints"; /** * @internal */ -export const getRuntimeConfig = (config: EC2ProtocolClientConfig) => ({ - apiVersion: "2020-01-08", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, - serviceId: config?.serviceId ?? "EC2 Protocol", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: EC2ProtocolClientConfig) => { + return { + apiVersion: "2020-01-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, + serviceId: config?.serviceId ?? "EC2 Protocol", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/private/aws-protocoltests-ec2/src/runtimeConfig.ts b/private/aws-protocoltests-ec2/src/runtimeConfig.ts index cc7ad005af157..eb564403532ec 100644 --- a/private/aws-protocoltests-ec2/src/runtimeConfig.ts +++ b/private/aws-protocoltests-ec2/src/runtimeConfig.ts @@ -2,6 +2,7 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, @@ -27,6 +28,7 @@ export const getRuntimeConfig = (config: EC2ProtocolClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/private/aws-protocoltests-json-10/src/runtimeConfig.shared.ts b/private/aws-protocoltests-json-10/src/runtimeConfig.shared.ts index bd22c75f51ea8..9c011fcfc0070 100644 --- a/private/aws-protocoltests-json-10/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-json-10/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { JSONRPC10ClientConfig } from "./JSONRPC10Client"; /** * @internal */ -export const getRuntimeConfig = (config: JSONRPC10ClientConfig) => ({ - apiVersion: "2020-07-14", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, - serviceId: config?.serviceId ?? "JSON RPC 10", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: JSONRPC10ClientConfig) => { + return { + apiVersion: "2020-07-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, + serviceId: config?.serviceId ?? "JSON RPC 10", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/private/aws-protocoltests-json-10/src/runtimeConfig.ts b/private/aws-protocoltests-json-10/src/runtimeConfig.ts index 67e961c96690d..63c7e9f5253be 100644 --- a/private/aws-protocoltests-json-10/src/runtimeConfig.ts +++ b/private/aws-protocoltests-json-10/src/runtimeConfig.ts @@ -2,6 +2,7 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, @@ -27,6 +28,7 @@ export const getRuntimeConfig = (config: JSONRPC10ClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/private/aws-protocoltests-json/src/runtimeConfig.shared.ts b/private/aws-protocoltests-json/src/runtimeConfig.shared.ts index 7a7e8893924b8..23b1c4f4f1614 100644 --- a/private/aws-protocoltests-json/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-json/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { JsonProtocolClientConfig } from "./JsonProtocolClient"; /** * @internal */ -export const getRuntimeConfig = (config: JsonProtocolClientConfig) => ({ - apiVersion: "2018-01-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, - serviceId: config?.serviceId ?? "Json Protocol", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: JsonProtocolClientConfig) => { + return { + apiVersion: "2018-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, + serviceId: config?.serviceId ?? "Json Protocol", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/private/aws-protocoltests-json/src/runtimeConfig.ts b/private/aws-protocoltests-json/src/runtimeConfig.ts index aa0453c54a19a..be7d6067f1038 100644 --- a/private/aws-protocoltests-json/src/runtimeConfig.ts +++ b/private/aws-protocoltests-json/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { @@ -31,6 +32,7 @@ export const getRuntimeConfig = (config: JsonProtocolClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/private/aws-protocoltests-query/package.json b/private/aws-protocoltests-query/package.json index 5788e55d1b543..a0d87fbec2ad3 100644 --- a/private/aws-protocoltests-query/package.json +++ b/private/aws-protocoltests-query/package.json @@ -19,6 +19,7 @@ "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", "@aws-sdk/middleware-recursion-detection": "*", diff --git a/private/aws-protocoltests-query/src/runtimeConfig.shared.ts b/private/aws-protocoltests-query/src/runtimeConfig.shared.ts index 7e169cb1cd3a3..7f6f5ca430632 100644 --- a/private/aws-protocoltests-query/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-query/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { QueryProtocolClientConfig } from "./QueryProtocolClient"; /** * @internal */ -export const getRuntimeConfig = (config: QueryProtocolClientConfig) => ({ - apiVersion: "2020-01-08", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, - serviceId: config?.serviceId ?? "Query Protocol", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: QueryProtocolClientConfig) => { + return { + apiVersion: "2020-01-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, + serviceId: config?.serviceId ?? "Query Protocol", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/private/aws-protocoltests-query/src/runtimeConfig.ts b/private/aws-protocoltests-query/src/runtimeConfig.ts index b9ca6ad630e11..f7ab4eb64fceb 100644 --- a/private/aws-protocoltests-query/src/runtimeConfig.ts +++ b/private/aws-protocoltests-query/src/runtimeConfig.ts @@ -2,6 +2,7 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, @@ -27,6 +28,7 @@ export const getRuntimeConfig = (config: QueryProtocolClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/private/aws-protocoltests-restjson/src/runtimeConfig.shared.ts b/private/aws-protocoltests-restjson/src/runtimeConfig.shared.ts index 633975a25446a..bb5525960c79f 100644 --- a/private/aws-protocoltests-restjson/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-restjson/src/runtimeConfig.shared.ts @@ -11,17 +11,19 @@ import { RestJsonProtocolClientConfig } from "./RestJsonProtocolClient"; /** * @internal */ -export const getRuntimeConfig = (config: RestJsonProtocolClientConfig) => ({ - apiVersion: "2019-12-16", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, - sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, - serviceId: config?.serviceId ?? "Rest Json Protocol", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RestJsonProtocolClientConfig) => { + return { + apiVersion: "2019-12-16", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, + sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, + serviceId: config?.serviceId ?? "Rest Json Protocol", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/private/aws-protocoltests-restjson/src/runtimeConfig.ts b/private/aws-protocoltests-restjson/src/runtimeConfig.ts index 2dbb4c615129a..f1193bbcd9d9f 100644 --- a/private/aws-protocoltests-restjson/src/runtimeConfig.ts +++ b/private/aws-protocoltests-restjson/src/runtimeConfig.ts @@ -2,6 +2,7 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, @@ -29,6 +30,7 @@ export const getRuntimeConfig = (config: RestJsonProtocolClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/private/aws-protocoltests-restxml/package.json b/private/aws-protocoltests-restxml/package.json index e74288835e138..e4b1086db3be1 100644 --- a/private/aws-protocoltests-restxml/package.json +++ b/private/aws-protocoltests-restxml/package.json @@ -19,6 +19,7 @@ "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", "@aws-sdk/middleware-recursion-detection": "*", diff --git a/private/aws-protocoltests-restxml/src/runtimeConfig.shared.ts b/private/aws-protocoltests-restxml/src/runtimeConfig.shared.ts index c3496a9dbe411..e754ff933393b 100644 --- a/private/aws-protocoltests-restxml/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-restxml/src/runtimeConfig.shared.ts @@ -10,16 +10,18 @@ import { RestXmlProtocolClientConfig } from "./RestXmlProtocolClient"; /** * @internal */ -export const getRuntimeConfig = (config: RestXmlProtocolClientConfig) => ({ - apiVersion: "2019-12-16", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, - serviceId: config?.serviceId ?? "Rest Xml Protocol", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: RestXmlProtocolClientConfig) => { + return { + apiVersion: "2019-12-16", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, + serviceId: config?.serviceId ?? "Rest Xml Protocol", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/private/aws-protocoltests-restxml/src/runtimeConfig.ts b/private/aws-protocoltests-restxml/src/runtimeConfig.ts index 6fc62af2e27c2..687d94d0ef746 100644 --- a/private/aws-protocoltests-restxml/src/runtimeConfig.ts +++ b/private/aws-protocoltests-restxml/src/runtimeConfig.ts @@ -2,6 +2,7 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, @@ -27,6 +28,7 @@ export const getRuntimeConfig = (config: RestXmlProtocolClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/private/weather/package.json b/private/weather/package.json index aed5911eae015..9acd4e280bcf0 100644 --- a/private/weather/package.json +++ b/private/weather/package.json @@ -20,6 +20,7 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", + "@aws-sdk/core": "*", "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", diff --git a/private/weather/src/runtimeConfig.shared.ts b/private/weather/src/runtimeConfig.shared.ts index 65fc686283dd4..91dc952ef7dd5 100644 --- a/private/weather/src/runtimeConfig.shared.ts +++ b/private/weather/src/runtimeConfig.shared.ts @@ -8,15 +8,17 @@ import { WeatherClientConfig } from "./WeatherClient"; /** * @internal */ -export const getRuntimeConfig = (config: WeatherClientConfig) => ({ - apiVersion: "2006-03-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - signingName: config?.signingName ?? "weather", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); +export const getRuntimeConfig = (config: WeatherClientConfig) => { + return { + apiVersion: "2006-03-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + signingName: config?.signingName ?? "weather", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; diff --git a/private/weather/src/runtimeConfig.ts b/private/weather/src/runtimeConfig.ts index 4796f70a35a66..bb0dc85cbb58d 100644 --- a/private/weather/src/runtimeConfig.ts +++ b/private/weather/src/runtimeConfig.ts @@ -3,6 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@smithy/config-resolver"; @@ -26,6 +27,7 @@ export const getRuntimeConfig = (config: WeatherClientConfig) => { const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); + awsCheckVersion(process.version); return { ...clientSharedValues, ...config, diff --git a/scripts/generate-clients/config.js b/scripts/generate-clients/config.js index 492a5c912cd76..51e4de67bdfd2 100644 --- a/scripts/generate-clients/config.js +++ b/scripts/generate-clients/config.js @@ -1,5 +1,5 @@ // Update this commit when taking up new changes from smithy-typescript. module.exports = { // Use full commit hash as we explicitly fetch it. - SMITHY_TS_COMMIT: "d5eacb5153a8473b572919392e0644babd04d983", + SMITHY_TS_COMMIT: "1debb82044ee352bd66afc8370443900c2ca01ec", };