@aws-sdk/client-outposts 3.54.1 → 3.58.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 (43) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/OutpostsClient.js +13 -13
  3. package/dist-cjs/commands/CancelOrderCommand.js +3 -3
  4. package/dist-cjs/commands/CreateOrderCommand.js +3 -3
  5. package/dist-cjs/commands/CreateOutpostCommand.js +3 -3
  6. package/dist-cjs/commands/CreateSiteCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteOutpostCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteSiteCommand.js +3 -3
  9. package/dist-cjs/commands/GetCatalogItemCommand.js +3 -3
  10. package/dist-cjs/commands/GetOrderCommand.js +3 -3
  11. package/dist-cjs/commands/GetOutpostCommand.js +3 -3
  12. package/dist-cjs/commands/GetOutpostInstanceTypesCommand.js +3 -3
  13. package/dist-cjs/commands/GetSiteAddressCommand.js +3 -3
  14. package/dist-cjs/commands/GetSiteCommand.js +3 -3
  15. package/dist-cjs/commands/ListCatalogItemsCommand.js +3 -3
  16. package/dist-cjs/commands/ListOrdersCommand.js +3 -3
  17. package/dist-cjs/commands/ListOutpostsCommand.js +3 -3
  18. package/dist-cjs/commands/ListSitesCommand.js +3 -3
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  20. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  21. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  22. package/dist-cjs/commands/UpdateOutpostCommand.js +3 -3
  23. package/dist-cjs/commands/UpdateSiteAddressCommand.js +3 -3
  24. package/dist-cjs/commands/UpdateSiteCommand.js +3 -3
  25. package/dist-cjs/commands/UpdateSiteRackPhysicalPropertiesCommand.js +3 -3
  26. package/dist-cjs/endpoints.js +1 -1
  27. package/dist-cjs/protocols/Aws_restJson1.js +158 -149
  28. package/dist-cjs/runtimeConfig.browser.js +4 -4
  29. package/dist-cjs/runtimeConfig.js +9 -9
  30. package/dist-cjs/runtimeConfig.native.js +1 -1
  31. package/dist-es/Outposts.js +23 -23
  32. package/dist-es/pagination/ListCatalogItemsPaginator.js +4 -4
  33. package/dist-es/pagination/ListOrdersPaginator.js +4 -4
  34. package/dist-es/pagination/ListOutpostsPaginator.js +4 -4
  35. package/dist-es/pagination/ListSitesPaginator.js +4 -4
  36. package/dist-es/protocols/Aws_restJson1.js +30 -24
  37. package/dist-types/Outposts.d.ts +6 -1
  38. package/dist-types/commands/ListSitesCommand.d.ts +6 -1
  39. package/dist-types/models/models_0.d.ts +23 -0
  40. package/dist-types/runtimeConfig.native.d.ts +2 -2
  41. package/dist-types/ts3.4/models/models_0.d.ts +6 -0
  42. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  43. package/package.json +34 -34
