@aws-sdk/client-networkmanager 3.54.1 → 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 (107) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-cjs/NetworkManagerClient.js +13 -13
  3. package/dist-cjs/commands/AcceptAttachmentCommand.js +3 -3
  4. package/dist-cjs/commands/AssociateConnectPeerCommand.js +3 -3
  5. package/dist-cjs/commands/AssociateCustomerGatewayCommand.js +3 -3
  6. package/dist-cjs/commands/AssociateLinkCommand.js +3 -3
  7. package/dist-cjs/commands/AssociateTransitGatewayConnectPeerCommand.js +3 -3
  8. package/dist-cjs/commands/CreateConnectAttachmentCommand.js +3 -3
  9. package/dist-cjs/commands/CreateConnectPeerCommand.js +3 -3
  10. package/dist-cjs/commands/CreateConnectionCommand.js +3 -3
  11. package/dist-cjs/commands/CreateCoreNetworkCommand.js +3 -3
  12. package/dist-cjs/commands/CreateDeviceCommand.js +3 -3
  13. package/dist-cjs/commands/CreateGlobalNetworkCommand.js +3 -3
  14. package/dist-cjs/commands/CreateLinkCommand.js +3 -3
  15. package/dist-cjs/commands/CreateSiteCommand.js +3 -3
  16. package/dist-cjs/commands/CreateSiteToSiteVpnAttachmentCommand.js +3 -3
  17. package/dist-cjs/commands/CreateVpcAttachmentCommand.js +3 -3
  18. package/dist-cjs/commands/DeleteAttachmentCommand.js +3 -3
  19. package/dist-cjs/commands/DeleteConnectPeerCommand.js +3 -3
  20. package/dist-cjs/commands/DeleteConnectionCommand.js +3 -3
  21. package/dist-cjs/commands/DeleteCoreNetworkCommand.js +3 -3
  22. package/dist-cjs/commands/DeleteCoreNetworkPolicyVersionCommand.js +3 -3
  23. package/dist-cjs/commands/DeleteDeviceCommand.js +3 -3
  24. package/dist-cjs/commands/DeleteGlobalNetworkCommand.js +3 -3
  25. package/dist-cjs/commands/DeleteLinkCommand.js +3 -3
  26. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +3 -3
  27. package/dist-cjs/commands/DeleteSiteCommand.js +3 -3
  28. package/dist-cjs/commands/DeregisterTransitGatewayCommand.js +3 -3
  29. package/dist-cjs/commands/DescribeGlobalNetworksCommand.js +3 -3
  30. package/dist-cjs/commands/DisassociateConnectPeerCommand.js +3 -3
  31. package/dist-cjs/commands/DisassociateCustomerGatewayCommand.js +3 -3
  32. package/dist-cjs/commands/DisassociateLinkCommand.js +3 -3
  33. package/dist-cjs/commands/DisassociateTransitGatewayConnectPeerCommand.js +3 -3
  34. package/dist-cjs/commands/ExecuteCoreNetworkChangeSetCommand.js +3 -3
  35. package/dist-cjs/commands/GetConnectAttachmentCommand.js +3 -3
  36. package/dist-cjs/commands/GetConnectPeerAssociationsCommand.js +3 -3
  37. package/dist-cjs/commands/GetConnectPeerCommand.js +3 -3
  38. package/dist-cjs/commands/GetConnectionsCommand.js +3 -3
  39. package/dist-cjs/commands/GetCoreNetworkChangeSetCommand.js +3 -3
  40. package/dist-cjs/commands/GetCoreNetworkCommand.js +3 -3
  41. package/dist-cjs/commands/GetCoreNetworkPolicyCommand.js +3 -3
  42. package/dist-cjs/commands/GetCustomerGatewayAssociationsCommand.js +3 -3
  43. package/dist-cjs/commands/GetDevicesCommand.js +3 -3
  44. package/dist-cjs/commands/GetLinkAssociationsCommand.js +3 -3
  45. package/dist-cjs/commands/GetLinksCommand.js +3 -3
  46. package/dist-cjs/commands/GetNetworkResourceCountsCommand.js +3 -3
  47. package/dist-cjs/commands/GetNetworkResourceRelationshipsCommand.js +3 -3
  48. package/dist-cjs/commands/GetNetworkResourcesCommand.js +3 -3
  49. package/dist-cjs/commands/GetNetworkRoutesCommand.js +3 -3
  50. package/dist-cjs/commands/GetNetworkTelemetryCommand.js +3 -3
  51. package/dist-cjs/commands/GetResourcePolicyCommand.js +3 -3
  52. package/dist-cjs/commands/GetRouteAnalysisCommand.js +3 -3
  53. package/dist-cjs/commands/GetSiteToSiteVpnAttachmentCommand.js +3 -3
  54. package/dist-cjs/commands/GetSitesCommand.js +3 -3
  55. package/dist-cjs/commands/GetTransitGatewayConnectPeerAssociationsCommand.js +3 -3
  56. package/dist-cjs/commands/GetTransitGatewayRegistrationsCommand.js +3 -3
  57. package/dist-cjs/commands/GetVpcAttachmentCommand.js +3 -3
  58. package/dist-cjs/commands/ListAttachmentsCommand.js +3 -3
  59. package/dist-cjs/commands/ListConnectPeersCommand.js +3 -3
  60. package/dist-cjs/commands/ListCoreNetworkPolicyVersionsCommand.js +3 -3
  61. package/dist-cjs/commands/ListCoreNetworksCommand.js +3 -3
  62. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  63. package/dist-cjs/commands/PutCoreNetworkPolicyCommand.js +3 -3
  64. package/dist-cjs/commands/PutResourcePolicyCommand.js +3 -3
  65. package/dist-cjs/commands/RegisterTransitGatewayCommand.js +3 -3
  66. package/dist-cjs/commands/RejectAttachmentCommand.js +3 -3
  67. package/dist-cjs/commands/RestoreCoreNetworkPolicyVersionCommand.js +3 -3
  68. package/dist-cjs/commands/StartRouteAnalysisCommand.js +3 -3
  69. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  70. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  71. package/dist-cjs/commands/UpdateConnectionCommand.js +3 -3
  72. package/dist-cjs/commands/UpdateCoreNetworkCommand.js +3 -3
  73. package/dist-cjs/commands/UpdateDeviceCommand.js +3 -3
  74. package/dist-cjs/commands/UpdateGlobalNetworkCommand.js +3 -3
  75. package/dist-cjs/commands/UpdateLinkCommand.js +3 -3
  76. package/dist-cjs/commands/UpdateNetworkResourceMetadataCommand.js +3 -3
  77. package/dist-cjs/commands/UpdateSiteCommand.js +3 -3
  78. package/dist-cjs/commands/UpdateVpcAttachmentCommand.js +3 -3
  79. package/dist-cjs/endpoints.js +1 -1
  80. package/dist-cjs/protocols/Aws_restJson1.js +499 -499
  81. package/dist-cjs/runtimeConfig.browser.js +4 -4
  82. package/dist-cjs/runtimeConfig.js +9 -9
  83. package/dist-cjs/runtimeConfig.native.js +1 -1
  84. package/dist-es/NetworkManager.js +76 -76
  85. package/dist-es/pagination/DescribeGlobalNetworksPaginator.js +4 -4
  86. package/dist-es/pagination/GetConnectPeerAssociationsPaginator.js +4 -4
  87. package/dist-es/pagination/GetConnectionsPaginator.js +4 -4
  88. package/dist-es/pagination/GetCoreNetworkChangeSetPaginator.js +4 -4
  89. package/dist-es/pagination/GetCustomerGatewayAssociationsPaginator.js +4 -4
  90. package/dist-es/pagination/GetDevicesPaginator.js +4 -4
  91. package/dist-es/pagination/GetLinkAssociationsPaginator.js +4 -4
  92. package/dist-es/pagination/GetLinksPaginator.js +4 -4
  93. package/dist-es/pagination/GetNetworkResourceCountsPaginator.js +4 -4
  94. package/dist-es/pagination/GetNetworkResourceRelationshipsPaginator.js +4 -4
  95. package/dist-es/pagination/GetNetworkResourcesPaginator.js +4 -4
  96. package/dist-es/pagination/GetNetworkTelemetryPaginator.js +4 -4
  97. package/dist-es/pagination/GetSitesPaginator.js +4 -4
  98. package/dist-es/pagination/GetTransitGatewayConnectPeerAssociationsPaginator.js +4 -4
  99. package/dist-es/pagination/GetTransitGatewayRegistrationsPaginator.js +4 -4
  100. package/dist-es/pagination/ListAttachmentsPaginator.js +4 -4
  101. package/dist-es/pagination/ListConnectPeersPaginator.js +4 -4
  102. package/dist-es/pagination/ListCoreNetworkPolicyVersionsPaginator.js +4 -4
  103. package/dist-es/pagination/ListCoreNetworksPaginator.js +4 -4
  104. package/dist-es/protocols/Aws_restJson1.js +76 -76
  105. package/dist-types/runtimeConfig.native.d.ts +2 -2
  106. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  107. package/package.json +34 -34
@@ -18,7 +18,7 @@ const serializeAws_restJson1AcceptAttachmentCommand = async (input, context) =>
18
18
  if (labelValue.length <= 0) {
19
19
  throw new Error("Empty value provided for input HTTP label: AttachmentId.");
20
20
  }
