@aws-sdk/client-api-gateway 3.53.0 → 3.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/APIGatewayClient.js +14 -14
  3. package/dist-cjs/commands/CreateApiKeyCommand.js +3 -3
  4. package/dist-cjs/commands/CreateAuthorizerCommand.js +3 -3
  5. package/dist-cjs/commands/CreateBasePathMappingCommand.js +3 -3
  6. package/dist-cjs/commands/CreateDeploymentCommand.js +3 -3
  7. package/dist-cjs/commands/CreateDocumentationPartCommand.js +3 -3
  8. package/dist-cjs/commands/CreateDocumentationVersionCommand.js +3 -3
  9. package/dist-cjs/commands/CreateDomainNameCommand.js +3 -3
  10. package/dist-cjs/commands/CreateModelCommand.js +3 -3
  11. package/dist-cjs/commands/CreateRequestValidatorCommand.js +3 -3
  12. package/dist-cjs/commands/CreateResourceCommand.js +3 -3
  13. package/dist-cjs/commands/CreateRestApiCommand.js +3 -3
  14. package/dist-cjs/commands/CreateStageCommand.js +3 -3
  15. package/dist-cjs/commands/CreateUsagePlanCommand.js +3 -3
  16. package/dist-cjs/commands/CreateUsagePlanKeyCommand.js +3 -3
  17. package/dist-cjs/commands/CreateVpcLinkCommand.js +3 -3
  18. package/dist-cjs/commands/DeleteApiKeyCommand.js +3 -3
  19. package/dist-cjs/commands/DeleteAuthorizerCommand.js +3 -3
  20. package/dist-cjs/commands/DeleteBasePathMappingCommand.js +3 -3
  21. package/dist-cjs/commands/DeleteClientCertificateCommand.js +3 -3
  22. package/dist-cjs/commands/DeleteDeploymentCommand.js +3 -3
  23. package/dist-cjs/commands/DeleteDocumentationPartCommand.js +3 -3
  24. package/dist-cjs/commands/DeleteDocumentationVersionCommand.js +3 -3
  25. package/dist-cjs/commands/DeleteDomainNameCommand.js +3 -3
  26. package/dist-cjs/commands/DeleteGatewayResponseCommand.js +3 -3
  27. package/dist-cjs/commands/DeleteIntegrationCommand.js +3 -3
  28. package/dist-cjs/commands/DeleteIntegrationResponseCommand.js +3 -3
  29. package/dist-cjs/commands/DeleteMethodCommand.js +3 -3
  30. package/dist-cjs/commands/DeleteMethodResponseCommand.js +3 -3
  31. package/dist-cjs/commands/DeleteModelCommand.js +3 -3
  32. package/dist-cjs/commands/DeleteRequestValidatorCommand.js +3 -3
  33. package/dist-cjs/commands/DeleteResourceCommand.js +3 -3
  34. package/dist-cjs/commands/DeleteRestApiCommand.js +3 -3
  35. package/dist-cjs/commands/DeleteStageCommand.js +3 -3
  36. package/dist-cjs/commands/DeleteUsagePlanCommand.js +3 -3
  37. package/dist-cjs/commands/DeleteUsagePlanKeyCommand.js +3 -3
  38. package/dist-cjs/commands/DeleteVpcLinkCommand.js +3 -3
  39. package/dist-cjs/commands/FlushStageAuthorizersCacheCommand.js +3 -3
  40. package/dist-cjs/commands/FlushStageCacheCommand.js +3 -3
  41. package/dist-cjs/commands/GenerateClientCertificateCommand.js +3 -3
  42. package/dist-cjs/commands/GetAccountCommand.js +3 -3
  43. package/dist-cjs/commands/GetApiKeyCommand.js +3 -3
  44. package/dist-cjs/commands/GetApiKeysCommand.js +3 -3
  45. package/dist-cjs/commands/GetAuthorizerCommand.js +3 -3
  46. package/dist-cjs/commands/GetAuthorizersCommand.js +3 -3
  47. package/dist-cjs/commands/GetBasePathMappingCommand.js +3 -3
  48. package/dist-cjs/commands/GetBasePathMappingsCommand.js +3 -3
  49. package/dist-cjs/commands/GetClientCertificateCommand.js +3 -3
  50. package/dist-cjs/commands/GetClientCertificatesCommand.js +3 -3
  51. package/dist-cjs/commands/GetDeploymentCommand.js +3 -3
  52. package/dist-cjs/commands/GetDeploymentsCommand.js +3 -3
  53. package/dist-cjs/commands/GetDocumentationPartCommand.js +3 -3
  54. package/dist-cjs/commands/GetDocumentationPartsCommand.js +3 -3
  55. package/dist-cjs/commands/GetDocumentationVersionCommand.js +3 -3
  56. package/dist-cjs/commands/GetDocumentationVersionsCommand.js +3 -3
  57. package/dist-cjs/commands/GetDomainNameCommand.js +3 -3
  58. package/dist-cjs/commands/GetDomainNamesCommand.js +3 -3
  59. package/dist-cjs/commands/GetExportCommand.js +3 -3
  60. package/dist-cjs/commands/GetGatewayResponseCommand.js +3 -3
  61. package/dist-cjs/commands/GetGatewayResponsesCommand.js +3 -3
  62. package/dist-cjs/commands/GetIntegrationCommand.js +3 -3
  63. package/dist-cjs/commands/GetIntegrationResponseCommand.js +3 -3
  64. package/dist-cjs/commands/GetMethodCommand.js +3 -3
  65. package/dist-cjs/commands/GetMethodResponseCommand.js +3 -3
  66. package/dist-cjs/commands/GetModelCommand.js +3 -3
  67. package/dist-cjs/commands/GetModelTemplateCommand.js +3 -3
  68. package/dist-cjs/commands/GetModelsCommand.js +3 -3
  69. package/dist-cjs/commands/GetRequestValidatorCommand.js +3 -3
  70. package/dist-cjs/commands/GetRequestValidatorsCommand.js +3 -3
  71. package/dist-cjs/commands/GetResourceCommand.js +3 -3
  72. package/dist-cjs/commands/GetResourcesCommand.js +3 -3
  73. package/dist-cjs/commands/GetRestApiCommand.js +3 -3
  74. package/dist-cjs/commands/GetRestApisCommand.js +3 -3
  75. package/dist-cjs/commands/GetSdkCommand.js +3 -3
  76. package/dist-cjs/commands/GetSdkTypeCommand.js +3 -3
  77. package/dist-cjs/commands/GetSdkTypesCommand.js +3 -3
  78. package/dist-cjs/commands/GetStageCommand.js +3 -3
  79. package/dist-cjs/commands/GetStagesCommand.js +3 -3
  80. package/dist-cjs/commands/GetTagsCommand.js +3 -3
  81. package/dist-cjs/commands/GetUsageCommand.js +3 -3
  82. package/dist-cjs/commands/GetUsagePlanCommand.js +3 -3
  83. package/dist-cjs/commands/GetUsagePlanKeyCommand.js +3 -3
  84. package/dist-cjs/commands/GetUsagePlanKeysCommand.js +3 -3
  85. package/dist-cjs/commands/GetUsagePlansCommand.js +3 -3
  86. package/dist-cjs/commands/GetVpcLinkCommand.js +3 -3
  87. package/dist-cjs/commands/GetVpcLinksCommand.js +3 -3
  88. package/dist-cjs/commands/ImportApiKeysCommand.js +3 -3
  89. package/dist-cjs/commands/ImportDocumentationPartsCommand.js +3 -3
  90. package/dist-cjs/commands/ImportRestApiCommand.js +3 -3
  91. package/dist-cjs/commands/PutGatewayResponseCommand.js +3 -3
  92. package/dist-cjs/commands/PutIntegrationCommand.js +3 -3
  93. package/dist-cjs/commands/PutIntegrationResponseCommand.js +3 -3
  94. package/dist-cjs/commands/PutMethodCommand.js +3 -3
  95. package/dist-cjs/commands/PutMethodResponseCommand.js +3 -3
  96. package/dist-cjs/commands/PutRestApiCommand.js +3 -3
  97. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  98. package/dist-cjs/commands/TestInvokeAuthorizerCommand.js +3 -3
  99. package/dist-cjs/commands/TestInvokeMethodCommand.js +3 -3
  100. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  101. package/dist-cjs/commands/UpdateAccountCommand.js +3 -3
  102. package/dist-cjs/commands/UpdateApiKeyCommand.js +3 -3
  103. package/dist-cjs/commands/UpdateAuthorizerCommand.js +3 -3
  104. package/dist-cjs/commands/UpdateBasePathMappingCommand.js +3 -3
  105. package/dist-cjs/commands/UpdateClientCertificateCommand.js +3 -3
  106. package/dist-cjs/commands/UpdateDeploymentCommand.js +3 -3
  107. package/dist-cjs/commands/UpdateDocumentationPartCommand.js +3 -3
  108. package/dist-cjs/commands/UpdateDocumentationVersionCommand.js +3 -3
  109. package/dist-cjs/commands/UpdateDomainNameCommand.js +3 -3
  110. package/dist-cjs/commands/UpdateGatewayResponseCommand.js +3 -3
  111. package/dist-cjs/commands/UpdateIntegrationCommand.js +3 -3
  112. package/dist-cjs/commands/UpdateIntegrationResponseCommand.js +3 -3
  113. package/dist-cjs/commands/UpdateMethodCommand.js +3 -3
  114. package/dist-cjs/commands/UpdateMethodResponseCommand.js +3 -3
  115. package/dist-cjs/commands/UpdateModelCommand.js +3 -3
  116. package/dist-cjs/commands/UpdateRequestValidatorCommand.js +3 -3
  117. package/dist-cjs/commands/UpdateResourceCommand.js +3 -3
  118. package/dist-cjs/commands/UpdateRestApiCommand.js +3 -3
  119. package/dist-cjs/commands/UpdateStageCommand.js +3 -3
  120. package/dist-cjs/commands/UpdateUsageCommand.js +3 -3
  121. package/dist-cjs/commands/UpdateUsagePlanCommand.js +3 -3
  122. package/dist-cjs/commands/UpdateVpcLinkCommand.js +3 -3
  123. package/dist-cjs/endpoints.js +1 -1
  124. package/dist-cjs/protocols/Aws_restJson1.js +987 -987
  125. package/dist-cjs/runtimeConfig.browser.js +4 -4
  126. package/dist-cjs/runtimeConfig.js +9 -9
  127. package/dist-cjs/runtimeConfig.native.js +1 -1
  128. package/dist-es/APIGateway.js +120 -120
  129. package/dist-es/pagination/GetApiKeysPaginator.js +4 -4
  130. package/dist-es/pagination/GetBasePathMappingsPaginator.js +4 -4
  131. package/dist-es/pagination/GetClientCertificatesPaginator.js +4 -4
  132. package/dist-es/pagination/GetDeploymentsPaginator.js +4 -4
  133. package/dist-es/pagination/GetDomainNamesPaginator.js +4 -4
  134. package/dist-es/pagination/GetModelsPaginator.js +4 -4
  135. package/dist-es/pagination/GetResourcesPaginator.js +4 -4
  136. package/dist-es/pagination/GetRestApisPaginator.js +4 -4
  137. package/dist-es/pagination/GetUsagePaginator.js +4 -4
  138. package/dist-es/pagination/GetUsagePlanKeysPaginator.js +4 -4
  139. package/dist-es/pagination/GetUsagePlansPaginator.js +4 -4
  140. package/dist-es/pagination/GetVpcLinksPaginator.js +4 -4
  141. package/dist-es/protocols/Aws_restJson1.js +120 -120
  142. package/dist-types/APIGatewayClient.d.ts +2 -2
  143. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  144. package/dist-types/runtimeConfig.d.ts +1 -1
  145. package/dist-types/runtimeConfig.native.d.ts +3 -3
  146. package/dist-types/ts3.4/APIGatewayClient.d.ts +2 -2
  147. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  148. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  149. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  150. package/package.json +35 -35
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateApiKeyCommand = function (input, context)
13
13
  headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys";