@@ -14,7 +14,7 @@ const serializeAws_restJson1CancelOrderCommand = async (input, context) => {
14
14
  if (labelValue.length <= 0) {
15
15
  throw new Error("Empty value provided for input HTTP label: OrderId.");
16
16
  }
17
- resolvedPath = resolvedPath.replace("{OrderId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
17
+ resolvedPath = resolvedPath.replace("{OrderId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
18
18
  }
19
19
  else {
20
20
  throw new Error("No value provided for input HTTP label: OrderId.");
@@ -134,7 +134,7 @@ const serializeAws_restJson1DeleteOutpostCommand = async (input, context) => {
134
134
  if (labelValue.length <= 0) {
135
135
  throw new Error("Empty value provided for input HTTP label: OutpostId.");
136
136
  }
137
- resolvedPath = resolvedPath.replace("{OutpostId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
137
+ resolvedPath = resolvedPath.replace("{OutpostId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
138
138
  }
139
139
  else {
140
140
  throw new Error("No value provided for input HTTP label: OutpostId.");
@@ -160,7 +160,7 @@ const serializeAws_restJson1DeleteSiteCommand = async (input, context) => {
160
160
  if (labelValue.length <= 0) {
161
161
  throw new Error("Empty value provided for input HTTP label: SiteId.");
162
162
  }
163
- resolvedPath = resolvedPath.replace("{SiteId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
163
+ resolvedPath = resolvedPath.replace("{SiteId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
164
164
  }
165
165
  else {
166
166
  throw new Error("No value provided for input HTTP label: SiteId.");
@@ -186,7 +186,7 @@ const serializeAws_restJson1GetCatalogItemCommand = async (input, context) => {
186
186
  if (labelValue.length <= 0) {
187
187
  throw new Error("Empty value provided for input HTTP label: CatalogItemId.");
188
188
  }
189
- resolvedPath = resolvedPath.replace("{CatalogItemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
189
+ resolvedPath = resolvedPath.replace("{CatalogItemId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
190
190
  }
191
191
  else {
192
192
  throw new Error("No value provided for input HTTP label: CatalogItemId.");
@@ -212,7 +212,7 @@ const serializeAws_restJson1GetOrderCommand = async (input, context) => {
212
212
  if (labelValue.length <= 0) {
213
213
  throw new Error("Empty value provided for input HTTP label: OrderId.");
214
214
  }
215
- resolvedPath = resolvedPath.replace("{OrderId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
215
+ resolvedPath = resolvedPath.replace("{OrderId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
216
216
  }
217
217
  else {
218
218
  throw new Error("No value provided for input HTTP label: OrderId.");
@@ -238,7 +238,7 @@ const serializeAws_restJson1GetOutpostCommand = async (input, context) => {
238
238
  if (labelValue.length <= 0) {
239
239
  throw new Error("Empty value provided for input HTTP label: OutpostId.");
240
240
  }
241
- resolvedPath = resolvedPath.replace("{OutpostId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
241
+ resolvedPath = resolvedPath.replace("{OutpostId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
242
242
  }
243
243
  else {
244
244
  throw new Error("No value provided for input HTTP label: OutpostId.");
@@ -264,7 +264,7 @@ const serializeAws_restJson1GetOutpostInstanceTypesCommand = async (input, conte
264
264
  if (labelValue.length <= 0) {
265
265
  throw new Error("Empty value provided for input HTTP label: OutpostId.");
266
266
  }
267
- resolvedPath = resolvedPath.replace("{OutpostId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
267
+ resolvedPath = resolvedPath.replace("{OutpostId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
268
268
  }
269
269
  else {
270
270
  throw new Error("No value provided for input HTTP label: OutpostId.");
@@ -295,7 +295,7 @@ const serializeAws_restJson1GetSiteCommand = async (input, context) => {
295
295
  if (labelValue.length <= 0) {
296
296
  throw new Error("Empty value provided for input HTTP label: SiteId.");
297
297
  }
298
- resolvedPath = resolvedPath.replace("{SiteId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
298
+ resolvedPath = resolvedPath.replace("{SiteId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
299
299
  }
300
300
  else {
301
301
  throw new Error("No value provided for input HTTP label: SiteId.");
@@ -321,7 +321,7 @@ const serializeAws_restJson1GetSiteAddressCommand = async (input, context) => {
321
321
  if (labelValue.length <= 0) {
322
322
  throw new Error("Empty value provided for input HTTP label: SiteId.");
323
323
  }
324
- resolvedPath = resolvedPath.replace("{SiteId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
324
+ resolvedPath = resolvedPath.replace("{SiteId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
325
325
  }
326
326
  else {
327
327
  throw new Error("No value provided for input HTTP label: SiteId.");
@@ -431,6 +431,15 @@ const serializeAws_restJson1ListSitesCommand = async (input, context) => {
431
431
  const query = {
432
432
  ...(input.NextToken !== undefined && { NextToken: input.NextToken }),
433
433
  ...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
434
+ ...(input.OperatingAddressCountryCodeFilter !== undefined && {
435
+ OperatingAddressCountryCodeFilter: (input.OperatingAddressCountryCodeFilter || []).map((_entry) => _entry),
436
+ }),
437
+ ...(input.OperatingAddressStateOrRegionFilter !== undefined && {
438
+ OperatingAddressStateOrRegionFilter: (input.OperatingAddressStateOrRegionFilter || []).map((_entry) => _entry),
439
+ }),
440
+ ...(input.OperatingAddressCityFilter !== undefined && {
441
+ OperatingAddressCityFilter: (input.OperatingAddressCityFilter || []).map((_entry) => _entry),
442
+ }),
434
443
  };
435
444
  let body;
436
445
  return new protocol_http_1.HttpRequest({
@@ -454,7 +463,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
454
463
  if (labelValue.length <= 0) {
455
464
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
456
465
  }
457
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
466
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
458
467
  }
459
468
  else {
460
469
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -482,7 +491,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
482
491
  if (labelValue.length <= 0) {
483
492
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
484
493
  }
485
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
494
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
486
495
  }
487
496
  else {
488
497
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -511,7 +520,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
511
520
  if (labelValue.length <= 0) {
512
521
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
513
522
  }
514
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
523
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
515
524
  }
516
525
  else {
517
526
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -543,7 +552,7 @@ const serializeAws_restJson1UpdateOutpostCommand = async (input, context) => {
543
552
  if (labelValue.length <= 0) {
544
553
  throw new Error("Empty value provided for input HTTP label: OutpostId.");
545
554
  }
546
- resolvedPath = resolvedPath.replace("{OutpostId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
555
+ resolvedPath = resolvedPath.replace("{OutpostId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
547
556
  }
548
557
  else {
549
558
  throw new Error("No value provided for input HTTP label: OutpostId.");
@@ -577,7 +586,7 @@ const serializeAws_restJson1UpdateSiteCommand = async (input, context) => {
577
586
  if (labelValue.length <= 0) {
578
587
  throw new Error("Empty value provided for input HTTP label: SiteId.");
579
588
  }
580
- resolvedPath = resolvedPath.replace("{SiteId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
589
+ resolvedPath = resolvedPath.replace("{SiteId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
581
590
  }
582
591
  else {
583
592
  throw new Error("No value provided for input HTTP label: SiteId.");
@@ -610,7 +619,7 @@ const serializeAws_restJson1UpdateSiteAddressCommand = async (input, context) =>
610
619
  if (labelValue.length <= 0) {
611
620
  throw new Error("Empty value provided for input HTTP label: SiteId.");
612
621
  }
613
- resolvedPath = resolvedPath.replace("{SiteId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
622
+ resolvedPath = resolvedPath.replace("{SiteId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
614
623
  }
615
624
  else {
616
625
  throw new Error("No value provided for input HTTP label: SiteId.");
@@ -643,7 +652,7 @@ const serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = async (inp
643
652
  if (labelValue.length <= 0) {
644
653
  throw new Error("Empty value provided for input HTTP label: SiteId.");
645
654
  }
646
- resolvedPath = resolvedPath.replace("{SiteId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
655
+ resolvedPath = resolvedPath.replace("{SiteId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
647
656
  }
648
657
  else {
649
658
  throw new Error("No value provided for input HTTP label: SiteId.");
@@ -717,7 +726,7 @@ const deserializeAws_restJson1CancelOrderCommandError = async (output, context)
717
726
  $fault: "client",
718
727
  $metadata: deserializeMetadata(output),
719
728
  });
720
- throw smithy_client_1.decorateServiceException(response, parsedBody);
729
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
721
730
  }
722
731
  };
723
732
  const deserializeAws_restJson1CreateOrderCommand = async (output, context) => {
@@ -728,7 +737,7 @@ const deserializeAws_restJson1CreateOrderCommand = async (output, context) => {
728
737
  $metadata: deserializeMetadata(output),
729
738
  Order: undefined,
730
739
  };
731
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
740
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
732
741
  if (data.Order !== undefined && data.Order !== null) {
733
742
  contents.Order = deserializeAws_restJson1Order(data.Order, context);
734
743
  }
@@ -769,7 +778,7 @@ const deserializeAws_restJson1CreateOrderCommandError = async (output, context)
769
778
  $fault: "client",
770
779
  $metadata: deserializeMetadata(output),
771
780
  });
772
- throw smithy_client_1.decorateServiceException(response, parsedBody);
781
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
773
782
  }
774
783
  };
775
784
  const deserializeAws_restJson1CreateOutpostCommand = async (output, context) => {
@@ -780,7 +789,7 @@ const deserializeAws_restJson1CreateOutpostCommand = async (output, context) =>
780
789
  $metadata: deserializeMetadata(output),
781
790
  Outpost: undefined,
782
791
  };
783
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
792
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
784
793
  if (data.Outpost !== undefined && data.Outpost !== null) {
785
794
  contents.Outpost = deserializeAws_restJson1Outpost(data.Outpost, context);
786
795
  }
@@ -821,7 +830,7 @@ const deserializeAws_restJson1CreateOutpostCommandError = async (output, context
821
830
  $fault: "client",
822
831
  $metadata: deserializeMetadata(output),
823
832
  });
824
- throw smithy_client_1.decorateServiceException(response, parsedBody);
833
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
825
834
  }
826
835
  };
827
836
  const deserializeAws_restJson1CreateSiteCommand = async (output, context) => {
@@ -832,7 +841,7 @@ const deserializeAws_restJson1CreateSiteCommand = async (output, context) => {
832
841
  $metadata: deserializeMetadata(output),
833
842
  Site: undefined,
834
843
  };
835
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
844
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
836
845
  if (data.Site !== undefined && data.Site !== null) {
837
846
  contents.Site = deserializeAws_restJson1Site(data.Site, context);
838
847
  }
@@ -870,7 +879,7 @@ const deserializeAws_restJson1CreateSiteCommandError = async (output, context) =
870
879
  $fault: "client",
871
880
  $metadata: deserializeMetadata(output),
872
881
  });
873
- throw smithy_client_1.decorateServiceException(response, parsedBody);
882
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
874
883
  }
875
884
  };
876
885
  const deserializeAws_restJson1DeleteOutpostCommand = async (output, context) => {
@@ -915,7 +924,7 @@ const deserializeAws_restJson1DeleteOutpostCommandError = async (output, context
915
924
  $fault: "client",
916
925
  $metadata: deserializeMetadata(output),
917
926
  });
918
- throw smithy_client_1.decorateServiceException(response, parsedBody);
927
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
919
928
  }
920
929
  };
921
930
  const deserializeAws_restJson1DeleteSiteCommand = async (output, context) => {
@@ -960,7 +969,7 @@ const deserializeAws_restJson1DeleteSiteCommandError = async (output, context) =
960
969
  $fault: "client",
961
970
  $metadata: deserializeMetadata(output),
962
971
  });
963
- throw smithy_client_1.decorateServiceException(response, parsedBody);
972
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
964
973
  }
965
974
  };
966
975
  const deserializeAws_restJson1GetCatalogItemCommand = async (output, context) => {
@@ -971,7 +980,7 @@ const deserializeAws_restJson1GetCatalogItemCommand = async (output, context) =>
971
980
  $metadata: deserializeMetadata(output),
972
981
  CatalogItem: undefined,
973
982
  };
974
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
983
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
975
984
  if (data.CatalogItem !== undefined && data.CatalogItem !== null) {
976
985
  contents.CatalogItem = deserializeAws_restJson1CatalogItem(data.CatalogItem, context);
977
986
  }
@@ -1003,7 +1012,7 @@ const deserializeAws_restJson1GetCatalogItemCommandError = async (output, contex
1003
1012
  $fault: "client",
1004
1013
  $metadata: deserializeMetadata(output),
1005
1014
  });
1006
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1015
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1007
1016
  }
1008
1017
  };
1009
1018
  const deserializeAws_restJson1GetOrderCommand = async (output, context) => {
@@ -1014,7 +1023,7 @@ const deserializeAws_restJson1GetOrderCommand = async (output, context) => {
1014
1023
  $metadata: deserializeMetadata(output),
1015
1024
  Order: undefined,
1016
1025
  };
1017
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1026
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1018
1027
  if (data.Order !== undefined && data.Order !== null) {
1019
1028
  contents.Order = deserializeAws_restJson1Order(data.Order, context);
1020
1029
  }
@@ -1046,7 +1055,7 @@ const deserializeAws_restJson1GetOrderCommandError = async (output, context) =>
1046
1055
  $fault: "client",
1047
1056
  $metadata: deserializeMetadata(output),
1048
1057
  });
1049
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1058
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1050
1059
  }
1051
1060
  };
1052
1061
  const deserializeAws_restJson1GetOutpostCommand = async (output, context) => {
@@ -1057,7 +1066,7 @@ const deserializeAws_restJson1GetOutpostCommand = async (output, context) => {
1057
1066
  $metadata: deserializeMetadata(output),
1058
1067
  Outpost: undefined,
1059
1068
  };
1060
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1069
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1061
1070
  if (data.Outpost !== undefined && data.Outpost !== null) {
1062
1071
  contents.Outpost = deserializeAws_restJson1Outpost(data.Outpost, context);
1063
1072
  }
@@ -1092,7 +1101,7 @@ const deserializeAws_restJson1GetOutpostCommandError = async (output, context) =
1092
1101
  $fault: "client",
1093
1102
  $metadata: deserializeMetadata(output),
1094
1103
  });
1095
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1104
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1096
1105
  }
1097
1106
  };
1098
1107
  const deserializeAws_restJson1GetOutpostInstanceTypesCommand = async (output, context) => {
@@ -1106,18 +1115,18 @@ const deserializeAws_restJson1GetOutpostInstanceTypesCommand = async (output, co
1106
1115
  OutpostArn: undefined,
1107
1116
  OutpostId: undefined,
1108
1117
  };
1109
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1118
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1110
1119
  if (data.InstanceTypes !== undefined && data.InstanceTypes !== null) {
1111
1120
  contents.InstanceTypes = deserializeAws_restJson1InstanceTypeListDefinition(data.InstanceTypes, context);
1112
1121
  }
1113
1122
  if (data.NextToken !== undefined && data.NextToken !== null) {
1114
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1123
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1115
1124
  }
1116
1125
  if (data.OutpostArn !== undefined && data.OutpostArn !== null) {
1117
- contents.OutpostArn = smithy_client_1.expectString(data.OutpostArn);
1126
+ contents.OutpostArn = (0, smithy_client_1.expectString)(data.OutpostArn);
1118
1127
  }
1119
1128
  if (data.OutpostId !== undefined && data.OutpostId !== null) {
1120
- contents.OutpostId = smithy_client_1.expectString(data.OutpostId);
1129
+ contents.OutpostId = (0, smithy_client_1.expectString)(data.OutpostId);
1121
1130
  }
1122
1131
  return Promise.resolve(contents);
1123
1132
  };
@@ -1150,7 +1159,7 @@ const deserializeAws_restJson1GetOutpostInstanceTypesCommandError = async (outpu
1150
1159
  $fault: "client",
1151
1160
  $metadata: deserializeMetadata(output),
1152
1161
  });
1153
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1162
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1154
1163
  }
1155
1164
  };
1156
1165
  const deserializeAws_restJson1GetSiteCommand = async (output, context) => {
@@ -1161,7 +1170,7 @@ const deserializeAws_restJson1GetSiteCommand = async (output, context) => {
1161
1170
  $metadata: deserializeMetadata(output),
1162
1171
  Site: undefined,
1163
1172
  };
1164
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1173
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1165
1174
  if (data.Site !== undefined && data.Site !== null) {
1166
1175
  contents.Site = deserializeAws_restJson1Site(data.Site, context);
1167
1176
  }
@@ -1196,7 +1205,7 @@ const deserializeAws_restJson1GetSiteCommandError = async (output, context) => {
1196
1205
  $fault: "client",
1197
1206
  $metadata: deserializeMetadata(output),
1198
1207
  });
1199
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1208
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1200
1209
  }
1201
1210
  };
1202
1211
  const deserializeAws_restJson1GetSiteAddressCommand = async (output, context) => {
@@ -1209,15 +1218,15 @@ const deserializeAws_restJson1GetSiteAddressCommand = async (output, context) =>
1209
1218
  AddressType: undefined,
1210
1219
  SiteId: undefined,
1211
1220
  };
1212
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1221
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1213
1222
  if (data.Address !== undefined && data.Address !== null) {
1214
1223
  contents.Address = deserializeAws_restJson1Address(data.Address, context);
1215
1224
  }
1216
1225
  if (data.AddressType !== undefined && data.AddressType !== null) {
1217
- contents.AddressType = smithy_client_1.expectString(data.AddressType);
1226
+ contents.AddressType = (0, smithy_client_1.expectString)(data.AddressType);
1218
1227
  }
1219
1228
  if (data.SiteId !== undefined && data.SiteId !== null) {
1220
- contents.SiteId = smithy_client_1.expectString(data.SiteId);
1229
+ contents.SiteId = (0, smithy_client_1.expectString)(data.SiteId);
1221
1230
  }
1222
1231
  return Promise.resolve(contents);
1223
1232
  };
@@ -1250,7 +1259,7 @@ const deserializeAws_restJson1GetSiteAddressCommandError = async (output, contex
1250
1259
  $fault: "client",
1251
1260
  $metadata: deserializeMetadata(output),
1252
1261
  });
1253
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1262
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1254
1263
  }
1255
1264
  };
1256
1265
  const deserializeAws_restJson1ListCatalogItemsCommand = async (output, context) => {
@@ -1262,12 +1271,12 @@ const deserializeAws_restJson1ListCatalogItemsCommand = async (output, context)
1262
1271
  CatalogItems: undefined,
1263
1272
  NextToken: undefined,
1264
1273
  };
1265
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1274
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1266
1275
  if (data.CatalogItems !== undefined && data.CatalogItems !== null) {
1267
1276
  contents.CatalogItems = deserializeAws_restJson1CatalogItemListDefinition(data.CatalogItems, context);
1268
1277
  }
1269
1278
  if (data.NextToken !== undefined && data.NextToken !== null) {
1270
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1279
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1271
1280
  }
1272
1281
  return Promise.resolve(contents);
1273
1282
  };
@@ -1297,7 +1306,7 @@ const deserializeAws_restJson1ListCatalogItemsCommandError = async (output, cont
1297
1306
  $fault: "client",
1298
1307
  $metadata: deserializeMetadata(output),
1299
1308
  });
1300
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1309
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1301
1310
  }
1302
1311
  };
1303
1312
  const deserializeAws_restJson1ListOrdersCommand = async (output, context) => {
@@ -1309,9 +1318,9 @@ const deserializeAws_restJson1ListOrdersCommand = async (output, context) => {
1309
1318
  NextToken: undefined,
1310
1319
  Orders: undefined,
1311
1320
  };
1312
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1321
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1313
1322
  if (data.NextToken !== undefined && data.NextToken !== null) {
1314
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1323
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1315
1324
  }
1316
1325
  if (data.Orders !== undefined && data.Orders !== null) {
1317
1326
  contents.Orders = deserializeAws_restJson1OrderSummaryListDefinition(data.Orders, context);
@@ -1347,7 +1356,7 @@ const deserializeAws_restJson1ListOrdersCommandError = async (output, context) =
1347
1356
  $fault: "client",
1348
1357
  $metadata: deserializeMetadata(output),
1349
1358
  });
1350
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1359
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1351
1360
  }