21
- resolvedPath = resolvedPath.replace("{AttachmentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
21
+ resolvedPath = resolvedPath.replace("{AttachmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
22
22
  }
23
23
  else {
24
24
  throw new Error("No value provided for input HTTP label: AttachmentId.");
@@ -47,7 +47,7 @@ const serializeAws_restJson1AssociateConnectPeerCommand = async (input, context)
47
47
  if (labelValue.length <= 0) {
48
48
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
49
49
  }
50
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
50
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
51
51
  }
52
52
  else {
53
53
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -81,7 +81,7 @@ const serializeAws_restJson1AssociateCustomerGatewayCommand = async (input, cont
81
81
  if (labelValue.length <= 0) {
82
82
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
83
83
  }
84
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
84
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
85
85
  }
86
86
  else {
87
87
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -116,7 +116,7 @@ const serializeAws_restJson1AssociateLinkCommand = async (input, context) => {
116
116
  if (labelValue.length <= 0) {
117
117
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
118
118
  }
119
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
119
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
120
120
  }
121
121
  else {
122
122
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -149,7 +149,7 @@ const serializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = async (i
149
149
  if (labelValue.length <= 0) {
150
150
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
151
151
  }
152
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
152
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
153
153
  }
154
154
  else {
155
155
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -183,7 +183,7 @@ const serializeAws_restJson1CreateConnectAttachmentCommand = async (input, conte
183
183
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/connect-attachments";
184
184
  let body;
185
185
  body = JSON.stringify({
186
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
186
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
187
187
  ...(input.CoreNetworkId !== undefined && input.CoreNetworkId !== null && { CoreNetworkId: input.CoreNetworkId }),
188
188
  ...(input.EdgeLocation !== undefined && input.EdgeLocation !== null && { EdgeLocation: input.EdgeLocation }),
189
189
  ...(input.Options !== undefined &&
@@ -216,7 +216,7 @@ const serializeAws_restJson1CreateConnectionCommand = async (input, context) =>
216
216
  if (labelValue.length <= 0) {
217
217
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
218
218
  }
219
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
219
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
220
220
  }
221
221
  else {
222
222
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -255,7 +255,7 @@ const serializeAws_restJson1CreateConnectPeerCommand = async (input, context) =>
255
255
  body = JSON.stringify({
256
256
  ...(input.BgpOptions !== undefined &&
257
257
  input.BgpOptions !== null && { BgpOptions: serializeAws_restJson1BgpOptions(input.BgpOptions, context) }),
258
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
258
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
259
259
  ...(input.ConnectAttachmentId !== undefined &&
260
260
  input.ConnectAttachmentId !== null && { ConnectAttachmentId: input.ConnectAttachmentId }),
261
261
  ...(input.CoreNetworkAddress !== undefined &&
@@ -288,7 +288,7 @@ const serializeAws_restJson1CreateCoreNetworkCommand = async (input, context) =>
288
288
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks";
289
289
  let body;
290
290
  body = JSON.stringify({
291
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
291
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
292
292
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
293
293
  ...(input.GlobalNetworkId !== undefined &&
294
294
  input.GlobalNetworkId !== null && { GlobalNetworkId: input.GlobalNetworkId }),
@@ -320,7 +320,7 @@ const serializeAws_restJson1CreateDeviceCommand = async (input, context) => {
320
320
  if (labelValue.length <= 0) {
321
321
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
322
322
  }
323
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
323
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
324
324
  }
325
325
  else {
326
326
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -385,7 +385,7 @@ const serializeAws_restJson1CreateLinkCommand = async (input, context) => {
385
385
  if (labelValue.length <= 0) {
386
386
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
387
387
  }
388
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
388
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
389
389
  }
390
390
  else {
391
391
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -423,7 +423,7 @@ const serializeAws_restJson1CreateSiteCommand = async (input, context) => {
423
423
  if (labelValue.length <= 0) {
424
424
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
425
425
  }
426
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
426
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
427
427
  }
428
428
  else {
429
429
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -456,7 +456,7 @@ const serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = async (input,
456
456
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/site-to-site-vpn-attachments";
457
457
  let body;
458
458
  body = JSON.stringify({
459
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
459
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
460
460
  ...(input.CoreNetworkId !== undefined && input.CoreNetworkId !== null && { CoreNetworkId: input.CoreNetworkId }),
461
461
  ...(input.Tags !== undefined &&
462
462
  input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
@@ -483,7 +483,7 @@ const serializeAws_restJson1CreateVpcAttachmentCommand = async (input, context)
483
483
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/vpc-attachments";
484
484
  let body;
485
485
  body = JSON.stringify({
486
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
486
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
487
487
  ...(input.CoreNetworkId !== undefined && input.CoreNetworkId !== null && { CoreNetworkId: input.CoreNetworkId }),
488
488
  ...(input.Options !== undefined &&
489
489
  input.Options !== null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) }),
@@ -513,7 +513,7 @@ const serializeAws_restJson1DeleteAttachmentCommand = async (input, context) =>
513
513
  if (labelValue.length <= 0) {
514
514
  throw new Error("Empty value provided for input HTTP label: AttachmentId.");
515
515
  }
516
- resolvedPath = resolvedPath.replace("{AttachmentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
516
+ resolvedPath = resolvedPath.replace("{AttachmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
517
517
  }
518
518
  else {
519
519
  throw new Error("No value provided for input HTTP label: AttachmentId.");
@@ -540,7 +540,7 @@ const serializeAws_restJson1DeleteConnectionCommand = async (input, context) =>
540
540
  if (labelValue.length <= 0) {
541
541
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
542
542
  }
543
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
543
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
544
544
  }
545
545
  else {
546
546
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -550,7 +550,7 @@ const serializeAws_restJson1DeleteConnectionCommand = async (input, context) =>
550
550
  if (labelValue.length <= 0) {
551
551
  throw new Error("Empty value provided for input HTTP label: ConnectionId.");
552
552
  }
553
- resolvedPath = resolvedPath.replace("{ConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
553
+ resolvedPath = resolvedPath.replace("{ConnectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
554
554
  }
555
555
  else {
556
556
  throw new Error("No value provided for input HTTP label: ConnectionId.");
@@ -576,7 +576,7 @@ const serializeAws_restJson1DeleteConnectPeerCommand = async (input, context) =>
576
576
  if (labelValue.length <= 0) {
577
577
  throw new Error("Empty value provided for input HTTP label: ConnectPeerId.");
578
578
  }
579
- resolvedPath = resolvedPath.replace("{ConnectPeerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
579
+ resolvedPath = resolvedPath.replace("{ConnectPeerId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
580
580
  }
581
581
  else {
582
582
  throw new Error("No value provided for input HTTP label: ConnectPeerId.");
@@ -602,7 +602,7 @@ const serializeAws_restJson1DeleteCoreNetworkCommand = async (input, context) =>
602
602
  if (labelValue.length <= 0) {
603
603
  throw new Error("Empty value provided for input HTTP label: CoreNetworkId.");
604
604
  }
605
- resolvedPath = resolvedPath.replace("{CoreNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
605
+ resolvedPath = resolvedPath.replace("{CoreNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
606
606
  }
607
607
  else {
608
608
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
@@ -629,7 +629,7 @@ const serializeAws_restJson1DeleteCoreNetworkPolicyVersionCommand = async (input
629
629
  if (labelValue.length <= 0) {
630
630
  throw new Error("Empty value provided for input HTTP label: CoreNetworkId.");
631
631
  }
632
- resolvedPath = resolvedPath.replace("{CoreNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
632
+ resolvedPath = resolvedPath.replace("{CoreNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
633
633
  }
634
634
  else {
635
635
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
@@ -639,7 +639,7 @@ const serializeAws_restJson1DeleteCoreNetworkPolicyVersionCommand = async (input
639
639
  if (labelValue.length <= 0) {
640
640
  throw new Error("Empty value provided for input HTTP label: PolicyVersionId.");
641
641
  }
642
- resolvedPath = resolvedPath.replace("{PolicyVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
642
+ resolvedPath = resolvedPath.replace("{PolicyVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
643
643
  }
644
644
  else {
645
645
  throw new Error("No value provided for input HTTP label: PolicyVersionId.");
@@ -666,7 +666,7 @@ const serializeAws_restJson1DeleteDeviceCommand = async (input, context) => {
666
666
  if (labelValue.length <= 0) {
667
667
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
668
668
  }
669
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
669
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
670
670
  }
671
671
  else {
672
672
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -676,7 +676,7 @@ const serializeAws_restJson1DeleteDeviceCommand = async (input, context) => {
676
676
  if (labelValue.length <= 0) {
677
677
  throw new Error("Empty value provided for input HTTP label: DeviceId.");
678
678
  }
679
- resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
679
+ resolvedPath = resolvedPath.replace("{DeviceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
680
680
  }
681
681
  else {
682
682
  throw new Error("No value provided for input HTTP label: DeviceId.");
@@ -702,7 +702,7 @@ const serializeAws_restJson1DeleteGlobalNetworkCommand = async (input, context)
702
702
  if (labelValue.length <= 0) {
703
703
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
704
704
  }
705
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
705
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
706
706
  }
707
707
  else {
708
708
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -729,7 +729,7 @@ const serializeAws_restJson1DeleteLinkCommand = async (input, context) => {
729
729
  if (labelValue.length <= 0) {
730
730
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
731
731
  }
732
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
732
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
733
733
  }
734
734
  else {
735
735
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -739,7 +739,7 @@ const serializeAws_restJson1DeleteLinkCommand = async (input, context) => {
739
739
  if (labelValue.length <= 0) {
740
740
  throw new Error("Empty value provided for input HTTP label: LinkId.");
741
741
  }
742
- resolvedPath = resolvedPath.replace("{LinkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
742
+ resolvedPath = resolvedPath.replace("{LinkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
743
743
  }
744
744
  else {
745
745
  throw new Error("No value provided for input HTTP label: LinkId.");
@@ -765,7 +765,7 @@ const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, context)
765
765
  if (labelValue.length <= 0) {
766
766
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
767
767
  }
768
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
768
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
769
769
  }
770
770
  else {
771
771
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -792,7 +792,7 @@ const serializeAws_restJson1DeleteSiteCommand = async (input, context) => {
792
792
  if (labelValue.length <= 0) {
793
793
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
794
794
  }
795
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
795
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
796
796
  }
797
797
  else {
798
798
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -802,7 +802,7 @@ const serializeAws_restJson1DeleteSiteCommand = async (input, context) => {
802
802
  if (labelValue.length <= 0) {
803
803
  throw new Error("Empty value provided for input HTTP label: SiteId.");
804
804
  }
805
- resolvedPath = resolvedPath.replace("{SiteId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
805
+ resolvedPath = resolvedPath.replace("{SiteId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
806
806
  }
807
807
  else {
808
808
  throw new Error("No value provided for input HTTP label: SiteId.");
@@ -829,7 +829,7 @@ const serializeAws_restJson1DeregisterTransitGatewayCommand = async (input, cont
829
829
  if (labelValue.length <= 0) {
830
830
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
831
831
  }
832
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
832
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
833
833
  }
834
834
  else {
835
835
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -839,7 +839,7 @@ const serializeAws_restJson1DeregisterTransitGatewayCommand = async (input, cont
839
839
  if (labelValue.length <= 0) {
840
840
  throw new Error("Empty value provided for input HTTP label: TransitGatewayArn.");
841
841
  }
842
- resolvedPath = resolvedPath.replace("{TransitGatewayArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
842
+ resolvedPath = resolvedPath.replace("{TransitGatewayArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
843
843
  }
844
844
  else {
845
845
  throw new Error("No value provided for input HTTP label: TransitGatewayArn.");
@@ -890,7 +890,7 @@ const serializeAws_restJson1DisassociateConnectPeerCommand = async (input, conte
890
890
  if (labelValue.length <= 0) {
891
891
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
892
892
  }
893
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
893
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
894
894
  }
895
895
  else {
896
896
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -900,7 +900,7 @@ const serializeAws_restJson1DisassociateConnectPeerCommand = async (input, conte
900
900
  if (labelValue.length <= 0) {
901
901
  throw new Error("Empty value provided for input HTTP label: ConnectPeerId.");
902
902
  }
903
- resolvedPath = resolvedPath.replace("{ConnectPeerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
903
+ resolvedPath = resolvedPath.replace("{ConnectPeerId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
904
904
  }
905
905
  else {
906
906
  throw new Error("No value provided for input HTTP label: ConnectPeerId.");
@@ -927,7 +927,7 @@ const serializeAws_restJson1DisassociateCustomerGatewayCommand = async (input, c
927
927
  if (labelValue.length <= 0) {
928
928
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
929
929
  }
930
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
930
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
931
931
  }
932
932
  else {
933
933
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -937,7 +937,7 @@ const serializeAws_restJson1DisassociateCustomerGatewayCommand = async (input, c
937
937
  if (labelValue.length <= 0) {
938
938
  throw new Error("Empty value provided for input HTTP label: CustomerGatewayArn.");
939
939
  }
940
- resolvedPath = resolvedPath.replace("{CustomerGatewayArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
940
+ resolvedPath = resolvedPath.replace("{CustomerGatewayArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
941
941
  }
942
942
  else {
943
943
  throw new Error("No value provided for input HTTP label: CustomerGatewayArn.");
@@ -964,7 +964,7 @@ const serializeAws_restJson1DisassociateLinkCommand = async (input, context) =>
964
964
  if (labelValue.length <= 0) {
965
965
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
966
966
  }
967
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
967
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
968
968
  }
969
969
  else {
970
970
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -996,7 +996,7 @@ const serializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = async
996
996
  if (labelValue.length <= 0) {
997
997
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
998
998
  }
999
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
999
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1000
1000
  }
1001
1001
  else {
1002
1002
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1006,7 +1006,7 @@ const serializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = async
1006
1006
  if (labelValue.length <= 0) {
1007
1007
  throw new Error("Empty value provided for input HTTP label: TransitGatewayConnectPeerArn.");
1008
1008
  }
1009
- resolvedPath = resolvedPath.replace("{TransitGatewayConnectPeerArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1009
+ resolvedPath = resolvedPath.replace("{TransitGatewayConnectPeerArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1010
1010
  }
1011
1011
  else {
1012
1012
  throw new Error("No value provided for input HTTP label: TransitGatewayConnectPeerArn.");
@@ -1033,7 +1033,7 @@ const serializeAws_restJson1ExecuteCoreNetworkChangeSetCommand = async (input, c
1033
1033
  if (labelValue.length <= 0) {
1034
1034
  throw new Error("Empty value provided for input HTTP label: CoreNetworkId.");
1035
1035
  }
1036
- resolvedPath = resolvedPath.replace("{CoreNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1036
+ resolvedPath = resolvedPath.replace("{CoreNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1037
1037
  }
1038
1038
  else {
1039
1039
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
@@ -1043,7 +1043,7 @@ const serializeAws_restJson1ExecuteCoreNetworkChangeSetCommand = async (input, c
1043
1043
  if (labelValue.length <= 0) {
1044
1044
  throw new Error("Empty value provided for input HTTP label: PolicyVersionId.");
1045
1045
  }
1046
- resolvedPath = resolvedPath.replace("{PolicyVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1046
+ resolvedPath = resolvedPath.replace("{PolicyVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1047
1047
  }
1048
1048
  else {
1049
1049
  throw new Error("No value provided for input HTTP label: PolicyVersionId.");
@@ -1069,7 +1069,7 @@ const serializeAws_restJson1GetConnectAttachmentCommand = async (input, context)
1069
1069
  if (labelValue.length <= 0) {
1070
1070
  throw new Error("Empty value provided for input HTTP label: AttachmentId.");
1071
1071
  }
1072
- resolvedPath = resolvedPath.replace("{AttachmentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1072
+ resolvedPath = resolvedPath.replace("{AttachmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1073
1073
  }
1074
1074
  else {
1075
1075
  throw new Error("No value provided for input HTTP label: AttachmentId.");
@@ -1096,7 +1096,7 @@ const serializeAws_restJson1GetConnectionsCommand = async (input, context) => {
1096
1096
  if (labelValue.length <= 0) {
1097
1097
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1098
1098
  }
1099
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1099
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1100
1100
  }
1101
1101
  else {
1102
1102
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1131,7 +1131,7 @@ const serializeAws_restJson1GetConnectPeerCommand = async (input, context) => {
1131
1131
  if (labelValue.length <= 0) {
1132
1132
  throw new Error("Empty value provided for input HTTP label: ConnectPeerId.");
1133
1133
  }
1134
- resolvedPath = resolvedPath.replace("{ConnectPeerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1134
+ resolvedPath = resolvedPath.replace("{ConnectPeerId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1135
1135
  }
1136
1136
  else {
1137
1137
  throw new Error("No value provided for input HTTP label: ConnectPeerId.");
@@ -1158,7 +1158,7 @@ const serializeAws_restJson1GetConnectPeerAssociationsCommand = async (input, co
1158
1158
  if (labelValue.length <= 0) {
1159
1159
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1160
1160
  }
1161
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1161
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1162
1162
  }
1163
1163
  else {
1164
1164
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1192,7 +1192,7 @@ const serializeAws_restJson1GetCoreNetworkCommand = async (input, context) => {
1192
1192
  if (labelValue.length <= 0) {
1193
1193
  throw new Error("Empty value provided for input HTTP label: CoreNetworkId.");
1194
1194
  }
1195
- resolvedPath = resolvedPath.replace("{CoreNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1195
+ resolvedPath = resolvedPath.replace("{CoreNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1196
1196
  }
1197
1197
  else {
1198
1198
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
@@ -1219,7 +1219,7 @@ const serializeAws_restJson1GetCoreNetworkChangeSetCommand = async (input, conte
1219
1219
  if (labelValue.length <= 0) {
1220
1220
  throw new Error("Empty value provided for input HTTP label: CoreNetworkId.");
1221
1221
  }
1222
- resolvedPath = resolvedPath.replace("{CoreNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1222
+ resolvedPath = resolvedPath.replace("{CoreNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1223
1223
  }
1224
1224
  else {
1225
1225
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
@@ -1229,7 +1229,7 @@ const serializeAws_restJson1GetCoreNetworkChangeSetCommand = async (input, conte
1229
1229
  if (labelValue.length <= 0) {
1230
1230
  throw new Error("Empty value provided for input HTTP label: PolicyVersionId.");
1231
1231
  }
1232
- resolvedPath = resolvedPath.replace("{PolicyVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1232
+ resolvedPath = resolvedPath.replace("{PolicyVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1233
1233
  }
1234
1234
  else {
1235
1235
  throw new Error("No value provided for input HTTP label: PolicyVersionId.");
@@ -1261,7 +1261,7 @@ const serializeAws_restJson1GetCoreNetworkPolicyCommand = async (input, context)
1261
1261
  if (labelValue.length <= 0) {
1262
1262
  throw new Error("Empty value provided for input HTTP label: CoreNetworkId.");
1263
1263
  }
1264
- resolvedPath = resolvedPath.replace("{CoreNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1264
+ resolvedPath = resolvedPath.replace("{CoreNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1265
1265
  }
1266
1266
  else {
1267
1267
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
@@ -1293,7 +1293,7 @@ const serializeAws_restJson1GetCustomerGatewayAssociationsCommand = async (input
1293
1293
  if (labelValue.length <= 0) {
1294
1294
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1295
1295
  }
1296
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1296
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1297
1297
  }
1298
1298
  else {
1299
1299
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1328,7 +1328,7 @@ const serializeAws_restJson1GetDevicesCommand = async (input, context) => {
1328
1328
  if (labelValue.length <= 0) {
1329
1329
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1330
1330
  }
1331
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1331
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1332
1332
  }
1333
1333
  else {
1334
1334
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1362,7 +1362,7 @@ const serializeAws_restJson1GetLinkAssociationsCommand = async (input, context)
1362
1362
  if (labelValue.length <= 0) {
1363
1363
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1364
1364
  }
1365
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1365
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1366
1366
  }
1367
1367
  else {
1368
1368
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1395,7 +1395,7 @@ const serializeAws_restJson1GetLinksCommand = async (input, context) => {
1395
1395
  if (labelValue.length <= 0) {
1396
1396
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1397
1397
  }
1398
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1398
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1399
1399
  }
1400
1400
  else {
1401
1401
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1431,7 +1431,7 @@ const serializeAws_restJson1GetNetworkResourceCountsCommand = async (input, cont
1431
1431
  if (labelValue.length <= 0) {
1432
1432
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1433
1433
  }
1434
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1434
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1435
1435
  }
1436
1436
  else {
1437
1437
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1464,7 +1464,7 @@ const serializeAws_restJson1GetNetworkResourceRelationshipsCommand = async (inpu
1464
1464
  if (labelValue.length <= 0) {
1465
1465
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1466
1466
  }
1467
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1467
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1468
1468
  }
1469
1469
  else {
1470
1470
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1502,7 +1502,7 @@ const serializeAws_restJson1GetNetworkResourcesCommand = async (input, context)
1502
1502
  if (labelValue.length <= 0) {
1503
1503
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1504
1504
  }
1505
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1505
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1506
1506
  }
1507
1507
  else {
1508
1508
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1542,7 +1542,7 @@ const serializeAws_restJson1GetNetworkRoutesCommand = async (input, context) =>
1542
1542
  if (labelValue.length <= 0) {
1543
1543
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1544
1544
  }
1545
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1545
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1546
1546
  }
1547
1547
  else {
1548
1548
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1603,7 +1603,7 @@ const serializeAws_restJson1GetNetworkTelemetryCommand = async (input, context)
1603
1603
  if (labelValue.length <= 0) {
1604
1604
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1605
1605
  }
1606
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1606
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1607
1607
  }
1608
1608
  else {
1609
1609
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1640,7 +1640,7 @@ const serializeAws_restJson1GetResourcePolicyCommand = async (input, context) =>
1640
1640
  if (labelValue.length <= 0) {
1641
1641
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
1642
1642
  }
1643
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1643
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1644
1644
  }
1645
1645
  else {
1646
1646
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -1667,7 +1667,7 @@ const serializeAws_restJson1GetRouteAnalysisCommand = async (input, context) =>
1667
1667
  if (labelValue.length <= 0) {
1668
1668
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1669
1669
  }
1670
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1670
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1671
1671
  }
1672
1672
  else {
1673
1673
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1677,7 +1677,7 @@ const serializeAws_restJson1GetRouteAnalysisCommand = async (input, context) =>
1677
1677
  if (labelValue.length <= 0) {
1678
1678
  throw new Error("Empty value provided for input HTTP label: RouteAnalysisId.");
1679
1679
  }
1680
- resolvedPath = resolvedPath.replace("{RouteAnalysisId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1680
+ resolvedPath = resolvedPath.replace("{RouteAnalysisId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1681
1681
  }
1682
1682
  else {
1683
1683
  throw new Error("No value provided for input HTTP label: RouteAnalysisId.");
@@ -1703,7 +1703,7 @@ const serializeAws_restJson1GetSitesCommand = async (input, context) => {
1703
1703
  if (labelValue.length <= 0) {
1704
1704
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1705
1705
  }
1706
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1706
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1707
1707
  }
1708
1708
  else {
1709
1709
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1736,7 +1736,7 @@ const serializeAws_restJson1GetSiteToSiteVpnAttachmentCommand = async (input, co
1736
1736
  if (labelValue.length <= 0) {
1737
1737
  throw new Error("Empty value provided for input HTTP label: AttachmentId.");
1738
1738
  }
1739
- resolvedPath = resolvedPath.replace("{AttachmentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1739
+ resolvedPath = resolvedPath.replace("{AttachmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1740
1740
  }
1741
1741
  else {
1742
1742
  throw new Error("No value provided for input HTTP label: AttachmentId.");
@@ -1763,7 +1763,7 @@ const serializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand = as
1763
1763
  if (labelValue.length <= 0) {
1764
1764
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1765
1765
  }
1766
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1766
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1767
1767
  }
1768
1768
  else {
1769
1769
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1798,7 +1798,7 @@ const serializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (input
1798
1798
  if (labelValue.length <= 0) {
1799
1799
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
1800
1800
  }
1801
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1801
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1802
1802
  }
1803
1803
  else {
1804
1804
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -1832,7 +1832,7 @@ const serializeAws_restJson1GetVpcAttachmentCommand = async (input, context) =>
1832
1832
  if (labelValue.length <= 0) {
1833
1833
  throw new Error("Empty value provided for input HTTP label: AttachmentId.");
1834
1834
  }
1835
- resolvedPath = resolvedPath.replace("{AttachmentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1835
+ resolvedPath = resolvedPath.replace("{AttachmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1836
1836
  }
1837
1837
  else {
1838
1838
  throw new Error("No value provided for input HTTP label: AttachmentId.");
@@ -1907,7 +1907,7 @@ const serializeAws_restJson1ListCoreNetworkPolicyVersionsCommand = async (input,
1907
1907
  if (labelValue.length <= 0) {
1908
1908
  throw new Error("Empty value provided for input HTTP label: CoreNetworkId.");
1909
1909
  }
1910
- resolvedPath = resolvedPath.replace("{CoreNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1910
+ resolvedPath = resolvedPath.replace("{CoreNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1911
1911
  }
1912
1912
  else {
1913
1913
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
@@ -1959,7 +1959,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
1959
1959
  if (labelValue.length <= 0) {
1960
1960
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
1961
1961
  }
1962
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1962
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1963
1963
  }
1964
1964
  else {
1965
1965
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -1989,14 +1989,14 @@ const serializeAws_restJson1PutCoreNetworkPolicyCommand = async (input, context)
1989
1989
  if (labelValue.length <= 0) {
1990
1990
  throw new Error("Empty value provided for input HTTP label: CoreNetworkId.");
1991
1991
  }
1992
- resolvedPath = resolvedPath.replace("{CoreNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1992
+ resolvedPath = resolvedPath.replace("{CoreNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1993
1993
  }
1994
1994
  else {
1995
1995
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
1996
1996
  }
1997
1997
  let body;
1998
1998
  body = JSON.stringify({
1999
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1999
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2000
2000
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2001
2001
  ...(input.LatestVersionId !== undefined &&
2002
2002
  input.LatestVersionId !== null && { LatestVersionId: input.LatestVersionId }),
@@ -2025,7 +2025,7 @@ const serializeAws_restJson1PutResourcePolicyCommand = async (input, context) =>
2025
2025
  if (labelValue.length <= 0) {
2026
2026
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
2027
2027
  }
2028
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2028
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2029
2029
  }
2030
2030
  else {
2031
2031
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -2058,7 +2058,7 @@ const serializeAws_restJson1RegisterTransitGatewayCommand = async (input, contex
2058
2058
  if (labelValue.length <= 0) {
2059
2059
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
2060
2060
  }
2061
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2061
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2062
2062
  }
2063
2063
  else {
2064
2064
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -2088,7 +2088,7 @@ const serializeAws_restJson1RejectAttachmentCommand = async (input, context) =>
2088
2088
  if (labelValue.length <= 0) {
2089
2089
  throw new Error("Empty value provided for input HTTP label: AttachmentId.");
2090
2090
  }
2091
- resolvedPath = resolvedPath.replace("{AttachmentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2091
+ resolvedPath = resolvedPath.replace("{AttachmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2092
2092
  }
2093
2093
  else {
2094
2094
  throw new Error("No value provided for input HTTP label: AttachmentId.");
@@ -2115,7 +2115,7 @@ const serializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = async (inpu
2115
2115
  if (labelValue.length <= 0) {
2116
2116
  throw new Error("Empty value provided for input HTTP label: CoreNetworkId.");
2117
2117
  }
2118
- resolvedPath = resolvedPath.replace("{CoreNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2118
+ resolvedPath = resolvedPath.replace("{CoreNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2119
2119
  }
2120
2120
  else {
2121
2121
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
@@ -2125,7 +2125,7 @@ const serializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = async (inpu
2125
2125
  if (labelValue.length <= 0) {
2126
2126
  throw new Error("Empty value provided for input HTTP label: PolicyVersionId.");
2127
2127
  }
2128
- resolvedPath = resolvedPath.replace("{PolicyVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2128
+ resolvedPath = resolvedPath.replace("{PolicyVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2129
2129
  }
2130
2130
  else {
2131
2131
  throw new Error("No value provided for input HTTP label: PolicyVersionId.");
@@ -2154,7 +2154,7 @@ const serializeAws_restJson1StartRouteAnalysisCommand = async (input, context) =
2154
2154
  if (labelValue.length <= 0) {
2155
2155
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
2156
2156
  }
2157
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2157
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2158
2158
  }
2159
2159
  else {
2160
2160
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -2196,7 +2196,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
2196
2196
  if (labelValue.length <= 0) {
2197
2197
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
2198
2198
  }
2199
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2199
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2200
2200
  }
2201
2201
  else {
2202
2202
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -2226,7 +2226,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
2226
2226
  if (labelValue.length <= 0) {
2227
2227
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
2228
2228
  }
2229
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2229
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2230
2230
  }
2231
2231
  else {
2232
2232
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -2259,7 +2259,7 @@ const serializeAws_restJson1UpdateConnectionCommand = async (input, context) =>
2259
2259
  if (labelValue.length <= 0) {
2260
2260
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
2261
2261
  }
2262
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2262
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2263
2263
  }
2264
2264
  else {
2265
2265
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -2269,7 +2269,7 @@ const serializeAws_restJson1UpdateConnectionCommand = async (input, context) =>
2269
2269
  if (labelValue.length <= 0) {
2270
2270
  throw new Error("Empty value provided for input HTTP label: ConnectionId.");
2271
2271
  }
2272
- resolvedPath = resolvedPath.replace("{ConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2272
+ resolvedPath = resolvedPath.replace("{ConnectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2273
2273
  }
2274
2274
  else {
2275
2275
  throw new Error("No value provided for input HTTP label: ConnectionId.");
@@ -2303,7 +2303,7 @@ const serializeAws_restJson1UpdateCoreNetworkCommand = async (input, context) =>
2303
2303
  if (labelValue.length <= 0) {
2304
2304
  throw new Error("Empty value provided for input HTTP label: CoreNetworkId.");
2305
2305
  }
2306
- resolvedPath = resolvedPath.replace("{CoreNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2306
+ resolvedPath = resolvedPath.replace("{CoreNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2307
2307
  }
2308
2308
  else {
2309
2309
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
@@ -2335,7 +2335,7 @@ const serializeAws_restJson1UpdateDeviceCommand = async (input, context) => {
2335
2335
  if (labelValue.length <= 0) {
2336
2336
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
2337
2337
  }
2338
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2338
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2339
2339
  }
2340
2340
  else {
2341
2341
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -2345,7 +2345,7 @@ const serializeAws_restJson1UpdateDeviceCommand = async (input, context) => {
2345
2345
  if (labelValue.length <= 0) {
2346
2346
  throw new Error("Empty value provided for input HTTP label: DeviceId.");
2347
2347
  }
2348
- resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2348
+ resolvedPath = resolvedPath.replace("{DeviceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2349
2349
  }
2350
2350
  else {
2351
2351
  throw new Error("No value provided for input HTTP label: DeviceId.");
@@ -2385,7 +2385,7 @@ const serializeAws_restJson1UpdateGlobalNetworkCommand = async (input, context)
2385
2385
  if (labelValue.length <= 0) {
2386
2386
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
2387
2387
  }
2388
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2388
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2389
2389
  }
2390
2390
  else {
2391
2391
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -2417,7 +2417,7 @@ const serializeAws_restJson1UpdateLinkCommand = async (input, context) => {
2417
2417
  if (labelValue.length <= 0) {
2418
2418
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
2419
2419
  }
2420
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2420
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2421
2421
  }
2422
2422
  else {
2423
2423
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -2427,7 +2427,7 @@ const serializeAws_restJson1UpdateLinkCommand = async (input, context) => {
2427
2427
  if (labelValue.length <= 0) {
2428
2428
  throw new Error("Empty value provided for input HTTP label: LinkId.");
2429
2429
  }
2430
- resolvedPath = resolvedPath.replace("{LinkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2430
+ resolvedPath = resolvedPath.replace("{LinkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2431
2431
  }
2432
2432
  else {
2433
2433
  throw new Error("No value provided for input HTTP label: LinkId.");
@@ -2463,7 +2463,7 @@ const serializeAws_restJson1UpdateNetworkResourceMetadataCommand = async (input,
2463
2463
  if (labelValue.length <= 0) {
2464
2464
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
2465
2465
  }
2466
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2466
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2467
2467
  }
2468
2468
  else {
2469
2469
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -2473,7 +2473,7 @@ const serializeAws_restJson1UpdateNetworkResourceMetadataCommand = async (input,
2473
2473
  if (labelValue.length <= 0) {
2474
2474
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
2475
2475
  }
2476
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2476
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2477
2477
  }
2478
2478
  else {
2479
2479
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -2508,7 +2508,7 @@ const serializeAws_restJson1UpdateSiteCommand = async (input, context) => {
2508
2508
  if (labelValue.length <= 0) {
2509
2509
  throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
2510
2510
  }
2511
- resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2511
+ resolvedPath = resolvedPath.replace("{GlobalNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2512
2512
  }
2513
2513
  else {
2514
2514
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
@@ -2518,7 +2518,7 @@ const serializeAws_restJson1UpdateSiteCommand = async (input, context) => {
2518
2518
  if (labelValue.length <= 0) {
2519
2519
  throw new Error("Empty value provided for input HTTP label: SiteId.");
2520
2520
  }
2521
- resolvedPath = resolvedPath.replace("{SiteId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2521
+ resolvedPath = resolvedPath.replace("{SiteId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2522
2522
  }
2523
2523
  else {
2524
2524
  throw new Error("No value provided for input HTTP label: SiteId.");
@@ -2551,7 +2551,7 @@ const serializeAws_restJson1UpdateVpcAttachmentCommand = async (input, context)
2551
2551
  if (labelValue.length <= 0) {
2552
2552
  throw new Error("Empty value provided for input HTTP label: AttachmentId.");
2553
2553
  }
2554
- resolvedPath = resolvedPath.replace("{AttachmentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2554
+ resolvedPath = resolvedPath.replace("{AttachmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2555
2555
  }
2556
2556
  else {
2557
2557
  throw new Error("No value provided for input HTTP label: AttachmentId.");
@@ -2588,7 +2588,7 @@ const deserializeAws_restJson1AcceptAttachmentCommand = async (output, context)
2588
2588
  $metadata: deserializeMetadata(output),
2589
2589
  Attachment: undefined,
2590
2590
  };
2591
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2591
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2592
2592
  if (data.Attachment !== undefined && data.Attachment !== null) {
2593
2593
  contents.Attachment = deserializeAws_restJson1Attachment(data.Attachment, context);
2594
2594
  }
@@ -2629,7 +2629,7 @@ const deserializeAws_restJson1AcceptAttachmentCommandError = async (output, cont
2629
2629
  $fault: "client",
2630
2630
  $metadata: deserializeMetadata(output),
2631
2631
  });
2632
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2632
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2633
2633
  }
2634
2634
  };
2635
2635
  const deserializeAws_restJson1AssociateConnectPeerCommand = async (output, context) => {
@@ -2640,7 +2640,7 @@ const deserializeAws_restJson1AssociateConnectPeerCommand = async (output, conte
2640
2640
  $metadata: deserializeMetadata(output),
2641
2641
  ConnectPeerAssociation: undefined,
2642
2642
  };
2643
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2643
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2644
2644
  if (data.ConnectPeerAssociation !== undefined && data.ConnectPeerAssociation !== null) {
2645
2645
  contents.ConnectPeerAssociation = deserializeAws_restJson1ConnectPeerAssociation(data.ConnectPeerAssociation, context);
2646
2646
  }
@@ -2684,7 +2684,7 @@ const deserializeAws_restJson1AssociateConnectPeerCommandError = async (output,
2684
2684
  $fault: "client",
2685
2685
  $metadata: deserializeMetadata(output),
2686
2686
  });
2687
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2687
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2688
2688
  }
2689
2689
  };
2690
2690
  const deserializeAws_restJson1AssociateCustomerGatewayCommand = async (output, context) => {
@@ -2695,7 +2695,7 @@ const deserializeAws_restJson1AssociateCustomerGatewayCommand = async (output, c
2695
2695
  $metadata: deserializeMetadata(output),
2696
2696
  CustomerGatewayAssociation: undefined,
2697
2697
  };
2698
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2698
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2699
2699
  if (data.CustomerGatewayAssociation !== undefined && data.CustomerGatewayAssociation !== null) {
2700
2700
  contents.CustomerGatewayAssociation = deserializeAws_restJson1CustomerGatewayAssociation(data.CustomerGatewayAssociation, context);
2701
2701
  }
@@ -2739,7 +2739,7 @@ const deserializeAws_restJson1AssociateCustomerGatewayCommandError = async (outp
2739
2739
  $fault: "client",
2740
2740
  $metadata: deserializeMetadata(output),
2741
2741
  });
2742
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2742
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2743
2743
  }
2744
2744
  };
2745
2745
  const deserializeAws_restJson1AssociateLinkCommand = async (output, context) => {
@@ -2750,7 +2750,7 @@ const deserializeAws_restJson1AssociateLinkCommand = async (output, context) =>
2750
2750
  $metadata: deserializeMetadata(output),
2751
2751
  LinkAssociation: undefined,
2752
2752
  };
2753
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2753
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2754
2754
  if (data.LinkAssociation !== undefined && data.LinkAssociation !== null) {
2755
2755
  contents.LinkAssociation = deserializeAws_restJson1LinkAssociation(data.LinkAssociation, context);
2756
2756
  }
@@ -2794,7 +2794,7 @@ const deserializeAws_restJson1AssociateLinkCommandError = async (output, context
2794
2794
  $fault: "client",
2795
2795
  $metadata: deserializeMetadata(output),
2796
2796
  });
2797
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2797
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2798
2798
  }
2799
2799
  };
2800
2800
  const deserializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = async (output, context) => {
@@ -2805,7 +2805,7 @@ const deserializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = async
2805
2805
  $metadata: deserializeMetadata(output),
2806
2806
  TransitGatewayConnectPeerAssociation: undefined,
2807
2807
  };
2808
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2808
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2809
2809
  if (data.TransitGatewayConnectPeerAssociation !== undefined && data.TransitGatewayConnectPeerAssociation !== null) {
2810
2810
  contents.TransitGatewayConnectPeerAssociation = deserializeAws_restJson1TransitGatewayConnectPeerAssociation(data.TransitGatewayConnectPeerAssociation, context);
2811
2811
  }
@@ -2849,7 +2849,7 @@ const deserializeAws_restJson1AssociateTransitGatewayConnectPeerCommandError = a
2849
2849
  $fault: "client",
2850
2850
  $metadata: deserializeMetadata(output),
2851
2851
  });
2852
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2852
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2853
2853
  }
2854
2854
  };
2855
2855
  const deserializeAws_restJson1CreateConnectAttachmentCommand = async (output, context) => {
@@ -2860,7 +2860,7 @@ const deserializeAws_restJson1CreateConnectAttachmentCommand = async (output, co
2860
2860
  $metadata: deserializeMetadata(output),
2861
2861
  ConnectAttachment: undefined,
2862
2862
  };
2863
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2863
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2864
2864
  if (data.ConnectAttachment !== undefined && data.ConnectAttachment !== null) {
2865
2865
  contents.ConnectAttachment = deserializeAws_restJson1ConnectAttachment(data.ConnectAttachment, context);
2866
2866
  }
@@ -2901,7 +2901,7 @@ const deserializeAws_restJson1CreateConnectAttachmentCommandError = async (outpu
2901
2901
  $fault: "client",
2902
2902
  $metadata: deserializeMetadata(output),
2903
2903
  });
2904
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2904
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2905
2905
  }
2906
2906
  };
2907
2907
  const deserializeAws_restJson1CreateConnectionCommand = async (output, context) => {
@@ -2912,7 +2912,7 @@ const deserializeAws_restJson1CreateConnectionCommand = async (output, context)
2912
2912
  $metadata: deserializeMetadata(output),
2913
2913
  Connection: undefined,
2914
2914
  };
2915
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2915
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2916
2916
  if (data.Connection !== undefined && data.Connection !== null) {
2917
2917
  contents.Connection = deserializeAws_restJson1Connection(data.Connection, context);
2918
2918
  }
@@ -2953,7 +2953,7 @@ const deserializeAws_restJson1CreateConnectionCommandError = async (output, cont
2953
2953
  $fault: "client",
2954
2954
  $metadata: deserializeMetadata(output),
2955
2955
  });
2956
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2956
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2957
2957
  }
2958
2958
  };
2959
2959
  const deserializeAws_restJson1CreateConnectPeerCommand = async (output, context) => {
@@ -2964,7 +2964,7 @@ const deserializeAws_restJson1CreateConnectPeerCommand = async (output, context)
2964
2964
  $metadata: deserializeMetadata(output),
2965
2965
  ConnectPeer: undefined,
2966
2966
  };
2967
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2967
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2968
2968
  if (data.ConnectPeer !== undefined && data.ConnectPeer !== null) {
2969
2969
  contents.ConnectPeer = deserializeAws_restJson1ConnectPeer(data.ConnectPeer, context);
2970
2970
  }
@@ -3005,7 +3005,7 @@ const deserializeAws_restJson1CreateConnectPeerCommandError = async (output, con
3005
3005
  $fault: "client",
3006
3006
  $metadata: deserializeMetadata(output),
3007
3007
  });
3008
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3008
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3009
3009
  }
3010
3010
  };
3011
3011
  const deserializeAws_restJson1CreateCoreNetworkCommand = async (output, context) => {
@@ -3016,7 +3016,7 @@ const deserializeAws_restJson1CreateCoreNetworkCommand = async (output, context)
3016
3016
  $metadata: deserializeMetadata(output),
3017
3017
  CoreNetwork: undefined,
3018
3018
  };
3019
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3019
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3020
3020
  if (data.CoreNetwork !== undefined && data.CoreNetwork !== null) {
3021
3021
  contents.CoreNetwork = deserializeAws_restJson1CoreNetwork(data.CoreNetwork, context);
3022
3022
  }
@@ -3060,7 +3060,7 @@ const deserializeAws_restJson1CreateCoreNetworkCommandError = async (output, con
3060
3060
  $fault: "client",
3061
3061
  $metadata: deserializeMetadata(output),
3062
3062
  });
3063
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3063
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3064
3064
  }
3065
3065
  };
3066
3066
  const deserializeAws_restJson1CreateDeviceCommand = async (output, context) => {
@@ -3071,7 +3071,7 @@ const deserializeAws_restJson1CreateDeviceCommand = async (output, context) => {
3071
3071
  $metadata: deserializeMetadata(output),
3072
3072
  Device: undefined,
3073
3073
  };
3074
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3074
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3075
3075
  if (data.Device !== undefined && data.Device !== null) {
3076
3076
  contents.Device = deserializeAws_restJson1Device(data.Device, context);
3077
3077
  }
@@ -3115,7 +3115,7 @@ const deserializeAws_restJson1CreateDeviceCommandError = async (output, context)
3115
3115
  $fault: "client",
3116
3116
  $metadata: deserializeMetadata(output),
3117
3117
  });
3118
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3118
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3119
3119
  }
3120
3120
  };
3121
3121
  const deserializeAws_restJson1CreateGlobalNetworkCommand = async (output, context) => {
@@ -3126,7 +3126,7 @@ const deserializeAws_restJson1CreateGlobalNetworkCommand = async (output, contex
3126
3126
  $metadata: deserializeMetadata(output),
3127
3127
  GlobalNetwork: undefined,
3128
3128
  };
3129
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3129
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3130
3130
  if (data.GlobalNetwork !== undefined && data.GlobalNetwork !== null) {
3131
3131
  contents.GlobalNetwork = deserializeAws_restJson1GlobalNetwork(data.GlobalNetwork, context);
3132
3132
  }
@@ -3167,7 +3167,7 @@ const deserializeAws_restJson1CreateGlobalNetworkCommandError = async (output, c
3167
3167
  $fault: "client",
3168
3168
  $metadata: deserializeMetadata(output),
3169
3169
  });
3170
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3170
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3171
3171
  }
3172
3172
  };
3173
3173
  const deserializeAws_restJson1CreateLinkCommand = async (output, context) => {
@@ -3178,7 +3178,7 @@ const deserializeAws_restJson1CreateLinkCommand = async (output, context) => {
3178
3178
  $metadata: deserializeMetadata(output),
3179
3179
  Link: undefined,
3180
3180
  };
3181
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3181
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3182
3182
  if (data.Link !== undefined && data.Link !== null) {
3183
3183
  contents.Link = deserializeAws_restJson1Link(data.Link, context);
3184
3184
  }
@@ -3222,7 +3222,7 @@ const deserializeAws_restJson1CreateLinkCommandError = async (output, context) =
3222
3222
  $fault: "client",
3223
3223
  $metadata: deserializeMetadata(output),
3224
3224
  });
3225
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3225
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3226
3226
  }
3227
3227
  };
3228
3228
  const deserializeAws_restJson1CreateSiteCommand = async (output, context) => {
@@ -3233,7 +3233,7 @@ const deserializeAws_restJson1CreateSiteCommand = async (output, context) => {
3233
3233
  $metadata: deserializeMetadata(output),
3234
3234
  Site: undefined,
3235
3235
  };
3236
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3236
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3237
3237
  if (data.Site !== undefined && data.Site !== null) {
3238
3238
  contents.Site = deserializeAws_restJson1Site(data.Site, context);
3239
3239
  }
@@ -3277,7 +3277,7 @@ const deserializeAws_restJson1CreateSiteCommandError = async (output, context) =
3277
3277
  $fault: "client",
3278
3278
  $metadata: deserializeMetadata(output),
3279
3279
  });
3280
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3280
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3281
3281
  }
3282
3282
  };
3283
3283
  const deserializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = async (output, context) => {
@@ -3288,7 +3288,7 @@ const deserializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = async (outp
3288
3288
  $metadata: deserializeMetadata(output),
3289
3289
  SiteToSiteVpnAttachment: undefined,
3290
3290
  };
3291
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3291
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3292
3292
  if (data.SiteToSiteVpnAttachment !== undefined && data.SiteToSiteVpnAttachment !== null) {
3293
3293
  contents.SiteToSiteVpnAttachment = deserializeAws_restJson1SiteToSiteVpnAttachment(data.SiteToSiteVpnAttachment, context);
3294
3294
  }
@@ -3329,7 +3329,7 @@ const deserializeAws_restJson1CreateSiteToSiteVpnAttachmentCommandError = async
3329
3329
  $fault: "client",
3330
3330
  $metadata: deserializeMetadata(output),
3331
3331
  });
3332
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3332
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3333
3333
  }
3334
3334
  };
3335
3335
  const deserializeAws_restJson1CreateVpcAttachmentCommand = async (output, context) => {
@@ -3340,7 +3340,7 @@ const deserializeAws_restJson1CreateVpcAttachmentCommand = async (output, contex
3340
3340
  $metadata: deserializeMetadata(output),
3341
3341
  VpcAttachment: undefined,
3342
3342
  };
3343
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3343
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3344
3344
  if (data.VpcAttachment !== undefined && data.VpcAttachment !== null) {
3345
3345
  contents.VpcAttachment = deserializeAws_restJson1VpcAttachment(data.VpcAttachment, context);
3346
3346
  }
@@ -3381,7 +3381,7 @@ const deserializeAws_restJson1CreateVpcAttachmentCommandError = async (output, c
3381
3381
  $fault: "client",
3382
3382
  $metadata: deserializeMetadata(output),
3383
3383
  });
3384
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3384
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3385
3385
  }
3386
3386
  };
3387
3387
  const deserializeAws_restJson1DeleteAttachmentCommand = async (output, context) => {
@@ -3392,7 +3392,7 @@ const deserializeAws_restJson1DeleteAttachmentCommand = async (output, context)
3392
3392
  $metadata: deserializeMetadata(output),
3393
3393
  Attachment: undefined,
3394
3394
  };
3395
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3395
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3396
3396
  if (data.Attachment !== undefined && data.Attachment !== null) {
3397
3397
  contents.Attachment = deserializeAws_restJson1Attachment(data.Attachment, context);
3398
3398
  }
@@ -3433,7 +3433,7 @@ const deserializeAws_restJson1DeleteAttachmentCommandError = async (output, cont
3433
3433
  $fault: "client",
3434
3434
  $metadata: deserializeMetadata(output),
3435
3435
  });
3436
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3436
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3437
3437
  }
3438
3438
  };
3439
3439
  const deserializeAws_restJson1DeleteConnectionCommand = async (output, context) => {
@@ -3444,7 +3444,7 @@ const deserializeAws_restJson1DeleteConnectionCommand = async (output, context)
3444
3444
  $metadata: deserializeMetadata(output),
3445
3445
  Connection: undefined,
3446
3446
  };
3447
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3447
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3448
3448
  if (data.Connection !== undefined && data.Connection !== null) {
3449
3449
  contents.Connection = deserializeAws_restJson1Connection(data.Connection, context);
3450
3450
  }
@@ -3485,7 +3485,7 @@ const deserializeAws_restJson1DeleteConnectionCommandError = async (output, cont
3485
3485
  $fault: "client",
3486
3486
  $metadata: deserializeMetadata(output),
3487
3487
  });
3488
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3488
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3489
3489
  }
3490
3490
  };
3491
3491
  const deserializeAws_restJson1DeleteConnectPeerCommand = async (output, context) => {
@@ -3496,7 +3496,7 @@ const deserializeAws_restJson1DeleteConnectPeerCommand = async (output, context)
3496
3496
  $metadata: deserializeMetadata(output),
3497
3497
  ConnectPeer: undefined,
3498
3498
  };
3499
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3499
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3500
3500
  if (data.ConnectPeer !== undefined && data.ConnectPeer !== null) {
3501
3501
  contents.ConnectPeer = deserializeAws_restJson1ConnectPeer(data.ConnectPeer, context);
3502
3502
  }
@@ -3537,7 +3537,7 @@ const deserializeAws_restJson1DeleteConnectPeerCommandError = async (output, con
3537
3537
  $fault: "client",
3538
3538
  $metadata: deserializeMetadata(output),
3539
3539
  });
3540
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3540
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3541
3541
  }
3542
3542
  };
3543
3543
  const deserializeAws_restJson1DeleteCoreNetworkCommand = async (output, context) => {
@@ -3548,7 +3548,7 @@ const deserializeAws_restJson1DeleteCoreNetworkCommand = async (output, context)
3548
3548
  $metadata: deserializeMetadata(output),
3549
3549
  CoreNetwork: undefined,
3550
3550
  };
3551
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3551
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3552
3552
  if (data.CoreNetwork !== undefined && data.CoreNetwork !== null) {
3553
3553
  contents.CoreNetwork = deserializeAws_restJson1CoreNetwork(data.CoreNetwork, context);
3554
3554
  }
@@ -3589,7 +3589,7 @@ const deserializeAws_restJson1DeleteCoreNetworkCommandError = async (output, con
3589
3589
  $fault: "client",
3590
3590
  $metadata: deserializeMetadata(output),
3591
3591
  });
3592
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3592
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3593
3593
  }
3594
3594
  };
3595
3595
  const deserializeAws_restJson1DeleteCoreNetworkPolicyVersionCommand = async (output, context) => {
@@ -3600,7 +3600,7 @@ const deserializeAws_restJson1DeleteCoreNetworkPolicyVersionCommand = async (out
3600
3600
  $metadata: deserializeMetadata(output),
3601
3601
  CoreNetworkPolicy: undefined,
3602
3602
  };
3603
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3603
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3604
3604
  if (data.CoreNetworkPolicy !== undefined && data.CoreNetworkPolicy !== null) {
3605
3605
  contents.CoreNetworkPolicy = deserializeAws_restJson1CoreNetworkPolicy(data.CoreNetworkPolicy, context);
3606
3606
  }
@@ -3641,7 +3641,7 @@ const deserializeAws_restJson1DeleteCoreNetworkPolicyVersionCommandError = async
3641
3641
  $fault: "client",
3642
3642
  $metadata: deserializeMetadata(output),
3643
3643
  });
3644
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3644
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3645
3645
  }
3646
3646
  };
3647
3647
  const deserializeAws_restJson1DeleteDeviceCommand = async (output, context) => {
@@ -3652,7 +3652,7 @@ const deserializeAws_restJson1DeleteDeviceCommand = async (output, context) => {
3652
3652
  $metadata: deserializeMetadata(output),
3653
3653
  Device: undefined,
3654
3654
  };
3655
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3655
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3656
3656
  if (data.Device !== undefined && data.Device !== null) {
3657
3657
  contents.Device = deserializeAws_restJson1Device(data.Device, context);
3658
3658
  }
@@ -3693,7 +3693,7 @@ const deserializeAws_restJson1DeleteDeviceCommandError = async (output, context)
3693
3693
  $fault: "client",
3694
3694
  $metadata: deserializeMetadata(output),
3695
3695
  });
3696
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3696
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3697
3697
  }
3698
3698
  };
3699
3699
  const deserializeAws_restJson1DeleteGlobalNetworkCommand = async (output, context) => {
@@ -3704,7 +3704,7 @@ const deserializeAws_restJson1DeleteGlobalNetworkCommand = async (output, contex
3704
3704
  $metadata: deserializeMetadata(output),
3705
3705
  GlobalNetwork: undefined,
3706
3706
  };
3707
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3707
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3708
3708
  if (data.GlobalNetwork !== undefined && data.GlobalNetwork !== null) {
3709
3709
  contents.GlobalNetwork = deserializeAws_restJson1GlobalNetwork(data.GlobalNetwork, context);
3710
3710
  }
@@ -3745,7 +3745,7 @@ const deserializeAws_restJson1DeleteGlobalNetworkCommandError = async (output, c
3745
3745
  $fault: "client",
3746
3746
  $metadata: deserializeMetadata(output),
3747
3747
  });
3748
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3748
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3749
3749
  }
3750
3750
  };
3751
3751
  const deserializeAws_restJson1DeleteLinkCommand = async (output, context) => {
@@ -3756,7 +3756,7 @@ const deserializeAws_restJson1DeleteLinkCommand = async (output, context) => {
3756
3756
  $metadata: deserializeMetadata(output),
3757
3757
  Link: undefined,
3758
3758
  };
3759
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3759
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3760
3760
  if (data.Link !== undefined && data.Link !== null) {
3761
3761
  contents.Link = deserializeAws_restJson1Link(data.Link, context);
3762
3762
  }
@@ -3797,7 +3797,7 @@ const deserializeAws_restJson1DeleteLinkCommandError = async (output, context) =
3797
3797
  $fault: "client",
3798
3798
  $metadata: deserializeMetadata(output),
3799
3799
  });
3800
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3800
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3801
3801
  }
3802
3802
  };
3803
3803
  const deserializeAws_restJson1DeleteResourcePolicyCommand = async (output, context) => {
@@ -3842,7 +3842,7 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
3842
3842
  $fault: "client",
3843
3843
  $metadata: deserializeMetadata(output),
3844
3844
  });
3845
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3845
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3846
3846
  }
3847
3847
  };
3848
3848
  const deserializeAws_restJson1DeleteSiteCommand = async (output, context) => {
@@ -3853,7 +3853,7 @@ const deserializeAws_restJson1DeleteSiteCommand = async (output, context) => {
3853
3853
  $metadata: deserializeMetadata(output),
3854
3854
  Site: undefined,
3855
3855
  };
3856
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3856
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3857
3857
  if (data.Site !== undefined && data.Site !== null) {
3858
3858
  contents.Site = deserializeAws_restJson1Site(data.Site, context);
3859
3859
  }
@@ -3894,7 +3894,7 @@ const deserializeAws_restJson1DeleteSiteCommandError = async (output, context) =
3894
3894
  $fault: "client",
3895
3895
  $metadata: deserializeMetadata(output),
3896
3896
  });
3897
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3897
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3898
3898
  }
3899
3899
  };
3900
3900
  const deserializeAws_restJson1DeregisterTransitGatewayCommand = async (output, context) => {
@@ -3905,7 +3905,7 @@ const deserializeAws_restJson1DeregisterTransitGatewayCommand = async (output, c
3905
3905
  $metadata: deserializeMetadata(output),
3906
3906
  TransitGatewayRegistration: undefined,
3907
3907
  };
3908
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3908
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3909
3909
  if (data.TransitGatewayRegistration !== undefined && data.TransitGatewayRegistration !== null) {
3910
3910
  contents.TransitGatewayRegistration = deserializeAws_restJson1TransitGatewayRegistration(data.TransitGatewayRegistration, context);
3911
3911
  }
@@ -3946,7 +3946,7 @@ const deserializeAws_restJson1DeregisterTransitGatewayCommandError = async (outp
3946
3946
  $fault: "client",
3947
3947
  $metadata: deserializeMetadata(output),
3948
3948
  });
3949
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3949
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3950
3950
  }
3951
3951
  };
3952
3952
  const deserializeAws_restJson1DescribeGlobalNetworksCommand = async (output, context) => {
@@ -3958,12 +3958,12 @@ const deserializeAws_restJson1DescribeGlobalNetworksCommand = async (output, con
3958
3958
  GlobalNetworks: undefined,
3959
3959
  NextToken: undefined,
3960
3960
  };
3961
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3961
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3962
3962
  if (data.GlobalNetworks !== undefined && data.GlobalNetworks !== null) {
3963
3963
  contents.GlobalNetworks = deserializeAws_restJson1GlobalNetworkList(data.GlobalNetworks, context);
3964
3964
  }
3965
3965
  if (data.NextToken !== undefined && data.NextToken !== null) {
3966
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
3966
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3967
3967
  }
3968
3968
  return Promise.resolve(contents);
3969
3969
  };
@@ -3999,7 +3999,7 @@ const deserializeAws_restJson1DescribeGlobalNetworksCommandError = async (output
3999
3999
  $fault: "client",
4000
4000
  $metadata: deserializeMetadata(output),
4001
4001
  });
4002
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4002
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4003
4003
  }
4004
4004
  };
4005
4005
  const deserializeAws_restJson1DisassociateConnectPeerCommand = async (output, context) => {
@@ -4010,7 +4010,7 @@ const deserializeAws_restJson1DisassociateConnectPeerCommand = async (output, co
4010
4010
  $metadata: deserializeMetadata(output),
4011
4011
  ConnectPeerAssociation: undefined,
4012
4012
  };
4013
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4013
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4014
4014
  if (data.ConnectPeerAssociation !== undefined && data.ConnectPeerAssociation !== null) {
4015
4015
  contents.ConnectPeerAssociation = deserializeAws_restJson1ConnectPeerAssociation(data.ConnectPeerAssociation, context);
4016
4016
  }
@@ -4051,7 +4051,7 @@ const deserializeAws_restJson1DisassociateConnectPeerCommandError = async (outpu
4051
4051
  $fault: "client",
4052
4052
  $metadata: deserializeMetadata(output),
4053
4053
  });
4054
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4054
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4055
4055
  }
4056
4056
  };
4057
4057
  const deserializeAws_restJson1DisassociateCustomerGatewayCommand = async (output, context) => {
@@ -4062,7 +4062,7 @@ const deserializeAws_restJson1DisassociateCustomerGatewayCommand = async (output
4062
4062
  $metadata: deserializeMetadata(output),
4063
4063
  CustomerGatewayAssociation: undefined,
4064
4064
  };
4065
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4065
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4066
4066
  if (data.CustomerGatewayAssociation !== undefined && data.CustomerGatewayAssociation !== null) {
4067
4067
  contents.CustomerGatewayAssociation = deserializeAws_restJson1CustomerGatewayAssociation(data.CustomerGatewayAssociation, context);
4068
4068
  }
@@ -4103,7 +4103,7 @@ const deserializeAws_restJson1DisassociateCustomerGatewayCommandError = async (o
4103
4103
  $fault: "client",
4104
4104
  $metadata: deserializeMetadata(output),
4105
4105
  });
4106
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4106
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4107
4107
  }
4108
4108
  };
4109
4109
  const deserializeAws_restJson1DisassociateLinkCommand = async (output, context) => {
@@ -4114,7 +4114,7 @@ const deserializeAws_restJson1DisassociateLinkCommand = async (output, context)
4114
4114
  $metadata: deserializeMetadata(output),
4115
4115
  LinkAssociation: undefined,
4116
4116
  };
4117
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4117
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4118
4118
  if (data.LinkAssociation !== undefined && data.LinkAssociation !== null) {
4119
4119
  contents.LinkAssociation = deserializeAws_restJson1LinkAssociation(data.LinkAssociation, context);
4120
4120
  }
@@ -4155,7 +4155,7 @@ const deserializeAws_restJson1DisassociateLinkCommandError = async (output, cont
4155
4155
  $fault: "client",
4156
4156
  $metadata: deserializeMetadata(output),
4157
4157
  });
4158
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4158
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4159
4159
  }
4160
4160
  };
4161
4161
  const deserializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = async (output, context) => {
@@ -4166,7 +4166,7 @@ const deserializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = asy
4166
4166
  $metadata: deserializeMetadata(output),
4167
4167
  TransitGatewayConnectPeerAssociation: undefined,
4168
4168
  };
4169
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4169
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4170
4170
  if (data.TransitGatewayConnectPeerAssociation !== undefined && data.TransitGatewayConnectPeerAssociation !== null) {
4171
4171
  contents.TransitGatewayConnectPeerAssociation = deserializeAws_restJson1TransitGatewayConnectPeerAssociation(data.TransitGatewayConnectPeerAssociation, context);
4172
4172
  }
@@ -4207,7 +4207,7 @@ const deserializeAws_restJson1DisassociateTransitGatewayConnectPeerCommandError
4207
4207
  $fault: "client",
4208
4208
  $metadata: deserializeMetadata(output),
4209
4209
  });
4210
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4210
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4211
4211
  }
4212
4212
  };
4213
4213
  const deserializeAws_restJson1ExecuteCoreNetworkChangeSetCommand = async (output, context) => {
@@ -4255,7 +4255,7 @@ const deserializeAws_restJson1ExecuteCoreNetworkChangeSetCommandError = async (o
4255
4255
  $fault: "client",
4256
4256
  $metadata: deserializeMetadata(output),
4257
4257
  });
4258
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4258
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4259
4259
  }
4260
4260
  };
4261
4261
  const deserializeAws_restJson1GetConnectAttachmentCommand = async (output, context) => {
@@ -4266,7 +4266,7 @@ const deserializeAws_restJson1GetConnectAttachmentCommand = async (output, conte
4266
4266
  $metadata: deserializeMetadata(output),
4267
4267
  ConnectAttachment: undefined,
4268
4268
  };
4269
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4269
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4270
4270
  if (data.ConnectAttachment !== undefined && data.ConnectAttachment !== null) {
4271
4271
  contents.ConnectAttachment = deserializeAws_restJson1ConnectAttachment(data.ConnectAttachment, context);
4272
4272
  }
@@ -4304,7 +4304,7 @@ const deserializeAws_restJson1GetConnectAttachmentCommandError = async (output,
4304
4304
  $fault: "client",
4305
4305
  $metadata: deserializeMetadata(output),
4306
4306
  });
4307
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4307
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4308
4308
  }
4309
4309
  };
4310
4310
  const deserializeAws_restJson1GetConnectionsCommand = async (output, context) => {
@@ -4316,12 +4316,12 @@ const deserializeAws_restJson1GetConnectionsCommand = async (output, context) =>
4316
4316
  Connections: undefined,
4317
4317
  NextToken: undefined,
4318
4318
  };
4319
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4319
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4320
4320
  if (data.Connections !== undefined && data.Connections !== null) {
4321
4321
  contents.Connections = deserializeAws_restJson1ConnectionList(data.Connections, context);
4322
4322
  }
4323
4323
  if (data.NextToken !== undefined && data.NextToken !== null) {
4324
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4324
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4325
4325
  }
4326
4326
  return Promise.resolve(contents);
4327
4327
  };
@@ -4357,7 +4357,7 @@ const deserializeAws_restJson1GetConnectionsCommandError = async (output, contex
4357
4357
  $fault: "client",
4358
4358
  $metadata: deserializeMetadata(output),
4359
4359
  });
4360
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4360
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4361
4361
  }
4362
4362
  };
4363
4363
  const deserializeAws_restJson1GetConnectPeerCommand = async (output, context) => {
@@ -4368,7 +4368,7 @@ const deserializeAws_restJson1GetConnectPeerCommand = async (output, context) =>
4368
4368
  $metadata: deserializeMetadata(output),
4369
4369
  ConnectPeer: undefined,
4370
4370
  };
4371
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4371
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4372
4372
  if (data.ConnectPeer !== undefined && data.ConnectPeer !== null) {
4373
4373
  contents.ConnectPeer = deserializeAws_restJson1ConnectPeer(data.ConnectPeer, context);
4374
4374
  }
@@ -4406,7 +4406,7 @@ const deserializeAws_restJson1GetConnectPeerCommandError = async (output, contex
4406
4406
  $fault: "client",
4407
4407
  $metadata: deserializeMetadata(output),
4408
4408
  });
4409
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4409
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4410
4410
  }
4411
4411
  };
4412
4412
  const deserializeAws_restJson1GetConnectPeerAssociationsCommand = async (output, context) => {
@@ -4418,12 +4418,12 @@ const deserializeAws_restJson1GetConnectPeerAssociationsCommand = async (output,
4418
4418
  ConnectPeerAssociations: undefined,
4419
4419
  NextToken: undefined,
4420
4420
  };
4421
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4421
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4422
4422
  if (data.ConnectPeerAssociations !== undefined && data.ConnectPeerAssociations !== null) {
4423
4423
  contents.ConnectPeerAssociations = deserializeAws_restJson1ConnectPeerAssociationList(data.ConnectPeerAssociations, context);
4424
4424
  }
4425
4425
  if (data.NextToken !== undefined && data.NextToken !== null) {
4426
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4426
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4427
4427
  }
4428
4428
  return Promise.resolve(contents);
4429
4429
  };
@@ -4462,7 +4462,7 @@ const deserializeAws_restJson1GetConnectPeerAssociationsCommandError = async (ou
4462
4462
  $fault: "client",
4463
4463
  $metadata: deserializeMetadata(output),
4464
4464
  });
4465
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4465
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4466
4466
  }
4467
4467
  };
4468
4468
  const deserializeAws_restJson1GetCoreNetworkCommand = async (output, context) => {
@@ -4473,7 +4473,7 @@ const deserializeAws_restJson1GetCoreNetworkCommand = async (output, context) =>
4473
4473
  $metadata: deserializeMetadata(output),
4474
4474
  CoreNetwork: undefined,
4475
4475
  };
4476
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4476
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4477
4477
  if (data.CoreNetwork !== undefined && data.CoreNetwork !== null) {
4478
4478
  contents.CoreNetwork = deserializeAws_restJson1CoreNetwork(data.CoreNetwork, context);
4479
4479
  }
@@ -4511,7 +4511,7 @@ const deserializeAws_restJson1GetCoreNetworkCommandError = async (output, contex
4511
4511
  $fault: "client",
4512
4512
  $metadata: deserializeMetadata(output),
4513
4513
  });
4514
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4514
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4515
4515
  }
4516
4516
  };
4517
4517
  const deserializeAws_restJson1GetCoreNetworkChangeSetCommand = async (output, context) => {
@@ -4523,12 +4523,12 @@ const deserializeAws_restJson1GetCoreNetworkChangeSetCommand = async (output, co
4523
4523
  CoreNetworkChanges: undefined,
4524
4524
  NextToken: undefined,
4525
4525
  };
4526
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4526
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4527
4527
  if (data.CoreNetworkChanges !== undefined && data.CoreNetworkChanges !== null) {
4528
4528
  contents.CoreNetworkChanges = deserializeAws_restJson1CoreNetworkChangeList(data.CoreNetworkChanges, context);
4529
4529
  }
4530
4530
  if (data.NextToken !== undefined && data.NextToken !== null) {
4531
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4531
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4532
4532
  }
4533
4533
  return Promise.resolve(contents);
4534
4534
  };
@@ -4564,7 +4564,7 @@ const deserializeAws_restJson1GetCoreNetworkChangeSetCommandError = async (outpu
4564
4564
  $fault: "client",
4565
4565
  $metadata: deserializeMetadata(output),
4566
4566
  });
4567
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4567
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4568
4568
  }
4569
4569
  };
4570
4570
  const deserializeAws_restJson1GetCoreNetworkPolicyCommand = async (output, context) => {
@@ -4575,7 +4575,7 @@ const deserializeAws_restJson1GetCoreNetworkPolicyCommand = async (output, conte
4575
4575
  $metadata: deserializeMetadata(output),
4576
4576
  CoreNetworkPolicy: undefined,
4577
4577
  };
4578
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4578
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4579
4579
  if (data.CoreNetworkPolicy !== undefined && data.CoreNetworkPolicy !== null) {
4580
4580
  contents.CoreNetworkPolicy = deserializeAws_restJson1CoreNetworkPolicy(data.CoreNetworkPolicy, context);
4581
4581
  }
@@ -4613,7 +4613,7 @@ const deserializeAws_restJson1GetCoreNetworkPolicyCommandError = async (output,
4613
4613
  $fault: "client",
4614
4614
  $metadata: deserializeMetadata(output),
4615
4615
  });
4616
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4616
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4617
4617
  }
4618
4618
  };
4619
4619
  const deserializeAws_restJson1GetCustomerGatewayAssociationsCommand = async (output, context) => {
@@ -4625,12 +4625,12 @@ const deserializeAws_restJson1GetCustomerGatewayAssociationsCommand = async (out
4625
4625
  CustomerGatewayAssociations: undefined,
4626
4626
  NextToken: undefined,
4627
4627
  };
4628
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4628
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4629
4629
  if (data.CustomerGatewayAssociations !== undefined && data.CustomerGatewayAssociations !== null) {
4630
4630
  contents.CustomerGatewayAssociations = deserializeAws_restJson1CustomerGatewayAssociationList(data.CustomerGatewayAssociations, context);
4631
4631
  }
4632
4632
  if (data.NextToken !== undefined && data.NextToken !== null) {
4633
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4633
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4634
4634
  }
4635
4635
  return Promise.resolve(contents);
4636
4636
  };
@@ -4669,7 +4669,7 @@ const deserializeAws_restJson1GetCustomerGatewayAssociationsCommandError = async
4669
4669
  $fault: "client",
4670
4670
  $metadata: deserializeMetadata(output),
4671
4671
  });
4672
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4672
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4673
4673
  }
4674
4674
  };
4675
4675
  const deserializeAws_restJson1GetDevicesCommand = async (output, context) => {
@@ -4681,12 +4681,12 @@ const deserializeAws_restJson1GetDevicesCommand = async (output, context) => {
4681
4681
  Devices: undefined,
4682
4682
  NextToken: undefined,
4683
4683
  };
4684
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4684
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4685
4685
  if (data.Devices !== undefined && data.Devices !== null) {
4686
4686
  contents.Devices = deserializeAws_restJson1DeviceList(data.Devices, context);
4687
4687
  }
4688
4688
  if (data.NextToken !== undefined && data.NextToken !== null) {
4689
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4689
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4690
4690
  }
4691
4691
  return Promise.resolve(contents);
4692
4692
  };
@@ -4722,7 +4722,7 @@ const deserializeAws_restJson1GetDevicesCommandError = async (output, context) =
4722
4722
  $fault: "client",
4723
4723
  $metadata: deserializeMetadata(output),
4724
4724
  });
4725
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4725
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4726
4726
  }
4727
4727
  };
4728
4728
  const deserializeAws_restJson1GetLinkAssociationsCommand = async (output, context) => {
@@ -4734,12 +4734,12 @@ const deserializeAws_restJson1GetLinkAssociationsCommand = async (output, contex
4734
4734
  LinkAssociations: undefined,
4735
4735
  NextToken: undefined,
4736
4736
  };
4737
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4737
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4738
4738
  if (data.LinkAssociations !== undefined && data.LinkAssociations !== null) {
4739
4739
  contents.LinkAssociations = deserializeAws_restJson1LinkAssociationList(data.LinkAssociations, context);
4740
4740
  }
4741
4741
  if (data.NextToken !== undefined && data.NextToken !== null) {
4742
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4742
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4743
4743
  }
4744
4744
  return Promise.resolve(contents);
4745
4745
  };
@@ -4775,7 +4775,7 @@ const deserializeAws_restJson1GetLinkAssociationsCommandError = async (output, c
4775
4775
  $fault: "client",
4776
4776
  $metadata: deserializeMetadata(output),
4777
4777
  });
4778
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4778
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4779
4779
  }
4780
4780
  };
4781
4781
  const deserializeAws_restJson1GetLinksCommand = async (output, context) => {
@@ -4787,12 +4787,12 @@ const deserializeAws_restJson1GetLinksCommand = async (output, context) => {
4787
4787
  Links: undefined,
4788
4788
  NextToken: undefined,
4789
4789
  };
4790
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4790
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4791
4791
  if (data.Links !== undefined && data.Links !== null) {
4792
4792
  contents.Links = deserializeAws_restJson1LinkList(data.Links, context);
4793
4793
  }
4794
4794
  if (data.NextToken !== undefined && data.NextToken !== null) {
4795
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4795
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4796
4796
  }
4797
4797
  return Promise.resolve(contents);
4798
4798
  };
@@ -4828,7 +4828,7 @@ const deserializeAws_restJson1GetLinksCommandError = async (output, context) =>
4828
4828
  $fault: "client",
4829
4829
  $metadata: deserializeMetadata(output),
4830
4830
  });
4831
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4831
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4832
4832
  }
4833
4833
  };
4834
4834
  const deserializeAws_restJson1GetNetworkResourceCountsCommand = async (output, context) => {
@@ -4840,12 +4840,12 @@ const deserializeAws_restJson1GetNetworkResourceCountsCommand = async (output, c
4840
4840
  NetworkResourceCounts: undefined,
4841
4841
  NextToken: undefined,
4842
4842
  };
4843
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4843
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4844
4844
  if (data.NetworkResourceCounts !== undefined && data.NetworkResourceCounts !== null) {
4845
4845
  contents.NetworkResourceCounts = deserializeAws_restJson1NetworkResourceCountList(data.NetworkResourceCounts, context);
4846
4846
  }
4847
4847
  if (data.NextToken !== undefined && data.NextToken !== null) {
4848
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4848
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4849
4849
  }
4850
4850
  return Promise.resolve(contents);
4851
4851
  };
@@ -4878,7 +4878,7 @@ const deserializeAws_restJson1GetNetworkResourceCountsCommandError = async (outp
4878
4878
  $fault: "client",
4879
4879
  $metadata: deserializeMetadata(output),
4880
4880
  });
4881
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4881
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4882
4882
  }
4883
4883
  };
4884
4884
  const deserializeAws_restJson1GetNetworkResourceRelationshipsCommand = async (output, context) => {
@@ -4890,9 +4890,9 @@ const deserializeAws_restJson1GetNetworkResourceRelationshipsCommand = async (ou
4890
4890
  NextToken: undefined,
4891
4891
  Relationships: undefined,
4892
4892
  };
4893
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4893
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4894
4894
  if (data.NextToken !== undefined && data.NextToken !== null) {
4895
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4895
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4896
4896
  }
4897
4897
  if (data.Relationships !== undefined && data.Relationships !== null) {
4898
4898
  contents.Relationships = deserializeAws_restJson1RelationshipList(data.Relationships, context);
@@ -4931,7 +4931,7 @@ const deserializeAws_restJson1GetNetworkResourceRelationshipsCommandError = asyn
4931
4931
  $fault: "client",
4932
4932
  $metadata: deserializeMetadata(output),
4933
4933
  });
4934
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4934
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4935
4935
  }
4936
4936
  };
4937
4937
  const deserializeAws_restJson1GetNetworkResourcesCommand = async (output, context) => {
@@ -4943,12 +4943,12 @@ const deserializeAws_restJson1GetNetworkResourcesCommand = async (output, contex
4943
4943
  NetworkResources: undefined,
4944
4944
  NextToken: undefined,
4945
4945
  };
4946
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4946
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4947
4947
  if (data.NetworkResources !== undefined && data.NetworkResources !== null) {
4948
4948
  contents.NetworkResources = deserializeAws_restJson1NetworkResourceList(data.NetworkResources, context);
4949
4949
  }
4950
4950
  if (data.NextToken !== undefined && data.NextToken !== null) {
4951
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4951
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4952
4952
  }
4953
4953
  return Promise.resolve(contents);
4954
4954
  };
@@ -4984,7 +4984,7 @@ const deserializeAws_restJson1GetNetworkResourcesCommandError = async (output, c
4984
4984
  $fault: "client",
4985
4985
  $metadata: deserializeMetadata(output),
4986
4986
  });
4987
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4987
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4988
4988
  }
4989
4989
  };
