Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(clients): allow undefined configuration #2617

Merged
merged 1 commit into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion clients/client-accessanalyzer/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
export const getRuntimeConfig = (config: AccessAnalyzerClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-accessanalyzer/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.bro
/**
* @internal
*/
export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
export const getRuntimeConfig = (config: AccessAnalyzerClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-accessanalyzer/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AccessAnalyzerClientConfig } from "./AccessAnalyzerClient";
/**
* @internal
*/
export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => ({
export const getRuntimeConfig = (config: AccessAnalyzerClientConfig = {}) => ({
apiVersion: "2019-11-01",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-accessanalyzer/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
export const getRuntimeConfig = (config: AccessAnalyzerClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm-pca/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: ACMPCAClientConfig) => {
export const getRuntimeConfig = (config: ACMPCAClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm-pca/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.bro
/**
* @internal
*/
export const getRuntimeConfig = (config: ACMPCAClientConfig) => {
export const getRuntimeConfig = (config: ACMPCAClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm-pca/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ACMPCAClientConfig } from "./ACMPCAClient";
/**
* @internal
*/
export const getRuntimeConfig = (config: ACMPCAClientConfig) => ({
export const getRuntimeConfig = (config: ACMPCAClientConfig = {}) => ({
apiVersion: "2017-08-22",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm-pca/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: ACMPCAClientConfig) => {
export const getRuntimeConfig = (config: ACMPCAClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: ACMClientConfig) => {
export const getRuntimeConfig = (config: ACMClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.bro
/**
* @internal
*/
export const getRuntimeConfig = (config: ACMClientConfig) => {
export const getRuntimeConfig = (config: ACMClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ACMClientConfig } from "./ACMClient";
/**
* @internal
*/
export const getRuntimeConfig = (config: ACMClientConfig) => ({
export const getRuntimeConfig = (config: ACMClientConfig = {}) => ({
apiVersion: "2015-12-08",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: ACMClientConfig) => {
export const getRuntimeConfig = (config: ACMClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => {
export const getRuntimeConfig = (config: AlexaForBusinessClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.bro
/**
* @internal
*/
export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => {
export const getRuntimeConfig = (config: AlexaForBusinessClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AlexaForBusinessClientConfig } from "./AlexaForBusinessClient";
/**
* @internal
*/
export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => ({
export const getRuntimeConfig = (config: AlexaForBusinessClientConfig = {}) => ({
apiVersion: "2017-11-09",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-alexa-for-business/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => {
export const getRuntimeConfig = (config: AlexaForBusinessClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amp/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AmpClientConfig) => {
export const getRuntimeConfig = (config: AmpClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amp/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.bro
/**
* @internal
*/
export const getRuntimeConfig = (config: AmpClientConfig) => {
export const getRuntimeConfig = (config: AmpClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amp/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AmpClientConfig } from "./AmpClient";
/**
* @internal
*/
export const getRuntimeConfig = (config: AmpClientConfig) => ({
export const getRuntimeConfig = (config: AmpClientConfig = {}) => ({
apiVersion: "2020-08-01",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amp/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AmpClientConfig) => {
export const getRuntimeConfig = (config: AmpClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplify/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AmplifyClientConfig) => {
export const getRuntimeConfig = (config: AmplifyClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplify/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.bro
/**
* @internal
*/
export const getRuntimeConfig = (config: AmplifyClientConfig) => {
export const getRuntimeConfig = (config: AmplifyClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplify/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AmplifyClientConfig } from "./AmplifyClient";
/**
* @internal
*/
export const getRuntimeConfig = (config: AmplifyClientConfig) => ({
export const getRuntimeConfig = (config: AmplifyClientConfig = {}) => ({
apiVersion: "2017-07-25",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplify/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AmplifyClientConfig) => {
export const getRuntimeConfig = (config: AmplifyClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplifybackend/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => {
export const getRuntimeConfig = (config: AmplifyBackendClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplifybackend/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.bro
/**
* @internal
*/
export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => {
export const getRuntimeConfig = (config: AmplifyBackendClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplifybackend/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AmplifyBackendClientConfig } from "./AmplifyBackendClient";
/**
* @internal
*/
export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => ({
export const getRuntimeConfig = (config: AmplifyBackendClientConfig = {}) => ({
apiVersion: "2020-08-11",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplifybackend/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => {
export const getRuntimeConfig = (config: AmplifyBackendClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-api-gateway/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: APIGatewayClientConfig) => {
export const getRuntimeConfig = (config: APIGatewayClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-api-gateway/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.bro
/**
* @internal
*/
export const getRuntimeConfig = (config: APIGatewayClientConfig) => {
export const getRuntimeConfig = (config: APIGatewayClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-api-gateway/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { APIGatewayClientConfig } from "./APIGatewayClient";
/**
* @internal
*/
export const getRuntimeConfig = (config: APIGatewayClientConfig) => ({
export const getRuntimeConfig = (config: APIGatewayClientConfig = {}) => ({
apiVersion: "2015-07-09",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-api-gateway/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: APIGatewayClientConfig) => {
export const getRuntimeConfig = (config: APIGatewayClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) => {
export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.bro
/**
* @internal
*/
export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) => {
export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ApiGatewayManagementApiClientConfig } from "./ApiGatewayManagementApiCl
/**
* @internal
*/
export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) => ({
export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig = {}) => ({
apiVersion: "2018-11-29",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-apigatewaymanagementapi/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) => {
export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-apigatewayv2/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => {
export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-apigatewayv2/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.bro
/**
* @internal
*/
export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => {
export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-apigatewayv2/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ApiGatewayV2ClientConfig } from "./ApiGatewayV2Client";
/**
* @internal
*/
export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => ({
export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig = {}) => ({
apiVersion: "2018-11-29",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-apigatewayv2/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => {
export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-app-mesh/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AppMeshClientConfig) => {
export const getRuntimeConfig = (config: AppMeshClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-app-mesh/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.bro
/**
* @internal
*/
export const getRuntimeConfig = (config: AppMeshClientConfig) => {
export const getRuntimeConfig = (config: AppMeshClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-app-mesh/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AppMeshClientConfig } from "./AppMeshClient";
/**
* @internal
*/
export const getRuntimeConfig = (config: AppMeshClientConfig) => ({
export const getRuntimeConfig = (config: AppMeshClientConfig = {}) => ({
apiVersion: "2019-01-25",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-app-mesh/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
/**
* @internal
*/
export const getRuntimeConfig = (config: AppMeshClientConfig) => {
export const getRuntimeConfig = (config: AppMeshClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
Loading