1352
1361
  };
1353
1362
  const deserializeAws_restJson1ListOutpostsCommand = async (output, context) => {
@@ -1359,9 +1368,9 @@ const deserializeAws_restJson1ListOutpostsCommand = async (output, context) => {
1359
1368
  NextToken: undefined,
1360
1369
  Outposts: undefined,
1361
1370
  };
1362
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1371
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1363
1372
  if (data.NextToken !== undefined && data.NextToken !== null) {
1364
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1373
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1365
1374
  }
1366
1375
  if (data.Outposts !== undefined && data.Outposts !== null) {
1367
1376
  contents.Outposts = deserializeAws_restJson1outpostListDefinition(data.Outposts, context);
@@ -1394,7 +1403,7 @@ const deserializeAws_restJson1ListOutpostsCommandError = async (output, context)
1394
1403
  $fault: "client",
1395
1404
  $metadata: deserializeMetadata(output),
1396
1405
  });
1397
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1406
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1398
1407
  }
1399
1408
  };
1400
1409
  const deserializeAws_restJson1ListSitesCommand = async (output, context) => {
@@ -1406,9 +1415,9 @@ const deserializeAws_restJson1ListSitesCommand = async (output, context) => {
1406
1415
  NextToken: undefined,
1407
1416
  Sites: undefined,
1408
1417
  };
1409
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1418
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1410
1419
  if (data.NextToken !== undefined && data.NextToken !== null) {
1411
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1420
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1412
1421
  }
1413
1422
  if (data.Sites !== undefined && data.Sites !== null) {
1414
1423
  contents.Sites = deserializeAws_restJson1siteListDefinition(data.Sites, context);
@@ -1441,7 +1450,7 @@ const deserializeAws_restJson1ListSitesCommandError = async (output, context) =>
1441
1450
  $fault: "client",
1442
1451
  $metadata: deserializeMetadata(output),
1443
1452
  });