4990
4990
  const deserializeAws_restJson1GetNetworkRoutesCommand = async (output, context) => {
@@ -4999,7 +4999,7 @@ const deserializeAws_restJson1GetNetworkRoutesCommand = async (output, context)
4999
4999
  RouteTableTimestamp: undefined,
5000
5000
  RouteTableType: undefined,
5001
5001
  };
5002
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5002
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5003
5003
  if (data.CoreNetworkSegmentEdge !== undefined && data.CoreNetworkSegmentEdge !== null) {
5004
5004
  contents.CoreNetworkSegmentEdge = deserializeAws_restJson1CoreNetworkSegmentEdgeIdentifier(data.CoreNetworkSegmentEdge, context);
5005
5005
  }
@@ -5007,13 +5007,13 @@ const deserializeAws_restJson1GetNetworkRoutesCommand = async (output, context)
5007
5007
  contents.NetworkRoutes = deserializeAws_restJson1NetworkRouteList(data.NetworkRoutes, context);
5008
5008
  }
5009
5009
  if (data.RouteTableArn !== undefined && data.RouteTableArn !== null) {
5010
- contents.RouteTableArn = smithy_client_1.expectString(data.RouteTableArn);
5010
+ contents.RouteTableArn = (0, smithy_client_1.expectString)(data.RouteTableArn);
5011
5011
  }