17
17
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.customerId !== undefined && input.customerId !== null && { customerId: input.customerId })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.generateDistinctId !== undefined &&
18
18
  input.generateDistinctId !== null && { generateDistinctId: input.generateDistinctId })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.stageKeys !== undefined &&
19
19
  input.stageKeys !== null && { stageKeys: serializeAws_restJson1ListOfStageKeys(input.stageKeys, context) })), (input.tags !== undefined &&
@@ -40,7 +40,7 @@ export var serializeAws_restJson1CreateAuthorizerCommand = function (input, cont
40
40
  headers = {
41
41
  "content-type": "application/json",
42
42
  };
43
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/authorizers";
43
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/authorizers";
44
44
  if (input.restApiId !== undefined) {
45
45
  labelValue = input.restApiId;
46
46
  if (labelValue.length <= 0) {
@@ -83,7 +83,7 @@ export var serializeAws_restJson1CreateBasePathMappingCommand = function (input,
83
83
  headers = {
84
84
  "content-type": "application/json",
85
85
  };
86
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
86
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
87
87
  "/domainnames/{domainName}/basepathmappings";
88
88
  if (input.domainName !== undefined) {
89
89
  labelValue = input.domainName;
@@ -118,7 +118,7 @@ export var serializeAws_restJson1CreateDeploymentCommand = function (input, cont
118
118
  headers = {
119
119
  "content-type": "application/json",
120
120
  };
121
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/deployments";
121
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/deployments";
122
122
  if (input.restApiId !== undefined) {
123
123
  labelValue = input.restApiId;
124
124
  if (labelValue.length <= 0) {
@@ -160,7 +160,7 @@ export var serializeAws_restJson1CreateDocumentationPartCommand = function (inpu
160
160
  headers = {
161
161
  "content-type": "application/json",
162
162
  };
163
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/documentation/parts";
163
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/documentation/parts";
164
164
  if (input.restApiId !== undefined) {
165
165
  labelValue = input.restApiId;
166
166
  if (labelValue.length <= 0) {
@@ -197,7 +197,7 @@ export var serializeAws_restJson1CreateDocumentationVersionCommand = function (i
197
197
  headers = {
198
198
  "content-type": "application/json",
199
199
  };
200
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
200
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
201
201
  "/restapis/{restApiId}/documentation/versions";
202
202
  if (input.restApiId !== undefined) {
203
203
  labelValue = input.restApiId;
@@ -233,7 +233,7 @@ export var serializeAws_restJson1CreateDomainNameCommand = function (input, cont
233
233
  headers = {
234
234
  "content-type": "application/json",
235
235
  };
236
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames";
236
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames";
237
237
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.certificateArn !== undefined &&
238
238
  input.certificateArn !== null && { certificateArn: input.certificateArn })), (input.certificateBody !== undefined &&
239
239
  input.certificateBody !== null && { certificateBody: input.certificateBody })), (input.certificateChain !== undefined &&
@@ -275,7 +275,7 @@ export var serializeAws_restJson1CreateModelCommand = function (input, context)
275
275
  headers = {
276
276
  "content-type": "application/json",
277
277
  };
278
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/models";
278
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/models";
279
279
  if (input.restApiId !== undefined) {
280
280
  labelValue = input.restApiId;
281
281
  if (labelValue.length <= 0) {
@@ -309,7 +309,7 @@ export var serializeAws_restJson1CreateRequestValidatorCommand = function (input
309
309
  headers = {
310
310
  "content-type": "application/json",
311
311
  };
312
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/requestvalidators";
312
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/requestvalidators";
313
313
  if (input.restApiId !== undefined) {
314
314
  labelValue = input.restApiId;
315
315
  if (labelValue.length <= 0) {
@@ -345,7 +345,7 @@ export var serializeAws_restJson1CreateResourceCommand = function (input, contex
345
345
  headers = {
346
346
  "content-type": "application/json",
347
347
  };
348
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
348
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
349
349
  "/restapis/{restApiId}/resources/{parentId}";
350
350
  if (input.restApiId !== undefined) {
351
351
  labelValue = input.restApiId;
@@ -390,7 +390,7 @@ export var serializeAws_restJson1CreateRestApiCommand = function (input, context
390
390
  headers = {
391
391
  "content-type": "application/json",
392
392
  };
393
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis";
393
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis";
394
394
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.apiKeySource !== undefined && input.apiKeySource !== null && { apiKeySource: input.apiKeySource })), (input.binaryMediaTypes !== undefined &&
395
395
  input.binaryMediaTypes !== null && {
396
396
  binaryMediaTypes: serializeAws_restJson1ListOfString(input.binaryMediaTypes, context),
@@ -423,7 +423,7 @@ export var serializeAws_restJson1CreateStageCommand = function (input, context)
423
423
  headers = {
424
424
  "content-type": "application/json",
425
425
  };
426
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/stages";
426
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/stages";
427
427
  if (input.restApiId !== undefined) {
428
428
  labelValue = input.restApiId;
429
429
  if (labelValue.length <= 0) {
@@ -466,7 +466,7 @@ export var serializeAws_restJson1CreateUsagePlanCommand = function (input, conte
466
466
  headers = {
467
467
  "content-type": "application/json",
468
468
  };
469
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans";
469
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans";
470
470
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.apiStages !== undefined &&
471
471
  input.apiStages !== null && { apiStages: serializeAws_restJson1ListOfApiStage(input.apiStages, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.quota !== undefined &&
472
472
  input.quota !== null && { quota: serializeAws_restJson1QuotaSettings(input.quota, context) })), (input.tags !== undefined &&
@@ -494,7 +494,7 @@ export var serializeAws_restJson1CreateUsagePlanKeyCommand = function (input, co
494
494
  headers = {
495
495
  "content-type": "application/json",
496
496
  };
497
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}/keys";
497
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}/keys";
498
498
  if (input.usagePlanId !== undefined) {
499
499
  labelValue = input.usagePlanId;
500
500
  if (labelValue.length <= 0) {
@@ -528,7 +528,7 @@ export var serializeAws_restJson1CreateVpcLinkCommand = function (input, context
528
528
  headers = {
529
529
  "content-type": "application/json",
530
530
  };
531
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpclinks";
531
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpclinks";
532
532
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined &&
533
533
  input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })), (input.targetArns !== undefined &&
534
534
  input.targetArns !== null && { targetArns: serializeAws_restJson1ListOfString(input.targetArns, context) })));
@@ -552,7 +552,7 @@ export var serializeAws_restJson1DeleteApiKeyCommand = function (input, context)
552
552
  case 1:
553
553
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
554
554
  headers = {};
555
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys/{apiKey}";
555
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys/{apiKey}";
556
556
  if (input.apiKey !== undefined) {
557
557
  labelValue = input.apiKey;
558
558
  if (labelValue.length <= 0) {
@@ -583,7 +583,7 @@ export var serializeAws_restJson1DeleteAuthorizerCommand = function (input, cont
583
583
  case 1:
584
584
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
585
585
  headers = {};
586
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
586
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
587
587
  "/restapis/{restApiId}/authorizers/{authorizerId}";
588
588
  if (input.restApiId !== undefined) {
589
589
  labelValue = input.restApiId;
@@ -625,7 +625,7 @@ export var serializeAws_restJson1DeleteBasePathMappingCommand = function (input,
625
625
  case 1:
626
626
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
627
627
  headers = {};
628
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
628
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
629
629
  "/domainnames/{domainName}/basepathmappings/{basePath}";
630
630
  if (input.domainName !== undefined) {
631
631
  labelValue = input.domainName;
@@ -667,7 +667,7 @@ export var serializeAws_restJson1DeleteClientCertificateCommand = function (inpu
667
667
  case 1:
668
668
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
669
669
  headers = {};
670
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clientcertificates/{clientCertificateId}";
670
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clientcertificates/{clientCertificateId}";
671
671
  if (input.clientCertificateId !== undefined) {
672
672
  labelValue = input.clientCertificateId;
673
673
  if (labelValue.length <= 0) {
@@ -698,7 +698,7 @@ export var serializeAws_restJson1DeleteDeploymentCommand = function (input, cont
698
698
  case 1:
699
699
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
700
700
  headers = {};
701
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
701
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
702
702
  "/restapis/{restApiId}/deployments/{deploymentId}";
703
703
  if (input.restApiId !== undefined) {
704
704
  labelValue = input.restApiId;
@@ -740,7 +740,7 @@ export var serializeAws_restJson1DeleteDocumentationPartCommand = function (inpu
740
740
  case 1:
741
741
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
742
742
  headers = {};
743
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
743
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
744
744
  "/restapis/{restApiId}/documentation/parts/{documentationPartId}";
745
745
  if (input.restApiId !== undefined) {
746
746
  labelValue = input.restApiId;
@@ -782,7 +782,7 @@ export var serializeAws_restJson1DeleteDocumentationVersionCommand = function (i
782
782
  case 1:
783
783
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
784
784
  headers = {};
785
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
785
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
786
786
  "/restapis/{restApiId}/documentation/versions/{documentationVersion}";
787
787
  if (input.restApiId !== undefined) {
788
788
  labelValue = input.restApiId;
@@ -824,7 +824,7 @@ export var serializeAws_restJson1DeleteDomainNameCommand = function (input, cont
824
824
  case 1:
825
825
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
826
826
  headers = {};
827
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
827
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
828
828
  if (input.domainName !== undefined) {
829
829
  labelValue = input.domainName;
830
830
  if (labelValue.length <= 0) {
@@ -855,7 +855,7 @@ export var serializeAws_restJson1DeleteGatewayResponseCommand = function (input,
855
855
  case 1:
856
856
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
857
857
  headers = {};
858
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
858
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
859
859
  "/restapis/{restApiId}/gatewayresponses/{responseType}";
860
860
  if (input.restApiId !== undefined) {
861
861
  labelValue = input.restApiId;
@@ -897,7 +897,7 @@ export var serializeAws_restJson1DeleteIntegrationCommand = function (input, con
897
897
  case 1:
898
898
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
899
899
  headers = {};
900
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
900
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
901
901
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration";
902
902
  if (input.restApiId !== undefined) {
903
903
  labelValue = input.restApiId;
@@ -949,7 +949,7 @@ export var serializeAws_restJson1DeleteIntegrationResponseCommand = function (in
949
949
  case 1:
950
950
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
951
951
  headers = {};
952
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
952
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
953
953
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}";
954
954
  if (input.restApiId !== undefined) {
955
955
  labelValue = input.restApiId;
@@ -1011,7 +1011,7 @@ export var serializeAws_restJson1DeleteMethodCommand = function (input, context)
1011
1011
  case 1:
1012
1012
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1013
1013
  headers = {};
1014
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1014
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1015
1015
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}";
1016
1016
  if (input.restApiId !== undefined) {
1017
1017
  labelValue = input.restApiId;
@@ -1063,7 +1063,7 @@ export var serializeAws_restJson1DeleteMethodResponseCommand = function (input,
1063
1063
  case 1:
1064
1064
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1065
1065
  headers = {};
1066
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1066
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1067
1067
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}";
1068
1068
  if (input.restApiId !== undefined) {
1069
1069
  labelValue = input.restApiId;
@@ -1125,7 +1125,7 @@ export var serializeAws_restJson1DeleteModelCommand = function (input, context)
1125
1125
  case 1:
1126
1126
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1127
1127
  headers = {};
1128
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/models/{modelName}";
1128
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/models/{modelName}";
1129
1129
  if (input.restApiId !== undefined) {
1130
1130
  labelValue = input.restApiId;
1131
1131
  if (labelValue.length <= 0) {
@@ -1166,7 +1166,7 @@ export var serializeAws_restJson1DeleteRequestValidatorCommand = function (input
1166
1166
  case 1:
1167
1167
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1168
1168
  headers = {};
1169
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1169
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1170
1170
  "/restapis/{restApiId}/requestvalidators/{requestValidatorId}";
1171
1171
  if (input.restApiId !== undefined) {
1172
1172
  labelValue = input.restApiId;
@@ -1208,7 +1208,7 @@ export var serializeAws_restJson1DeleteResourceCommand = function (input, contex
1208
1208
  case 1:
1209
1209
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1210
1210
  headers = {};
1211
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1211
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1212
1212
  "/restapis/{restApiId}/resources/{resourceId}";
1213
1213
  if (input.restApiId !== undefined) {
1214
1214
  labelValue = input.restApiId;
@@ -1250,7 +1250,7 @@ export var serializeAws_restJson1DeleteRestApiCommand = function (input, context
1250
1250
  case 1:
1251
1251
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1252
1252
  headers = {};
1253
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}";
1253
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}";
1254
1254
  if (input.restApiId !== undefined) {
1255
1255
  labelValue = input.restApiId;
1256
1256
  if (labelValue.length <= 0) {
@@ -1281,7 +1281,7 @@ export var serializeAws_restJson1DeleteStageCommand = function (input, context)
1281
1281
  case 1:
1282
1282
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1283
1283
  headers = {};
1284
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/stages/{stageName}";
1284
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/stages/{stageName}";
1285
1285
  if (input.restApiId !== undefined) {
1286
1286
  labelValue = input.restApiId;
1287
1287
  if (labelValue.length <= 0) {
@@ -1322,7 +1322,7 @@ export var serializeAws_restJson1DeleteUsagePlanCommand = function (input, conte
1322
1322
  case 1:
1323
1323
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1324
1324
  headers = {};
1325
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}";
1325
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}";
1326
1326
  if (input.usagePlanId !== undefined) {
1327
1327
  labelValue = input.usagePlanId;
1328
1328
  if (labelValue.length <= 0) {
@@ -1353,7 +1353,7 @@ export var serializeAws_restJson1DeleteUsagePlanKeyCommand = function (input, co
1353
1353
  case 1:
1354
1354
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1355
1355
  headers = {};
1356
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}/keys/{keyId}";
1356
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}/keys/{keyId}";
1357
1357
  if (input.usagePlanId !== undefined) {
1358
1358
  labelValue = input.usagePlanId;
1359
1359
  if (labelValue.length <= 0) {
@@ -1394,7 +1394,7 @@ export var serializeAws_restJson1DeleteVpcLinkCommand = function (input, context
1394
1394
  case 1:
1395
1395
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1396
1396
  headers = {};
1397
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpclinks/{vpcLinkId}";
1397
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpclinks/{vpcLinkId}";
1398
1398
  if (input.vpcLinkId !== undefined) {
1399
1399
  labelValue = input.vpcLinkId;
1400
1400
  if (labelValue.length <= 0) {
@@ -1425,7 +1425,7 @@ export var serializeAws_restJson1FlushStageAuthorizersCacheCommand = function (i
1425
1425
  case 1:
1426
1426
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1427
1427
  headers = {};
1428
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1428
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1429
1429
  "/restapis/{restApiId}/stages/{stageName}/cache/authorizers";
1430
1430
  if (input.restApiId !== undefined) {
1431
1431
  labelValue = input.restApiId;
@@ -1467,7 +1467,7 @@ export var serializeAws_restJson1FlushStageCacheCommand = function (input, conte
1467
1467
  case 1:
1468
1468
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1469
1469
  headers = {};
1470
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1470
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1471
1471
  "/restapis/{restApiId}/stages/{stageName}/cache/data";
1472
1472
  if (input.restApiId !== undefined) {
1473
1473
  labelValue = input.restApiId;
@@ -1511,7 +1511,7 @@ export var serializeAws_restJson1GenerateClientCertificateCommand = function (in
1511
1511
  headers = {
1512
1512
  "content-type": "application/json",
1513
1513
  };
1514
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clientcertificates";
1514
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clientcertificates";
1515
1515
  body = JSON.stringify(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.tags !== undefined &&
1516
1516
  input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })));
1517
1517
  return [2, new __HttpRequest({
@@ -1536,7 +1536,7 @@ export var serializeAws_restJson1GetAccountCommand = function (input, context) {
1536
1536
  headers = {
1537
1537
  "content-type": "application/json",
1538
1538
  };
1539
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account";
1539
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account";
1540
1540
  body = "";
1541
1541
  return [2, new __HttpRequest({
1542
1542
  protocol: protocol,
@@ -1558,7 +1558,7 @@ export var serializeAws_restJson1GetApiKeyCommand = function (input, context) {
1558
1558
  case 1:
1559
1559
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1560
1560
  headers = {};
1561
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys/{apiKey}";
1561
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys/{apiKey}";
1562
1562
  if (input.apiKey !== undefined) {
1563
1563
  labelValue = input.apiKey;
1564
1564
  if (labelValue.length <= 0) {
@@ -1591,7 +1591,7 @@ export var serializeAws_restJson1GetApiKeysCommand = function (input, context) {
1591
1591
  case 1:
1592
1592
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1593
1593
  headers = {};
1594
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys";
1594
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys";
1595
1595
  query = __assign(__assign(__assign(__assign(__assign({}, (input.position !== undefined && { position: input.position })), (input.limit !== undefined && { limit: input.limit.toString() })), (input.nameQuery !== undefined && { name: input.nameQuery })), (input.customerId !== undefined && { customerId: input.customerId })), (input.includeValues !== undefined && { includeValues: input.includeValues.toString() }));
1596
1596
  return [2, new __HttpRequest({
1597
1597
  protocol: protocol,
@@ -1614,7 +1614,7 @@ export var serializeAws_restJson1GetAuthorizerCommand = function (input, context
1614
1614
  case 1:
1615
1615
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1616
1616
  headers = {};
1617
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1617
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1618
1618
  "/restapis/{restApiId}/authorizers/{authorizerId}";
1619
1619
  if (input.restApiId !== undefined) {
1620
1620
  labelValue = input.restApiId;
@@ -1656,7 +1656,7 @@ export var serializeAws_restJson1GetAuthorizersCommand = function (input, contex
1656
1656
  case 1:
1657
1657
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1658
1658
  headers = {};
1659
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/authorizers";
1659
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/authorizers";
1660
1660
  if (input.restApiId !== undefined) {
1661
1661
  labelValue = input.restApiId;
1662
1662
  if (labelValue.length <= 0) {
@@ -1689,7 +1689,7 @@ export var serializeAws_restJson1GetBasePathMappingCommand = function (input, co
1689
1689
  case 1:
1690
1690
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1691
1691
  headers = {};
1692
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1692
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1693
1693
  "/domainnames/{domainName}/basepathmappings/{basePath}";
1694
1694
  if (input.domainName !== undefined) {
1695
1695
  labelValue = input.domainName;
@@ -1731,7 +1731,7 @@ export var serializeAws_restJson1GetBasePathMappingsCommand = function (input, c
1731
1731
  case 1:
1732
1732
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1733
1733
  headers = {};
1734
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1734
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1735
1735
  "/domainnames/{domainName}/basepathmappings";
1736
1736
  if (input.domainName !== undefined) {
1737
1737
  labelValue = input.domainName;
@@ -1765,7 +1765,7 @@ export var serializeAws_restJson1GetClientCertificateCommand = function (input,
1765
1765
  case 1:
1766
1766
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1767
1767
  headers = {};
1768
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clientcertificates/{clientCertificateId}";
1768
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clientcertificates/{clientCertificateId}";
1769
1769
  if (input.clientCertificateId !== undefined) {
1770
1770
  labelValue = input.clientCertificateId;
1771
1771
  if (labelValue.length <= 0) {
@@ -1796,7 +1796,7 @@ export var serializeAws_restJson1GetClientCertificatesCommand = function (input,
1796
1796
  case 1:
1797
1797
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1798
1798
  headers = {};
1799
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clientcertificates";
1799
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clientcertificates";
1800
1800
  query = __assign(__assign({}, (input.position !== undefined && { position: input.position })), (input.limit !== undefined && { limit: input.limit.toString() }));
1801
1801
  return [2, new __HttpRequest({
1802
1802
  protocol: protocol,
@@ -1819,7 +1819,7 @@ export var serializeAws_restJson1GetDeploymentCommand = function (input, context
1819
1819
  case 1:
1820
1820
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1821
1821
  headers = {};
1822
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1822
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1823
1823
  "/restapis/{restApiId}/deployments/{deploymentId}";
1824
1824
  if (input.restApiId !== undefined) {
1825
1825
  labelValue = input.restApiId;
@@ -1863,7 +1863,7 @@ export var serializeAws_restJson1GetDeploymentsCommand = function (input, contex
1863
1863
  case 1:
1864
1864
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1865
1865
  headers = {};
1866
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/deployments";
1866
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/deployments";
1867
1867
  if (input.restApiId !== undefined) {
1868
1868
  labelValue = input.restApiId;
1869
1869
  if (labelValue.length <= 0) {
@@ -1896,7 +1896,7 @@ export var serializeAws_restJson1GetDocumentationPartCommand = function (input,
1896
1896
  case 1:
1897
1897
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1898
1898
  headers = {};
1899
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1899
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1900
1900
  "/restapis/{restApiId}/documentation/parts/{documentationPartId}";
1901
1901
  if (input.restApiId !== undefined) {
1902
1902
  labelValue = input.restApiId;
@@ -1938,7 +1938,7 @@ export var serializeAws_restJson1GetDocumentationPartsCommand = function (input,
1938
1938
  case 1:
1939
1939
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1940
1940
  headers = {};
1941
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/documentation/parts";
1941
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/documentation/parts";
1942
1942
  if (input.restApiId !== undefined) {
1943
1943
  labelValue = input.restApiId;
1944
1944
  if (labelValue.length <= 0) {
@@ -1971,7 +1971,7 @@ export var serializeAws_restJson1GetDocumentationVersionCommand = function (inpu
1971
1971
  case 1:
1972
1972
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1973
1973
  headers = {};
1974
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1974
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1975
1975
  "/restapis/{restApiId}/documentation/versions/{documentationVersion}";
1976
1976
  if (input.restApiId !== undefined) {
1977
1977
  labelValue = input.restApiId;
@@ -2013,7 +2013,7 @@ export var serializeAws_restJson1GetDocumentationVersionsCommand = function (inp
2013
2013
  case 1:
2014
2014
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2015
2015
  headers = {};
2016
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2016
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2017
2017
  "/restapis/{restApiId}/documentation/versions";
2018
2018
  if (input.restApiId !== undefined) {
2019
2019
  labelValue = input.restApiId;
@@ -2047,7 +2047,7 @@ export var serializeAws_restJson1GetDomainNameCommand = function (input, context
2047
2047
  case 1:
2048
2048
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2049
2049
  headers = {};
2050
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
2050
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
2051
2051
  if (input.domainName !== undefined) {
2052
2052
  labelValue = input.domainName;
2053
2053
  if (labelValue.length <= 0) {
@@ -2078,7 +2078,7 @@ export var serializeAws_restJson1GetDomainNamesCommand = function (input, contex
2078
2078
  case 1:
2079
2079
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2080
2080
  headers = {};
2081
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames";
2081
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames";
2082
2082
  query = __assign(__assign({}, (input.position !== undefined && { position: input.position })), (input.limit !== undefined && { limit: input.limit.toString() }));
2083
2083
  return [2, new __HttpRequest({
2084
2084
  protocol: protocol,
@@ -2101,7 +2101,7 @@ export var serializeAws_restJson1GetExportCommand = function (input, context) {
2101
2101
  case 1:
2102
2102
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2103
2103
  headers = __assign({}, (isSerializableHeaderValue(input.accepts) && { accept: input.accepts }));
2104
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2104
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2105
2105
  "/restapis/{restApiId}/stages/{stageName}/exports/{exportType}";
2106
2106
  if (input.restApiId !== undefined) {
2107
2107
  labelValue = input.restApiId;
@@ -2155,7 +2155,7 @@ export var serializeAws_restJson1GetGatewayResponseCommand = function (input, co
2155
2155
  case 1:
2156
2156
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2157
2157
  headers = {};
2158
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2158
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2159
2159
  "/restapis/{restApiId}/gatewayresponses/{responseType}";
2160
2160
  if (input.restApiId !== undefined) {
2161
2161
  labelValue = input.restApiId;
@@ -2197,7 +2197,7 @@ export var serializeAws_restJson1GetGatewayResponsesCommand = function (input, c
2197
2197
  case 1:
2198
2198
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2199
2199
  headers = {};
2200
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/gatewayresponses";
2200
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/gatewayresponses";
2201
2201
  if (input.restApiId !== undefined) {
2202
2202
  labelValue = input.restApiId;
2203
2203
  if (labelValue.length <= 0) {
@@ -2230,7 +2230,7 @@ export var serializeAws_restJson1GetIntegrationCommand = function (input, contex
2230
2230
  case 1:
2231
2231
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2232
2232
  headers = {};
2233
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2233
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2234
2234
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration";
2235
2235
  if (input.restApiId !== undefined) {
2236
2236
  labelValue = input.restApiId;
@@ -2282,7 +2282,7 @@ export var serializeAws_restJson1GetIntegrationResponseCommand = function (input
2282
2282
  case 1:
2283
2283
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2284
2284
  headers = {};
2285
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2285
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2286
2286
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}";
2287
2287
  if (input.restApiId !== undefined) {
2288
2288
  labelValue = input.restApiId;
@@ -2344,7 +2344,7 @@ export var serializeAws_restJson1GetMethodCommand = function (input, context) {
2344
2344
  case 1:
2345
2345
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2346
2346
  headers = {};
2347
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2347
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2348
2348
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}";
2349
2349
  if (input.restApiId !== undefined) {
2350
2350
  labelValue = input.restApiId;
@@ -2396,7 +2396,7 @@ export var serializeAws_restJson1GetMethodResponseCommand = function (input, con
2396
2396
  case 1:
2397
2397
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2398
2398
  headers = {};
2399
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2399
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2400
2400
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}";
2401
2401
  if (input.restApiId !== undefined) {
2402
2402
  labelValue = input.restApiId;
@@ -2458,7 +2458,7 @@ export var serializeAws_restJson1GetModelCommand = function (input, context) { r
2458
2458
  case 1:
2459
2459
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2460
2460
  headers = {};
2461
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/models/{modelName}";
2461
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/models/{modelName}";
2462
2462
  if (input.restApiId !== undefined) {
2463
2463
  labelValue = input.restApiId;
2464
2464
  if (labelValue.length <= 0) {
@@ -2501,7 +2501,7 @@ export var serializeAws_restJson1GetModelsCommand = function (input, context) {
2501
2501
  case 1:
2502
2502
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2503
2503
  headers = {};
2504
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/models";
2504
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/models";
2505
2505
  if (input.restApiId !== undefined) {
2506
2506
  labelValue = input.restApiId;
2507
2507
  if (labelValue.length <= 0) {
@@ -2534,7 +2534,7 @@ export var serializeAws_restJson1GetModelTemplateCommand = function (input, cont
2534
2534
  case 1:
2535
2535
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2536
2536
  headers = {};
2537
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2537
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2538
2538
  "/restapis/{restApiId}/models/{modelName}/default_template";
2539
2539
  if (input.restApiId !== undefined) {
2540
2540
  labelValue = input.restApiId;
@@ -2576,7 +2576,7 @@ export var serializeAws_restJson1GetRequestValidatorCommand = function (input, c
2576
2576
  case 1:
2577
2577
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2578
2578
  headers = {};
2579
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2579
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2580
2580
  "/restapis/{restApiId}/requestvalidators/{requestValidatorId}";
2581
2581
  if (input.restApiId !== undefined) {
2582
2582
  labelValue = input.restApiId;
@@ -2618,7 +2618,7 @@ export var serializeAws_restJson1GetRequestValidatorsCommand = function (input,
2618
2618
  case 1:
2619
2619
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2620
2620
  headers = {};
2621
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/requestvalidators";
2621
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/requestvalidators";
2622
2622
  if (input.restApiId !== undefined) {
2623
2623
  labelValue = input.restApiId;
2624
2624
  if (labelValue.length <= 0) {
@@ -2651,7 +2651,7 @@ export var serializeAws_restJson1GetResourceCommand = function (input, context)
2651
2651
  case 1:
2652
2652
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2653
2653
  headers = {};
2654
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2654
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2655
2655
  "/restapis/{restApiId}/resources/{resourceId}";
2656
2656
  if (input.restApiId !== undefined) {
2657
2657
  labelValue = input.restApiId;
@@ -2695,7 +2695,7 @@ export var serializeAws_restJson1GetResourcesCommand = function (input, context)
2695
2695
  case 1:
2696
2696
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2697
2697
  headers = {};
2698
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/resources";
2698
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/resources";
2699
2699
  if (input.restApiId !== undefined) {
2700
2700
  labelValue = input.restApiId;
2701
2701
  if (labelValue.length <= 0) {
@@ -2728,7 +2728,7 @@ export var serializeAws_restJson1GetRestApiCommand = function (input, context) {
2728
2728
  case 1:
2729
2729
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2730
2730
  headers = {};
2731
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}";
2731
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}";
2732
2732
  if (input.restApiId !== undefined) {
2733
2733
  labelValue = input.restApiId;
2734
2734
  if (labelValue.length <= 0) {
@@ -2759,7 +2759,7 @@ export var serializeAws_restJson1GetRestApisCommand = function (input, context)
2759
2759
  case 1:
2760
2760
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2761
2761
  headers = {};
2762
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis";
2762
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis";
2763
2763
  query = __assign(__assign({}, (input.position !== undefined && { position: input.position })), (input.limit !== undefined && { limit: input.limit.toString() }));
2764
2764
  return [2, new __HttpRequest({
2765
2765
  protocol: protocol,
@@ -2782,7 +2782,7 @@ export var serializeAws_restJson1GetSdkCommand = function (input, context) { ret
2782
2782
  case 1:
2783
2783
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2784
2784
  headers = {};
2785
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2785
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2786
2786
  "/restapis/{restApiId}/stages/{stageName}/sdks/{sdkType}";
2787
2787
  if (input.restApiId !== undefined) {
2788
2788
  labelValue = input.restApiId;
@@ -2836,7 +2836,7 @@ export var serializeAws_restJson1GetSdkTypeCommand = function (input, context) {
2836
2836
  case 1:
2837
2837
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2838
2838
  headers = {};
2839
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sdktypes/{id}";
2839
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sdktypes/{id}";
2840
2840
  if (input.id !== undefined) {
2841
2841
  labelValue = input.id;
2842
2842
  if (labelValue.length <= 0) {
@@ -2867,7 +2867,7 @@ export var serializeAws_restJson1GetSdkTypesCommand = function (input, context)
2867
2867
  case 1:
2868
2868
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2869
2869
  headers = {};
2870
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sdktypes";
2870
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sdktypes";
2871
2871
  query = __assign(__assign({}, (input.position !== undefined && { position: input.position })), (input.limit !== undefined && { limit: input.limit.toString() }));
2872
2872
  return [2, new __HttpRequest({
2873
2873
  protocol: protocol,
@@ -2890,7 +2890,7 @@ export var serializeAws_restJson1GetStageCommand = function (input, context) { r
2890
2890
  case 1:
2891
2891
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2892
2892
  headers = {};
2893
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/stages/{stageName}";
2893
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/stages/{stageName}";
2894
2894
  if (input.restApiId !== undefined) {
2895
2895
  labelValue = input.restApiId;
2896
2896
  if (labelValue.length <= 0) {
@@ -2931,7 +2931,7 @@ export var serializeAws_restJson1GetStagesCommand = function (input, context) {
2931
2931
  case 1:
2932
2932
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2933
2933
  headers = {};
2934
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/stages";
2934
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/stages";
2935
2935
  if (input.restApiId !== undefined) {
2936
2936
  labelValue = input.restApiId;
2937
2937
  if (labelValue.length <= 0) {
@@ -2964,7 +2964,7 @@ export var serializeAws_restJson1GetTagsCommand = function (input, context) { re
2964
2964
  case 1:
2965
2965
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2966
2966
  headers = {};
2967
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
2967
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
2968
2968
  if (input.resourceArn !== undefined) {
2969
2969
  labelValue = input.resourceArn;
2970
2970
  if (labelValue.length <= 0) {
@@ -2997,7 +2997,7 @@ export var serializeAws_restJson1GetUsageCommand = function (input, context) { r
2997
2997
  case 1:
2998
2998
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2999
2999
  headers = {};
3000
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}/usage";
3000
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}/usage";
3001
3001
  if (input.usagePlanId !== undefined) {
3002
3002
  labelValue = input.usagePlanId;
3003
3003
  if (labelValue.length <= 0) {
@@ -3030,7 +3030,7 @@ export var serializeAws_restJson1GetUsagePlanCommand = function (input, context)
3030
3030
  case 1:
3031
3031
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
3032
3032
  headers = {};
3033
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}";
3033
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}";
3034
3034
  if (input.usagePlanId !== undefined) {
3035
3035
  labelValue = input.usagePlanId;
3036
3036
  if (labelValue.length <= 0) {
@@ -3061,7 +3061,7 @@ export var serializeAws_restJson1GetUsagePlanKeyCommand = function (input, conte
3061
3061
  case 1:
3062
3062
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
3063
3063
  headers = {};
3064
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}/keys/{keyId}";
3064
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}/keys/{keyId}";
3065
3065
  if (input.usagePlanId !== undefined) {
3066
3066
  labelValue = input.usagePlanId;
3067
3067
  if (labelValue.length <= 0) {
@@ -3102,7 +3102,7 @@ export var serializeAws_restJson1GetUsagePlanKeysCommand = function (input, cont
3102
3102
  case 1:
3103
3103
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
3104
3104
  headers = {};
3105
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}/keys";
3105
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}/keys";
3106
3106
  if (input.usagePlanId !== undefined) {
3107
3107
  labelValue = input.usagePlanId;
3108
3108
  if (labelValue.length <= 0) {
@@ -3135,7 +3135,7 @@ export var serializeAws_restJson1GetUsagePlansCommand = function (input, context
3135
3135
  case 1:
3136
3136
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
3137
3137
  headers = {};
3138
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans";
3138
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans";
3139
3139
  query = __assign(__assign(__assign({}, (input.position !== undefined && { position: input.position })), (input.keyId !== undefined && { keyId: input.keyId })), (input.limit !== undefined && { limit: input.limit.toString() }));
3140
3140
  return [2, new __HttpRequest({
3141
3141
  protocol: protocol,
@@ -3158,7 +3158,7 @@ export var serializeAws_restJson1GetVpcLinkCommand = function (input, context) {
3158
3158
  case 1:
3159
3159
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
3160
3160
  headers = {};
3161
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpclinks/{vpcLinkId}";
3161
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpclinks/{vpcLinkId}";
3162
3162
  if (input.vpcLinkId !== undefined) {
3163
3163
  labelValue = input.vpcLinkId;
3164
3164
  if (labelValue.length <= 0) {
@@ -3189,7 +3189,7 @@ export var serializeAws_restJson1GetVpcLinksCommand = function (input, context)
3189
3189
  case 1:
3190
3190
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
3191
3191
  headers = {};
3192
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpclinks";
3192
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpclinks";
3193
3193
  query = __assign(__assign({}, (input.position !== undefined && { position: input.position })), (input.limit !== undefined && { limit: input.limit.toString() }));
3194
3194
  return [2, new __HttpRequest({
3195
3195
  protocol: protocol,
@@ -3214,7 +3214,7 @@ export var serializeAws_restJson1ImportApiKeysCommand = function (input, context
3214
3214
  headers = {
3215
3215
  "content-type": "application/octet-stream",
3216
3216
  };
3217
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys";
3217
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys";
3218
3218
  query = __assign(__assign({ mode: "import" }, (input.format !== undefined && { format: input.format })), (input.failOnWarnings !== undefined && { failonwarnings: input.failOnWarnings.toString() }));
3219
3219
  if (input.body !== undefined) {
3220
3220
  body = input.body;
@@ -3242,7 +3242,7 @@ export var serializeAws_restJson1ImportDocumentationPartsCommand = function (inp
3242
3242
  headers = {
3243
3243
  "content-type": "application/octet-stream",
3244
3244
  };
3245
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/documentation/parts";
3245
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/documentation/parts";
3246
3246
  if (input.restApiId !== undefined) {
3247
3247
  labelValue = input.restApiId;
3248
3248
  if (labelValue.length <= 0) {
@@ -3280,7 +3280,7 @@ export var serializeAws_restJson1ImportRestApiCommand = function (input, context
3280
3280
  headers = {
3281
3281
  "content-type": "application/octet-stream",
3282
3282
  };
3283
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis";
3283
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis";
3284
3284
  query = __assign(__assign({ mode: "import" }, (input.parameters !== undefined && input.parameters)), (input.failOnWarnings !== undefined && { failonwarnings: input.failOnWarnings.toString() }));
3285
3285
  if (input.body !== undefined) {
3286
3286
  body = input.body;
@@ -3308,7 +3308,7 @@ export var serializeAws_restJson1PutGatewayResponseCommand = function (input, co
3308
3308
  headers = {
3309
3309
  "content-type": "application/json",
3310
3310
  };
3311
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3311
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3312
3312
  "/restapis/{restApiId}/gatewayresponses/{responseType}";
3313
3313
  if (input.restApiId !== undefined) {
3314
3314
  labelValue = input.restApiId;
@@ -3359,7 +3359,7 @@ export var serializeAws_restJson1PutIntegrationCommand = function (input, contex
3359
3359
  headers = {
3360
3360
  "content-type": "application/json",
3361
3361
  };
3362
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3362
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3363
3363
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration";
3364
3364
  if (input.restApiId !== undefined) {
3365
3365
  labelValue = input.restApiId;
@@ -3430,7 +3430,7 @@ export var serializeAws_restJson1PutIntegrationResponseCommand = function (input
3430
3430
  headers = {
3431
3431
  "content-type": "application/json",
3432
3432
  };
3433
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3433
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3434
3434
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}";
3435
3435
  if (input.restApiId !== undefined) {
3436
3436
  labelValue = input.restApiId;
@@ -3503,7 +3503,7 @@ export var serializeAws_restJson1PutMethodCommand = function (input, context) {
3503
3503
  headers = {
3504
3504
  "content-type": "application/json",
3505
3505
  };
3506
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3506
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3507
3507
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}";
3508
3508
  if (input.restApiId !== undefined) {
3509
3509
  labelValue = input.restApiId;
@@ -3570,7 +3570,7 @@ export var serializeAws_restJson1PutMethodResponseCommand = function (input, con
3570
3570
  headers = {
3571
3571
  "content-type": "application/json",
3572
3572
  };
3573
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3573
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3574
3574
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}";
3575
3575
  if (input.restApiId !== undefined) {
3576
3576
  labelValue = input.restApiId;
@@ -3641,7 +3641,7 @@ export var serializeAws_restJson1PutRestApiCommand = function (input, context) {
3641
3641
  headers = {
3642
3642
  "content-type": "application/octet-stream",
3643
3643
  };
3644
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}";
3644
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}";
3645
3645
  if (input.restApiId !== undefined) {
3646
3646
  labelValue = input.restApiId;
3647
3647
  if (labelValue.length <= 0) {
@@ -3679,7 +3679,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
3679
3679
  headers = {
3680
3680
  "content-type": "application/json",
3681
3681
  };
3682
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
3682
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
3683
3683
  if (input.resourceArn !== undefined) {
3684
3684
  labelValue = input.resourceArn;
3685
3685
  if (labelValue.length <= 0) {
@@ -3714,7 +3714,7 @@ export var serializeAws_restJson1TestInvokeAuthorizerCommand = function (input,
3714
3714
  headers = {
3715
3715
  "content-type": "application/json",
3716
3716
  };
3717
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3717
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3718
3718
  "/restapis/{restApiId}/authorizers/{authorizerId}";
3719
3719
  if (input.restApiId !== undefined) {
3720
3720
  labelValue = input.restApiId;
@@ -3770,7 +3770,7 @@ export var serializeAws_restJson1TestInvokeMethodCommand = function (input, cont
3770
3770
  headers = {
3771
3771
  "content-type": "application/json",
3772
3772
  };
3773
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3773
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3774
3774
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}";
3775
3775
  if (input.restApiId !== undefined) {
3776
3776
  labelValue = input.restApiId;
@@ -3832,7 +3832,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
3832
3832
  case 1:
3833
3833
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
3834
3834
  headers = {};
3835
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
3835
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
3836
3836
  if (input.resourceArn !== undefined) {
3837
3837
  labelValue = input.resourceArn;
3838
3838
  if (labelValue.length <= 0) {
@@ -3867,7 +3867,7 @@ export var serializeAws_restJson1UpdateAccountCommand = function (input, context
3867
3867
  headers = {
3868
3868
  "content-type": "application/json",
3869
3869
  };
3870
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account";
3870
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account";
3871
3871
  body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
3872
3872
  input.patchOperations !== null && {
3873
3873
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
@@ -3894,7 +3894,7 @@ export var serializeAws_restJson1UpdateApiKeyCommand = function (input, context)
3894
3894
  headers = {
3895
3895
  "content-type": "application/json",
3896
3896
  };
3897
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys/{apiKey}";
3897
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys/{apiKey}";
3898
3898
  if (input.apiKey !== undefined) {
3899
3899
  labelValue = input.apiKey;
3900
3900
  if (labelValue.length <= 0) {
@@ -3931,7 +3931,7 @@ export var serializeAws_restJson1UpdateAuthorizerCommand = function (input, cont
3931
3931
  headers = {
3932
3932
  "content-type": "application/json",
3933
3933
  };
3934
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3934
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3935
3935
  "/restapis/{restApiId}/authorizers/{authorizerId}";
3936
3936
  if (input.restApiId !== undefined) {
3937
3937
  labelValue = input.restApiId;
@@ -3979,7 +3979,7 @@ export var serializeAws_restJson1UpdateBasePathMappingCommand = function (input,
3979
3979
  headers = {
3980
3980
  "content-type": "application/json",
3981
3981
  };
3982
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3982
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
3983
3983
  "/domainnames/{domainName}/basepathmappings/{basePath}";
3984
3984
  if (input.domainName !== undefined) {
3985
3985
  labelValue = input.domainName;
@@ -4027,7 +4027,7 @@ export var serializeAws_restJson1UpdateClientCertificateCommand = function (inpu
4027
4027
  headers = {
4028
4028
  "content-type": "application/json",
4029
4029
  };
4030
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clientcertificates/{clientCertificateId}";
4030
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clientcertificates/{clientCertificateId}";
4031
4031
  if (input.clientCertificateId !== undefined) {
4032
4032
  labelValue = input.clientCertificateId;
4033
4033
  if (labelValue.length <= 0) {
@@ -4064,7 +4064,7 @@ export var serializeAws_restJson1UpdateDeploymentCommand = function (input, cont
4064
4064
  headers = {
4065
4065
  "content-type": "application/json",
4066
4066
  };
4067
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4067
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4068
4068
  "/restapis/{restApiId}/deployments/{deploymentId}";
4069
4069
  if (input.restApiId !== undefined) {
4070
4070
  labelValue = input.restApiId;
@@ -4112,7 +4112,7 @@ export var serializeAws_restJson1UpdateDocumentationPartCommand = function (inpu
4112
4112
  headers = {
4113
4113
  "content-type": "application/json",
4114
4114
  };
4115
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4115
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4116
4116
  "/restapis/{restApiId}/documentation/parts/{documentationPartId}";
4117
4117
  if (input.restApiId !== undefined) {
4118
4118
  labelValue = input.restApiId;
@@ -4160,7 +4160,7 @@ export var serializeAws_restJson1UpdateDocumentationVersionCommand = function (i
4160
4160
  headers = {
4161
4161
  "content-type": "application/json",
4162
4162
  };
4163
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4163
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4164
4164
  "/restapis/{restApiId}/documentation/versions/{documentationVersion}";
4165
4165
  if (input.restApiId !== undefined) {
4166
4166
  labelValue = input.restApiId;
@@ -4208,7 +4208,7 @@ export var serializeAws_restJson1UpdateDomainNameCommand = function (input, cont
4208
4208
  headers = {
4209
4209
  "content-type": "application/json",
4210
4210
  };
4211
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
4211
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
4212
4212
  if (input.domainName !== undefined) {
4213
4213
  labelValue = input.domainName;
4214
4214
  if (labelValue.length <= 0) {
@@ -4245,7 +4245,7 @@ export var serializeAws_restJson1UpdateGatewayResponseCommand = function (input,
4245
4245
  headers = {
4246
4246
  "content-type": "application/json",
4247
4247
  };
4248
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4248
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4249
4249
  "/restapis/{restApiId}/gatewayresponses/{responseType}";
4250
4250
  if (input.restApiId !== undefined) {
4251
4251
  labelValue = input.restApiId;
@@ -4293,7 +4293,7 @@ export var serializeAws_restJson1UpdateIntegrationCommand = function (input, con
4293
4293
  headers = {
4294
4294
  "content-type": "application/json",
4295
4295
  };
4296
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4296
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4297
4297
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration";
4298
4298
  if (input.restApiId !== undefined) {
4299
4299
  labelValue = input.restApiId;
@@ -4351,7 +4351,7 @@ export var serializeAws_restJson1UpdateIntegrationResponseCommand = function (in
4351
4351
  headers = {
4352
4352
  "content-type": "application/json",
4353
4353
  };
4354
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4354
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4355
4355
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}";
4356
4356
  if (input.restApiId !== undefined) {
4357
4357
  labelValue = input.restApiId;
@@ -4419,7 +4419,7 @@ export var serializeAws_restJson1UpdateMethodCommand = function (input, context)
4419
4419
  headers = {
4420
4420
  "content-type": "application/json",
4421
4421
  };
4422
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4422
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4423
4423
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}";
4424
4424
  if (input.restApiId !== undefined) {
4425
4425
  labelValue = input.restApiId;
@@ -4477,7 +4477,7 @@ export var serializeAws_restJson1UpdateMethodResponseCommand = function (input,
4477
4477
  headers = {
4478
4478
  "content-type": "application/json",
4479
4479
  };
4480
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4480
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4481
4481
  "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}";
4482
4482
  if (input.restApiId !== undefined) {
4483
4483
  labelValue = input.restApiId;
@@ -4545,7 +4545,7 @@ export var serializeAws_restJson1UpdateModelCommand = function (input, context)
4545
4545
  headers = {
4546
4546
  "content-type": "application/json",
4547
4547
  };
4548
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/models/{modelName}";
4548
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/models/{modelName}";
4549
4549
  if (input.restApiId !== undefined) {
4550
4550
  labelValue = input.restApiId;
4551
4551
  if (labelValue.length <= 0) {
@@ -4592,7 +4592,7 @@ export var serializeAws_restJson1UpdateRequestValidatorCommand = function (input
4592
4592
  headers = {
4593
4593
  "content-type": "application/json",
4594
4594
  };
4595
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4595
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4596
4596
  "/restapis/{restApiId}/requestvalidators/{requestValidatorId}";
4597
4597
  if (input.restApiId !== undefined) {
4598
4598
  labelValue = input.restApiId;
@@ -4640,7 +4640,7 @@ export var serializeAws_restJson1UpdateResourceCommand = function (input, contex
4640
4640
  headers = {
4641
4641
  "content-type": "application/json",
4642
4642
  };
4643
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4643
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4644
4644
  "/restapis/{restApiId}/resources/{resourceId}";
4645
4645
  if (input.restApiId !== undefined) {
4646
4646
  labelValue = input.restApiId;
@@ -4688,7 +4688,7 @@ export var serializeAws_restJson1UpdateRestApiCommand = function (input, context
4688
4688
  headers = {
4689
4689
  "content-type": "application/json",
4690
4690
  };
4691
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}";
4691
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}";
4692
4692
  if (input.restApiId !== undefined) {
4693
4693
  labelValue = input.restApiId;
4694
4694
  if (labelValue.length <= 0) {
@@ -4725,7 +4725,7 @@ export var serializeAws_restJson1UpdateStageCommand = function (input, context)
4725
4725
  headers = {
4726
4726
  "content-type": "application/json",
4727
4727
  };
4728
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/stages/{stageName}";
4728
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis/{restApiId}/stages/{stageName}";
4729
4729
  if (input.restApiId !== undefined) {
4730
4730
  labelValue = input.restApiId;
4731
4731
  if (labelValue.length <= 0) {
@@ -4772,7 +4772,7 @@ export var serializeAws_restJson1UpdateUsageCommand = function (input, context)
4772
4772
  headers = {
4773
4773
  "content-type": "application/json",
4774
4774
  };
4775
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4775
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
4776
4776
  "/usageplans/{usagePlanId}/keys/{keyId}/usage";
4777
4777
  if (input.usagePlanId !== undefined) {
4778
4778
  labelValue = input.usagePlanId;
@@ -4820,7 +4820,7 @@ export var serializeAws_restJson1UpdateUsagePlanCommand = function (input, conte
4820
4820
  headers = {
4821
4821
  "content-type": "application/json",
4822
4822
  };
4823
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}";
4823
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans/{usagePlanId}";
4824
4824
  if (input.usagePlanId !== undefined) {
4825
4825
  labelValue = input.usagePlanId;
4826
4826
  if (labelValue.length <= 0) {
@@ -4857,7 +4857,7 @@ export var serializeAws_restJson1UpdateVpcLinkCommand = function (input, context
4857
4857
  headers = {
4858
4858
  "content-type": "application/json",
4859
4859
  };
4860
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpclinks/{vpcLinkId}";
4860
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpclinks/{vpcLinkId}";
4861
4861
  if (input.vpcLinkId !== undefined) {
4862
4862
  labelValue = input.vpcLinkId;
4863
4863
  if (labelValue.length <= 0) {