1444
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1453
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1445
1454
  }
1446
1455
  };
1447
1456
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -1452,7 +1461,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
1452
1461
  $metadata: deserializeMetadata(output),
1453
1462
  Tags: undefined,
1454
1463
  };
1455
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1464
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1456
1465
  if (data.Tags !== undefined && data.Tags !== null) {
1457
1466
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
1458
1467
  }
@@ -1484,7 +1493,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1484
1493
  $fault: "client",
1485
1494
  $metadata: deserializeMetadata(output),
1486
1495
  });
1487
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1496
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1488
1497
  }
1489
1498
  };
1490
1499
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -1523,7 +1532,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1523
1532
  $fault: "client",
1524
1533
  $metadata: deserializeMetadata(output),
1525
1534
  });
1526
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1535
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1527
1536
  }
1528
1537
  };
1529
1538
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -1562,7 +1571,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1562
1571
  $fault: "client",
1563
1572
  $metadata: deserializeMetadata(output),
1564
1573
  });
1565
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1574
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1566
1575
  }
1567
1576
  };
1568
1577
  const deserializeAws_restJson1UpdateOutpostCommand = async (output, context) => {
@@ -1573,7 +1582,7 @@ const deserializeAws_restJson1UpdateOutpostCommand = async (output, context) =>
1573
1582
  $metadata: deserializeMetadata(output),
1574
1583
  Outpost: undefined,
1575
1584
  };