5012
5012
  if (data.RouteTableTimestamp !== undefined && data.RouteTableTimestamp !== null) {
5013
- contents.RouteTableTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.RouteTableTimestamp)));
5013
+ contents.RouteTableTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.RouteTableTimestamp)));
5014
5014
  }
5015
5015
  if (data.RouteTableType !== undefined && data.RouteTableType !== null) {
5016
- contents.RouteTableType = smithy_client_1.expectString(data.RouteTableType);
5016
+ contents.RouteTableType = (0, smithy_client_1.expectString)(data.RouteTableType);
5017
5017
  }
5018
5018
  return Promise.resolve(contents);
5019
5019
  };
@@ -5049,7 +5049,7 @@ const deserializeAws_restJson1GetNetworkRoutesCommandError = async (output, cont
5049
5049
  $fault: "client",
5050
5050
  $metadata: deserializeMetadata(output),
5051
5051
  });
5052
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5052
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5053
5053
  }
5054
5054
  };
5055
5055
  const deserializeAws_restJson1GetNetworkTelemetryCommand = async (output, context) => {
@@ -5061,12 +5061,12 @@ const deserializeAws_restJson1GetNetworkTelemetryCommand = async (output, contex
5061
5061
  NetworkTelemetry: undefined,
5062
5062
  NextToken: undefined,
5063
5063
  };
5064
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5064
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5065
5065
  if (data.NetworkTelemetry !== undefined && data.NetworkTelemetry !== null) {
5066
5066
  contents.NetworkTelemetry = deserializeAws_restJson1NetworkTelemetryList(data.NetworkTelemetry, context);
5067
5067
  }
5068
5068
  if (data.NextToken !== undefined && data.NextToken !== null) {
5069
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5069
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5070
5070
  }
5071
5071
  return Promise.resolve(contents);
5072
5072
  };
