@aws-sdk/client-apigatewayv2 3.200.0 → 3.202.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-apigatewayv2
9
+
10
+
11
+
12
+
13
+
14
+ # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
15
+
16
+
17
+ ### Features
18
+
19
+ * end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-apigatewayv2
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
- var _a, _b;
6
5
  return {
7
6
  ...options,
8
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
9
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
10
9
  defaultSigningName: "apigateway",
11
10
  };
12
11
  };
@@ -12,7 +12,7 @@ const serializeAws_restJson1CreateApiCommand = async (input, context) => {
12
12
  const headers = {
13
13
  "content-type": "application/json",
14
14
  };
15
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis";
15
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis";
16
16
  let body;
17
17
  body = JSON.stringify({
18
18
  ...(input.ApiKeySelectionExpression != null && { apiKeySelectionExpression: input.ApiKeySelectionExpression }),
@@ -47,7 +47,7 @@ const serializeAws_restJson1CreateApiMappingCommand = async (input, context) =>
47
47
  const headers = {
48
48
  "content-type": "application/json",
49
49
  };
50
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}/apimappings";
50
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}/apimappings";
51
51
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
52
52
  let body;
53
53
  body = JSON.stringify({
@@ -71,7 +71,7 @@ const serializeAws_restJson1CreateAuthorizerCommand = async (input, context) =>
71
71
  const headers = {
72
72
  "content-type": "application/json",
73
73
  };
74
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/authorizers";
74
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/authorizers";
75
75
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
76
76
  let body;
77
77
  body = JSON.stringify({
@@ -112,7 +112,7 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
112
112
  const headers = {
113
113
  "content-type": "application/json",
114
114
  };
115
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/deployments";
115
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/deployments";
116
116
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
117
117
  let body;
118
118
  body = JSON.stringify({
@@ -135,7 +135,7 @@ const serializeAws_restJson1CreateDomainNameCommand = async (input, context) =>
135
135
  const headers = {
136
136
  "content-type": "application/json",
137
137
  };
138
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames";
138
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames";
139
139
  let body;
140
140
  body = JSON.stringify({
141
141
  ...(input.DomainName != null && { domainName: input.DomainName }),
@@ -163,7 +163,7 @@ const serializeAws_restJson1CreateIntegrationCommand = async (input, context) =>
163
163
  const headers = {
164
164
  "content-type": "application/json",
165
165
  };
166
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/integrations";
166
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/integrations";
167
167
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
168
168
  let body;
169
169
  body = JSON.stringify({
@@ -209,7 +209,7 @@ const serializeAws_restJson1CreateIntegrationResponseCommand = async (input, con
209
209
  const headers = {
210
210
  "content-type": "application/json",
211
211
  };
212
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
212
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
213
213
  "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses";
214
214
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
215
215
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
@@ -243,7 +243,7 @@ const serializeAws_restJson1CreateModelCommand = async (input, context) => {
243
243
  const headers = {
244
244
  "content-type": "application/json",
245
245
  };
246
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models";
246
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models";
247
247
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
248
248
  let body;
249
249
  body = JSON.stringify({
@@ -268,7 +268,7 @@ const serializeAws_restJson1CreateRouteCommand = async (input, context) => {
268
268
  const headers = {
269
269
  "content-type": "application/json",
270
270
  };
271
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes";
271
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes";
272
272
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
273
273
  let body;
274
274
  body = JSON.stringify({
@@ -308,7 +308,7 @@ const serializeAws_restJson1CreateRouteResponseCommand = async (input, context)
308
308
  const headers = {
309
309
  "content-type": "application/json",
310
310
  };
311
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
311
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
312
312
  "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses";
313
313
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
314
314
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteId", () => input.RouteId, "{RouteId}", false);
@@ -339,7 +339,7 @@ const serializeAws_restJson1CreateStageCommand = async (input, context) => {
339
339
  const headers = {
340
340
  "content-type": "application/json",
341
341
  };
342
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages";
342
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages";
343
343
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
344
344
  let body;
345
345
  body = JSON.stringify({
@@ -378,7 +378,7 @@ const serializeAws_restJson1CreateVpcLinkCommand = async (input, context) => {
378
378
  const headers = {
379
379
  "content-type": "application/json",
380
380
  };
381
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks";
381
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks";
382
382
  let body;
383
383
  body = JSON.stringify({
384
384
  ...(input.Name != null && { name: input.Name }),
@@ -402,7 +402,7 @@ exports.serializeAws_restJson1CreateVpcLinkCommand = serializeAws_restJson1Creat
402
402
  const serializeAws_restJson1DeleteAccessLogSettingsCommand = async (input, context) => {
403
403
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
404
404
  const headers = {};
405
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
405
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
406
406
  "/v2/apis/{ApiId}/stages/{StageName}/accesslogsettings";
407
407
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
408
408
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StageName", () => input.StageName, "{StageName}", false);
@@ -421,7 +421,7 @@ exports.serializeAws_restJson1DeleteAccessLogSettingsCommand = serializeAws_rest
421
421
  const serializeAws_restJson1DeleteApiCommand = async (input, context) => {
422
422
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
423
423
  const headers = {};
424
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}";
424
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}";
425
425
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
426
426
  let body;
427
427
  return new protocol_http_1.HttpRequest({
@@ -438,7 +438,7 @@ exports.serializeAws_restJson1DeleteApiCommand = serializeAws_restJson1DeleteApi
438
438
  const serializeAws_restJson1DeleteApiMappingCommand = async (input, context) => {
439
439
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
440
440
  const headers = {};
441
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
441
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
442
442
  "/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}";
443
443
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiMappingId", () => input.ApiMappingId, "{ApiMappingId}", false);
444
444
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
@@ -457,7 +457,7 @@ exports.serializeAws_restJson1DeleteApiMappingCommand = serializeAws_restJson1De
457
457
  const serializeAws_restJson1DeleteAuthorizerCommand = async (input, context) => {
458
458
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
459
459
  const headers = {};
460
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
460
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
461
461
  "/v2/apis/{ApiId}/authorizers/{AuthorizerId}";
462
462
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
463
463
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
@@ -476,7 +476,7 @@ exports.serializeAws_restJson1DeleteAuthorizerCommand = serializeAws_restJson1De
476
476
  const serializeAws_restJson1DeleteCorsConfigurationCommand = async (input, context) => {
477
477
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
478
478
  const headers = {};
479
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/cors";
479
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/cors";
480
480
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
481
481
  let body;
482
482
  return new protocol_http_1.HttpRequest({
@@ -493,7 +493,7 @@ exports.serializeAws_restJson1DeleteCorsConfigurationCommand = serializeAws_rest
493
493
  const serializeAws_restJson1DeleteDeploymentCommand = async (input, context) => {
494
494
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
495
495
  const headers = {};
496
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
496
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
497
497
  "/v2/apis/{ApiId}/deployments/{DeploymentId}";
498
498
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
499
499
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
@@ -512,7 +512,7 @@ exports.serializeAws_restJson1DeleteDeploymentCommand = serializeAws_restJson1De
512
512
  const serializeAws_restJson1DeleteDomainNameCommand = async (input, context) => {
513
513
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
514
514
  const headers = {};
515
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}";
515
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}";
516
516
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
517
517
  let body;
518
518
  return new protocol_http_1.HttpRequest({
@@ -529,7 +529,7 @@ exports.serializeAws_restJson1DeleteDomainNameCommand = serializeAws_restJson1De
529
529
  const serializeAws_restJson1DeleteIntegrationCommand = async (input, context) => {
530
530
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
531
531
  const headers = {};
532
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
532
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
533
533
  "/v2/apis/{ApiId}/integrations/{IntegrationId}";
534
534
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
535
535
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
@@ -548,7 +548,7 @@ exports.serializeAws_restJson1DeleteIntegrationCommand = serializeAws_restJson1D
548
548
  const serializeAws_restJson1DeleteIntegrationResponseCommand = async (input, context) => {
549
549
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
550
550
  const headers = {};
551
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
551
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
552
552
  "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}";
553
553
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
554
554
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
@@ -568,7 +568,7 @@ exports.serializeAws_restJson1DeleteIntegrationResponseCommand = serializeAws_re
568
568
  const serializeAws_restJson1DeleteModelCommand = async (input, context) => {
569
569
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
570
570
  const headers = {};
571
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models/{ModelId}";
571
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models/{ModelId}";
572
572
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
573
573
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ModelId", () => input.ModelId, "{ModelId}", false);
574
574
  let body;
@@ -586,7 +586,7 @@ exports.serializeAws_restJson1DeleteModelCommand = serializeAws_restJson1DeleteM
586
586
  const serializeAws_restJson1DeleteRouteCommand = async (input, context) => {
587
587
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
588
588
  const headers = {};
589
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes/{RouteId}";
589
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes/{RouteId}";
590
590
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
591
591
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteId", () => input.RouteId, "{RouteId}", false);
592
592
  let body;
@@ -604,7 +604,7 @@ exports.serializeAws_restJson1DeleteRouteCommand = serializeAws_restJson1DeleteR
604
604
  const serializeAws_restJson1DeleteRouteRequestParameterCommand = async (input, context) => {
605
605
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
606
606
  const headers = {};
607
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
607
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
608
608
  "/v2/apis/{ApiId}/routes/{RouteId}/requestparameters/{RequestParameterKey}";
609
609
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
610
610
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RequestParameterKey", () => input.RequestParameterKey, "{RequestParameterKey}", false);
@@ -624,7 +624,7 @@ exports.serializeAws_restJson1DeleteRouteRequestParameterCommand = serializeAws_
624
624
  const serializeAws_restJson1DeleteRouteResponseCommand = async (input, context) => {
625
625
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
626
626
  const headers = {};
627
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
627
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
628
628
  "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}";
629
629
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
630
630
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteId", () => input.RouteId, "{RouteId}", false);
@@ -644,7 +644,7 @@ exports.serializeAws_restJson1DeleteRouteResponseCommand = serializeAws_restJson
644
644
  const serializeAws_restJson1DeleteRouteSettingsCommand = async (input, context) => {
645
645
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
646
646
  const headers = {};
647
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
647
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
648
648
  "/v2/apis/{ApiId}/stages/{StageName}/routesettings/{RouteKey}";
649
649
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
650
650
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteKey", () => input.RouteKey, "{RouteKey}", false);
@@ -664,7 +664,7 @@ exports.serializeAws_restJson1DeleteRouteSettingsCommand = serializeAws_restJson
664
664
  const serializeAws_restJson1DeleteStageCommand = async (input, context) => {
665
665
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
666
666
  const headers = {};
667
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages/{StageName}";
667
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages/{StageName}";
668
668
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
669
669
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StageName", () => input.StageName, "{StageName}", false);
670
670
  let body;
@@ -682,7 +682,7 @@ exports.serializeAws_restJson1DeleteStageCommand = serializeAws_restJson1DeleteS
682
682
  const serializeAws_restJson1DeleteVpcLinkCommand = async (input, context) => {
683
683
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
684
684
  const headers = {};
685
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks/{VpcLinkId}";
685
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks/{VpcLinkId}";
686
686
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
687
687
  let body;
688
688
  return new protocol_http_1.HttpRequest({
@@ -699,7 +699,7 @@ exports.serializeAws_restJson1DeleteVpcLinkCommand = serializeAws_restJson1Delet
699
699
  const serializeAws_restJson1ExportApiCommand = async (input, context) => {
700
700
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
701
701
  const headers = {};
702
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/exports/{Specification}";
702
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/exports/{Specification}";
703
703
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
704
704
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Specification", () => input.Specification, "{Specification}", false);
705
705
  const query = map({
@@ -724,7 +724,7 @@ exports.serializeAws_restJson1ExportApiCommand = serializeAws_restJson1ExportApi
724
724
  const serializeAws_restJson1GetApiCommand = async (input, context) => {
725
725
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
726
726
  const headers = {};
727
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}";
727
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}";
728
728
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
729
729
  let body;
730
730
  return new protocol_http_1.HttpRequest({
@@ -741,7 +741,7 @@ exports.serializeAws_restJson1GetApiCommand = serializeAws_restJson1GetApiComman
741
741
  const serializeAws_restJson1GetApiMappingCommand = async (input, context) => {
742
742
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
743
743
  const headers = {};
744
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
744
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
745
745
  "/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}";
746
746
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiMappingId", () => input.ApiMappingId, "{ApiMappingId}", false);
747
747
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
@@ -760,7 +760,7 @@ exports.serializeAws_restJson1GetApiMappingCommand = serializeAws_restJson1GetAp
760
760
  const serializeAws_restJson1GetApiMappingsCommand = async (input, context) => {
761
761
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
762
762
  const headers = {};
763
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}/apimappings";
763
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}/apimappings";
764
764
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
765
765
  const query = map({
766
766
  maxResults: [, input.MaxResults],
@@ -782,7 +782,7 @@ exports.serializeAws_restJson1GetApiMappingsCommand = serializeAws_restJson1GetA
782
782
  const serializeAws_restJson1GetApisCommand = async (input, context) => {
783
783
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
784
784
  const headers = {};
785
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis";
785
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis";
786
786
  const query = map({
787
787
  maxResults: [, input.MaxResults],
788
788
  nextToken: [, input.NextToken],
@@ -803,7 +803,7 @@ exports.serializeAws_restJson1GetApisCommand = serializeAws_restJson1GetApisComm
803
803
  const serializeAws_restJson1GetAuthorizerCommand = async (input, context) => {
804
804
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
805
805
  const headers = {};
806
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
806
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
807
807
  "/v2/apis/{ApiId}/authorizers/{AuthorizerId}";
808
808
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
809
809
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
@@ -822,7 +822,7 @@ exports.serializeAws_restJson1GetAuthorizerCommand = serializeAws_restJson1GetAu
822
822
  const serializeAws_restJson1GetAuthorizersCommand = async (input, context) => {
823
823
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
824
824
  const headers = {};
825
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/authorizers";
825
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/authorizers";
826
826
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
827
827
  const query = map({
828
828
  maxResults: [, input.MaxResults],
@@ -844,7 +844,7 @@ exports.serializeAws_restJson1GetAuthorizersCommand = serializeAws_restJson1GetA
844
844
  const serializeAws_restJson1GetDeploymentCommand = async (input, context) => {
845
845
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
846
846
  const headers = {};
847
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
847
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
848
848
  "/v2/apis/{ApiId}/deployments/{DeploymentId}";
849
849
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
850
850
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
@@ -863,7 +863,7 @@ exports.serializeAws_restJson1GetDeploymentCommand = serializeAws_restJson1GetDe
863
863
  const serializeAws_restJson1GetDeploymentsCommand = async (input, context) => {
864
864
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
865
865
  const headers = {};
866
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/deployments";
866
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/deployments";
867
867
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
868
868
  const query = map({
869
869
  maxResults: [, input.MaxResults],
@@ -885,7 +885,7 @@ exports.serializeAws_restJson1GetDeploymentsCommand = serializeAws_restJson1GetD
885
885
  const serializeAws_restJson1GetDomainNameCommand = async (input, context) => {
886
886
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
887
887
  const headers = {};
888
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}";
888
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}";
889
889
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
890
890
  let body;
891
891
  return new protocol_http_1.HttpRequest({
@@ -902,7 +902,7 @@ exports.serializeAws_restJson1GetDomainNameCommand = serializeAws_restJson1GetDo
902
902
  const serializeAws_restJson1GetDomainNamesCommand = async (input, context) => {
903
903
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
904
904
  const headers = {};
905
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames";
905
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames";
906
906
  const query = map({
907
907
  maxResults: [, input.MaxResults],
908
908
  nextToken: [, input.NextToken],
@@ -923,7 +923,7 @@ exports.serializeAws_restJson1GetDomainNamesCommand = serializeAws_restJson1GetD
923
923
  const serializeAws_restJson1GetIntegrationCommand = async (input, context) => {
924
924
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
925
925
  const headers = {};
926
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
926
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
927
927
  "/v2/apis/{ApiId}/integrations/{IntegrationId}";
928
928
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
929
929
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
@@ -942,7 +942,7 @@ exports.serializeAws_restJson1GetIntegrationCommand = serializeAws_restJson1GetI
942
942
  const serializeAws_restJson1GetIntegrationResponseCommand = async (input, context) => {
943
943
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
944
944
  const headers = {};
945
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
945
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
946
946
  "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}";
947
947
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
948
948
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
@@ -962,7 +962,7 @@ exports.serializeAws_restJson1GetIntegrationResponseCommand = serializeAws_restJ
962
962
  const serializeAws_restJson1GetIntegrationResponsesCommand = async (input, context) => {
963
963
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
964
964
  const headers = {};
965
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
965
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
966
966
  "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses";
967
967
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
968
968
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
@@ -986,7 +986,7 @@ exports.serializeAws_restJson1GetIntegrationResponsesCommand = serializeAws_rest
986
986
  const serializeAws_restJson1GetIntegrationsCommand = async (input, context) => {
987
987
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
988
988
  const headers = {};
989
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/integrations";
989
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/integrations";
990
990
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
991
991
  const query = map({
992
992
  maxResults: [, input.MaxResults],
@@ -1008,7 +1008,7 @@ exports.serializeAws_restJson1GetIntegrationsCommand = serializeAws_restJson1Get
1008
1008
  const serializeAws_restJson1GetModelCommand = async (input, context) => {
1009
1009
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1010
1010
  const headers = {};
1011
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models/{ModelId}";
1011
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models/{ModelId}";
1012
1012
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1013
1013
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ModelId", () => input.ModelId, "{ModelId}", false);
1014
1014
  let body;
@@ -1026,7 +1026,7 @@ exports.serializeAws_restJson1GetModelCommand = serializeAws_restJson1GetModelCo
1026
1026
  const serializeAws_restJson1GetModelsCommand = async (input, context) => {
1027
1027
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1028
1028
  const headers = {};
1029
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models";
1029
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models";
1030
1030
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1031
1031
  const query = map({
1032
1032
  maxResults: [, input.MaxResults],
@@ -1048,7 +1048,7 @@ exports.serializeAws_restJson1GetModelsCommand = serializeAws_restJson1GetModels
1048
1048
  const serializeAws_restJson1GetModelTemplateCommand = async (input, context) => {
1049
1049
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1050
1050
  const headers = {};
1051
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1051
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1052
1052
  "/v2/apis/{ApiId}/models/{ModelId}/template";
1053
1053
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1054
1054
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ModelId", () => input.ModelId, "{ModelId}", false);
@@ -1067,7 +1067,7 @@ exports.serializeAws_restJson1GetModelTemplateCommand = serializeAws_restJson1Ge
1067
1067
  const serializeAws_restJson1GetRouteCommand = async (input, context) => {
1068
1068
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1069
1069
  const headers = {};
1070
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes/{RouteId}";
1070
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes/{RouteId}";
1071
1071
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1072
1072
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteId", () => input.RouteId, "{RouteId}", false);
1073
1073
  let body;
@@ -1085,7 +1085,7 @@ exports.serializeAws_restJson1GetRouteCommand = serializeAws_restJson1GetRouteCo
1085
1085
  const serializeAws_restJson1GetRouteResponseCommand = async (input, context) => {
1086
1086
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1087
1087
  const headers = {};
1088
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1088
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1089
1089
  "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}";
1090
1090
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1091
1091
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteId", () => input.RouteId, "{RouteId}", false);
@@ -1105,7 +1105,7 @@ exports.serializeAws_restJson1GetRouteResponseCommand = serializeAws_restJson1Ge
1105
1105
  const serializeAws_restJson1GetRouteResponsesCommand = async (input, context) => {
1106
1106
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1107
1107
  const headers = {};
1108
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1108
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1109
1109
  "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses";
1110
1110
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1111
1111
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteId", () => input.RouteId, "{RouteId}", false);
@@ -1129,7 +1129,7 @@ exports.serializeAws_restJson1GetRouteResponsesCommand = serializeAws_restJson1G
1129
1129
  const serializeAws_restJson1GetRoutesCommand = async (input, context) => {
1130
1130
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1131
1131
  const headers = {};
1132
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes";
1132
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes";
1133
1133
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1134
1134
  const query = map({
1135
1135
  maxResults: [, input.MaxResults],
@@ -1151,7 +1151,7 @@ exports.serializeAws_restJson1GetRoutesCommand = serializeAws_restJson1GetRoutes
1151
1151
  const serializeAws_restJson1GetStageCommand = async (input, context) => {
1152
1152
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1153
1153
  const headers = {};
1154
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages/{StageName}";
1154
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages/{StageName}";
1155
1155
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1156
1156
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StageName", () => input.StageName, "{StageName}", false);
1157
1157
  let body;
@@ -1169,7 +1169,7 @@ exports.serializeAws_restJson1GetStageCommand = serializeAws_restJson1GetStageCo
1169
1169
  const serializeAws_restJson1GetStagesCommand = async (input, context) => {
1170
1170
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1171
1171
  const headers = {};
1172
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages";
1172
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages";
1173
1173
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1174
1174
  const query = map({
1175
1175
  maxResults: [, input.MaxResults],
@@ -1191,7 +1191,7 @@ exports.serializeAws_restJson1GetStagesCommand = serializeAws_restJson1GetStages
1191
1191
  const serializeAws_restJson1GetTagsCommand = async (input, context) => {
1192
1192
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1193
1193
  const headers = {};
1194
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/tags/{ResourceArn}";
1194
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/tags/{ResourceArn}";
1195
1195
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1196
1196
  let body;
1197
1197
  return new protocol_http_1.HttpRequest({
@@ -1208,7 +1208,7 @@ exports.serializeAws_restJson1GetTagsCommand = serializeAws_restJson1GetTagsComm
1208
1208
  const serializeAws_restJson1GetVpcLinkCommand = async (input, context) => {
1209
1209
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1210
1210
  const headers = {};
1211
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks/{VpcLinkId}";
1211
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks/{VpcLinkId}";
1212
1212
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
1213
1213
  let body;
1214
1214
  return new protocol_http_1.HttpRequest({
@@ -1225,7 +1225,7 @@ exports.serializeAws_restJson1GetVpcLinkCommand = serializeAws_restJson1GetVpcLi
1225
1225
  const serializeAws_restJson1GetVpcLinksCommand = async (input, context) => {
1226
1226
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1227
1227
  const headers = {};
1228
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks";
1228
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks";
1229
1229
  const query = map({
1230
1230
  maxResults: [, input.MaxResults],
1231
1231
  nextToken: [, input.NextToken],
@@ -1248,7 +1248,7 @@ const serializeAws_restJson1ImportApiCommand = async (input, context) => {
1248
1248
  const headers = {
1249
1249
  "content-type": "application/json",
1250
1250
  };
1251
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis";
1251
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis";
1252
1252
  const query = map({
1253
1253
  basepath: [, input.Basepath],
1254
1254
  failOnWarnings: [() => input.FailOnWarnings !== void 0, () => input.FailOnWarnings.toString()],
@@ -1274,7 +1274,7 @@ const serializeAws_restJson1ReimportApiCommand = async (input, context) => {
1274
1274
  const headers = {
1275
1275
  "content-type": "application/json",
1276
1276
  };
1277
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}";
1277
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}";
1278
1278
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1279
1279
  const query = map({
1280
1280
  basepath: [, input.Basepath],
@@ -1299,7 +1299,7 @@ exports.serializeAws_restJson1ReimportApiCommand = serializeAws_restJson1Reimpor
1299
1299
  const serializeAws_restJson1ResetAuthorizersCacheCommand = async (input, context) => {
1300
1300
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1301
1301
  const headers = {};
1302
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1302
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1303
1303
  "/v2/apis/{ApiId}/stages/{StageName}/cache/authorizers";
1304
1304
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1305
1305
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StageName", () => input.StageName, "{StageName}", false);
@@ -1320,7 +1320,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1320
1320
  const headers = {
1321
1321
  "content-type": "application/json",
1322
1322
  };
1323
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/tags/{ResourceArn}";
1323
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/tags/{ResourceArn}";
1324
1324
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1325
1325
  let body;
1326
1326
  body = JSON.stringify({
@@ -1340,7 +1340,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
1340
1340
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1341
1341
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1342
1342
  const headers = {};
1343
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/tags/{ResourceArn}";
1343
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/tags/{ResourceArn}";
1344
1344
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1345
1345
  const query = map({
1346
1346
  tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
@@ -1363,7 +1363,7 @@ const serializeAws_restJson1UpdateApiCommand = async (input, context) => {
1363
1363
  const headers = {
1364
1364
  "content-type": "application/json",
1365
1365
  };
1366
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}";
1366
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}";
1367
1367
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1368
1368
  let body;
1369
1369
  body = JSON.stringify({
@@ -1397,7 +1397,7 @@ const serializeAws_restJson1UpdateApiMappingCommand = async (input, context) =>
1397
1397
  const headers = {
1398
1398
  "content-type": "application/json",
1399
1399
  };
1400
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1400
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1401
1401
  "/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}";
1402
1402
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiMappingId", () => input.ApiMappingId, "{ApiMappingId}", false);
1403
1403
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
@@ -1423,7 +1423,7 @@ const serializeAws_restJson1UpdateAuthorizerCommand = async (input, context) =>
1423
1423
  const headers = {
1424
1424
  "content-type": "application/json",
1425
1425
  };
1426
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1426
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1427
1427
  "/v2/apis/{ApiId}/authorizers/{AuthorizerId}";
1428
1428
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1429
1429
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
@@ -1466,7 +1466,7 @@ const serializeAws_restJson1UpdateDeploymentCommand = async (input, context) =>
1466
1466
  const headers = {
1467
1467
  "content-type": "application/json",
1468
1468
  };
1469
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1469
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1470
1470
  "/v2/apis/{ApiId}/deployments/{DeploymentId}";
1471
1471
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1472
1472
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
@@ -1490,7 +1490,7 @@ const serializeAws_restJson1UpdateDomainNameCommand = async (input, context) =>
1490
1490
  const headers = {
1491
1491
  "content-type": "application/json",
1492
1492
  };
1493
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}";
1493
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}";
1494
1494
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
1495
1495
  let body;
1496
1496
  body = JSON.stringify({
@@ -1517,7 +1517,7 @@ const serializeAws_restJson1UpdateIntegrationCommand = async (input, context) =>
1517
1517
  const headers = {
1518
1518
  "content-type": "application/json",
1519
1519
  };
1520
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1520
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1521
1521
  "/v2/apis/{ApiId}/integrations/{IntegrationId}";
1522
1522
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1523
1523
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
@@ -1565,7 +1565,7 @@ const serializeAws_restJson1UpdateIntegrationResponseCommand = async (input, con
1565
1565
  const headers = {
1566
1566
  "content-type": "application/json",
1567
1567
  };
1568
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1568
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1569
1569
  "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}";
1570
1570
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1571
1571
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
@@ -1600,7 +1600,7 @@ const serializeAws_restJson1UpdateModelCommand = async (input, context) => {
1600
1600
  const headers = {
1601
1601
  "content-type": "application/json",
1602
1602
  };
1603
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models/{ModelId}";
1603
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models/{ModelId}";
1604
1604
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1605
1605
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ModelId", () => input.ModelId, "{ModelId}", false);
1606
1606
  let body;
@@ -1626,7 +1626,7 @@ const serializeAws_restJson1UpdateRouteCommand = async (input, context) => {
1626
1626
  const headers = {
1627
1627
  "content-type": "application/json",
1628
1628
  };
1629
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes/{RouteId}";
1629
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes/{RouteId}";
1630
1630
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1631
1631
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteId", () => input.RouteId, "{RouteId}", false);
1632
1632
  let body;
@@ -1667,7 +1667,7 @@ const serializeAws_restJson1UpdateRouteResponseCommand = async (input, context)
1667
1667
  const headers = {
1668
1668
  "content-type": "application/json",
1669
1669
  };
1670
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1670
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1671
1671
  "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}";
1672
1672
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1673
1673
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteId", () => input.RouteId, "{RouteId}", false);
@@ -1699,7 +1699,7 @@ const serializeAws_restJson1UpdateStageCommand = async (input, context) => {
1699
1699
  const headers = {
1700
1700
  "content-type": "application/json",
1701
1701
  };
1702
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages/{StageName}";
1702
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages/{StageName}";
1703
1703
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApiId", () => input.ApiId, "{ApiId}", false);
1704
1704
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StageName", () => input.StageName, "{StageName}", false);
1705
1705
  let body;
@@ -1737,7 +1737,7 @@ const serializeAws_restJson1UpdateVpcLinkCommand = async (input, context) => {
1737
1737
  const headers = {
1738
1738
  "content-type": "application/json",
1739
1739
  };
1740
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks/{VpcLinkId}";
1740
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks/{VpcLinkId}";
1741
1741
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
1742
1742
  let body;
1743
1743
  body = JSON.stringify({
@@ -6485,15 +6485,12 @@ const deserializeAws_restJson1VpcLink = (output, context) => {
6485
6485
  VpcLinkVersion: (0, smithy_client_1.expectString)(output.vpcLinkVersion),
6486
6486
  };
6487
6487
  };
6488
- const deserializeMetadata = (output) => {
6489
- var _a, _b;
6490
- return ({
6491
- httpStatusCode: output.statusCode,
6492
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
6493
- extendedRequestId: output.headers["x-amz-id-2"],
6494
- cfId: output.headers["x-amz-cf-id"],
6495
- });
6496
- };
6488
+ const deserializeMetadata = (output) => ({
6489
+ httpStatusCode: output.statusCode,
6490
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
6491
+ extendedRequestId: output.headers["x-amz-id-2"],
6492
+ cfId: output.headers["x-amz-cf-id"],
6493
+ });
6497
6494
  const collectBody = (streamBody = new Uint8Array(), context) => {
6498
6495
  if (streamBody instanceof Uint8Array) {
6499
6496
  return Promise.resolve(streamBody);
@@ -6513,9 +6510,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
6513
6510
  return {};
6514
6511
  });
6515
6512
  const parseErrorBody = async (errorBody, context) => {
6516
- var _a;
6517
6513
  const value = await parseBody(errorBody, context);
6518
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
6514
+ value.message = value.message ?? value.Message;
6519
6515
  return value;
6520
6516
  };
6521
6517
  const loadRestJsonErrorCode = (output, data) => {
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
21
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
25
24
  ...config,
26
25
  runtime: "browser",
27
26
  defaultsMode,
28
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
29
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
38
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
39
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
42
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
27
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
42
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
43
43
  };
44
44
  };
45
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const smithy_client_2 = require("@aws-sdk/smithy-client");
21
21
  const getRuntimeConfig = (config) => {
22
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
22
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
29
28
  ...config,
30
29
  runtime: "node",
31
30
  defaultsMode,
32
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
41
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
- }),
44
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
45
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
46
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
49
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
31
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: config?.retryMode ??
41
+ (0, node_config_provider_1.loadConfig)({
42
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
44
+ }),
45
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
49
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
50
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
50
51
  };
51
52
  };
52
53
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
- var _a;
8
7
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
8
  return {
10
9
  ...browserDefaults,
11
10
  ...config,
12
11
  runtime: "react-native",
13
- sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
14
13
  };
15
14
  };
16
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
- const getRuntimeConfig = (config) => {
7
- var _a, _b, _c, _d, _e;
8
- return ({
9
- apiVersion: "2018-11-29",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "ApiGatewayV2",
14
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
- });
16
- };
6
+ const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2018-11-29",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "ApiGatewayV2",
12
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
13
+ });
17
14
  exports.getRuntimeConfig = getRuntimeConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-apigatewayv2",
3
3
  "description": "AWS SDK for JavaScript Apigatewayv2 Client for Node.js, Browser and React Native",
4
- "version": "3.200.0",
4
+ "version": "3.202.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,44 +19,44 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.200.0",
23
- "@aws-sdk/config-resolver": "3.200.0",
24
- "@aws-sdk/credential-provider-node": "3.200.0",
25
- "@aws-sdk/fetch-http-handler": "3.200.0",
26
- "@aws-sdk/hash-node": "3.200.0",
27
- "@aws-sdk/invalid-dependency": "3.200.0",
28
- "@aws-sdk/middleware-content-length": "3.200.0",
29
- "@aws-sdk/middleware-endpoint": "3.200.0",
30
- "@aws-sdk/middleware-host-header": "3.200.0",
31
- "@aws-sdk/middleware-logger": "3.200.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.200.0",
33
- "@aws-sdk/middleware-retry": "3.200.0",
34
- "@aws-sdk/middleware-serde": "3.200.0",
35
- "@aws-sdk/middleware-signing": "3.200.0",
36
- "@aws-sdk/middleware-stack": "3.200.0",
37
- "@aws-sdk/middleware-user-agent": "3.200.0",
38
- "@aws-sdk/node-config-provider": "3.200.0",
39
- "@aws-sdk/node-http-handler": "3.200.0",
40
- "@aws-sdk/protocol-http": "3.200.0",
41
- "@aws-sdk/smithy-client": "3.200.0",
42
- "@aws-sdk/types": "3.200.0",
43
- "@aws-sdk/url-parser": "3.200.0",
22
+ "@aws-sdk/client-sts": "3.202.0",
23
+ "@aws-sdk/config-resolver": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.202.0",
25
+ "@aws-sdk/fetch-http-handler": "3.201.0",
26
+ "@aws-sdk/hash-node": "3.201.0",
27
+ "@aws-sdk/invalid-dependency": "3.201.0",
28
+ "@aws-sdk/middleware-content-length": "3.201.0",
29
+ "@aws-sdk/middleware-endpoint": "3.201.0",
30
+ "@aws-sdk/middleware-host-header": "3.201.0",
31
+ "@aws-sdk/middleware-logger": "3.201.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
33
+ "@aws-sdk/middleware-retry": "3.201.0",
34
+ "@aws-sdk/middleware-serde": "3.201.0",
35
+ "@aws-sdk/middleware-signing": "3.201.0",
36
+ "@aws-sdk/middleware-stack": "3.201.0",
37
+ "@aws-sdk/middleware-user-agent": "3.201.0",
38
+ "@aws-sdk/node-config-provider": "3.201.0",
39
+ "@aws-sdk/node-http-handler": "3.201.0",
40
+ "@aws-sdk/protocol-http": "3.201.0",
41
+ "@aws-sdk/smithy-client": "3.201.0",
42
+ "@aws-sdk/types": "3.201.0",
43
+ "@aws-sdk/url-parser": "3.201.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
- "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-base64-node": "3.201.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
- "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.200.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.200.0",
50
- "@aws-sdk/util-endpoints": "3.200.0",
51
- "@aws-sdk/util-user-agent-browser": "3.200.0",
52
- "@aws-sdk/util-user-agent-node": "3.200.0",
47
+ "@aws-sdk/util-body-length-node": "3.201.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.202.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
52
+ "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
- "@aws-sdk/util-utf8-node": "3.199.0",
54
+ "@aws-sdk/util-utf8-node": "3.201.0",
55
55
  "tslib": "^2.3.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
59
- "@tsconfig/recommended": "1.0.1",
59
+ "@tsconfig/node14": "1.0.3",
60
60
  "@types/node": "^12.7.5",
61
61
  "concurrently": "7.0.0",
62
62
  "downlevel-dts": "0.10.1",
@@ -70,7 +70,7 @@
70
70
  }
71
71
  },
72
72
  "engines": {
73
- "node": ">=12.0.0"
73
+ "node": ">=14.0.0"
74
74
  },
75
75
  "typesVersions": {
76
76
  "<4.0": {