1576
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1585
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1577
1586
  if (data.Outpost !== undefined && data.Outpost !== null) {
1578
1587
  contents.Outpost = deserializeAws_restJson1Outpost(data.Outpost, context);
1579
1588
  }
@@ -1611,7 +1620,7 @@ const deserializeAws_restJson1UpdateOutpostCommandError = async (output, context
1611
1620
  $fault: "client",
1612
1621
  $metadata: deserializeMetadata(output),
1613
1622
  });
1614
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1623
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1615
1624
  }
1616
1625
  };
1617
1626
  const deserializeAws_restJson1UpdateSiteCommand = async (output, context) => {
@@ -1622,7 +1631,7 @@ const deserializeAws_restJson1UpdateSiteCommand = async (output, context) => {
1622
1631
  $metadata: deserializeMetadata(output),
1623
1632
  Site: undefined,
1624
1633
  };
1625
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1634
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1626
1635
  if (data.Site !== undefined && data.Site !== null) {
1627
1636
  contents.Site = deserializeAws_restJson1Site(data.Site, context);
1628
1637
  }
@@ -1660,7 +1669,7 @@ const deserializeAws_restJson1UpdateSiteCommandError = async (output, context) =
1660
1669
  $fault: "client",
1661
1670
  $metadata: deserializeMetadata(output),
1662
1671
  });
1663
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1672
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1664
1673
  }
1665
1674
  };
1666
1675
  const deserializeAws_restJson1UpdateSiteAddressCommand = async (output, context) => {
@@ -1672,12 +1681,12 @@ const deserializeAws_restJson1UpdateSiteAddressCommand = async (output, context)
1672
1681
  Address: undefined,
1673
1682
  AddressType: undefined,
1674
1683
  };
1675
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1684
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1676
1685
  if (data.Address !== undefined && data.Address !== null) {
1677
1686
  contents.Address = deserializeAws_restJson1Address(data.Address, context);
1678
1687
  }
1679
1688
  if (data.AddressType !== undefined && data.AddressType !== null) {
1680
- contents.AddressType = smithy_client_1.expectString(data.AddressType);
1689
+ contents.AddressType = (0, smithy_client_1.expectString)(data.AddressType);
1681
1690
  }
1682
1691
  return Promise.resolve(contents);
1683
1692
  };
@@ -1713,7 +1722,7 @@ const deserializeAws_restJson1UpdateSiteAddressCommandError = async (output, con
1713
1722
  $fault: "client",
1714
1723
  $metadata: deserializeMetadata(output),
1715
1724
  });
1716
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1725
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1717
1726
  }
1718
1727
  };
1719
1728
  const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = async (output, context) => {
@@ -1724,7 +1733,7 @@ const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = async (o
1724
1733
  $metadata: deserializeMetadata(output),
1725
1734
  Site: undefined,
1726
1735
  };
1727
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1736
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1728
1737
  if (data.Site !== undefined && data.Site !== null) {
1729
1738
  contents.Site = deserializeAws_restJson1Site(data.Site, context);
1730
1739
  }
@@ -1762,86 +1771,86 @@ const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommandError = asy
1762
1771
  $fault: "client",
1763
1772
  $metadata: deserializeMetadata(output),
1764
1773
  });
1765
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1774
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1766
1775
  }
1767
1776
  };
1768
1777
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
1769
1778
  const contents = {};
1770
1779
  const data = parsedOutput.body;
1771
1780
  if (data.Message !== undefined && data.Message !== null) {
1772
- contents.Message = smithy_client_1.expectString(data.Message);
1781
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1773
1782
  }
1774
1783
  const exception = new models_0_1.AccessDeniedException({
1775
1784
  $metadata: deserializeMetadata(parsedOutput),
1776
1785
  ...contents,
1777
1786
  });
1778
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1787
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1779
1788
  };
1780
1789
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1781
1790
  const contents = {};
1782
1791
  const data = parsedOutput.body;
1783
1792
  if (data.Message !== undefined && data.Message !== null) {
1784
- contents.Message = smithy_client_1.expectString(data.Message);
1793
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1785
1794
  }
1786
1795
  if (data.ResourceId !== undefined && data.ResourceId !== null) {
1787
- contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
1796
+ contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
1788
1797
  }
1789
1798
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
1790
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
1799
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
1791
1800
  }
1792
1801
  const exception = new models_0_1.ConflictException({
1793
1802
  $metadata: deserializeMetadata(parsedOutput),
1794
1803
  ...contents,
1795
1804
  });
1796
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1805
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1797
1806
  };
1798
1807
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1799
1808
  const contents = {};
1800
1809
  const data = parsedOutput.body;
1801
1810
  if (data.Message !== undefined && data.Message !== null) {
1802
- contents.Message = smithy_client_1.expectString(data.Message);
1811
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1803
1812
  }
1804
1813
  const exception = new models_0_1.InternalServerException({
1805
1814
  $metadata: deserializeMetadata(parsedOutput),
1806
1815
  ...contents,
1807
1816
  });