@@ -5102,7 +5102,7 @@ const deserializeAws_restJson1GetNetworkTelemetryCommandError = async (output, c
5102
5102
  $fault: "client",
5103
5103
  $metadata: deserializeMetadata(output),
5104
5104
  });
5105
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5105
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5106
5106
  }
5107
5107
  };
5108
5108
  const deserializeAws_restJson1GetResourcePolicyCommand = async (output, context) => {
@@ -5113,7 +5113,7 @@ const deserializeAws_restJson1GetResourcePolicyCommand = async (output, context)
5113
5113
  $metadata: deserializeMetadata(output),
5114
5114
  PolicyDocument: undefined,
5115
5115
  };
5116
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5116
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5117
5117
  if (data.PolicyDocument !== undefined && data.PolicyDocument !== null) {
5118
5118
  contents.PolicyDocument = new smithy_client_1.LazyJsonString(data.PolicyDocument);
5119
5119
  }
@@ -5148,7 +5148,7 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
5148
5148
  $fault: "client",
5149
5149
  $metadata: deserializeMetadata(output),
5150
5150
  });
5151
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5151
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5152
5152
  }
5153
5153
  };
5154
5154
  const deserializeAws_restJson1GetRouteAnalysisCommand = async (output, context) => {
@@ -5159,7 +5159,7 @@ const deserializeAws_restJson1GetRouteAnalysisCommand = async (output, context)
5159
5159
  $metadata: deserializeMetadata(output),
5160
5160
  RouteAnalysis: undefined,
5161
5161
  };
5162
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5162
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5163
5163
  if (data.RouteAnalysis !== undefined && data.RouteAnalysis !== null) {
5164
5164
  contents.RouteAnalysis = deserializeAws_restJson1RouteAnalysis(data.RouteAnalysis, context);
5165
5165
  }
@@ -5197,7 +5197,7 @@ const deserializeAws_restJson1GetRouteAnalysisCommandError = async (output, cont
5197
5197
  $fault: "client",
5198
5198
  $metadata: deserializeMetadata(output),
5199
5199
  });
5200
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5200
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5201
5201
  }
5202
5202
  };
5203
5203
  const deserializeAws_restJson1GetSitesCommand = async (output, context) => {
@@ -5209,9 +5209,9 @@ const deserializeAws_restJson1GetSitesCommand = async (output, context) => {
5209
5209
  NextToken: undefined,
5210
5210
  Sites: undefined,
5211
5211
  };
5212
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5212
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5213
5213
  if (data.NextToken !== undefined && data.NextToken !== null) {
5214
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5214
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5215
5215
  }
5216
5216
  if (data.Sites !== undefined && data.Sites !== null) {
5217
5217
  contents.Sites = deserializeAws_restJson1SiteList(data.Sites, context);
@@ -5250,7 +5250,7 @@ const deserializeAws_restJson1GetSitesCommandError = async (output, context) =>
5250
5250
  $fault: "client",
5251
5251
  $metadata: deserializeMetadata(output),
5252
5252
  });
5253
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5253
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5254
5254
  }
5255
5255
  };
5256
5256
  const deserializeAws_restJson1GetSiteToSiteVpnAttachmentCommand = async (output, context) => {
@@ -5261,7 +5261,7 @@ const deserializeAws_restJson1GetSiteToSiteVpnAttachmentCommand = async (output,
5261
5261
  $metadata: deserializeMetadata(output),
5262
5262
  SiteToSiteVpnAttachment: undefined,
5263
5263
  };
5264
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5264
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5265
5265
  if (data.SiteToSiteVpnAttachment !== undefined && data.SiteToSiteVpnAttachment !== null) {
5266
5266
  contents.SiteToSiteVpnAttachment = deserializeAws_restJson1SiteToSiteVpnAttachment(data.SiteToSiteVpnAttachment, context);
5267
5267
  }
@@ -5299,7 +5299,7 @@ const deserializeAws_restJson1GetSiteToSiteVpnAttachmentCommandError = async (ou
5299
5299
  $fault: "client",
5300
5300
  $metadata: deserializeMetadata(output),
5301
5301
  });
5302
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5302
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5303
5303
  }
5304
5304
  };
5305
5305
  const deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand = async (output, context) => {
@@ -5311,9 +5311,9 @@ const deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand =
5311
5311
  NextToken: undefined,
5312
5312
  TransitGatewayConnectPeerAssociations: undefined,
5313
5313
  };
5314
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5314
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5315
5315
  if (data.NextToken !== undefined && data.NextToken !== null) {
5316
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5316
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5317
5317
  }
5318
5318
  if (data.TransitGatewayConnectPeerAssociations !== undefined && data.TransitGatewayConnectPeerAssociations !== null) {
5319
5319
  contents.TransitGatewayConnectPeerAssociations = deserializeAws_restJson1TransitGatewayConnectPeerAssociationList(data.TransitGatewayConnectPeerAssociations, context);
@@ -5355,7 +5355,7 @@ const deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommandErr
5355
5355
  $fault: "client",
5356
5356
  $metadata: deserializeMetadata(output),
5357
5357
  });
5358
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5358
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5359
5359
  }
5360
5360
  };
5361
5361
  const deserializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (output, context) => {
@@ -5367,9 +5367,9 @@ const deserializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (out
5367
5367
  NextToken: undefined,
5368
5368
  TransitGatewayRegistrations: undefined,
5369
5369
  };
5370
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5370
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5371
5371
  if (data.NextToken !== undefined && data.NextToken !== null) {
5372
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5372
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5373
5373
  }
5374
5374
  if (data.TransitGatewayRegistrations !== undefined && data.TransitGatewayRegistrations !== null) {
5375
5375
  contents.TransitGatewayRegistrations = deserializeAws_restJson1TransitGatewayRegistrationList(data.TransitGatewayRegistrations, context);
@@ -5408,7 +5408,7 @@ const deserializeAws_restJson1GetTransitGatewayRegistrationsCommandError = async
5408
5408
  $fault: "client",
5409
5409
  $metadata: deserializeMetadata(output),
5410
5410
  });
5411
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5411
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5412
5412
  }
5413
5413
  };
5414
5414
  const deserializeAws_restJson1GetVpcAttachmentCommand = async (output, context) => {
@@ -5419,7 +5419,7 @@ const deserializeAws_restJson1GetVpcAttachmentCommand = async (output, context)
5419
5419
  $metadata: deserializeMetadata(output),
5420
5420
  VpcAttachment: undefined,
5421
5421
  };
5422
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5422
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5423
5423
  if (data.VpcAttachment !== undefined && data.VpcAttachment !== null) {
5424
5424
  contents.VpcAttachment = deserializeAws_restJson1VpcAttachment(data.VpcAttachment, context);
5425
5425
  }
@@ -5457,7 +5457,7 @@ const deserializeAws_restJson1GetVpcAttachmentCommandError = async (output, cont
5457
5457
  $fault: "client",
5458
5458
  $metadata: deserializeMetadata(output),
5459
5459
  });
5460
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5460
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5461
5461
  }
5462
5462
  };
5463
5463
  const deserializeAws_restJson1ListAttachmentsCommand = async (output, context) => {
@@ -5469,12 +5469,12 @@ const deserializeAws_restJson1ListAttachmentsCommand = async (output, context) =
5469
5469
  Attachments: undefined,
5470
5470
  NextToken: undefined,
5471
5471
  };
5472
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5472
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5473
5473
  if (data.Attachments !== undefined && data.Attachments !== null) {
5474
5474
  contents.Attachments = deserializeAws_restJson1AttachmentList(data.Attachments, context);
5475
5475
  }
5476
5476
  if (data.NextToken !== undefined && data.NextToken !== null) {
5477
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5477
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5478
5478
  }
5479
5479
  return Promise.resolve(contents);
5480
5480
  };
@@ -5507,7 +5507,7 @@ const deserializeAws_restJson1ListAttachmentsCommandError = async (output, conte
5507
5507
  $fault: "client",
5508
5508
  $metadata: deserializeMetadata(output),
5509
5509
  });
5510
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5510
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5511
5511
  }
5512
5512
  };
5513
5513
  const deserializeAws_restJson1ListConnectPeersCommand = async (output, context) => {
@@ -5519,12 +5519,12 @@ const deserializeAws_restJson1ListConnectPeersCommand = async (output, context)
5519
5519
  ConnectPeers: undefined,
5520
5520
  NextToken: undefined,
5521
5521
  };
5522
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5522
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5523
5523
  if (data.ConnectPeers !== undefined && data.ConnectPeers !== null) {
5524
5524
  contents.ConnectPeers = deserializeAws_restJson1ConnectPeerSummaryList(data.ConnectPeers, context);
5525
5525
  }
5526
5526
  if (data.NextToken !== undefined && data.NextToken !== null) {
5527
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5527
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5528
5528
  }
5529
5529
  return Promise.resolve(contents);
5530
5530
  };
@@ -5557,7 +5557,7 @@ const deserializeAws_restJson1ListConnectPeersCommandError = async (output, cont
5557
5557
  $fault: "client",
5558
5558
  $metadata: deserializeMetadata(output),
5559
5559
  });
5560
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5560
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5561
5561
  }
5562
5562
  };
5563
5563
  const deserializeAws_restJson1ListCoreNetworkPolicyVersionsCommand = async (output, context) => {
@@ -5569,12 +5569,12 @@ const deserializeAws_restJson1ListCoreNetworkPolicyVersionsCommand = async (outp
5569
5569
  CoreNetworkPolicyVersions: undefined,
5570
5570
  NextToken: undefined,
5571
5571
  };
5572
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5572
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5573
5573
  if (data.CoreNetworkPolicyVersions !== undefined && data.CoreNetworkPolicyVersions !== null) {
5574
5574
  contents.CoreNetworkPolicyVersions = deserializeAws_restJson1CoreNetworkPolicyVersionList(data.CoreNetworkPolicyVersions, context);
5575
5575
  }
5576
5576
  if (data.NextToken !== undefined && data.NextToken !== null) {
5577
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5577
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5578
5578
  }
5579
5579
  return Promise.resolve(contents);
5580
5580
  };
@@ -5610,7 +5610,7 @@ const deserializeAws_restJson1ListCoreNetworkPolicyVersionsCommandError = async
5610
5610
  $fault: "client",
5611
5611
  $metadata: deserializeMetadata(output),
5612
5612
  });
5613
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5613
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5614
5614
  }
5615
5615
  };
5616
5616
  const deserializeAws_restJson1ListCoreNetworksCommand = async (output, context) => {
@@ -5622,12 +5622,12 @@ const deserializeAws_restJson1ListCoreNetworksCommand = async (output, context)
5622
5622
  CoreNetworks: undefined,
5623
5623
  NextToken: undefined,
5624
5624
  };
5625
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5625
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5626
5626
  if (data.CoreNetworks !== undefined && data.CoreNetworks !== null) {
5627
5627
  contents.CoreNetworks = deserializeAws_restJson1CoreNetworkSummaryList(data.CoreNetworks, context);
5628
5628
  }
5629
5629
  if (data.NextToken !== undefined && data.NextToken !== null) {
5630
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5630
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5631
5631
  }
5632
5632
  return Promise.resolve(contents);
5633
5633
  };
@@ -5660,7 +5660,7 @@ const deserializeAws_restJson1ListCoreNetworksCommandError = async (output, cont
5660
5660
  $fault: "client",
5661
5661
  $metadata: deserializeMetadata(output),
5662
5662
  });
5663
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5663
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5664
5664
  }
5665
5665
  };
5666
5666
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -5671,7 +5671,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
5671
5671
  $metadata: deserializeMetadata(output),
5672
5672
  TagList: undefined,
5673
5673
  };
5674
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5674
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5675
5675
  if (data.TagList !== undefined && data.TagList !== null) {
5676
5676
  contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
5677
5677
  }
@@ -5709,7 +5709,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
5709
5709
  $fault: "client",
5710
5710
  $metadata: deserializeMetadata(output),
5711
5711
  });
5712
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5712
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5713
5713
  }
5714
5714
  };
5715
5715
  const deserializeAws_restJson1PutCoreNetworkPolicyCommand = async (output, context) => {
@@ -5720,7 +5720,7 @@ const deserializeAws_restJson1PutCoreNetworkPolicyCommand = async (output, conte
5720
5720
  $metadata: deserializeMetadata(output),
5721
5721
  CoreNetworkPolicy: undefined,
5722
5722
  };
5723
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5723
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5724
5724
  if (data.CoreNetworkPolicy !== undefined && data.CoreNetworkPolicy !== null) {
5725
5725
  contents.CoreNetworkPolicy = deserializeAws_restJson1CoreNetworkPolicy(data.CoreNetworkPolicy, context);
5726
5726
  }
@@ -5764,7 +5764,7 @@ const deserializeAws_restJson1PutCoreNetworkPolicyCommandError = async (output,
5764
5764
  $fault: "client",
5765
5765
  $metadata: deserializeMetadata(output),
5766
5766
  });
5767
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5767
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5768
5768
  }
5769
5769
  };
5770
5770
  const deserializeAws_restJson1PutResourcePolicyCommand = async (output, context) => {
@@ -5812,7 +5812,7 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
5812
5812
  $fault: "client",
5813
5813
  $metadata: deserializeMetadata(output),
5814
5814
  });
5815
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5815
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5816
5816
  }
5817
5817
  };
5818
5818
  const deserializeAws_restJson1RegisterTransitGatewayCommand = async (output, context) => {
@@ -5823,7 +5823,7 @@ const deserializeAws_restJson1RegisterTransitGatewayCommand = async (output, con
5823
5823
  $metadata: deserializeMetadata(output),
5824
5824
  TransitGatewayRegistration: undefined,
5825
5825
  };
5826
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5826
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5827
5827
  if (data.TransitGatewayRegistration !== undefined && data.TransitGatewayRegistration !== null) {
5828
5828
  contents.TransitGatewayRegistration = deserializeAws_restJson1TransitGatewayRegistration(data.TransitGatewayRegistration, context);
5829
5829
  }
@@ -5864,7 +5864,7 @@ const deserializeAws_restJson1RegisterTransitGatewayCommandError = async (output
5864
5864
  $fault: "client",
5865
5865
  $metadata: deserializeMetadata(output),
5866
5866
  });
5867
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5867
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5868
5868
  }
5869
5869
  };
5870
5870
  const deserializeAws_restJson1RejectAttachmentCommand = async (output, context) => {
@@ -5875,7 +5875,7 @@ const deserializeAws_restJson1RejectAttachmentCommand = async (output, context)
5875
5875
  $metadata: deserializeMetadata(output),
5876
5876
  Attachment: undefined,
5877
5877
  };
5878
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5878
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5879
5879
  if (data.Attachment !== undefined && data.Attachment !== null) {
5880
5880
  contents.Attachment = deserializeAws_restJson1Attachment(data.Attachment, context);
5881
5881
  }
@@ -5916,7 +5916,7 @@ const deserializeAws_restJson1RejectAttachmentCommandError = async (output, cont
5916
5916
  $fault: "client",
5917
5917
  $metadata: deserializeMetadata(output),
5918
5918
  });
5919
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5919
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5920
5920
  }
5921
5921
  };
5922
5922
  const deserializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = async (output, context) => {
@@ -5927,7 +5927,7 @@ const deserializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = async (ou
5927
5927
  $metadata: deserializeMetadata(output),
5928
5928
  CoreNetworkPolicy: undefined,
5929
5929
  };
5930
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5930
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5931
5931
  if (data.CoreNetworkPolicy !== undefined && data.CoreNetworkPolicy !== null) {
5932
5932
  contents.CoreNetworkPolicy = deserializeAws_restJson1CoreNetworkPolicy(data.CoreNetworkPolicy, context);
5933
5933
  }
@@ -5968,7 +5968,7 @@ const deserializeAws_restJson1RestoreCoreNetworkPolicyVersionCommandError = asyn
5968
5968
  $fault: "client",
5969
5969
  $metadata: deserializeMetadata(output),
5970
5970
  });
5971
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5971
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5972
5972
  }
5973
5973
  };
5974
5974
  const deserializeAws_restJson1StartRouteAnalysisCommand = async (output, context) => {
@@ -5979,7 +5979,7 @@ const deserializeAws_restJson1StartRouteAnalysisCommand = async (output, context
5979
5979
  $metadata: deserializeMetadata(output),
5980
5980
  RouteAnalysis: undefined,
5981
5981
  };
5982
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5982
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5983
5983
  if (data.RouteAnalysis !== undefined && data.RouteAnalysis !== null) {
5984
5984
  contents.RouteAnalysis = deserializeAws_restJson1RouteAnalysis(data.RouteAnalysis, context);
5985
5985
  }
@@ -6020,7 +6020,7 @@ const deserializeAws_restJson1StartRouteAnalysisCommandError = async (output, co
6020
6020
  $fault: "client",
6021
6021
  $metadata: deserializeMetadata(output),
6022
6022
  });
6023
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6023
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6024
6024
  }
6025
6025
  };
6026
6026
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -6071,7 +6071,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
6071
6071
  $fault: "client",
6072
6072
  $metadata: deserializeMetadata(output),
6073
6073
  });
6074
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6074
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6075
6075
  }
6076
6076
  };
6077
6077
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -6119,7 +6119,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
6119
6119
  $fault: "client",
6120
6120
  $metadata: deserializeMetadata(output),
6121
6121
  });
6122
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6122
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6123
6123
  }
6124
6124
  };
6125
6125
  const deserializeAws_restJson1UpdateConnectionCommand = async (output, context) => {
@@ -6130,7 +6130,7 @@ const deserializeAws_restJson1UpdateConnectionCommand = async (output, context)
6130
6130
  $metadata: deserializeMetadata(output),
6131
6131
  Connection: undefined,
6132
6132
  };
6133
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6133
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6134
6134
  if (data.Connection !== undefined && data.Connection !== null) {
6135
6135
  contents.Connection = deserializeAws_restJson1Connection(data.Connection, context);
6136
6136
  }
@@ -6171,7 +6171,7 @@ const deserializeAws_restJson1UpdateConnectionCommandError = async (output, cont
6171
6171
  $fault: "client",
6172
6172
  $metadata: deserializeMetadata(output),
6173
6173
  });
