@aws-sdk/client-apigatewayv2 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 (90) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/ApiGatewayV2Client.js +13 -13
  3. package/dist-cjs/commands/CreateApiCommand.js +3 -3
  4. package/dist-cjs/commands/CreateApiMappingCommand.js +3 -3
  5. package/dist-cjs/commands/CreateAuthorizerCommand.js +3 -3
  6. package/dist-cjs/commands/CreateDeploymentCommand.js +3 -3
  7. package/dist-cjs/commands/CreateDomainNameCommand.js +3 -3
  8. package/dist-cjs/commands/CreateIntegrationCommand.js +3 -3
  9. package/dist-cjs/commands/CreateIntegrationResponseCommand.js +3 -3
  10. package/dist-cjs/commands/CreateModelCommand.js +3 -3
  11. package/dist-cjs/commands/CreateRouteCommand.js +3 -3
  12. package/dist-cjs/commands/CreateRouteResponseCommand.js +3 -3
  13. package/dist-cjs/commands/CreateStageCommand.js +3 -3
  14. package/dist-cjs/commands/CreateVpcLinkCommand.js +3 -3
  15. package/dist-cjs/commands/DeleteAccessLogSettingsCommand.js +3 -3
  16. package/dist-cjs/commands/DeleteApiCommand.js +3 -3
  17. package/dist-cjs/commands/DeleteApiMappingCommand.js +3 -3
  18. package/dist-cjs/commands/DeleteAuthorizerCommand.js +3 -3
  19. package/dist-cjs/commands/DeleteCorsConfigurationCommand.js +3 -3
  20. package/dist-cjs/commands/DeleteDeploymentCommand.js +3 -3
  21. package/dist-cjs/commands/DeleteDomainNameCommand.js +3 -3
  22. package/dist-cjs/commands/DeleteIntegrationCommand.js +3 -3
  23. package/dist-cjs/commands/DeleteIntegrationResponseCommand.js +3 -3
  24. package/dist-cjs/commands/DeleteModelCommand.js +3 -3
  25. package/dist-cjs/commands/DeleteRouteCommand.js +3 -3
  26. package/dist-cjs/commands/DeleteRouteRequestParameterCommand.js +3 -3
  27. package/dist-cjs/commands/DeleteRouteResponseCommand.js +3 -3
  28. package/dist-cjs/commands/DeleteRouteSettingsCommand.js +3 -3
  29. package/dist-cjs/commands/DeleteStageCommand.js +3 -3
  30. package/dist-cjs/commands/DeleteVpcLinkCommand.js +3 -3
  31. package/dist-cjs/commands/ExportApiCommand.js +3 -3
  32. package/dist-cjs/commands/GetApiCommand.js +3 -3
  33. package/dist-cjs/commands/GetApiMappingCommand.js +3 -3
  34. package/dist-cjs/commands/GetApiMappingsCommand.js +3 -3
  35. package/dist-cjs/commands/GetApisCommand.js +3 -3
  36. package/dist-cjs/commands/GetAuthorizerCommand.js +3 -3
  37. package/dist-cjs/commands/GetAuthorizersCommand.js +3 -3
  38. package/dist-cjs/commands/GetDeploymentCommand.js +3 -3
  39. package/dist-cjs/commands/GetDeploymentsCommand.js +3 -3
  40. package/dist-cjs/commands/GetDomainNameCommand.js +3 -3
  41. package/dist-cjs/commands/GetDomainNamesCommand.js +3 -3
  42. package/dist-cjs/commands/GetIntegrationCommand.js +3 -3
  43. package/dist-cjs/commands/GetIntegrationResponseCommand.js +3 -3
  44. package/dist-cjs/commands/GetIntegrationResponsesCommand.js +3 -3
  45. package/dist-cjs/commands/GetIntegrationsCommand.js +3 -3
  46. package/dist-cjs/commands/GetModelCommand.js +3 -3
  47. package/dist-cjs/commands/GetModelTemplateCommand.js +3 -3
  48. package/dist-cjs/commands/GetModelsCommand.js +3 -3
  49. package/dist-cjs/commands/GetRouteCommand.js +3 -3
  50. package/dist-cjs/commands/GetRouteResponseCommand.js +3 -3
  51. package/dist-cjs/commands/GetRouteResponsesCommand.js +3 -3
  52. package/dist-cjs/commands/GetRoutesCommand.js +3 -3
  53. package/dist-cjs/commands/GetStageCommand.js +3 -3
  54. package/dist-cjs/commands/GetStagesCommand.js +3 -3
  55. package/dist-cjs/commands/GetTagsCommand.js +3 -3
  56. package/dist-cjs/commands/GetVpcLinkCommand.js +3 -3
  57. package/dist-cjs/commands/GetVpcLinksCommand.js +3 -3
  58. package/dist-cjs/commands/ImportApiCommand.js +3 -3
  59. package/dist-cjs/commands/ReimportApiCommand.js +3 -3
  60. package/dist-cjs/commands/ResetAuthorizersCacheCommand.js +3 -3
  61. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  62. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  63. package/dist-cjs/commands/UpdateApiCommand.js +3 -3
  64. package/dist-cjs/commands/UpdateApiMappingCommand.js +3 -3
  65. package/dist-cjs/commands/UpdateAuthorizerCommand.js +3 -3
  66. package/dist-cjs/commands/UpdateDeploymentCommand.js +3 -3
  67. package/dist-cjs/commands/UpdateDomainNameCommand.js +3 -3
  68. package/dist-cjs/commands/UpdateIntegrationCommand.js +3 -3
  69. package/dist-cjs/commands/UpdateIntegrationResponseCommand.js +3 -3
  70. package/dist-cjs/commands/UpdateModelCommand.js +3 -3
  71. package/dist-cjs/commands/UpdateRouteCommand.js +3 -3
  72. package/dist-cjs/commands/UpdateRouteResponseCommand.js +3 -3
  73. package/dist-cjs/commands/UpdateStageCommand.js +3 -3
  74. package/dist-cjs/commands/UpdateVpcLinkCommand.js +3 -3
  75. package/dist-cjs/endpoints.js +1 -1
  76. package/dist-cjs/protocols/Aws_restJson1.js +665 -665
  77. package/dist-cjs/runtimeConfig.browser.js +4 -4
  78. package/dist-cjs/runtimeConfig.js +9 -9
  79. package/dist-cjs/runtimeConfig.native.js +1 -1
  80. package/dist-es/ApiGatewayV2.js +72 -72
  81. package/dist-es/protocols/Aws_restJson1.js +72 -72
  82. package/dist-types/ApiGatewayV2Client.d.ts +2 -2
  83. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  84. package/dist-types/runtimeConfig.d.ts +1 -1
  85. package/dist-types/runtimeConfig.native.d.ts +3 -3
  86. package/dist-types/ts3.4/ApiGatewayV2Client.d.ts +2 -2
  87. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  88. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  89. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  90. package/package.json +34 -34
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateApiCommand = 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 || "") + "/v2/apis";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis";
17
17
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiKeySelectionExpression !== undefined &&
18
18
  input.ApiKeySelectionExpression !== null && { apiKeySelectionExpression: input.ApiKeySelectionExpression })), (input.CorsConfiguration !== undefined &&
19
19
  input.CorsConfiguration !== null && {
@@ -45,7 +45,7 @@ export var serializeAws_restJson1CreateApiMappingCommand = function (input, cont
45
45
  headers = {
46
46
  "content-type": "application/json",
47
47
  };
48
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames/{DomainName}/apimappings";
48
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames/{DomainName}/apimappings";
49
49
  if (input.DomainName !== undefined) {
50
50
  labelValue = input.DomainName;
51
51
  if (labelValue.length <= 0) {
@@ -79,7 +79,7 @@ export var serializeAws_restJson1CreateAuthorizerCommand = function (input, cont
79
79
  headers = {
80
80
  "content-type": "application/json",
81
81
  };
82
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/authorizers";
82
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/authorizers";
83
83
  if (input.ApiId !== undefined) {
84
84
  labelValue = input.ApiId;
85
85
  if (labelValue.length <= 0) {
@@ -131,7 +131,7 @@ export var serializeAws_restJson1CreateDeploymentCommand = function (input, cont
131
131
  headers = {
132
132
  "content-type": "application/json",
133
133
  };
134
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/deployments";
134
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/deployments";
135
135
  if (input.ApiId !== undefined) {
136
136
  labelValue = input.ApiId;
137
137
  if (labelValue.length <= 0) {
@@ -165,7 +165,7 @@ export var serializeAws_restJson1CreateDomainNameCommand = function (input, cont
165
165
  headers = {
166
166
  "content-type": "application/json",
167
167
  };
168
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames";
168
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames";
169
169
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DomainName !== undefined && input.DomainName !== null && { domainName: input.DomainName })), (input.DomainNameConfigurations !== undefined &&
170
170
  input.DomainNameConfigurations !== null && {
171
171
  domainNameConfigurations: serializeAws_restJson1DomainNameConfigurations(input.DomainNameConfigurations, context),
@@ -195,7 +195,7 @@ export var serializeAws_restJson1CreateIntegrationCommand = function (input, con
195
195
  headers = {
196
196
  "content-type": "application/json",
197
197
  };
198
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/integrations";
198
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/integrations";
199
199
  if (input.ApiId !== undefined) {
200
200
  labelValue = input.ApiId;
201
201
  if (labelValue.length <= 0) {
@@ -250,7 +250,7 @@ export var serializeAws_restJson1CreateIntegrationResponseCommand = function (in
250
250
  headers = {
251
251
  "content-type": "application/json",
252
252
  };
253
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
253
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
254
254
  "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses";
255
255
  if (input.ApiId !== undefined) {
256
256
  labelValue = input.ApiId;
@@ -304,7 +304,7 @@ export var serializeAws_restJson1CreateModelCommand = function (input, context)
304
304
  headers = {
305
305
  "content-type": "application/json",
306
306
  };
307
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/models";
307
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/models";
308
308
  if (input.ApiId !== undefined) {
309
309
  labelValue = input.ApiId;
310
310
  if (labelValue.length <= 0) {
@@ -338,7 +338,7 @@ export var serializeAws_restJson1CreateRouteCommand = function (input, context)
338
338
  headers = {
339
339
  "content-type": "application/json",
340
340
  };
341
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/routes";
341
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/routes";
342
342
  if (input.ApiId !== undefined) {
343
343
  labelValue = input.ApiId;
344
344
  if (labelValue.length <= 0) {
@@ -387,7 +387,7 @@ export var serializeAws_restJson1CreateRouteResponseCommand = function (input, c
387
387
  headers = {
388
388
  "content-type": "application/json",
389
389
  };
390
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
390
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
391
391
  "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses";
392
392
  if (input.ApiId !== undefined) {
393
393
  labelValue = input.ApiId;
@@ -440,7 +440,7 @@ export var serializeAws_restJson1CreateStageCommand = function (input, context)
440
440
  headers = {
441
441
  "content-type": "application/json",
442
442
  };
443
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/stages";
443
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/stages";
444
444
  if (input.ApiId !== undefined) {
445
445
  labelValue = input.ApiId;
446
446
  if (labelValue.length <= 0) {
@@ -487,7 +487,7 @@ export var serializeAws_restJson1CreateVpcLinkCommand = function (input, context
487
487
  headers = {
488
488
  "content-type": "application/json",
489
489
  };
490
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/vpclinks";
490
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/vpclinks";
491
491
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.SecurityGroupIds !== undefined &&
492
492
  input.SecurityGroupIds !== null && {
493
493
  securityGroupIds: serializeAws_restJson1SecurityGroupIdList(input.SecurityGroupIds, context),
@@ -513,7 +513,7 @@ export var serializeAws_restJson1DeleteAccessLogSettingsCommand = function (inpu
513
513
  case 1:
514
514
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
515
515
  headers = {};
516
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
516
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
517
517
  "/v2/apis/{ApiId}/stages/{StageName}/accesslogsettings";
518
518
  if (input.ApiId !== undefined) {
519
519
  labelValue = input.ApiId;
@@ -555,7 +555,7 @@ export var serializeAws_restJson1DeleteApiCommand = function (input, context) {
555
555
  case 1:
556
556
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
557
557
  headers = {};
558
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}";
558
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}";
559
559
  if (input.ApiId !== undefined) {
560
560
  labelValue = input.ApiId;
561
561
  if (labelValue.length <= 0) {
@@ -586,7 +586,7 @@ export var serializeAws_restJson1DeleteApiMappingCommand = function (input, cont
586
586
  case 1:
587
587
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
588
588
  headers = {};
589
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
589
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
590
590
  "/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}";
591
591
  if (input.ApiMappingId !== undefined) {
592
592
  labelValue = input.ApiMappingId;
@@ -628,7 +628,7 @@ export var serializeAws_restJson1DeleteAuthorizerCommand = function (input, cont
628
628
  case 1:
629
629
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
630
630
  headers = {};
631
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
631
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
632
632
  "/v2/apis/{ApiId}/authorizers/{AuthorizerId}";
633
633
  if (input.ApiId !== undefined) {
634
634
  labelValue = input.ApiId;
@@ -670,7 +670,7 @@ export var serializeAws_restJson1DeleteCorsConfigurationCommand = function (inpu
670
670
  case 1:
671
671
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
672
672
  headers = {};
673
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/cors";
673
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/cors";
674
674
  if (input.ApiId !== undefined) {
675
675
  labelValue = input.ApiId;
676
676
  if (labelValue.length <= 0) {
@@ -701,7 +701,7 @@ export var serializeAws_restJson1DeleteDeploymentCommand = function (input, cont
701
701
  case 1:
702
702
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
703
703
  headers = {};
704
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
704
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
705
705
  "/v2/apis/{ApiId}/deployments/{DeploymentId}";
706
706
  if (input.ApiId !== undefined) {
707
707
  labelValue = input.ApiId;
@@ -743,7 +743,7 @@ export var serializeAws_restJson1DeleteDomainNameCommand = function (input, cont
743
743
  case 1:
744
744
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
745
745
  headers = {};
746
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames/{DomainName}";
746
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames/{DomainName}";
747
747
  if (input.DomainName !== undefined) {
748
748
  labelValue = input.DomainName;
749
749
  if (labelValue.length <= 0) {
@@ -774,7 +774,7 @@ export var serializeAws_restJson1DeleteIntegrationCommand = function (input, con
774
774
  case 1:
775
775
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
776
776
  headers = {};
777
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
777
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
778
778
  "/v2/apis/{ApiId}/integrations/{IntegrationId}";
779
779
  if (input.ApiId !== undefined) {
780
780
  labelValue = input.ApiId;
@@ -816,7 +816,7 @@ export var serializeAws_restJson1DeleteIntegrationResponseCommand = function (in
816
816
  case 1:
817
817
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
818
818
  headers = {};
819
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
819
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
820
820
  "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}";
821
821
  if (input.ApiId !== undefined) {
822
822
  labelValue = input.ApiId;
@@ -868,7 +868,7 @@ export var serializeAws_restJson1DeleteModelCommand = function (input, context)
868
868
  case 1:
869
869
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
870
870
  headers = {};
871
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/models/{ModelId}";
871
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/models/{ModelId}";
872
872
  if (input.ApiId !== undefined) {
873
873
  labelValue = input.ApiId;
874
874
  if (labelValue.length <= 0) {
@@ -909,7 +909,7 @@ export var serializeAws_restJson1DeleteRouteCommand = function (input, context)
909
909
  case 1:
910
910
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
911
911
  headers = {};
912
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/routes/{RouteId}";
912
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/routes/{RouteId}";
913
913
  if (input.ApiId !== undefined) {
914
914
  labelValue = input.ApiId;
915
915
  if (labelValue.length <= 0) {
@@ -950,7 +950,7 @@ export var serializeAws_restJson1DeleteRouteRequestParameterCommand = function (
950
950
  case 1:
951
951
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
952
952
  headers = {};
953
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
953
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
954
954
  "/v2/apis/{ApiId}/routes/{RouteId}/requestparameters/{RequestParameterKey}";
955
955
  if (input.ApiId !== undefined) {
956
956
  labelValue = input.ApiId;
@@ -1002,7 +1002,7 @@ export var serializeAws_restJson1DeleteRouteResponseCommand = function (input, c
1002
1002
  case 1:
1003
1003
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1004
1004
  headers = {};
1005
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1005
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1006
1006
  "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}";
1007
1007
  if (input.ApiId !== undefined) {
1008
1008
  labelValue = input.ApiId;
@@ -1054,7 +1054,7 @@ export var serializeAws_restJson1DeleteRouteSettingsCommand = function (input, c
1054
1054
  case 1:
1055
1055
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1056
1056
  headers = {};
1057
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1057
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1058
1058
  "/v2/apis/{ApiId}/stages/{StageName}/routesettings/{RouteKey}";
1059
1059
  if (input.ApiId !== undefined) {
1060
1060
  labelValue = input.ApiId;
@@ -1106,7 +1106,7 @@ export var serializeAws_restJson1DeleteStageCommand = function (input, context)
1106
1106
  case 1:
1107
1107
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1108
1108
  headers = {};
1109
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/stages/{StageName}";
1109
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/stages/{StageName}";
1110
1110
  if (input.ApiId !== undefined) {
1111
1111
  labelValue = input.ApiId;
1112
1112
  if (labelValue.length <= 0) {
@@ -1147,7 +1147,7 @@ export var serializeAws_restJson1DeleteVpcLinkCommand = function (input, context
1147
1147
  case 1:
1148
1148
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1149
1149
  headers = {};
1150
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/vpclinks/{VpcLinkId}";
1150
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/vpclinks/{VpcLinkId}";
1151
1151
  if (input.VpcLinkId !== undefined) {
1152
1152
  labelValue = input.VpcLinkId;
1153
1153
  if (labelValue.length <= 0) {
@@ -1178,7 +1178,7 @@ export var serializeAws_restJson1ExportApiCommand = function (input, context) {
1178
1178
  case 1:
1179
1179
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1180
1180
  headers = {};
1181
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/exports/{Specification}";
1181
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/exports/{Specification}";
1182
1182
  if (input.ApiId !== undefined) {
1183
1183
  labelValue = input.ApiId;
1184
1184
  if (labelValue.length <= 0) {
@@ -1221,7 +1221,7 @@ export var serializeAws_restJson1GetApiCommand = function (input, context) { ret
1221
1221
  case 1:
1222
1222
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1223
1223
  headers = {};
1224
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}";
1224
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}";
1225
1225
  if (input.ApiId !== undefined) {
1226
1226
  labelValue = input.ApiId;
1227
1227
  if (labelValue.length <= 0) {
@@ -1252,7 +1252,7 @@ export var serializeAws_restJson1GetApiMappingCommand = function (input, context
1252
1252
  case 1:
1253
1253
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1254
1254
  headers = {};
1255
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1255
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1256
1256
  "/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}";
1257
1257
  if (input.ApiMappingId !== undefined) {
1258
1258
  labelValue = input.ApiMappingId;
@@ -1294,7 +1294,7 @@ export var serializeAws_restJson1GetApiMappingsCommand = function (input, contex
1294
1294
  case 1:
1295
1295
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1296
1296
  headers = {};
1297
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames/{DomainName}/apimappings";
1297
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames/{DomainName}/apimappings";
1298
1298
  if (input.DomainName !== undefined) {
1299
1299
  labelValue = input.DomainName;
1300
1300
  if (labelValue.length <= 0) {
@@ -1327,7 +1327,7 @@ export var serializeAws_restJson1GetApisCommand = function (input, context) { re
1327
1327
  case 1:
1328
1328
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1329
1329
  headers = {};
1330
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis";
1330
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis";
1331
1331
  query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
1332
1332
  return [2, new __HttpRequest({
1333
1333
  protocol: protocol,
@@ -1350,7 +1350,7 @@ export var serializeAws_restJson1GetAuthorizerCommand = function (input, context
1350
1350
  case 1:
1351
1351
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1352
1352
  headers = {};
1353
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1353
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1354
1354
  "/v2/apis/{ApiId}/authorizers/{AuthorizerId}";
1355
1355
  if (input.ApiId !== undefined) {
1356
1356
  labelValue = input.ApiId;
@@ -1392,7 +1392,7 @@ export var serializeAws_restJson1GetAuthorizersCommand = function (input, contex
1392
1392
  case 1:
1393
1393
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1394
1394
  headers = {};
1395
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/authorizers";
1395
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/authorizers";
1396
1396
  if (input.ApiId !== undefined) {
1397
1397
  labelValue = input.ApiId;
1398
1398
  if (labelValue.length <= 0) {
@@ -1425,7 +1425,7 @@ export var serializeAws_restJson1GetDeploymentCommand = function (input, context
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
  "/v2/apis/{ApiId}/deployments/{DeploymentId}";
1430
1430
  if (input.ApiId !== undefined) {
1431
1431
  labelValue = input.ApiId;
@@ -1467,7 +1467,7 @@ export var serializeAws_restJson1GetDeploymentsCommand = function (input, contex
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 || "") + "/v2/apis/{ApiId}/deployments";
1470
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/deployments";
1471
1471
  if (input.ApiId !== undefined) {
1472
1472
  labelValue = input.ApiId;
1473
1473
  if (labelValue.length <= 0) {
@@ -1500,7 +1500,7 @@ export var serializeAws_restJson1GetDomainNameCommand = function (input, context
1500
1500
  case 1:
1501
1501
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1502
1502
  headers = {};
1503
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames/{DomainName}";
1503
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames/{DomainName}";
1504
1504
  if (input.DomainName !== undefined) {
1505
1505
  labelValue = input.DomainName;
1506
1506
  if (labelValue.length <= 0) {
@@ -1531,7 +1531,7 @@ export var serializeAws_restJson1GetDomainNamesCommand = function (input, contex
1531
1531
  case 1:
1532
1532
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1533
1533
  headers = {};
1534
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames";
1534
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames";
1535
1535
  query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
1536
1536
  return [2, new __HttpRequest({
1537
1537
  protocol: protocol,
@@ -1554,7 +1554,7 @@ export var serializeAws_restJson1GetIntegrationCommand = function (input, contex
1554
1554
  case 1:
1555
1555
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1556
1556
  headers = {};
1557
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1557
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1558
1558
  "/v2/apis/{ApiId}/integrations/{IntegrationId}";
1559
1559
  if (input.ApiId !== undefined) {
1560
1560
  labelValue = input.ApiId;
@@ -1596,7 +1596,7 @@ export var serializeAws_restJson1GetIntegrationResponseCommand = function (input
1596
1596
  case 1:
1597
1597
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1598
1598
  headers = {};
1599
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1599
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1600
1600
  "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}";
1601
1601
  if (input.ApiId !== undefined) {
1602
1602
  labelValue = input.ApiId;
@@ -1648,7 +1648,7 @@ export var serializeAws_restJson1GetIntegrationResponsesCommand = function (inpu
1648
1648
  case 1:
1649
1649
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1650
1650
  headers = {};
1651
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1651
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1652
1652
  "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses";
1653
1653
  if (input.ApiId !== undefined) {
1654
1654
  labelValue = input.ApiId;
@@ -1692,7 +1692,7 @@ export var serializeAws_restJson1GetIntegrationsCommand = function (input, conte
1692
1692
  case 1:
1693
1693
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1694
1694
  headers = {};
1695
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/integrations";
1695
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/integrations";
1696
1696
  if (input.ApiId !== undefined) {
1697
1697
  labelValue = input.ApiId;
1698
1698
  if (labelValue.length <= 0) {
@@ -1725,7 +1725,7 @@ export var serializeAws_restJson1GetModelCommand = function (input, context) { r
1725
1725
  case 1:
1726
1726
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1727
1727
  headers = {};
1728
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/models/{ModelId}";
1728
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/models/{ModelId}";
1729
1729
  if (input.ApiId !== undefined) {
1730
1730
  labelValue = input.ApiId;
1731
1731
  if (labelValue.length <= 0) {
@@ -1766,7 +1766,7 @@ export var serializeAws_restJson1GetModelsCommand = function (input, context) {
1766
1766
  case 1:
1767
1767
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1768
1768
  headers = {};
1769
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/models";
1769
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/models";
1770
1770
  if (input.ApiId !== undefined) {
1771
1771
  labelValue = input.ApiId;
1772
1772
  if (labelValue.length <= 0) {
@@ -1799,7 +1799,7 @@ export var serializeAws_restJson1GetModelTemplateCommand = function (input, cont
1799
1799
  case 1:
1800
1800
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1801
1801
  headers = {};
1802
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1802
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1803
1803
  "/v2/apis/{ApiId}/models/{ModelId}/template";
1804
1804
  if (input.ApiId !== undefined) {
1805
1805
  labelValue = input.ApiId;
@@ -1841,7 +1841,7 @@ export var serializeAws_restJson1GetRouteCommand = function (input, context) { r
1841
1841
  case 1:
1842
1842
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1843
1843
  headers = {};
1844
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/routes/{RouteId}";
1844
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/routes/{RouteId}";
1845
1845
  if (input.ApiId !== undefined) {
1846
1846
  labelValue = input.ApiId;
1847
1847
  if (labelValue.length <= 0) {
@@ -1882,7 +1882,7 @@ export var serializeAws_restJson1GetRouteResponseCommand = function (input, cont
1882
1882
  case 1:
1883
1883
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1884
1884
  headers = {};
1885
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1885
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1886
1886
  "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}";
1887
1887
  if (input.ApiId !== undefined) {
1888
1888
  labelValue = input.ApiId;
@@ -1934,7 +1934,7 @@ export var serializeAws_restJson1GetRouteResponsesCommand = function (input, con
1934
1934
  case 1:
1935
1935
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1936
1936
  headers = {};
1937
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1937
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1938
1938
  "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses";
1939
1939
  if (input.ApiId !== undefined) {
1940
1940
  labelValue = input.ApiId;
@@ -1978,7 +1978,7 @@ export var serializeAws_restJson1GetRoutesCommand = function (input, context) {
1978
1978
  case 1:
1979
1979
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1980
1980
  headers = {};
1981
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/routes";
1981
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/routes";
1982
1982
  if (input.ApiId !== undefined) {
1983
1983
  labelValue = input.ApiId;
1984
1984
  if (labelValue.length <= 0) {
@@ -2011,7 +2011,7 @@ export var serializeAws_restJson1GetStageCommand = function (input, context) { r
2011
2011
  case 1:
2012
2012
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2013
2013
  headers = {};
2014
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/stages/{StageName}";
2014
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/stages/{StageName}";
2015
2015
  if (input.ApiId !== undefined) {
2016
2016
  labelValue = input.ApiId;
2017
2017
  if (labelValue.length <= 0) {
@@ -2052,7 +2052,7 @@ export var serializeAws_restJson1GetStagesCommand = function (input, context) {
2052
2052
  case 1:
2053
2053
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2054
2054
  headers = {};
2055
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/stages";
2055
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/stages";
2056
2056
  if (input.ApiId !== undefined) {
2057
2057
  labelValue = input.ApiId;
2058
2058
  if (labelValue.length <= 0) {
@@ -2085,7 +2085,7 @@ export var serializeAws_restJson1GetTagsCommand = function (input, context) { re
2085
2085
  case 1:
2086
2086
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2087
2087
  headers = {};
2088
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/tags/{ResourceArn}";
2088
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/tags/{ResourceArn}";
2089
2089
  if (input.ResourceArn !== undefined) {
2090
2090
  labelValue = input.ResourceArn;
2091
2091
  if (labelValue.length <= 0) {
@@ -2116,7 +2116,7 @@ export var serializeAws_restJson1GetVpcLinkCommand = function (input, context) {
2116
2116
  case 1:
2117
2117
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2118
2118
  headers = {};
2119
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/vpclinks/{VpcLinkId}";
2119
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/vpclinks/{VpcLinkId}";
2120
2120
  if (input.VpcLinkId !== undefined) {
2121
2121
  labelValue = input.VpcLinkId;
2122
2122
  if (labelValue.length <= 0) {
@@ -2147,7 +2147,7 @@ export var serializeAws_restJson1GetVpcLinksCommand = function (input, context)
2147
2147
  case 1:
2148
2148
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2149
2149
  headers = {};
2150
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/vpclinks";
2150
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/vpclinks";
2151
2151
  query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
2152
2152
  return [2, new __HttpRequest({
2153
2153
  protocol: protocol,
@@ -2172,7 +2172,7 @@ export var serializeAws_restJson1ImportApiCommand = function (input, context) {
2172
2172
  headers = {
2173
2173
  "content-type": "application/json",
2174
2174
  };
2175
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis";
2175
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis";
2176
2176
  query = __assign(__assign({}, (input.Basepath !== undefined && { basepath: input.Basepath })), (input.FailOnWarnings !== undefined && { failOnWarnings: input.FailOnWarnings.toString() }));
2177
2177
  body = JSON.stringify(__assign({}, (input.Body !== undefined && input.Body !== null && { body: input.Body })));
2178
2178
  return [2, new __HttpRequest({
@@ -2198,7 +2198,7 @@ export var serializeAws_restJson1ReimportApiCommand = function (input, context)
2198
2198
  headers = {
2199
2199
  "content-type": "application/json",
2200
2200
  };
2201
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}";
2201
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}";
2202
2202
  if (input.ApiId !== undefined) {
2203
2203
  labelValue = input.ApiId;
2204
2204
  if (labelValue.length <= 0) {
@@ -2232,7 +2232,7 @@ export var serializeAws_restJson1ResetAuthorizersCacheCommand = function (input,
2232
2232
  case 1:
2233
2233
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2234
2234
  headers = {};
2235
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2235
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2236
2236
  "/v2/apis/{ApiId}/stages/{StageName}/cache/authorizers";
2237
2237
  if (input.ApiId !== undefined) {
2238
2238
  labelValue = input.ApiId;
@@ -2276,7 +2276,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
2276
2276
  headers = {
2277
2277
  "content-type": "application/json",
2278
2278
  };
2279
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/tags/{ResourceArn}";
2279
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/tags/{ResourceArn}";
2280
2280
  if (input.ResourceArn !== undefined) {
2281
2281
  labelValue = input.ResourceArn;
2282
2282
  if (labelValue.length <= 0) {
@@ -2308,7 +2308,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
2308
2308
  case 1:
2309
2309
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2310
2310
  headers = {};
2311
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/tags/{ResourceArn}";
2311
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/tags/{ResourceArn}";
2312
2312
  if (input.ResourceArn !== undefined) {
2313
2313
  labelValue = input.ResourceArn;
2314
2314
  if (labelValue.length <= 0) {
@@ -2343,7 +2343,7 @@ export var serializeAws_restJson1UpdateApiCommand = function (input, context) {
2343
2343
  headers = {
2344
2344
  "content-type": "application/json",
2345
2345
  };
2346
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}";
2346
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}";
2347
2347
  if (input.ApiId !== undefined) {
2348
2348
  labelValue = input.ApiId;
2349
2349
  if (labelValue.length <= 0) {
@@ -2385,7 +2385,7 @@ export var serializeAws_restJson1UpdateApiMappingCommand = function (input, cont
2385
2385
  headers = {
2386
2386
  "content-type": "application/json",
2387
2387
  };
2388
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2388
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2389
2389
  "/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}";
2390
2390
  if (input.ApiMappingId !== undefined) {
2391
2391
  labelValue = input.ApiMappingId;
@@ -2430,7 +2430,7 @@ export var serializeAws_restJson1UpdateAuthorizerCommand = function (input, cont
2430
2430
  headers = {
2431
2431
  "content-type": "application/json",
2432
2432
  };
2433
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2433
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2434
2434
  "/v2/apis/{ApiId}/authorizers/{AuthorizerId}";
2435
2435
  if (input.ApiId !== undefined) {
2436
2436
  labelValue = input.ApiId;
@@ -2493,7 +2493,7 @@ export var serializeAws_restJson1UpdateDeploymentCommand = function (input, cont
2493
2493
  headers = {
2494
2494
  "content-type": "application/json",
2495
2495
  };
2496
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2496
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2497
2497
  "/v2/apis/{ApiId}/deployments/{DeploymentId}";
2498
2498
  if (input.ApiId !== undefined) {
2499
2499
  labelValue = input.ApiId;
@@ -2538,7 +2538,7 @@ export var serializeAws_restJson1UpdateDomainNameCommand = function (input, cont
2538
2538
  headers = {
2539
2539
  "content-type": "application/json",
2540
2540
  };
2541
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames/{DomainName}";
2541
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames/{DomainName}";
2542
2542
  if (input.DomainName !== undefined) {
2543
2543
  labelValue = input.DomainName;
2544
2544
  if (labelValue.length <= 0) {
@@ -2578,7 +2578,7 @@ export var serializeAws_restJson1UpdateIntegrationCommand = function (input, con
2578
2578
  headers = {
2579
2579
  "content-type": "application/json",
2580
2580
  };
2581
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2581
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2582
2582
  "/v2/apis/{ApiId}/integrations/{IntegrationId}";
2583
2583
  if (input.ApiId !== undefined) {
2584
2584
  labelValue = input.ApiId;
@@ -2644,7 +2644,7 @@ export var serializeAws_restJson1UpdateIntegrationResponseCommand = function (in
2644
2644
  headers = {
2645
2645
  "content-type": "application/json",
2646
2646
  };
2647
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2647
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2648
2648
  "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}";
2649
2649
  if (input.ApiId !== undefined) {
2650
2650
  labelValue = input.ApiId;
@@ -2708,7 +2708,7 @@ export var serializeAws_restJson1UpdateModelCommand = function (input, context)
2708
2708
  headers = {
2709
2709
  "content-type": "application/json",
2710
2710
  };
2711
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/models/{ModelId}";
2711
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/models/{ModelId}";
2712
2712
  if (input.ApiId !== undefined) {
2713
2713
  labelValue = input.ApiId;
2714
2714
  if (labelValue.length <= 0) {
@@ -2752,7 +2752,7 @@ export var serializeAws_restJson1UpdateRouteCommand = function (input, context)
2752
2752
  headers = {
2753
2753
  "content-type": "application/json",
2754
2754
  };
2755
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/routes/{RouteId}";
2755
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/routes/{RouteId}";
2756
2756
  if (input.ApiId !== undefined) {
2757
2757
  labelValue = input.ApiId;
2758
2758
  if (labelValue.length <= 0) {
@@ -2811,7 +2811,7 @@ export var serializeAws_restJson1UpdateRouteResponseCommand = function (input, c
2811
2811
  headers = {
2812
2812
  "content-type": "application/json",
2813
2813
  };
2814
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2814
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2815
2815
  "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}";
2816
2816
  if (input.ApiId !== undefined) {
2817
2817
  labelValue = input.ApiId;
@@ -2874,7 +2874,7 @@ export var serializeAws_restJson1UpdateStageCommand = function (input, context)
2874
2874
  headers = {
2875
2875
  "content-type": "application/json",
2876
2876
  };
2877
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/stages/{StageName}";
2877
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis/{ApiId}/stages/{StageName}";
2878
2878
  if (input.ApiId !== undefined) {
2879
2879
  labelValue = input.ApiId;
2880
2880
  if (labelValue.length <= 0) {
@@ -2931,7 +2931,7 @@ export var serializeAws_restJson1UpdateVpcLinkCommand = function (input, context
2931
2931
  headers = {
2932
2932
  "content-type": "application/json",
2933
2933
  };
2934
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/vpclinks/{VpcLinkId}";
2934
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/vpclinks/{VpcLinkId}";
2935
2935
  if (input.VpcLinkId !== undefined) {
2936
2936
  labelValue = input.VpcLinkId;
2937
2937
  if (labelValue.length <= 0) {