1808
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1817
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1809
1818
  };
1810
1819
  const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
1811
1820
  const contents = {};
1812
1821
  const data = parsedOutput.body;
1813
1822
  if (data.Message !== undefined && data.Message !== null) {
1814
- contents.Message = smithy_client_1.expectString(data.Message);
1823
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1815
1824
  }
1816
1825
  const exception = new models_0_1.NotFoundException({
1817
1826
  $metadata: deserializeMetadata(parsedOutput),
1818
1827
  ...contents,
1819
1828
  });
1820
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1829
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1821
1830
  };
1822
1831
  const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1823
1832
  const contents = {};
1824
1833
  const data = parsedOutput.body;
1825
1834
  if (data.Message !== undefined && data.Message !== null) {
1826
- contents.Message = smithy_client_1.expectString(data.Message);
1835
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1827
1836
  }
1828
1837
  const exception = new models_0_1.ServiceQuotaExceededException({
1829
1838
  $metadata: deserializeMetadata(parsedOutput),
1830
1839
  ...contents,
1831
1840
  });
1832
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1841
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1833
1842
  };
1834
1843
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1835
1844
  const contents = {};
1836
1845
  const data = parsedOutput.body;
1837
1846
  if (data.Message !== undefined && data.Message !== null) {
1838
- contents.Message = smithy_client_1.expectString(data.Message);
1847
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1839
1848
  }
1840
1849
  const exception = new models_0_1.ValidationException({
1841
1850
  $metadata: deserializeMetadata(parsedOutput),
1842
1851
  ...contents,
1843
1852
  });
1844
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1853
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1845
1854
  };
1846
1855
  const serializeAws_restJson1Address = (input, context) => {
1847
1856
  return {
@@ -1906,34 +1915,34 @@ const serializeAws_restJson1TagMap = (input, context) => {
1906
1915
  };
1907
1916
  const deserializeAws_restJson1Address = (output, context) => {
1908
1917
  return {
1909
- AddressLine1: smithy_client_1.expectString(output.AddressLine1),
1910
- AddressLine2: smithy_client_1.expectString(output.AddressLine2),
1911
- AddressLine3: smithy_client_1.expectString(output.AddressLine3),
1912
- City: smithy_client_1.expectString(output.City),
1913
- ContactName: smithy_client_1.expectString(output.ContactName),
1914
- ContactPhoneNumber: smithy_client_1.expectString(output.ContactPhoneNumber),
1915
- CountryCode: smithy_client_1.expectString(output.CountryCode),
1916
- DistrictOrCounty: smithy_client_1.expectString(output.DistrictOrCounty),
1917
- Municipality: smithy_client_1.expectString(output.Municipality),
1918
- PostalCode: smithy_client_1.expectString(output.PostalCode),
1919
- StateOrRegion: smithy_client_1.expectString(output.StateOrRegion),
1918
+ AddressLine1: (0, smithy_client_1.expectString)(output.AddressLine1),
1919
+ AddressLine2: (0, smithy_client_1.expectString)(output.AddressLine2),
1920
+ AddressLine3: (0, smithy_client_1.expectString)(output.AddressLine3),
1921
+ City: (0, smithy_client_1.expectString)(output.City),
1922
+ ContactName: (0, smithy_client_1.expectString)(output.ContactName),
1923
+ ContactPhoneNumber: (0, smithy_client_1.expectString)(output.ContactPhoneNumber),
1924
+ CountryCode: (0, smithy_client_1.expectString)(output.CountryCode),
1925
+ DistrictOrCounty: (0, smithy_client_1.expectString)(output.DistrictOrCounty),
1926
+ Municipality: (0, smithy_client_1.expectString)(output.Municipality),
1927
+ PostalCode: (0, smithy_client_1.expectString)(output.PostalCode),
1928
+ StateOrRegion: (0, smithy_client_1.expectString)(output.StateOrRegion),
1920
1929
  };
1921
1930
  };
1922
1931
  const deserializeAws_restJson1CatalogItem = (output, context) => {
1923
1932
  return {
1924
- CatalogItemId: smithy_client_1.expectString(output.CatalogItemId),
1933
+ CatalogItemId: (0, smithy_client_1.expectString)(output.CatalogItemId),
1925
1934
  EC2Capacities: output.EC2Capacities !== undefined && output.EC2Capacities !== null
1926
1935
  ? deserializeAws_restJson1EC2CapacityListDefinition(output.EC2Capacities, context)
1927
1936
  : undefined,
1928
- ItemStatus: smithy_client_1.expectString(output.ItemStatus),
1929
- PowerKva: smithy_client_1.limitedParseFloat32(output.PowerKva),
1937
+ ItemStatus: (0, smithy_client_1.expectString)(output.ItemStatus),
1938
+ PowerKva: (0, smithy_client_1.limitedParseFloat32)(output.PowerKva),
1930
1939
  SupportedStorage: output.SupportedStorage !== undefined && output.SupportedStorage !== null
1931
1940
  ? deserializeAws_restJson1SupportedStorageList(output.SupportedStorage, context)
1932
1941
  : undefined,
1933
1942
  SupportedUplinkGbps: output.SupportedUplinkGbps !== undefined && output.SupportedUplinkGbps !== null
1934
1943
  ? deserializeAws_restJson1SupportedUplinkGbpsListDefinition(output.SupportedUplinkGbps, context)
1935
1944
  : undefined,
1936
- WeightLbs: smithy_client_1.expectInt32(output.WeightLbs),
1945
+ WeightLbs: (0, smithy_client_1.expectInt32)(output.WeightLbs),
1937
1946
  };
1938
1947
  };
1939
1948
  const deserializeAws_restJson1CatalogItemListDefinition = (output, context) => {
@@ -1949,9 +1958,9 @@ const deserializeAws_restJson1CatalogItemListDefinition = (output, context) => {
1949
1958
  };
1950
1959
  const deserializeAws_restJson1EC2Capacity = (output, context) => {
1951
1960
  return {
1952
- Family: smithy_client_1.expectString(output.Family),
1953
- MaxSize: smithy_client_1.expectString(output.MaxSize),
1954
- Quantity: smithy_client_1.expectString(output.Quantity),
1961
+ Family: (0, smithy_client_1.expectString)(output.Family),
1962
+ MaxSize: (0, smithy_client_1.expectString)(output.MaxSize),
1963
+ Quantity: (0, smithy_client_1.expectString)(output.Quantity),
1955
1964
  };
1956
1965
  };
1957
1966
  const deserializeAws_restJson1EC2CapacityListDefinition = (output, context) => {
@@ -1967,7 +1976,7 @@ const deserializeAws_restJson1EC2CapacityListDefinition = (output, context) => {
1967
1976
  };
1968
1977
  const deserializeAws_restJson1InstanceTypeItem = (output, context) => {
1969
1978
  return {
1970
- InstanceType: smithy_client_1.expectString(output.InstanceType),
1979
+ InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
1971
1980
  };
1972
1981
  };
1973
1982
  const deserializeAws_restJson1InstanceTypeListDefinition = (output, context) => {
@@ -1983,10 +1992,10 @@ const deserializeAws_restJson1InstanceTypeListDefinition = (output, context) =>
1983
1992
  };
1984
1993
  const deserializeAws_restJson1LineItem = (output, context) => {
1985
1994
  return {
1986
- CatalogItemId: smithy_client_1.expectString(output.CatalogItemId),
1987
- LineItemId: smithy_client_1.expectString(output.LineItemId),
1988
- Quantity: smithy_client_1.expectInt32(output.Quantity),
1989
- Status: smithy_client_1.expectString(output.Status),
1995
+ CatalogItemId: (0, smithy_client_1.expectString)(output.CatalogItemId),
1996
+ LineItemId: (0, smithy_client_1.expectString)(output.LineItemId),
1997
+ Quantity: (0, smithy_client_1.expectInt32)(output.Quantity),
1998
+ Status: (0, smithy_client_1.expectString)(output.Status),
1990
1999
  };
1991
2000
  };
1992
2001
  const deserializeAws_restJson1LineItemListDefinition = (output, context) => {
@@ -2007,7 +2016,7 @@ const deserializeAws_restJson1LineItemStatusCounts = (output, context) => {
2007
2016
  }
2008
2017
  return {
2009
2018
  ...acc,
2010
- [key]: smithy_client_1.expectInt32(value),
2019
+ [key]: (0, smithy_client_1.expectInt32)(value),
2011
2020
  };
2012
2021
  }, {});
2013
2022
  };
@@ -2017,15 +2026,15 @@ const deserializeAws_restJson1Order = (output, context) => {
2017
2026
  ? deserializeAws_restJson1LineItemListDefinition(output.LineItems, context)
2018
2027
  : undefined,
2019
2028
  OrderFulfilledDate: output.OrderFulfilledDate !== undefined && output.OrderFulfilledDate !== null
2020
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.OrderFulfilledDate)))
2029
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderFulfilledDate)))
2021
2030
  : undefined,