6174
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6174
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6175
6175
  }
6176
6176
  };
6177
6177
  const deserializeAws_restJson1UpdateCoreNetworkCommand = async (output, context) => {
@@ -6182,7 +6182,7 @@ const deserializeAws_restJson1UpdateCoreNetworkCommand = async (output, context)
6182
6182
  $metadata: deserializeMetadata(output),
6183
6183
  CoreNetwork: undefined,
6184
6184
  };
6185
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6185
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6186
6186
  if (data.CoreNetwork !== undefined && data.CoreNetwork !== null) {
6187
6187
  contents.CoreNetwork = deserializeAws_restJson1CoreNetwork(data.CoreNetwork, context);
6188
6188
  }
@@ -6223,7 +6223,7 @@ const deserializeAws_restJson1UpdateCoreNetworkCommandError = async (output, con
6223
6223
  $fault: "client",
6224
6224
  $metadata: deserializeMetadata(output),
6225
6225
  });
6226
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6226
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6227
6227
  }
6228
6228
  };
6229
6229
  const deserializeAws_restJson1UpdateDeviceCommand = async (output, context) => {
@@ -6234,7 +6234,7 @@ const deserializeAws_restJson1UpdateDeviceCommand = async (output, context) => {
6234
6234
  $metadata: deserializeMetadata(output),
6235
6235
  Device: undefined,
6236
6236
  };
6237
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6237
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6238
6238
  if (data.Device !== undefined && data.Device !== null) {
6239
6239
  contents.Device = deserializeAws_restJson1Device(data.Device, context);
6240
6240
  }
@@ -6275,7 +6275,7 @@ const deserializeAws_restJson1UpdateDeviceCommandError = async (output, context)
6275
6275
  $fault: "client",
6276
6276
  $metadata: deserializeMetadata(output),
6277
6277
  });
6278
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6278
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6279
6279
  }
6280
6280
  };
6281
6281
  const deserializeAws_restJson1UpdateGlobalNetworkCommand = async (output, context) => {
@@ -6286,7 +6286,7 @@ const deserializeAws_restJson1UpdateGlobalNetworkCommand = async (output, contex
6286
6286
  $metadata: deserializeMetadata(output),
6287
6287
  GlobalNetwork: undefined,
6288
6288
  };
6289
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6289
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6290
6290
  if (data.GlobalNetwork !== undefined && data.GlobalNetwork !== null) {
6291
6291
  contents.GlobalNetwork = deserializeAws_restJson1GlobalNetwork(data.GlobalNetwork, context);
6292
6292
  }
@@ -6327,7 +6327,7 @@ const deserializeAws_restJson1UpdateGlobalNetworkCommandError = async (output, c
6327
6327
  $fault: "client",
6328
6328
  $metadata: deserializeMetadata(output),
6329
6329
  });
6330
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6330
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6331
6331
  }
6332
6332
  };
6333
6333
  const deserializeAws_restJson1UpdateLinkCommand = async (output, context) => {
@@ -6338,7 +6338,7 @@ const deserializeAws_restJson1UpdateLinkCommand = async (output, context) => {
6338
6338
  $metadata: deserializeMetadata(output),
6339
6339
  Link: undefined,
6340
6340
  };
6341
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6341
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6342
6342
  if (data.Link !== undefined && data.Link !== null) {
6343
6343
  contents.Link = deserializeAws_restJson1Link(data.Link, context);
6344
6344
  }
@@ -6382,7 +6382,7 @@ const deserializeAws_restJson1UpdateLinkCommandError = async (output, context) =
6382
6382
  $fault: "client",
6383
6383
  $metadata: deserializeMetadata(output),
6384
6384
  });
6385
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6385
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6386
6386
  }
6387
6387
  };
6388
6388
  const deserializeAws_restJson1UpdateNetworkResourceMetadataCommand = async (output, context) => {
@@ -6394,12 +6394,12 @@ const deserializeAws_restJson1UpdateNetworkResourceMetadataCommand = async (outp
6394
6394
  Metadata: undefined,
6395
6395
  ResourceArn: undefined,
6396
6396
  };
6397
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6397
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6398
6398
  if (data.Metadata !== undefined && data.Metadata !== null) {
6399
6399
  contents.Metadata = deserializeAws_restJson1NetworkResourceMetadataMap(data.Metadata, context);
6400
6400
  }
6401
6401
  if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
6402
- contents.ResourceArn = smithy_client_1.expectString(data.ResourceArn);
6402
+ contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
6403
6403
  }
6404
6404
  return Promise.resolve(contents);
6405
6405
  };
@@ -6438,7 +6438,7 @@ const deserializeAws_restJson1UpdateNetworkResourceMetadataCommandError = async
6438
6438
  $fault: "client",
6439
6439
  $metadata: deserializeMetadata(output),
6440
6440
  });
6441
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6441
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6442
6442
  }
6443
6443
  };
6444
6444
  const deserializeAws_restJson1UpdateSiteCommand = async (output, context) => {
@@ -6449,7 +6449,7 @@ const deserializeAws_restJson1UpdateSiteCommand = async (output, context) => {
6449
6449
  $metadata: deserializeMetadata(output),
6450
6450
  Site: undefined,
6451
6451
  };
6452
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6452
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6453
6453
  if (data.Site !== undefined && data.Site !== null) {
6454
6454
  contents.Site = deserializeAws_restJson1Site(data.Site, context);
6455
6455
  }
@@ -6490,7 +6490,7 @@ const deserializeAws_restJson1UpdateSiteCommandError = async (output, context) =
6490
6490
  $fault: "client",
6491
6491
  $metadata: deserializeMetadata(output),
6492
6492
  });
6493
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6493
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6494
6494
  }
6495
6495
  };
6496
6496
  const deserializeAws_restJson1UpdateVpcAttachmentCommand = async (output, context) => {
@@ -6501,7 +6501,7 @@ const deserializeAws_restJson1UpdateVpcAttachmentCommand = async (output, contex
6501
6501
  $metadata: deserializeMetadata(output),
6502
6502
  VpcAttachment: undefined,
6503
6503
  };
6504
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6504
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6505
6505
  if (data.VpcAttachment !== undefined && data.VpcAttachment !== null) {
6506
6506
  contents.VpcAttachment = deserializeAws_restJson1VpcAttachment(data.VpcAttachment, context);
6507
6507
  }
@@ -6542,38 +6542,38 @@ const deserializeAws_restJson1UpdateVpcAttachmentCommandError = async (output, c
6542
6542
  $fault: "client",
6543
6543
  $metadata: deserializeMetadata(output),
6544
6544
  });
6545
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6545
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6546
6546
  }
6547
6547
  };
6548
6548
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
6549
6549
  const contents = {};
6550
6550
  const data = parsedOutput.body;
6551
6551
  if (data.Message !== undefined && data.Message !== null) {
6552
- contents.Message = smithy_client_1.expectString(data.Message);
6552
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6553
6553
  }
6554
6554
  const exception = new models_0_1.AccessDeniedException({
6555
6555
  $metadata: deserializeMetadata(parsedOutput),
6556
6556
  ...contents,
6557
6557
  });
6558
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6558
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6559
6559
  };
6560
6560
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
6561
6561
  const contents = {};
6562
6562
  const data = parsedOutput.body;
6563
6563
  if (data.Message !== undefined && data.Message !== null) {
6564
- contents.Message = smithy_client_1.expectString(data.Message);
6564
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6565
6565
  }
6566
6566
  if (data.ResourceId !== undefined && data.ResourceId !== null) {
6567
- contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
6567
+ contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
6568
6568
  }
6569
6569
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
6570
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
6570
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
6571
6571
  }
6572
6572
  const exception = new models_0_1.ConflictException({
6573
6573
  $metadata: deserializeMetadata(parsedOutput),
6574
6574
  ...contents,
6575
6575
  });
6576
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6576
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6577
6577
  };
6578
6578
  const deserializeAws_restJson1CoreNetworkPolicyExceptionResponse = async (parsedOutput, context) => {
6579
6579
  const contents = {};
@@ -6582,28 +6582,28 @@ const deserializeAws_restJson1CoreNetworkPolicyExceptionResponse = async (parsed
6582
6582
  contents.Errors = deserializeAws_restJson1CoreNetworkPolicyErrorList(data.Errors, context);
6583
6583
  }
6584
6584
  if (data.Message !== undefined && data.Message !== null) {
6585
- contents.Message = smithy_client_1.expectString(data.Message);
6585
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6586
6586
  }
6587
6587
  const exception = new models_0_1.CoreNetworkPolicyException({
6588
6588
  $metadata: deserializeMetadata(parsedOutput),
6589
6589
  ...contents,
6590
6590
  });
6591
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6591
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6592
6592
  };
6593
6593
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
6594
6594
  const contents = {};
6595
6595
  if (parsedOutput.headers["retry-after"] !== undefined) {
6596
- contents.RetryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
6596
+ contents.RetryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
6597
6597
  }
6598
6598
  const data = parsedOutput.body;
6599
6599
  if (data.Message !== undefined && data.Message !== null) {
6600
- contents.Message = smithy_client_1.expectString(data.Message);
6600
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6601
6601
  }
6602
6602
  const exception = new models_0_1.InternalServerException({
6603
6603
  $metadata: deserializeMetadata(parsedOutput),
6604
6604
  ...contents,
6605
6605
  });
6606
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6606
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6607
6607
  };
6608
6608
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
6609
6609
  const contents = {};
@@ -6612,58 +6612,58 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
6612
6612
  contents.Context = deserializeAws_restJson1ExceptionContextMap(data.Context, context);
6613
6613
  }
6614
6614
  if (data.Message !== undefined && data.Message !== null) {
6615
- contents.Message = smithy_client_1.expectString(data.Message);
6615
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6616
6616
  }
6617
6617
  if (data.ResourceId !== undefined && data.ResourceId !== null) {
6618
- contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
6618
+ contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
6619
6619
  }
6620
6620
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
6621
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
6621
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
6622
6622
  }
6623
6623
  const exception = new models_0_1.ResourceNotFoundException({
6624
6624
  $metadata: deserializeMetadata(parsedOutput),
6625
6625
  ...contents,
6626
6626
  });
6627
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6627
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6628
6628
  };
6629
6629
  const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
6630
6630
  const contents = {};
6631
6631
  const data = parsedOutput.body;
6632
6632
  if (data.LimitCode !== undefined && data.LimitCode !== null) {
6633
- contents.LimitCode = smithy_client_1.expectString(data.LimitCode);
6633
+ contents.LimitCode = (0, smithy_client_1.expectString)(data.LimitCode);
6634
6634
  }
6635
6635
  if (data.Message !== undefined && data.Message !== null) {
6636
- contents.Message = smithy_client_1.expectString(data.Message);
6636
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6637
6637
  }
6638
6638
  if (data.ResourceId !== undefined && data.ResourceId !== null) {
6639
- contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
6639
+ contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
6640
6640
  }
6641
6641
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
6642
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
6642
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
6643
6643
  }
6644
6644
  if (data.ServiceCode !== undefined && data.ServiceCode !== null) {
6645
- contents.ServiceCode = smithy_client_1.expectString(data.ServiceCode);
6645
+ contents.ServiceCode = (0, smithy_client_1.expectString)(data.ServiceCode);
6646
6646
  }
6647
6647
  const exception = new models_0_1.ServiceQuotaExceededException({
6648
6648
  $metadata: deserializeMetadata(parsedOutput),
6649
6649
  ...contents,
6650
6650
  });
6651
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6651
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6652
6652
  };
6653
6653
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
6654
6654
  const contents = {};
6655
6655
  if (parsedOutput.headers["retry-after"] !== undefined) {
6656
- contents.RetryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
6656
+ contents.RetryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
6657
6657
  }
6658
6658
  const data = parsedOutput.body;
6659
6659
  if (data.Message !== undefined && data.Message !== null) {
6660
- contents.Message = smithy_client_1.expectString(data.Message);
6660
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6661
6661
  }
6662
6662
  const exception = new models_0_1.ThrottlingException({
6663
6663
  $metadata: deserializeMetadata(parsedOutput),
6664
6664
  ...contents,
6665
6665
  });
6666
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6666
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6667
6667
  };
6668
6668
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
6669
6669
  const contents = {};
@@ -6672,16 +6672,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
6672
6672
  contents.Fields = deserializeAws_restJson1ValidationExceptionFieldList(data.Fields, context);
6673
6673
  }
6674
6674
  if (data.Message !== undefined && data.Message !== null) {
6675
- contents.Message = smithy_client_1.expectString(data.Message);
6675
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6676
6676
  }
6677
6677
  if (data.Reason !== undefined && data.Reason !== null) {
6678
- contents.Reason = smithy_client_1.expectString(data.Reason);
6678
+ contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
6679
6679
  }
6680
6680
  const exception = new models_0_1.ValidationException({
6681
6681
  $metadata: deserializeMetadata(parsedOutput),
6682
6682
  ...contents,
6683
6683
  });
6684
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6684
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6685
6685
  };
6686
6686
  const serializeAws_restJson1AWSLocation = (input, context) => {
6687
6687
  return {
@@ -6831,27 +6831,27 @@ const serializeAws_restJson1VpcOptions = (input, context) => {
6831
6831
  };
6832
6832
  const deserializeAws_restJson1Attachment = (output, context) => {
6833
6833
  return {
6834
- AttachmentId: smithy_client_1.expectString(output.AttachmentId),
6835
- AttachmentPolicyRuleNumber: smithy_client_1.expectInt32(output.AttachmentPolicyRuleNumber),
6836
- AttachmentType: smithy_client_1.expectString(output.AttachmentType),
6837
- CoreNetworkArn: smithy_client_1.expectString(output.CoreNetworkArn),
6838
- CoreNetworkId: smithy_client_1.expectString(output.CoreNetworkId),
6834
+ AttachmentId: (0, smithy_client_1.expectString)(output.AttachmentId),
6835
+ AttachmentPolicyRuleNumber: (0, smithy_client_1.expectInt32)(output.AttachmentPolicyRuleNumber),
6836
+ AttachmentType: (0, smithy_client_1.expectString)(output.AttachmentType),
6837
+ CoreNetworkArn: (0, smithy_client_1.expectString)(output.CoreNetworkArn),
6838
+ CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
6839
6839
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
6840
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
6840
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
6841
6841
  : undefined,
6842
- EdgeLocation: smithy_client_1.expectString(output.EdgeLocation),
6843
- OwnerAccountId: smithy_client_1.expectString(output.OwnerAccountId),
6842
+ EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
6843
+ OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
6844
6844
  ProposedSegmentChange: output.ProposedSegmentChange !== undefined && output.ProposedSegmentChange !== null
6845
6845
  ? deserializeAws_restJson1ProposedSegmentChange(output.ProposedSegmentChange, context)
6846
6846
  : undefined,
6847
- ResourceArn: smithy_client_1.expectString(output.ResourceArn),
6848
- SegmentName: smithy_client_1.expectString(output.SegmentName),
6849
- State: smithy_client_1.expectString(output.State),
6847
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
6848
+ SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
6849
+ State: (0, smithy_client_1.expectString)(output.State),
6850
6850
  Tags: output.Tags !== undefined && output.Tags !== null
6851
6851
  ? deserializeAws_restJson1TagList(output.Tags, context)
6852
6852
  : undefined,
6853
6853
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
6854
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedAt)))
6854
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
6855
6855
  : undefined,
6856
6856
  };
6857
6857
  };
@@ -6868,14 +6868,14 @@ const deserializeAws_restJson1AttachmentList = (output, context) => {
6868
6868
  };
6869
6869
  const deserializeAws_restJson1AWSLocation = (output, context) => {
6870
6870
  return {
6871
- SubnetArn: smithy_client_1.expectString(output.SubnetArn),
6872
- Zone: smithy_client_1.expectString(output.Zone),
6871
+ SubnetArn: (0, smithy_client_1.expectString)(output.SubnetArn),
6872
+ Zone: (0, smithy_client_1.expectString)(output.Zone),
6873
6873
  };
6874
6874
  };
6875
6875
  const deserializeAws_restJson1Bandwidth = (output, context) => {
6876
6876
  return {
6877
- DownloadSpeed: smithy_client_1.expectInt32(output.DownloadSpeed),
6878
- UploadSpeed: smithy_client_1.expectInt32(output.UploadSpeed),
6877
+ DownloadSpeed: (0, smithy_client_1.expectInt32)(output.DownloadSpeed),
6878
+ UploadSpeed: (0, smithy_client_1.expectInt32)(output.UploadSpeed),
6879
6879
  };
6880
6880
  };
6881
6881
  const deserializeAws_restJson1ConnectAttachment = (output, context) => {
@@ -6886,28 +6886,28 @@ const deserializeAws_restJson1ConnectAttachment = (output, context) => {
6886
6886
  Options: output.Options !== undefined && output.Options !== null
6887
6887
  ? deserializeAws_restJson1ConnectAttachmentOptions(output.Options, context)
6888
6888
  : undefined,
6889
- TransportAttachmentId: smithy_client_1.expectString(output.TransportAttachmentId),
6889
+ TransportAttachmentId: (0, smithy_client_1.expectString)(output.TransportAttachmentId),
6890
6890
  };
6891
6891
  };
6892
6892
  const deserializeAws_restJson1ConnectAttachmentOptions = (output, context) => {
6893
6893
  return {
6894
- Protocol: smithy_client_1.expectString(output.Protocol),
6894
+ Protocol: (0, smithy_client_1.expectString)(output.Protocol),
6895
6895
  };
6896
6896
  };
6897
6897
  const deserializeAws_restJson1Connection = (output, context) => {
6898
6898
  return {
6899
- ConnectedDeviceId: smithy_client_1.expectString(output.ConnectedDeviceId),
6900
- ConnectedLinkId: smithy_client_1.expectString(output.ConnectedLinkId),
6901
- ConnectionArn: smithy_client_1.expectString(output.ConnectionArn),
6902
- ConnectionId: smithy_client_1.expectString(output.ConnectionId),
6899
+ ConnectedDeviceId: (0, smithy_client_1.expectString)(output.ConnectedDeviceId),
6900
+ ConnectedLinkId: (0, smithy_client_1.expectString)(output.ConnectedLinkId),
6901
+ ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
6902
+ ConnectionId: (0, smithy_client_1.expectString)(output.ConnectionId),
6903
6903
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
6904
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
6904
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
6905
6905
  : undefined,
6906
- Description: smithy_client_1.expectString(output.Description),
6907
- DeviceId: smithy_client_1.expectString(output.DeviceId),
6908
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
6909
- LinkId: smithy_client_1.expectString(output.LinkId),
6910
- State: smithy_client_1.expectString(output.State),
6906
+ Description: (0, smithy_client_1.expectString)(output.Description),
6907
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
6908
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
6909
+ LinkId: (0, smithy_client_1.expectString)(output.LinkId),
6910
+ State: (0, smithy_client_1.expectString)(output.State),
6911
6911
  Tags: output.Tags !== undefined && output.Tags !== null
6912
6912
  ? deserializeAws_restJson1TagList(output.Tags, context)
6913
6913
  : undefined,
@@ -6915,11 +6915,11 @@ const deserializeAws_restJson1Connection = (output, context) => {
6915
6915
  };
6916
6916
  const deserializeAws_restJson1ConnectionHealth = (output, context) => {
6917
6917
  return {
6918
- Status: smithy_client_1.expectString(output.Status),
6918
+ Status: (0, smithy_client_1.expectString)(output.Status),
6919
6919
  Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
6920
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Timestamp)))
6920
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
6921
6921
  : undefined,
6922
- Type: smithy_client_1.expectString(output.Type),
6922
+ Type: (0, smithy_client_1.expectString)(output.Type),
6923
6923
  };
6924
6924
  };
