Skip to content

Commit

Permalink
fix(clients): allow undefined configuration (#2617)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP authored Jul 22, 2021
1 parent 6febb5f commit a004d15
Show file tree
Hide file tree
Showing 1,100 changed files with 1,100 additions and 1,100 deletions.
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
2 changes: 1 addition & 1 deletion clients/client-alexa-for-business/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: AlexaForBusinessClientConfig) => {
export const getRuntimeConfig = (config: AlexaForBusinessClientConfig = {}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-alexa-for-business/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: AlexaForBusinessClientConfig) => {
export const getRuntimeConfig = (config: AlexaForBusinessClientConfig = {}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-alexa-for-business/runtimeConfig.shared.ts
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

0 comments on commit a004d15

Please sign in to comment.