2022
- OrderId: smithy_client_1.expectString(output.OrderId),
2031
+ OrderId: (0, smithy_client_1.expectString)(output.OrderId),
2023
2032
  OrderSubmissionDate: output.OrderSubmissionDate !== undefined && output.OrderSubmissionDate !== null
2024
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.OrderSubmissionDate)))
2033
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderSubmissionDate)))
2025
2034
  : undefined,
2026
- OutpostId: smithy_client_1.expectString(output.OutpostId),
2027
- PaymentOption: smithy_client_1.expectString(output.PaymentOption),
2028
- Status: smithy_client_1.expectString(output.Status),
2035
+ OutpostId: (0, smithy_client_1.expectString)(output.OutpostId),
2036
+ PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
2037
+ Status: (0, smithy_client_1.expectString)(output.Status),
2029
2038
  };
2030
2039
  };
2031
2040
  const deserializeAws_restJson1OrderSummary = (output, context) => {
@@ -2034,15 +2043,15 @@ const deserializeAws_restJson1OrderSummary = (output, context) => {
2034
2043
  ? deserializeAws_restJson1LineItemStatusCounts(output.LineItemCountsByStatus, context)
2035
2044
  : undefined,
2036
2045
  OrderFulfilledDate: output.OrderFulfilledDate !== undefined && output.OrderFulfilledDate !== null
2037
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.OrderFulfilledDate)))
2046
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderFulfilledDate)))
2038
2047
  : undefined,
2039
- OrderId: smithy_client_1.expectString(output.OrderId),
2048
+ OrderId: (0, smithy_client_1.expectString)(output.OrderId),
2040
2049
  OrderSubmissionDate: output.OrderSubmissionDate !== undefined && output.OrderSubmissionDate !== null
2041
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.OrderSubmissionDate)))
2050
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderSubmissionDate)))
2042
2051
  : undefined,
2043
- OrderType: smithy_client_1.expectString(output.OrderType),
2044
- OutpostId: smithy_client_1.expectString(output.OutpostId),
2045
- Status: smithy_client_1.expectString(output.Status),
2052
+ OrderType: (0, smithy_client_1.expectString)(output.OrderType),
2053
+ OutpostId: (0, smithy_client_1.expectString)(output.OutpostId),
2054
+ Status: (0, smithy_client_1.expectString)(output.Status),
2046
2055
  };
2047
2056
  };
2048
2057
  const deserializeAws_restJson1OrderSummaryListDefinition = (output, context) => {
@@ -2058,17 +2067,17 @@ const deserializeAws_restJson1OrderSummaryListDefinition = (output, context) =>
2058
2067
  };