6925
6925
  const deserializeAws_restJson1ConnectionList = (output, context) => {
@@ -6938,14 +6938,14 @@ const deserializeAws_restJson1ConnectPeer = (output, context) => {
6938
6938
  Configuration: output.Configuration !== undefined && output.Configuration !== null
6939
6939
  ? deserializeAws_restJson1ConnectPeerConfiguration(output.Configuration, context)
6940
6940
  : undefined,
6941
- ConnectAttachmentId: smithy_client_1.expectString(output.ConnectAttachmentId),
6942
- ConnectPeerId: smithy_client_1.expectString(output.ConnectPeerId),
6943
- CoreNetworkId: smithy_client_1.expectString(output.CoreNetworkId),
6941
+ ConnectAttachmentId: (0, smithy_client_1.expectString)(output.ConnectAttachmentId),
6942
+ ConnectPeerId: (0, smithy_client_1.expectString)(output.ConnectPeerId),
6943
+ CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
6944
6944
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
6945
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
6945
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
6946
6946
  : undefined,
6947
- EdgeLocation: smithy_client_1.expectString(output.EdgeLocation),
6948
- State: smithy_client_1.expectString(output.State),
6947
+ EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
6948
+ State: (0, smithy_client_1.expectString)(output.State),
6949
6949
  Tags: output.Tags !== undefined && output.Tags !== null
6950
6950
  ? deserializeAws_restJson1TagList(output.Tags, context)
6951
6951
  : undefined,
@@ -6953,11 +6953,11 @@ const deserializeAws_restJson1ConnectPeer = (output, context) => {
6953
6953
  };
6954
6954
  const deserializeAws_restJson1ConnectPeerAssociation = (output, context) => {
6955
6955
  return {
6956
- ConnectPeerId: smithy_client_1.expectString(output.ConnectPeerId),
6957
- DeviceId: smithy_client_1.expectString(output.DeviceId),
6958
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
6959
- LinkId: smithy_client_1.expectString(output.LinkId),
6960
- State: smithy_client_1.expectString(output.State),
6956
+ ConnectPeerId: (0, smithy_client_1.expectString)(output.ConnectPeerId),
6957
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
6958
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
6959
+ LinkId: (0, smithy_client_1.expectString)(output.LinkId),
6960
+ State: (0, smithy_client_1.expectString)(output.State),
6961
6961
  };
6962
6962
  };
6963
6963
  const deserializeAws_restJson1ConnectPeerAssociationList = (output, context) => {
@@ -6973,10 +6973,10 @@ const deserializeAws_restJson1ConnectPeerAssociationList = (output, context) =>
6973
6973
  };
6974
6974
  const deserializeAws_restJson1ConnectPeerBgpConfiguration = (output, context) => {
6975
6975
  return {
6976
- CoreNetworkAddress: smithy_client_1.expectString(output.CoreNetworkAddress),
6977
- CoreNetworkAsn: smithy_client_1.expectLong(output.CoreNetworkAsn),
6978
- PeerAddress: smithy_client_1.expectString(output.PeerAddress),
6979
- PeerAsn: smithy_client_1.expectLong(output.PeerAsn),
6976
+ CoreNetworkAddress: (0, smithy_client_1.expectString)(output.CoreNetworkAddress),
6977
+ CoreNetworkAsn: (0, smithy_client_1.expectLong)(output.CoreNetworkAsn),
6978
+ PeerAddress: (0, smithy_client_1.expectString)(output.PeerAddress),
6979
+ PeerAsn: (0, smithy_client_1.expectLong)(output.PeerAsn),
6980
6980
  };
6981
6981
  };
6982
6982
  const deserializeAws_restJson1ConnectPeerBgpConfigurationList = (output, context) => {
@@ -6995,24 +6995,24 @@ const deserializeAws_restJson1ConnectPeerConfiguration = (output, context) => {
6995
6995
  BgpConfigurations: output.BgpConfigurations !== undefined && output.BgpConfigurations !== null
6996
6996
  ? deserializeAws_restJson1ConnectPeerBgpConfigurationList(output.BgpConfigurations, context)
6997
6997
  : undefined,
6998
- CoreNetworkAddress: smithy_client_1.expectString(output.CoreNetworkAddress),
6998
+ CoreNetworkAddress: (0, smithy_client_1.expectString)(output.CoreNetworkAddress),
6999
6999
  InsideCidrBlocks: output.InsideCidrBlocks !== undefined && output.InsideCidrBlocks !== null
7000
7000
  ? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
7001
7001
  : undefined,
7002
- PeerAddress: smithy_client_1.expectString(output.PeerAddress),
7003
- Protocol: smithy_client_1.expectString(output.Protocol),
7002
+ PeerAddress: (0, smithy_client_1.expectString)(output.PeerAddress),
7003
+ Protocol: (0, smithy_client_1.expectString)(output.Protocol),
7004
7004
  };
7005
7005
  };
7006
7006
  const deserializeAws_restJson1ConnectPeerSummary = (output, context) => {
7007
7007
  return {
7008
- ConnectAttachmentId: smithy_client_1.expectString(output.ConnectAttachmentId),
7009
- ConnectPeerId: smithy_client_1.expectString(output.ConnectPeerId),
7010
- ConnectPeerState: smithy_client_1.expectString(output.ConnectPeerState),
7011
- CoreNetworkId: smithy_client_1.expectString(output.CoreNetworkId),
7008
+ ConnectAttachmentId: (0, smithy_client_1.expectString)(output.ConnectAttachmentId),
7009
+ ConnectPeerId: (0, smithy_client_1.expectString)(output.ConnectPeerId),
7010
+ ConnectPeerState: (0, smithy_client_1.expectString)(output.ConnectPeerState),
7011
+ CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7012
7012
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7013
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
7013
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7014
7014
  : undefined,
7015
- EdgeLocation: smithy_client_1.expectString(output.EdgeLocation),
7015
+ EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
7016
7016
  Tags: output.Tags !== undefined && output.Tags !== null
7017
7017
  ? deserializeAws_restJson1TagList(output.Tags, context)
7018
7018
  : undefined,
@@ -7036,26 +7036,26 @@ const deserializeAws_restJson1ConstrainedStringList = (output, context) => {
7036
7036
  if (entry === null) {
7037
7037
  return null;
7038
7038
  }
7039
- return smithy_client_1.expectString(entry);
7039
+ return (0, smithy_client_1.expectString)(entry);
7040
7040
  });
7041
7041
  return retVal;
7042
7042
  };
7043
7043
  const deserializeAws_restJson1CoreNetwork = (output, context) => {
7044
7044
  return {
7045
- CoreNetworkArn: smithy_client_1.expectString(output.CoreNetworkArn),
7046
- CoreNetworkId: smithy_client_1.expectString(output.CoreNetworkId),
7045
+ CoreNetworkArn: (0, smithy_client_1.expectString)(output.CoreNetworkArn),
7046
+ CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7047
7047
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7048
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
7048
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7049
7049
  : undefined,
7050
- Description: smithy_client_1.expectString(output.Description),
7050
+ Description: (0, smithy_client_1.expectString)(output.Description),
7051
7051
  Edges: output.Edges !== undefined && output.Edges !== null
7052
7052
  ? deserializeAws_restJson1CoreNetworkEdgeList(output.Edges, context)
7053
7053
  : undefined,
7054
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
7054
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7055
7055
  Segments: output.Segments !== undefined && output.Segments !== null
7056
7056
  ? deserializeAws_restJson1CoreNetworkSegmentList(output.Segments, context)
7057
7057
  : undefined,
7058
- State: smithy_client_1.expectString(output.State),
7058
+ State: (0, smithy_client_1.expectString)(output.State),
7059
7059
  Tags: output.Tags !== undefined && output.Tags !== null
7060
7060
  ? deserializeAws_restJson1TagList(output.Tags, context)
7061
7061
  : undefined,
@@ -7063,15 +7063,15 @@ const deserializeAws_restJson1CoreNetwork = (output, context) => {
7063
7063
  };
7064
7064
  const deserializeAws_restJson1CoreNetworkChange = (output, context) => {
7065
7065
  return {
7066
- Action: smithy_client_1.expectString(output.Action),
7067
- Identifier: smithy_client_1.expectString(output.Identifier),
7066
+ Action: (0, smithy_client_1.expectString)(output.Action),
7067
+ Identifier: (0, smithy_client_1.expectString)(output.Identifier),
7068
7068
  NewValues: output.NewValues !== undefined && output.NewValues !== null
7069
7069
  ? deserializeAws_restJson1CoreNetworkChangeValues(output.NewValues, context)
7070
7070
  : undefined,
7071
7071
  PreviousValues: output.PreviousValues !== undefined && output.PreviousValues !== null
7072
7072
  ? deserializeAws_restJson1CoreNetworkChangeValues(output.PreviousValues, context)
7073
7073
  : undefined,
7074
- Type: smithy_client_1.expectString(output.Type),
7074
+ Type: (0, smithy_client_1.expectString)(output.Type),
7075
7075
  };
7076
7076
  };
7077
7077
  const deserializeAws_restJson1CoreNetworkChangeList = (output, context) => {
@@ -7087,16 +7087,16 @@ const deserializeAws_restJson1CoreNetworkChangeList = (output, context) => {
7087
7087
  };
7088
7088
  const deserializeAws_restJson1CoreNetworkChangeValues = (output, context) => {
7089
7089
  return {
7090
- Asn: smithy_client_1.expectLong(output.Asn),
7091
- Cidr: smithy_client_1.expectString(output.Cidr),
7092
- DestinationIdentifier: smithy_client_1.expectString(output.DestinationIdentifier),
7090
+ Asn: (0, smithy_client_1.expectLong)(output.Asn),
7091
+ Cidr: (0, smithy_client_1.expectString)(output.Cidr),
7092
+ DestinationIdentifier: (0, smithy_client_1.expectString)(output.DestinationIdentifier),
7093
7093
  EdgeLocations: output.EdgeLocations !== undefined && output.EdgeLocations !== null
7094
7094
  ? deserializeAws_restJson1ExternalRegionCodeList(output.EdgeLocations, context)
7095
7095
  : undefined,
7096
7096
  InsideCidrBlocks: output.InsideCidrBlocks !== undefined && output.InsideCidrBlocks !== null
7097
7097
  ? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
7098
7098
  : undefined,
7099
- SegmentName: smithy_client_1.expectString(output.SegmentName),
7099
+ SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
7100
7100
  SharedSegments: output.SharedSegments !== undefined && output.SharedSegments !== null
7101
7101
  ? deserializeAws_restJson1ConstrainedStringList(output.SharedSegments, context)
7102
7102
  : undefined,
@@ -7104,8 +7104,8 @@ const deserializeAws_restJson1CoreNetworkChangeValues = (output, context) => {
7104
7104
  };
7105
7105
  const deserializeAws_restJson1CoreNetworkEdge = (output, context) => {
7106
7106
  return {
7107
- Asn: smithy_client_1.expectLong(output.Asn),
7108
- EdgeLocation: smithy_client_1.expectString(output.EdgeLocation),
7107
+ Asn: (0, smithy_client_1.expectLong)(output.Asn),
7108
+ EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
7109
7109
  InsideCidrBlocks: output.InsideCidrBlocks !== undefined && output.InsideCidrBlocks !== null
7110
7110
  ? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
7111
7111
  : undefined,
@@ -7124,27 +7124,27 @@ const deserializeAws_restJson1CoreNetworkEdgeList = (output, context) => {
7124
7124
  };
7125
7125
  const deserializeAws_restJson1CoreNetworkPolicy = (output, context) => {
7126
7126
  return {
7127
- Alias: smithy_client_1.expectString(output.Alias),
7128
- ChangeSetState: smithy_client_1.expectString(output.ChangeSetState),
7129
- CoreNetworkId: smithy_client_1.expectString(output.CoreNetworkId),
7127
+ Alias: (0, smithy_client_1.expectString)(output.Alias),
7128
+ ChangeSetState: (0, smithy_client_1.expectString)(output.ChangeSetState),
7129
+ CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7130
7130
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7131
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
7131
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7132
7132
  : undefined,
7133
- Description: smithy_client_1.expectString(output.Description),
7133
+ Description: (0, smithy_client_1.expectString)(output.Description),
7134
7134
  PolicyDocument: output.PolicyDocument !== undefined && output.PolicyDocument !== null
7135
7135
  ? new smithy_client_1.LazyJsonString(output.PolicyDocument)
7136
7136
  : undefined,
7137
7137
  PolicyErrors: output.PolicyErrors !== undefined && output.PolicyErrors !== null
7138
7138
  ? deserializeAws_restJson1CoreNetworkPolicyErrorList(output.PolicyErrors, context)
7139
7139
  : undefined,
7140
- PolicyVersionId: smithy_client_1.expectInt32(output.PolicyVersionId),
7140
+ PolicyVersionId: (0, smithy_client_1.expectInt32)(output.PolicyVersionId),
7141
7141
  };
7142
7142
  };
7143
7143
  const deserializeAws_restJson1CoreNetworkPolicyError = (output, context) => {
7144
7144
  return {
7145
- ErrorCode: smithy_client_1.expectString(output.ErrorCode),
7146
- Message: smithy_client_1.expectString(output.Message),
7147
- Path: smithy_client_1.expectString(output.Path),
7145
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
7146
+ Message: (0, smithy_client_1.expectString)(output.Message),
7147
+ Path: (0, smithy_client_1.expectString)(output.Path),
7148
7148
  };
7149
7149
  };
7150
7150
  const deserializeAws_restJson1CoreNetworkPolicyErrorList = (output, context) => {
@@ -7160,14 +7160,14 @@ const deserializeAws_restJson1CoreNetworkPolicyErrorList = (output, context) =>
7160
7160
  };
7161
7161
  const deserializeAws_restJson1CoreNetworkPolicyVersion = (output, context) => {
7162
7162
  return {
7163
- Alias: smithy_client_1.expectString(output.Alias),
7164
- ChangeSetState: smithy_client_1.expectString(output.ChangeSetState),
7165
- CoreNetworkId: smithy_client_1.expectString(output.CoreNetworkId),
7163
+ Alias: (0, smithy_client_1.expectString)(output.Alias),
7164
+ ChangeSetState: (0, smithy_client_1.expectString)(output.ChangeSetState),
7165
+ CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7166
7166
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7167
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
7167
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7168
7168
  : undefined,
7169
- Description: smithy_client_1.expectString(output.Description),
7170
- PolicyVersionId: smithy_client_1.expectInt32(output.PolicyVersionId),
7169
+ Description: (0, smithy_client_1.expectString)(output.Description),
7170
+ PolicyVersionId: (0, smithy_client_1.expectInt32)(output.PolicyVersionId),
7171
7171
  };
7172
7172
  };
7173
7173
  const deserializeAws_restJson1CoreNetworkPolicyVersionList = (output, context) => {
@@ -7186,7 +7186,7 @@ const deserializeAws_restJson1CoreNetworkSegment = (output, context) => {
7186
7186
  EdgeLocations: output.EdgeLocations !== undefined && output.EdgeLocations !== null
7187
7187
  ? deserializeAws_restJson1ExternalRegionCodeList(output.EdgeLocations, context)
7188
7188
  : undefined,
7189
- Name: smithy_client_1.expectString(output.Name),
7189
+ Name: (0, smithy_client_1.expectString)(output.Name),
7190
7190
  SharedSegments: output.SharedSegments !== undefined && output.SharedSegments !== null
7191
7191
  ? deserializeAws_restJson1ConstrainedStringList(output.SharedSegments, context)
7192
7192
  : undefined,
@@ -7194,9 +7194,9 @@ const deserializeAws_restJson1CoreNetworkSegment = (output, context) => {
7194
7194
  };
7195
7195
  const deserializeAws_restJson1CoreNetworkSegmentEdgeIdentifier = (output, context) => {
7196
7196
  return {
7197
- CoreNetworkId: smithy_client_1.expectString(output.CoreNetworkId),
7198
- EdgeLocation: smithy_client_1.expectString(output.EdgeLocation),
7199
- SegmentName: smithy_client_1.expectString(output.SegmentName),
7197
+ CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7198
+ EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
7199
+ SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
7200
7200
  };
7201
7201
  };
7202
7202
  const deserializeAws_restJson1CoreNetworkSegmentList = (output, context) => {
@@ -7212,12 +7212,12 @@ const deserializeAws_restJson1CoreNetworkSegmentList = (output, context) => {
7212
7212
  };
7213
7213
  const deserializeAws_restJson1CoreNetworkSummary = (output, context) => {
7214
7214
  return {
7215
- CoreNetworkArn: smithy_client_1.expectString(output.CoreNetworkArn),
7216
- CoreNetworkId: smithy_client_1.expectString(output.CoreNetworkId),
7217
- Description: smithy_client_1.expectString(output.Description),
7218
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
7219
- OwnerAccountId: smithy_client_1.expectString(output.OwnerAccountId),
7220
- State: smithy_client_1.expectString(output.State),
7215
+ CoreNetworkArn: (0, smithy_client_1.expectString)(output.CoreNetworkArn),
7216
+ CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7217
+ Description: (0, smithy_client_1.expectString)(output.Description),
7218
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7219
+ OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
7220
+ State: (0, smithy_client_1.expectString)(output.State),
7221
7221
  Tags: output.Tags !== undefined && output.Tags !== null
7222
7222
  ? deserializeAws_restJson1TagList(output.Tags, context)
7223
7223
  : undefined,
@@ -7236,11 +7236,11 @@ const deserializeAws_restJson1CoreNetworkSummaryList = (output, context) => {
7236
7236
  };
7237
7237
  const deserializeAws_restJson1CustomerGatewayAssociation = (output, context) => {
7238
7238
  return {
7239
- CustomerGatewayArn: smithy_client_1.expectString(output.CustomerGatewayArn),
7240
- DeviceId: smithy_client_1.expectString(output.DeviceId),
7241
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
7242
- LinkId: smithy_client_1.expectString(output.LinkId),
7243
- State: smithy_client_1.expectString(output.State),
7239
+ CustomerGatewayArn: (0, smithy_client_1.expectString)(output.CustomerGatewayArn),
7240
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
7241
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7242
+ LinkId: (0, smithy_client_1.expectString)(output.LinkId),
7243
+ State: (0, smithy_client_1.expectString)(output.State),
7244
7244
  };
7245
7245
  };
7246
7246
  const deserializeAws_restJson1CustomerGatewayAssociationList = (output, context) => {
@@ -7260,24 +7260,24 @@ const deserializeAws_restJson1Device = (output, context) => {
7260
7260
  ? deserializeAws_restJson1AWSLocation(output.AWSLocation, context)
7261
7261
  : undefined,
7262
7262
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7263
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
7263
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7264
7264
  : undefined,
7265
- Description: smithy_client_1.expectString(output.Description),
7266
- DeviceArn: smithy_client_1.expectString(output.DeviceArn),
7267
- DeviceId: smithy_client_1.expectString(output.DeviceId),
7268
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
7265
+ Description: (0, smithy_client_1.expectString)(output.Description),
7266
+ DeviceArn: (0, smithy_client_1.expectString)(output.DeviceArn),
7267
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
7268
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7269
7269
  Location: output.Location !== undefined && output.Location !== null
7270
7270
  ? deserializeAws_restJson1Location(output.Location, context)
7271
7271
  : undefined,
7272
- Model: smithy_client_1.expectString(output.Model),
7273
- SerialNumber: smithy_client_1.expectString(output.SerialNumber),
7274
- SiteId: smithy_client_1.expectString(output.SiteId),
7275
- State: smithy_client_1.expectString(output.State),
7272
+ Model: (0, smithy_client_1.expectString)(output.Model),
7273
+ SerialNumber: (0, smithy_client_1.expectString)(output.SerialNumber),
7274
+ SiteId: (0, smithy_client_1.expectString)(output.SiteId),
7275
+ State: (0, smithy_client_1.expectString)(output.State),
7276
7276
  Tags: output.Tags !== undefined && output.Tags !== null
7277
7277
  ? deserializeAws_restJson1TagList(output.Tags, context)
7278
7278
  : undefined,
7279
- Type: smithy_client_1.expectString(output.Type),
7280
- Vendor: smithy_client_1.expectString(output.Vendor),
7279
+ Type: (0, smithy_client_1.expectString)(output.Type),
7280
+ Vendor: (0, smithy_client_1.expectString)(output.Vendor),
7281
7281
  };
7282
7282
  };
7283
7283
  const deserializeAws_restJson1DeviceList = (output, context) => {
@@ -7298,7 +7298,7 @@ const deserializeAws_restJson1ExceptionContextMap = (output, context) => {
7298
7298
  }
7299
7299
  return {
7300
7300
  ...acc,
7301
- [key]: smithy_client_1.expectString(value),
7301
+ [key]: (0, smithy_client_1.expectString)(value),
7302
7302
  };
7303
7303
  }, {});
7304
7304
  };
@@ -7309,19 +7309,19 @@ const deserializeAws_restJson1ExternalRegionCodeList = (output, context) => {
7309
7309
  if (entry === null) {
7310
7310
  return null;
7311
7311
  }
7312
- return smithy_client_1.expectString(entry);
7312
+ return (0, smithy_client_1.expectString)(entry);
7313
7313
  });
7314
7314
  return retVal;
7315
7315
  };
7316
7316
  const deserializeAws_restJson1GlobalNetwork = (output, context) => {
7317
7317
  return {
7318
7318
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7319
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
7319
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7320
7320
  : undefined,
7321
- Description: smithy_client_1.expectString(output.Description),
7322
- GlobalNetworkArn: smithy_client_1.expectString(output.GlobalNetworkArn),
7323
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
7324
- State: smithy_client_1.expectString(output.State),
7321
+ Description: (0, smithy_client_1.expectString)(output.Description),
7322
+ GlobalNetworkArn: (0, smithy_client_1.expectString)(output.GlobalNetworkArn),
7323
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7324
+ State: (0, smithy_client_1.expectString)(output.State),
7325
7325
  Tags: output.Tags !== undefined && output.Tags !== null
7326
7326
  ? deserializeAws_restJson1TagList(output.Tags, context)
7327
7327
  : undefined,
@@ -7344,27 +7344,27 @@ const deserializeAws_restJson1Link = (output, context) => {
7344
7344
  ? deserializeAws_restJson1Bandwidth(output.Bandwidth, context)
7345
7345
  : undefined,
7346
7346
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7347
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
7347
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7348
7348
  : undefined,
7349
- Description: smithy_client_1.expectString(output.Description),
7350
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
7351
- LinkArn: smithy_client_1.expectString(output.LinkArn),
7352
- LinkId: smithy_client_1.expectString(output.LinkId),
7353
- Provider: smithy_client_1.expectString(output.Provider),
7354
- SiteId: smithy_client_1.expectString(output.SiteId),
7355
- State: smithy_client_1.expectString(output.State),
7349
+ Description: (0, smithy_client_1.expectString)(output.Description),
7350
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7351
+ LinkArn: (0, smithy_client_1.expectString)(output.LinkArn),
7352
+ LinkId: (0, smithy_client_1.expectString)(output.LinkId),
7353
+ Provider: (0, smithy_client_1.expectString)(output.Provider),
7354
+ SiteId: (0, smithy_client_1.expectString)(output.SiteId),
7355
+ State: (0, smithy_client_1.expectString)(output.State),
7356
7356
  Tags: output.Tags !== undefined && output.Tags !== null
7357
7357
  ? deserializeAws_restJson1TagList(output.Tags, context)
7358
7358
  : undefined,
7359
- Type: smithy_client_1.expectString(output.Type),
7359
+ Type: (0, smithy_client_1.expectString)(output.Type),
7360
7360
  };
7361
7361
  };
7362
7362
  const deserializeAws_restJson1LinkAssociation = (output, context) => {
7363
7363
  return {
7364
- DeviceId: smithy_client_1.expectString(output.DeviceId),
7365
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
7366
- LinkAssociationState: smithy_client_1.expectString(output.LinkAssociationState),
7367
- LinkId: smithy_client_1.expectString(output.LinkId),
7364
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
7365
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7366
+ LinkAssociationState: (0, smithy_client_1.expectString)(output.LinkAssociationState),
7367
+ LinkId: (0, smithy_client_1.expectString)(output.LinkId),
7368
7368
  };
7369
7369
  };
7370
7370
  const deserializeAws_restJson1LinkAssociationList = (output, context) => {
@@ -7391,27 +7391,27 @@ const deserializeAws_restJson1LinkList = (output, context) => {
7391
7391
  };
7392
7392
  const deserializeAws_restJson1Location = (output, context) => {
7393
7393
  return {
7394
- Address: smithy_client_1.expectString(output.Address),
7395
- Latitude: smithy_client_1.expectString(output.Latitude),
7396
- Longitude: smithy_client_1.expectString(output.Longitude),
7394
+ Address: (0, smithy_client_1.expectString)(output.Address),
7395
+ Latitude: (0, smithy_client_1.expectString)(output.Latitude),
7396
+ Longitude: (0, smithy_client_1.expectString)(output.Longitude),
7397
7397
  };
7398
7398
  };
7399
7399
  const deserializeAws_restJson1NetworkResource = (output, context) => {
7400
7400
  return {
7401
- AccountId: smithy_client_1.expectString(output.AccountId),
7402
- AwsRegion: smithy_client_1.expectString(output.AwsRegion),
7403
- CoreNetworkId: smithy_client_1.expectString(output.CoreNetworkId),
7404
- Definition: smithy_client_1.expectString(output.Definition),
7401
+ AccountId: (0, smithy_client_1.expectString)(output.AccountId),
7402
+ AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
7403
+ CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7404
+ Definition: (0, smithy_client_1.expectString)(output.Definition),
7405
7405
  DefinitionTimestamp: output.DefinitionTimestamp !== undefined && output.DefinitionTimestamp !== null
7406
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DefinitionTimestamp)))
7406
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DefinitionTimestamp)))
7407
7407
  : undefined,
7408
7408
  Metadata: output.Metadata !== undefined && output.Metadata !== null
7409
7409
  ? deserializeAws_restJson1NetworkResourceMetadataMap(output.Metadata, context)
7410
7410
  : undefined,
7411
- RegisteredGatewayArn: smithy_client_1.expectString(output.RegisteredGatewayArn),
7412
- ResourceArn: smithy_client_1.expectString(output.ResourceArn),
7413
- ResourceId: smithy_client_1.expectString(output.ResourceId),
7414
- ResourceType: smithy_client_1.expectString(output.ResourceType),
7411
+ RegisteredGatewayArn: (0, smithy_client_1.expectString)(output.RegisteredGatewayArn),
7412
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
7413
+ ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
7414
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
7415
7415
  Tags: output.Tags !== undefined && output.Tags !== null
7416
7416
  ? deserializeAws_restJson1TagList(output.Tags, context)
7417
7417
  : undefined,
@@ -7419,8 +7419,8 @@ const deserializeAws_restJson1NetworkResource = (output, context) => {
7419
7419
  };
7420
7420
  const deserializeAws_restJson1NetworkResourceCount = (output, context) => {
7421
7421
  return {
7422
- Count: smithy_client_1.expectInt32(output.Count),
7423
- ResourceType: smithy_client_1.expectString(output.ResourceType),
7422
+ Count: (0, smithy_client_1.expectInt32)(output.Count),
7423
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
7424
7424
  };
7425
7425
  };
7426
7426
  const deserializeAws_restJson1NetworkResourceCountList = (output, context) => {
@@ -7452,39 +7452,39 @@ const deserializeAws_restJson1NetworkResourceMetadataMap = (output, context) =>
7452
7452
  }
7453
7453
  return {
7454
7454
  ...acc,
7455
- [key]: smithy_client_1.expectString(value),
7455
+ [key]: (0, smithy_client_1.expectString)(value),
7456
7456
  };
7457
7457
  }, {});
7458
7458
  };
7459
7459
  const deserializeAws_restJson1NetworkResourceSummary = (output, context) => {
7460
7460
  return {
7461
- Definition: smithy_client_1.expectString(output.Definition),
7462
- IsMiddlebox: smithy_client_1.expectBoolean(output.IsMiddlebox),
7463
- NameTag: smithy_client_1.expectString(output.NameTag),
7464
- RegisteredGatewayArn: smithy_client_1.expectString(output.RegisteredGatewayArn),
7465
- ResourceArn: smithy_client_1.expectString(output.ResourceArn),
7466
- ResourceType: smithy_client_1.expectString(output.ResourceType),
7461
+ Definition: (0, smithy_client_1.expectString)(output.Definition),
7462
+ IsMiddlebox: (0, smithy_client_1.expectBoolean)(output.IsMiddlebox),
7463
+ NameTag: (0, smithy_client_1.expectString)(output.NameTag),
7464
+ RegisteredGatewayArn: (0, smithy_client_1.expectString)(output.RegisteredGatewayArn),
7465
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
7466
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
7467
7467
  };
7468
7468
  };
7469
7469
  const deserializeAws_restJson1NetworkRoute = (output, context) => {
7470
7470
  return {
7471
- DestinationCidrBlock: smithy_client_1.expectString(output.DestinationCidrBlock),
7471
+ DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
7472
7472
  Destinations: output.Destinations !== undefined && output.Destinations !== null
7473
7473
  ? deserializeAws_restJson1NetworkRouteDestinationList(output.Destinations, context)
7474
7474
  : undefined,
7475
- PrefixListId: smithy_client_1.expectString(output.PrefixListId),
7476
- State: smithy_client_1.expectString(output.State),
7477
- Type: smithy_client_1.expectString(output.Type),
7475
+ PrefixListId: (0, smithy_client_1.expectString)(output.PrefixListId),
7476
+ State: (0, smithy_client_1.expectString)(output.State),
7477
+ Type: (0, smithy_client_1.expectString)(output.Type),
7478
7478
  };
7479
7479
  };
7480
7480
  const deserializeAws_restJson1NetworkRouteDestination = (output, context) => {
7481
7481
  return {
7482
- CoreNetworkAttachmentId: smithy_client_1.expectString(output.CoreNetworkAttachmentId),
7483
- EdgeLocation: smithy_client_1.expectString(output.EdgeLocation),
7484
- ResourceId: smithy_client_1.expectString(output.ResourceId),
7485
- ResourceType: smithy_client_1.expectString(output.ResourceType),
7486
- SegmentName: smithy_client_1.expectString(output.SegmentName),
7487
- TransitGatewayAttachmentId: smithy_client_1.expectString(output.TransitGatewayAttachmentId),
7482
+ CoreNetworkAttachmentId: (0, smithy_client_1.expectString)(output.CoreNetworkAttachmentId),
7483
+ EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
7484
+ ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
7485
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
7486
+ SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
7487
+ TransitGatewayAttachmentId: (0, smithy_client_1.expectString)(output.TransitGatewayAttachmentId),
7488
7488
  };
7489
7489
  };
7490
7490
  const deserializeAws_restJson1NetworkRouteDestinationList = (output, context) => {
@@ -7511,17 +7511,17 @@ const deserializeAws_restJson1NetworkRouteList = (output, context) => {
7511
7511
  };
7512
7512
  const deserializeAws_restJson1NetworkTelemetry = (output, context) => {
7513
7513
  return {
7514
- AccountId: smithy_client_1.expectString(output.AccountId),
7515
- Address: smithy_client_1.expectString(output.Address),
7516
- AwsRegion: smithy_client_1.expectString(output.AwsRegion),
7517
- CoreNetworkId: smithy_client_1.expectString(output.CoreNetworkId),
7514
+ AccountId: (0, smithy_client_1.expectString)(output.AccountId),
7515
+ Address: (0, smithy_client_1.expectString)(output.Address),
7516
+ AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
7517
+ CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7518
7518
  Health: output.Health !== undefined && output.Health !== null
7519
7519
  ? deserializeAws_restJson1ConnectionHealth(output.Health, context)
7520
7520
  : undefined,
7521
- RegisteredGatewayArn: smithy_client_1.expectString(output.RegisteredGatewayArn),
7522
- ResourceArn: smithy_client_1.expectString(output.ResourceArn),
7523
- ResourceId: smithy_client_1.expectString(output.ResourceId),
7524
- ResourceType: smithy_client_1.expectString(output.ResourceType),
7521
+ RegisteredGatewayArn: (0, smithy_client_1.expectString)(output.RegisteredGatewayArn),
7522
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
7523
+ ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
7524
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
7525
7525
  };
7526
7526
  };
7527
7527
  const deserializeAws_restJson1NetworkTelemetryList = (output, context) => {
@@ -7537,11 +7537,11 @@ const deserializeAws_restJson1NetworkTelemetryList = (output, context) => {
7537
7537
  };
7538
7538
  const deserializeAws_restJson1PathComponent = (output, context) => {
7539
7539
  return {
7540
- DestinationCidrBlock: smithy_client_1.expectString(output.DestinationCidrBlock),
7540
+ DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
7541
7541
  Resource: output.Resource !== undefined && output.Resource !== null
7542
7542
  ? deserializeAws_restJson1NetworkResourceSummary(output.Resource, context)
7543
7543
  : undefined,
7544
- Sequence: smithy_client_1.expectInt32(output.Sequence),
7544
+ Sequence: (0, smithy_client_1.expectInt32)(output.Sequence),
7545
7545
  };
7546
7546
  };
7547
7547
  const deserializeAws_restJson1PathComponentList = (output, context) => {
@@ -7557,8 +7557,8 @@ const deserializeAws_restJson1PathComponentList = (output, context) => {
7557
7557
  };
7558
7558
  const deserializeAws_restJson1ProposedSegmentChange = (output, context) => {
7559
7559
  return {
7560
- AttachmentPolicyRuleNumber: smithy_client_1.expectInt32(output.AttachmentPolicyRuleNumber),
7561
- SegmentName: smithy_client_1.expectString(output.SegmentName),
7560
+ AttachmentPolicyRuleNumber: (0, smithy_client_1.expectInt32)(output.AttachmentPolicyRuleNumber),
7561
+ SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
7562
7562
  Tags: output.Tags !== undefined && output.Tags !== null
7563
7563
  ? deserializeAws_restJson1TagList(output.Tags, context)
7564
7564
  : undefined,
@@ -7571,14 +7571,14 @@ const deserializeAws_restJson1ReasonContextMap = (output, context) => {
7571
7571
  }
7572
7572
  return {
7573
7573
  ...acc,
7574
- [key]: smithy_client_1.expectString(value),
7574
+ [key]: (0, smithy_client_1.expectString)(value),
7575
7575
  };
7576
7576
  }, {});
7577
7577
  };
7578
7578
  const deserializeAws_restJson1Relationship = (output, context) => {
7579
7579
  return {
7580
- From: smithy_client_1.expectString(output.From),
7581
- To: smithy_client_1.expectString(output.To),
7580
+ From: (0, smithy_client_1.expectString)(output.From),
7581
+ To: (0, smithy_client_1.expectString)(output.To),
7582
7582
  };
7583
7583
  };
7584
7584
  const deserializeAws_restJson1RelationshipList = (output, context) => {
@@ -7600,37 +7600,37 @@ const deserializeAws_restJson1RouteAnalysis = (output, context) => {
7600
7600
  ForwardPath: output.ForwardPath !== undefined && output.ForwardPath !== null
7601
7601
  ? deserializeAws_restJson1RouteAnalysisPath(output.ForwardPath, context)
7602
7602
  : undefined,
7603
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
7604
- IncludeReturnPath: smithy_client_1.expectBoolean(output.IncludeReturnPath),
7605
- OwnerAccountId: smithy_client_1.expectString(output.OwnerAccountId),
7603
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7604
+ IncludeReturnPath: (0, smithy_client_1.expectBoolean)(output.IncludeReturnPath),
7605
+ OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
7606
7606
  ReturnPath: output.ReturnPath !== undefined && output.ReturnPath !== null
7607
7607
  ? deserializeAws_restJson1RouteAnalysisPath(output.ReturnPath, context)
7608
7608
  : undefined,
7609
- RouteAnalysisId: smithy_client_1.expectString(output.RouteAnalysisId),
7609
+ RouteAnalysisId: (0, smithy_client_1.expectString)(output.RouteAnalysisId),
7610
7610
  Source: output.Source !== undefined && output.Source !== null
7611
7611
  ? deserializeAws_restJson1RouteAnalysisEndpointOptions(output.Source, context)
7612
7612
  : undefined,
7613
7613
  StartTimestamp: output.StartTimestamp !== undefined && output.StartTimestamp !== null
7614
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTimestamp)))
7614
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTimestamp)))
7615
7615
  : undefined,
7616
- Status: smithy_client_1.expectString(output.Status),
7617
- UseMiddleboxes: smithy_client_1.expectBoolean(output.UseMiddleboxes),
7616
+ Status: (0, smithy_client_1.expectString)(output.Status),
7617
+ UseMiddleboxes: (0, smithy_client_1.expectBoolean)(output.UseMiddleboxes),
7618
7618
  };
7619
7619
  };
7620
7620
  const deserializeAws_restJson1RouteAnalysisCompletion = (output, context) => {
7621
7621
  return {
7622
- ReasonCode: smithy_client_1.expectString(output.ReasonCode),
7622
+ ReasonCode: (0, smithy_client_1.expectString)(output.ReasonCode),
7623
7623
  ReasonContext: output.ReasonContext !== undefined && output.ReasonContext !== null
7624
7624
  ? deserializeAws_restJson1ReasonContextMap(output.ReasonContext, context)
7625
7625
  : undefined,
7626
- ResultCode: smithy_client_1.expectString(output.ResultCode),
7626
+ ResultCode: (0, smithy_client_1.expectString)(output.ResultCode),
7627
7627
  };
7628
7628
  };
7629
7629
  const deserializeAws_restJson1RouteAnalysisEndpointOptions = (output, context) => {
7630
7630
  return {
7631
- IpAddress: smithy_client_1.expectString(output.IpAddress),
7632
- TransitGatewayArn: smithy_client_1.expectString(output.TransitGatewayArn),
7633
- TransitGatewayAttachmentArn: smithy_client_1.expectString(output.TransitGatewayAttachmentArn),
7631
+ IpAddress: (0, smithy_client_1.expectString)(output.IpAddress),
7632
+ TransitGatewayArn: (0, smithy_client_1.expectString)(output.TransitGatewayArn),
7633
+ TransitGatewayAttachmentArn: (0, smithy_client_1.expectString)(output.TransitGatewayAttachmentArn),
7634
7634
  };
7635
7635
  };
7636
7636
  const deserializeAws_restJson1RouteAnalysisPath = (output, context) => {
@@ -7646,16 +7646,16 @@ const deserializeAws_restJson1RouteAnalysisPath = (output, context) => {
7646
7646
  const deserializeAws_restJson1Site = (output, context) => {
7647
7647
  return {
7648
7648
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7649
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
7649
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7650
7650
  : undefined,
7651
- Description: smithy_client_1.expectString(output.Description),
7652
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
7651
+ Description: (0, smithy_client_1.expectString)(output.Description),
7652
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7653
7653
  Location: output.Location !== undefined && output.Location !== null
7654
7654
  ? deserializeAws_restJson1Location(output.Location, context)
7655
7655
  : undefined,
7656
- SiteArn: smithy_client_1.expectString(output.SiteArn),
7657
- SiteId: smithy_client_1.expectString(output.SiteId),
7658
- State: smithy_client_1.expectString(output.State),
7656
+ SiteArn: (0, smithy_client_1.expectString)(output.SiteArn),
7657
+ SiteId: (0, smithy_client_1.expectString)(output.SiteId),
7658
+ State: (0, smithy_client_1.expectString)(output.State),
7659
7659
  Tags: output.Tags !== undefined && output.Tags !== null
7660
7660
  ? deserializeAws_restJson1TagList(output.Tags, context)
7661
7661
  : undefined,
@@ -7677,7 +7677,7 @@ const deserializeAws_restJson1SiteToSiteVpnAttachment = (output, context) => {
7677
7677
  Attachment: output.Attachment !== undefined && output.Attachment !== null
7678
7678
  ? deserializeAws_restJson1Attachment(output.Attachment, context)
7679
7679
  : undefined,
7680
- VpnConnectionArn: smithy_client_1.expectString(output.VpnConnectionArn),
7680
+ VpnConnectionArn: (0, smithy_client_1.expectString)(output.VpnConnectionArn),
7681
7681
  };
7682
7682
  };
7683
7683
  const deserializeAws_restJson1SubnetArnList = (output, context) => {
@@ -7687,14 +7687,14 @@ const deserializeAws_restJson1SubnetArnList = (output, context) => {
7687
7687
  if (entry === null) {
7688
7688
  return null;
7689
7689
  }
7690
- return smithy_client_1.expectString(entry);
7690
+ return (0, smithy_client_1.expectString)(entry);
7691
7691
  });
7692
7692
  return retVal;
7693
7693
  };
7694
7694
  const deserializeAws_restJson1Tag = (output, context) => {
7695
7695
  return {
7696
- Key: smithy_client_1.expectString(output.Key),
7697
- Value: smithy_client_1.expectString(output.Value),
7696
+ Key: (0, smithy_client_1.expectString)(output.Key),
7697
+ Value: (0, smithy_client_1.expectString)(output.Value),
7698
7698
  };
7699
7699
  };
7700
7700
  const deserializeAws_restJson1TagList = (output, context) => {
@@ -7710,11 +7710,11 @@ const deserializeAws_restJson1TagList = (output, context) => {
7710
7710
  };
7711
7711
  const deserializeAws_restJson1TransitGatewayConnectPeerAssociation = (output, context) => {
7712
7712
  return {
7713
- DeviceId: smithy_client_1.expectString(output.DeviceId),
7714
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
7715
- LinkId: smithy_client_1.expectString(output.LinkId),
7716
- State: smithy_client_1.expectString(output.State),
7717
- TransitGatewayConnectPeerArn: smithy_client_1.expectString(output.TransitGatewayConnectPeerArn),
7713
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
7714
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7715
+ LinkId: (0, smithy_client_1.expectString)(output.LinkId),
7716
+ State: (0, smithy_client_1.expectString)(output.State),
7717
+ TransitGatewayConnectPeerArn: (0, smithy_client_1.expectString)(output.TransitGatewayConnectPeerArn),
7718
7718
  };
7719
7719
  };
7720
7720
  const deserializeAws_restJson1TransitGatewayConnectPeerAssociationList = (output, context) => {
@@ -7730,11 +7730,11 @@ const deserializeAws_restJson1TransitGatewayConnectPeerAssociationList = (output
7730
7730
  };
7731
7731
  const deserializeAws_restJson1TransitGatewayRegistration = (output, context) => {
7732
7732
  return {
7733
- GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
7733
+ GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7734
7734
  State: output.State !== undefined && output.State !== null
7735
7735
  ? deserializeAws_restJson1TransitGatewayRegistrationStateReason(output.State, context)
7736
7736
  : undefined,
7737
- TransitGatewayArn: smithy_client_1.expectString(output.TransitGatewayArn),
7737
+ TransitGatewayArn: (0, smithy_client_1.expectString)(output.TransitGatewayArn),
7738
7738
  };
7739
7739
  };
7740
7740
  const deserializeAws_restJson1TransitGatewayRegistrationList = (output, context) => {
@@ -7750,14 +7750,14 @@ const deserializeAws_restJson1TransitGatewayRegistrationList = (output, context)
7750
7750
  };
7751
7751
  const deserializeAws_restJson1TransitGatewayRegistrationStateReason = (output, context) => {
7752
7752
  return {
7753
- Code: smithy_client_1.expectString(output.Code),
7754
- Message: smithy_client_1.expectString(output.Message),
7753
+ Code: (0, smithy_client_1.expectString)(output.Code),
7754
+ Message: (0, smithy_client_1.expectString)(output.Message),
7755
7755
  };
7756
7756
  };
7757
7757
  const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
7758
7758
  return {
7759
- Message: smithy_client_1.expectString(output.Message),
7760
- Name: smithy_client_1.expectString(output.Name),
7759
+ Message: (0, smithy_client_1.expectString)(output.Message),
7760
+ Name: (0, smithy_client_1.expectString)(output.Name),
7761
7761
  };
7762
7762
  };
7763
7763
  const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
@@ -7786,7 +7786,7 @@ const deserializeAws_restJson1VpcAttachment = (output, context) => {
7786
7786
  };
7787
7787
  const deserializeAws_restJson1VpcOptions = (output, context) => {
7788
7788
  return {
7789
- Ipv6Support: smithy_client_1.expectBoolean(output.Ipv6Support),
7789
+ Ipv6Support: (0, smithy_client_1.expectBoolean)(output.Ipv6Support),
7790
7790
  };
7791
7791
  };
7792
7792
  const deserializeMetadata = (output) => {