2059
2068
  const deserializeAws_restJson1Outpost = (output, context) => {
2060
2069
  return {
2061
- AvailabilityZone: smithy_client_1.expectString(output.AvailabilityZone),
2062
- AvailabilityZoneId: smithy_client_1.expectString(output.AvailabilityZoneId),
2063
- Description: smithy_client_1.expectString(output.Description),
2064
- LifeCycleStatus: smithy_client_1.expectString(output.LifeCycleStatus),
2065
- Name: smithy_client_1.expectString(output.Name),
2066
- OutpostArn: smithy_client_1.expectString(output.OutpostArn),
2067
- OutpostId: smithy_client_1.expectString(output.OutpostId),
2068
- OwnerId: smithy_client_1.expectString(output.OwnerId),
2069
- SiteArn: smithy_client_1.expectString(output.SiteArn),
2070
- SiteId: smithy_client_1.expectString(output.SiteId),
2071
- SupportedHardwareType: smithy_client_1.expectString(output.SupportedHardwareType),
2070
+ AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
2071
+ AvailabilityZoneId: (0, smithy_client_1.expectString)(output.AvailabilityZoneId),
2072
+ Description: (0, smithy_client_1.expectString)(output.Description),
2073
+ LifeCycleStatus: (0, smithy_client_1.expectString)(output.LifeCycleStatus),
2074
+ Name: (0, smithy_client_1.expectString)(output.Name),
2075
+ OutpostArn: (0, smithy_client_1.expectString)(output.OutpostArn),
2076
+ OutpostId: (0, smithy_client_1.expectString)(output.OutpostId),
2077
+ OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
2078
+ SiteArn: (0, smithy_client_1.expectString)(output.SiteArn),
2079
+ SiteId: (0, smithy_client_1.expectString)(output.SiteId),
2080
+ SupportedHardwareType: (0, smithy_client_1.expectString)(output.SupportedHardwareType),
2072
2081
  Tags: output.Tags !== undefined && output.Tags !== null
2073
2082
  ? deserializeAws_restJson1TagMap(output.Tags, context)
2074
2083
  : undefined,
@@ -2087,31 +2096,31 @@ const deserializeAws_restJson1outpostListDefinition = (output, context) => {
2087
2096
  };
2088
2097
  const deserializeAws_restJson1RackPhysicalProperties = (output, context) => {
2089
2098
  return {
2090
- FiberOpticCableType: smithy_client_1.expectString(output.FiberOpticCableType),
2091
- MaximumSupportedWeightLbs: smithy_client_1.expectString(output.MaximumSupportedWeightLbs),
2092
- OpticalStandard: smithy_client_1.expectString(output.OpticalStandard),
2093
- PowerConnector: smithy_client_1.expectString(output.PowerConnector),
2094
- PowerDrawKva: smithy_client_1.expectString(output.PowerDrawKva),
2095
- PowerFeedDrop: smithy_client_1.expectString(output.PowerFeedDrop),
2096
- PowerPhase: smithy_client_1.expectString(output.PowerPhase),
2097
- UplinkCount: smithy_client_1.expectString(output.UplinkCount),
2098
- UplinkGbps: smithy_client_1.expectString(output.UplinkGbps),
2099
+ FiberOpticCableType: (0, smithy_client_1.expectString)(output.FiberOpticCableType),
2100
+ MaximumSupportedWeightLbs: (0, smithy_client_1.expectString)(output.MaximumSupportedWeightLbs),
2101
+ OpticalStandard: (0, smithy_client_1.expectString)(output.OpticalStandard),
2102
+ PowerConnector: (0, smithy_client_1.expectString)(output.PowerConnector),
2103
+ PowerDrawKva: (0, smithy_client_1.expectString)(output.PowerDrawKva),
2104
+ PowerFeedDrop: (0, smithy_client_1.expectString)(output.PowerFeedDrop),
2105
+ PowerPhase: (0, smithy_client_1.expectString)(output.PowerPhase),
2106
+ UplinkCount: (0, smithy_client_1.expectString)(output.UplinkCount),
2107
+ UplinkGbps: (0, smithy_client_1.expectString)(output.UplinkGbps),
2099
2108
  };
2100
2109
  };
2101
2110
  const deserializeAws_restJson1Site = (output, context) => {
2102
2111
  return {
2103
- AccountId: smithy_client_1.expectString(output.AccountId),
2104
- Description: smithy_client_1.expectString(output.Description),
2105
- Name: smithy_client_1.expectString(output.Name),
2106
- Notes: smithy_client_1.expectString(output.Notes),
2107
- OperatingAddressCity: smithy_client_1.expectString(output.OperatingAddressCity),
2108
- OperatingAddressCountryCode: smithy_client_1.expectString(output.OperatingAddressCountryCode),
2109
- OperatingAddressStateOrRegion: smithy_client_1.expectString(output.OperatingAddressStateOrRegion),
2112
+ AccountId: (0, smithy_client_1.expectString)(output.AccountId),
2113
+ Description: (0, smithy_client_1.expectString)(output.Description),
2114
+ Name: (0, smithy_client_1.expectString)(output.Name),
2115
+ Notes: (0, smithy_client_1.expectString)(output.Notes),
2116
+ OperatingAddressCity: (0, smithy_client_1.expectString)(output.OperatingAddressCity),
2117
+ OperatingAddressCountryCode: (0, smithy_client_1.expectString)(output.OperatingAddressCountryCode),
2118
+ OperatingAddressStateOrRegion: (0, smithy_client_1.expectString)(output.OperatingAddressStateOrRegion),
2110
2119
  RackPhysicalProperties: output.RackPhysicalProperties !== undefined && output.RackPhysicalProperties !== null
2111
2120
  ? deserializeAws_restJson1RackPhysicalProperties(output.RackPhysicalProperties, context)
2112
2121
  : undefined,
2113
- SiteArn: smithy_client_1.expectString(output.SiteArn),
2114
- SiteId: smithy_client_1.expectString(output.SiteId),
2122
+ SiteArn: (0, smithy_client_1.expectString)(output.SiteArn),
2123
+ SiteId: (0, smithy_client_1.expectString)(output.SiteId),
2115
2124
  Tags: output.Tags !== undefined && output.Tags !== null
2116
2125
  ? deserializeAws_restJson1TagMap(output.Tags, context)
2117
2126
  : undefined,
@@ -2135,7 +2144,7 @@ const deserializeAws_restJson1SupportedStorageList = (output, context) => {
2135
2144
  if (entry === null) {
2136
2145
  return null;
2137
2146
  }
2138
- return smithy_client_1.expectString(entry);
2147
+ return (0, smithy_client_1.expectString)(entry);
2139
2148
  });
2140
2149
  return retVal;
2141
2150
  };
@@ -2146,7 +2155,7 @@ const deserializeAws_restJson1SupportedUplinkGbpsListDefinition = (output, conte
2146
2155
  if (entry === null) {
2147
2156
  return null;
2148
2157
  }
2149
- return smithy_client_1.expectInt32(entry);
2158
+ return (0, smithy_client_1.expectInt32)(entry);
2150
2159
  });
2151
2160
  return retVal;
2152
2161
  };
@@ -2157,7 +2166,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
2157
2166
  }
2158
2167
  return {
2159
2168
  ...acc,
2160
- [key]: smithy_client_1.expectString(value),
2169
+ [key]: (0, smithy_client_1.expectString)(value),
2161
2170
  };
2162
2171
  }, {});
2163
2172
  };