@aws-sdk/client-elasticsearch-service 3.53.0 → 3.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/ElasticsearchServiceClient.js +13 -13
  3. package/dist-cjs/commands/AcceptInboundCrossClusterSearchConnectionCommand.js +3 -3
  4. package/dist-cjs/commands/AddTagsCommand.js +3 -3
  5. package/dist-cjs/commands/AssociatePackageCommand.js +3 -3
  6. package/dist-cjs/commands/CancelElasticsearchServiceSoftwareUpdateCommand.js +3 -3
  7. package/dist-cjs/commands/CreateElasticsearchDomainCommand.js +3 -3
  8. package/dist-cjs/commands/CreateOutboundCrossClusterSearchConnectionCommand.js +3 -3
  9. package/dist-cjs/commands/CreatePackageCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteElasticsearchDomainCommand.js +3 -3
  11. package/dist-cjs/commands/DeleteElasticsearchServiceRoleCommand.js +3 -3
  12. package/dist-cjs/commands/DeleteInboundCrossClusterSearchConnectionCommand.js +3 -3
  13. package/dist-cjs/commands/DeleteOutboundCrossClusterSearchConnectionCommand.js +3 -3
  14. package/dist-cjs/commands/DeletePackageCommand.js +3 -3
  15. package/dist-cjs/commands/DescribeDomainAutoTunesCommand.js +3 -3
  16. package/dist-cjs/commands/DescribeDomainChangeProgressCommand.js +3 -3
  17. package/dist-cjs/commands/DescribeElasticsearchDomainCommand.js +3 -3
  18. package/dist-cjs/commands/DescribeElasticsearchDomainConfigCommand.js +3 -3
  19. package/dist-cjs/commands/DescribeElasticsearchDomainsCommand.js +3 -3
  20. package/dist-cjs/commands/DescribeElasticsearchInstanceTypeLimitsCommand.js +3 -3
  21. package/dist-cjs/commands/DescribeInboundCrossClusterSearchConnectionsCommand.js +3 -3
  22. package/dist-cjs/commands/DescribeOutboundCrossClusterSearchConnectionsCommand.js +3 -3
  23. package/dist-cjs/commands/DescribePackagesCommand.js +3 -3
  24. package/dist-cjs/commands/DescribeReservedElasticsearchInstanceOfferingsCommand.js +3 -3
  25. package/dist-cjs/commands/DescribeReservedElasticsearchInstancesCommand.js +3 -3
  26. package/dist-cjs/commands/DissociatePackageCommand.js +3 -3
  27. package/dist-cjs/commands/GetCompatibleElasticsearchVersionsCommand.js +3 -3
  28. package/dist-cjs/commands/GetPackageVersionHistoryCommand.js +3 -3
  29. package/dist-cjs/commands/GetUpgradeHistoryCommand.js +3 -3
  30. package/dist-cjs/commands/GetUpgradeStatusCommand.js +3 -3
  31. package/dist-cjs/commands/ListDomainNamesCommand.js +3 -3
  32. package/dist-cjs/commands/ListDomainsForPackageCommand.js +3 -3
  33. package/dist-cjs/commands/ListElasticsearchInstanceTypesCommand.js +3 -3
  34. package/dist-cjs/commands/ListElasticsearchVersionsCommand.js +3 -3
  35. package/dist-cjs/commands/ListPackagesForDomainCommand.js +3 -3
  36. package/dist-cjs/commands/ListTagsCommand.js +3 -3
  37. package/dist-cjs/commands/PurchaseReservedElasticsearchInstanceOfferingCommand.js +3 -3
  38. package/dist-cjs/commands/RejectInboundCrossClusterSearchConnectionCommand.js +3 -3
  39. package/dist-cjs/commands/RemoveTagsCommand.js +3 -3
  40. package/dist-cjs/commands/StartElasticsearchServiceSoftwareUpdateCommand.js +3 -3
  41. package/dist-cjs/commands/UpdateElasticsearchDomainConfigCommand.js +3 -3
  42. package/dist-cjs/commands/UpdatePackageCommand.js +3 -3
  43. package/dist-cjs/commands/UpgradeElasticsearchDomainCommand.js +3 -3
  44. package/dist-cjs/endpoints.js +1 -1
  45. package/dist-cjs/protocols/Aws_restJson1.js +320 -320
  46. package/dist-cjs/runtimeConfig.browser.js +4 -4
  47. package/dist-cjs/runtimeConfig.js +9 -9
  48. package/dist-cjs/runtimeConfig.native.js +1 -1
  49. package/dist-es/ElasticsearchService.js +41 -41
  50. package/dist-es/pagination/DescribeDomainAutoTunesPaginator.js +4 -4
  51. package/dist-es/pagination/DescribeInboundCrossClusterSearchConnectionsPaginator.js +4 -4
  52. package/dist-es/pagination/DescribeOutboundCrossClusterSearchConnectionsPaginator.js +4 -4
  53. package/dist-es/pagination/DescribePackagesPaginator.js +4 -4
  54. package/dist-es/pagination/DescribeReservedElasticsearchInstanceOfferingsPaginator.js +4 -4
  55. package/dist-es/pagination/DescribeReservedElasticsearchInstancesPaginator.js +4 -4
  56. package/dist-es/pagination/GetPackageVersionHistoryPaginator.js +4 -4
  57. package/dist-es/pagination/GetUpgradeHistoryPaginator.js +4 -4
  58. package/dist-es/pagination/ListDomainsForPackagePaginator.js +4 -4
  59. package/dist-es/pagination/ListElasticsearchInstanceTypesPaginator.js +4 -4
  60. package/dist-es/pagination/ListElasticsearchVersionsPaginator.js +4 -4
  61. package/dist-es/pagination/ListPackagesForDomainPaginator.js +4 -4
  62. package/dist-es/protocols/Aws_restJson1.js +41 -41
  63. package/dist-types/ElasticsearchServiceClient.d.ts +2 -2
  64. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  65. package/dist-types/runtimeConfig.d.ts +1 -1
  66. package/dist-types/runtimeConfig.native.d.ts +3 -3
  67. package/dist-types/ts3.4/ElasticsearchServiceClient.d.ts +2 -2
  68. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  69. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  70. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  71. package/package.json +34 -34
@@ -16,7 +16,7 @@ const serializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand = a
16
16
  if (labelValue.length <= 0) {
17
17
  throw new Error("Empty value provided for input HTTP label: CrossClusterSearchConnectionId.");
18
18
  }
19
- resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
19
+ resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
20
20
  }
21
21
  else {
22
22
  throw new Error("No value provided for input HTTP label: CrossClusterSearchConnectionId.");
@@ -66,7 +66,7 @@ const serializeAws_restJson1AssociatePackageCommand = async (input, context) =>
66
66
  if (labelValue.length <= 0) {
67
67
  throw new Error("Empty value provided for input HTTP label: PackageID.");
68
68
  }
69
- resolvedPath = resolvedPath.replace("{PackageID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
69
+ resolvedPath = resolvedPath.replace("{PackageID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
70
70
  }
71
71
  else {
72
72
  throw new Error("No value provided for input HTTP label: PackageID.");
@@ -76,7 +76,7 @@ const serializeAws_restJson1AssociatePackageCommand = async (input, context) =>
76
76
  if (labelValue.length <= 0) {
77
77
  throw new Error("Empty value provided for input HTTP label: DomainName.");
78
78
  }
79
- resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
79
+ resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
80
80
  }
81
81
  else {
82
82
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -253,7 +253,7 @@ const serializeAws_restJson1DeleteElasticsearchDomainCommand = async (input, con
253
253
  if (labelValue.length <= 0) {
254
254
  throw new Error("Empty value provided for input HTTP label: DomainName.");
255
255
  }
256
- resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
256
+ resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
257
257
  }
258
258
  else {
259
259
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -299,7 +299,7 @@ const serializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand = a
299
299
  if (labelValue.length <= 0) {
300
300
  throw new Error("Empty value provided for input HTTP label: CrossClusterSearchConnectionId.");
301
301
  }
302
- resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
302
+ resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
303
303
  }
304
304
  else {
305
305
  throw new Error("No value provided for input HTTP label: CrossClusterSearchConnectionId.");
@@ -326,7 +326,7 @@ const serializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand =
326
326
  if (labelValue.length <= 0) {
327
327
  throw new Error("Empty value provided for input HTTP label: CrossClusterSearchConnectionId.");
328
328
  }
329
- resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
329
+ resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
330
330
  }
331
331
  else {
332
332
  throw new Error("No value provided for input HTTP label: CrossClusterSearchConnectionId.");
@@ -352,7 +352,7 @@ const serializeAws_restJson1DeletePackageCommand = async (input, context) => {
352
352
  if (labelValue.length <= 0) {
353
353
  throw new Error("Empty value provided for input HTTP label: PackageID.");
354
354
  }
355
- resolvedPath = resolvedPath.replace("{PackageID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
355
+ resolvedPath = resolvedPath.replace("{PackageID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
356
356
  }
357
357
  else {
358
358
  throw new Error("No value provided for input HTTP label: PackageID.");
@@ -381,7 +381,7 @@ const serializeAws_restJson1DescribeDomainAutoTunesCommand = async (input, conte
381
381
  if (labelValue.length <= 0) {
382
382
  throw new Error("Empty value provided for input HTTP label: DomainName.");
383
383
  }
384
- resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
384
+ resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
385
385
  }
386
386
  else {
387
387
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -412,7 +412,7 @@ const serializeAws_restJson1DescribeDomainChangeProgressCommand = async (input,
412
412
  if (labelValue.length <= 0) {
413
413
  throw new Error("Empty value provided for input HTTP label: DomainName.");
414
414
  }
415
- resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
415
+ resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
416
416
  }
417
417
  else {
418
418
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -442,7 +442,7 @@ const serializeAws_restJson1DescribeElasticsearchDomainCommand = async (input, c
442
442
  if (labelValue.length <= 0) {
443
443
  throw new Error("Empty value provided for input HTTP label: DomainName.");
444
444
  }
445
- resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
445
+ resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
446
446
  }
447
447
  else {
448
448
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -468,7 +468,7 @@ const serializeAws_restJson1DescribeElasticsearchDomainConfigCommand = async (in
468
468
  if (labelValue.length <= 0) {
469
469
  throw new Error("Empty value provided for input HTTP label: DomainName.");
470
470
  }
471
- resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
471
+ resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
472
472
  }
473
473
  else {
474
474
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -517,7 +517,7 @@ const serializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = asy
517
517
  if (labelValue.length <= 0) {
518
518
  throw new Error("Empty value provided for input HTTP label: InstanceType.");
519
519
  }
520
- resolvedPath = resolvedPath.replace("{InstanceType}", smithy_client_1.extendedEncodeURIComponent(labelValue));
520
+ resolvedPath = resolvedPath.replace("{InstanceType}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
521
521
  }
522
522
  else {
523
523
  throw new Error("No value provided for input HTTP label: InstanceType.");
@@ -527,7 +527,7 @@ const serializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = asy
527
527
  if (labelValue.length <= 0) {
528
528
  throw new Error("Empty value provided for input HTTP label: ElasticsearchVersion.");
529
529
  }
530
- resolvedPath = resolvedPath.replace("{ElasticsearchVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
530
+ resolvedPath = resolvedPath.replace("{ElasticsearchVersion}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
531
531
  }
532
532
  else {
533
533
  throw new Error("No value provided for input HTTP label: ElasticsearchVersion.");
@@ -680,7 +680,7 @@ const serializeAws_restJson1DissociatePackageCommand = async (input, context) =>
680
680
  if (labelValue.length <= 0) {
681
681
  throw new Error("Empty value provided for input HTTP label: PackageID.");
682
682
  }
683
- resolvedPath = resolvedPath.replace("{PackageID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
683
+ resolvedPath = resolvedPath.replace("{PackageID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
684
684
  }
685
685
  else {
686
686
  throw new Error("No value provided for input HTTP label: PackageID.");
@@ -690,7 +690,7 @@ const serializeAws_restJson1DissociatePackageCommand = async (input, context) =>
690
690
  if (labelValue.length <= 0) {
691
691
  throw new Error("Empty value provided for input HTTP label: DomainName.");
692
692
  }
693
- resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
693
+ resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
694
694
  }
695
695
  else {
696
696
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -736,7 +736,7 @@ const serializeAws_restJson1GetPackageVersionHistoryCommand = async (input, cont
736
736
  if (labelValue.length <= 0) {
737
737
  throw new Error("Empty value provided for input HTTP label: PackageID.");
738
738
  }
739
- resolvedPath = resolvedPath.replace("{PackageID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
739
+ resolvedPath = resolvedPath.replace("{PackageID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
740
740
  }
741
741
  else {
742
742
  throw new Error("No value provided for input HTTP label: PackageID.");
@@ -768,7 +768,7 @@ const serializeAws_restJson1GetUpgradeHistoryCommand = async (input, context) =>
768
768
  if (labelValue.length <= 0) {
769
769
  throw new Error("Empty value provided for input HTTP label: DomainName.");
770
770
  }
771
- resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
771
+ resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
772
772
  }
773
773
  else {
774
774
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -800,7 +800,7 @@ const serializeAws_restJson1GetUpgradeStatusCommand = async (input, context) =>
800
800
  if (labelValue.length <= 0) {
801
801
  throw new Error("Empty value provided for input HTTP label: DomainName.");
802
802
  }
803
- resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
803
+ resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
804
804
  }
805
805
  else {
806
806
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -846,7 +846,7 @@ const serializeAws_restJson1ListDomainsForPackageCommand = async (input, context
846
846
  if (labelValue.length <= 0) {
847
847
  throw new Error("Empty value provided for input HTTP label: PackageID.");
848
848
  }
849
- resolvedPath = resolvedPath.replace("{PackageID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
849
+ resolvedPath = resolvedPath.replace("{PackageID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
850
850
  }
851
851
  else {
852
852
  throw new Error("No value provided for input HTTP label: PackageID.");
@@ -878,7 +878,7 @@ const serializeAws_restJson1ListElasticsearchInstanceTypesCommand = async (input
878
878
  if (labelValue.length <= 0) {
879
879
  throw new Error("Empty value provided for input HTTP label: ElasticsearchVersion.");
880
880
  }
881
- resolvedPath = resolvedPath.replace("{ElasticsearchVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
881
+ resolvedPath = resolvedPath.replace("{ElasticsearchVersion}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
882
882
  }
883
883
  else {
884
884
  throw new Error("No value provided for input HTTP label: ElasticsearchVersion.");
@@ -931,7 +931,7 @@ const serializeAws_restJson1ListPackagesForDomainCommand = async (input, context
931
931
  if (labelValue.length <= 0) {
932
932
  throw new Error("Empty value provided for input HTTP label: DomainName.");
933
933
  }
934
- resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
934
+ resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
935
935
  }
936
936
  else {
937
937
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -1011,7 +1011,7 @@ const serializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand = a
1011
1011
  if (labelValue.length <= 0) {
1012
1012
  throw new Error("Empty value provided for input HTTP label: CrossClusterSearchConnectionId.");
1013
1013
  }
1014
- resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1014
+ resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1015
1015
  }
1016
1016
  else {
1017
1017
  throw new Error("No value provided for input HTTP label: CrossClusterSearchConnectionId.");
@@ -1084,7 +1084,7 @@ const serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = async (inpu
1084
1084
  if (labelValue.length <= 0) {
1085
1085
  throw new Error("Empty value provided for input HTTP label: DomainName.");
1086
1086
  }
1087
- resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1087
+ resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1088
1088
  }
1089
1089
  else {
1090
1090
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -1210,7 +1210,7 @@ const deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand =
1210
1210
  $metadata: deserializeMetadata(output),
1211
1211
  CrossClusterSearchConnection: undefined,
1212
1212
  };
1213
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1213
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1214
1214
  if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
1215
1215
  contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1216
1216
  }
@@ -1242,7 +1242,7 @@ const deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommandEr
1242
1242
  $fault: "client",
1243
1243
  $metadata: deserializeMetadata(output),
1244
1244
  });
1245
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1245
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1246
1246
  }
1247
1247
  };
1248
1248
  const deserializeAws_restJson1AddTagsCommand = async (output, context) => {
@@ -1284,7 +1284,7 @@ const deserializeAws_restJson1AddTagsCommandError = async (output, context) => {
1284
1284
  $fault: "client",
1285
1285
  $metadata: deserializeMetadata(output),
1286
1286
  });
1287
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1287
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1288
1288
  }
1289
1289
  };
1290
1290
  const deserializeAws_restJson1AssociatePackageCommand = async (output, context) => {
@@ -1295,7 +1295,7 @@ const deserializeAws_restJson1AssociatePackageCommand = async (output, context)
1295
1295
  $metadata: deserializeMetadata(output),
1296
1296
  DomainPackageDetails: undefined,
1297
1297
  };
1298
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1298
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1299
1299
  if (data.DomainPackageDetails !== undefined && data.DomainPackageDetails !== null) {
1300
1300
  contents.DomainPackageDetails = deserializeAws_restJson1DomainPackageDetails(data.DomainPackageDetails, context);
1301
1301
  }
@@ -1336,7 +1336,7 @@ const deserializeAws_restJson1AssociatePackageCommandError = async (output, cont
1336
1336
  $fault: "client",
1337
1337
  $metadata: deserializeMetadata(output),
1338
1338
  });
1339
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1339
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1340
1340
  }
1341
1341
  };
1342
1342
  const deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = async (output, context) => {
@@ -1347,7 +1347,7 @@ const deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand =
1347
1347
  $metadata: deserializeMetadata(output),
1348
1348
  ServiceSoftwareOptions: undefined,
1349
1349
  };
1350
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1350
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1351
1351
  if (data.ServiceSoftwareOptions !== undefined && data.ServiceSoftwareOptions !== null) {
1352
1352
  contents.ServiceSoftwareOptions = deserializeAws_restJson1ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
1353
1353
  }
@@ -1382,7 +1382,7 @@ const deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandErr
1382
1382
  $fault: "client",
1383
1383
  $metadata: deserializeMetadata(output),
1384
1384
  });
1385
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1385
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1386
1386
  }
1387
1387
  };
1388
1388
  const deserializeAws_restJson1CreateElasticsearchDomainCommand = async (output, context) => {
@@ -1393,7 +1393,7 @@ const deserializeAws_restJson1CreateElasticsearchDomainCommand = async (output,
1393
1393
  $metadata: deserializeMetadata(output),
1394
1394
  DomainStatus: undefined,
1395
1395
  };
1396
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1396
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1397
1397
  if (data.DomainStatus !== undefined && data.DomainStatus !== null) {
1398
1398
  contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
1399
1399
  }
@@ -1437,7 +1437,7 @@ const deserializeAws_restJson1CreateElasticsearchDomainCommandError = async (out
1437
1437
  $fault: "client",
1438
1438
  $metadata: deserializeMetadata(output),
1439
1439
  });
1440
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1440
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1441
1441
  }
1442
1442
  };
1443
1443
  const deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand = async (output, context) => {
@@ -1452,15 +1452,15 @@ const deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand
1452
1452
  DestinationDomainInfo: undefined,
1453
1453
  SourceDomainInfo: undefined,
1454
1454
  };
1455
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1455
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1456
1456
  if (data.ConnectionAlias !== undefined && data.ConnectionAlias !== null) {
1457
- contents.ConnectionAlias = smithy_client_1.expectString(data.ConnectionAlias);
1457
+ contents.ConnectionAlias = (0, smithy_client_1.expectString)(data.ConnectionAlias);
1458
1458
  }
1459
1459
  if (data.ConnectionStatus !== undefined && data.ConnectionStatus !== null) {
1460
1460
  contents.ConnectionStatus = deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus(data.ConnectionStatus, context);
1461
1461
  }
1462
1462
  if (data.CrossClusterSearchConnectionId !== undefined && data.CrossClusterSearchConnectionId !== null) {
1463
- contents.CrossClusterSearchConnectionId = smithy_client_1.expectString(data.CrossClusterSearchConnectionId);
1463
+ contents.CrossClusterSearchConnectionId = (0, smithy_client_1.expectString)(data.CrossClusterSearchConnectionId);
1464
1464
  }
1465
1465
  if (data.DestinationDomainInfo !== undefined && data.DestinationDomainInfo !== null) {
1466
1466
  contents.DestinationDomainInfo = deserializeAws_restJson1DomainInformation(data.DestinationDomainInfo, context);
@@ -1499,7 +1499,7 @@ const deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommandE
1499
1499
  $fault: "client",
1500
1500
  $metadata: deserializeMetadata(output),
1501
1501
  });
1502
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1502
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1503
1503
  }
1504
1504
  };
1505
1505
  const deserializeAws_restJson1CreatePackageCommand = async (output, context) => {
@@ -1510,7 +1510,7 @@ const deserializeAws_restJson1CreatePackageCommand = async (output, context) =>
1510
1510
  $metadata: deserializeMetadata(output),
1511
1511
  PackageDetails: undefined,
1512
1512
  };
1513
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1513
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1514
1514
  if (data.PackageDetails !== undefined && data.PackageDetails !== null) {
1515
1515
  contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
1516
1516
  }
@@ -1554,7 +1554,7 @@ const deserializeAws_restJson1CreatePackageCommandError = async (output, context
1554
1554
  $fault: "client",
1555
1555
  $metadata: deserializeMetadata(output),
1556
1556
  });
1557
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1557
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1558
1558
  }
1559
1559
  };
1560
1560
  const deserializeAws_restJson1DeleteElasticsearchDomainCommand = async (output, context) => {
@@ -1565,7 +1565,7 @@ const deserializeAws_restJson1DeleteElasticsearchDomainCommand = async (output,
1565
1565
  $metadata: deserializeMetadata(output),
1566
1566
  DomainStatus: undefined,
1567
1567
  };
1568
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1568
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1569
1569
  if (data.DomainStatus !== undefined && data.DomainStatus !== null) {
1570
1570
  contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
1571
1571
  }
@@ -1600,7 +1600,7 @@ const deserializeAws_restJson1DeleteElasticsearchDomainCommandError = async (out
1600
1600
  $fault: "client",
1601
1601
  $metadata: deserializeMetadata(output),
1602
1602
  });
1603
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1603
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1604
1604
  }
1605
1605
  };
1606
1606
  const deserializeAws_restJson1DeleteElasticsearchServiceRoleCommand = async (output, context) => {
@@ -1639,7 +1639,7 @@ const deserializeAws_restJson1DeleteElasticsearchServiceRoleCommandError = async
1639
1639
  $fault: "client",
1640
1640
  $metadata: deserializeMetadata(output),
1641
1641
  });
1642
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1642
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1643
1643
  }
1644
1644
  };
1645
1645
  const deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand = async (output, context) => {
@@ -1650,7 +1650,7 @@ const deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand =
1650
1650
  $metadata: deserializeMetadata(output),
1651
1651
  CrossClusterSearchConnection: undefined,
1652
1652
  };
1653
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1653
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1654
1654
  if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
1655
1655
  contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1656
1656
  }
@@ -1679,7 +1679,7 @@ const deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommandEr
1679
1679
  $fault: "client",
1680
1680
  $metadata: deserializeMetadata(output),
1681
1681
  });
1682
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1682
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1683
1683
  }
1684
1684
  };
1685
1685
  const deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand = async (output, context) => {
@@ -1690,7 +1690,7 @@ const deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand
1690
1690
  $metadata: deserializeMetadata(output),
1691
1691
  CrossClusterSearchConnection: undefined,
1692
1692
  };
1693
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1693
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1694
1694
  if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
1695
1695
  contents.CrossClusterSearchConnection = deserializeAws_restJson1OutboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1696
1696
  }
@@ -1719,7 +1719,7 @@ const deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommandE
1719
1719
  $fault: "client",
1720
1720
  $metadata: deserializeMetadata(output),
1721
1721
  });
1722
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1722
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1723
1723
  }
1724
1724
  };
1725
1725
  const deserializeAws_restJson1DeletePackageCommand = async (output, context) => {
@@ -1730,7 +1730,7 @@ const deserializeAws_restJson1DeletePackageCommand = async (output, context) =>
1730
1730
  $metadata: deserializeMetadata(output),
1731
1731
  PackageDetails: undefined,
1732
1732
  };
1733
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1733
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1734
1734
  if (data.PackageDetails !== undefined && data.PackageDetails !== null) {
1735
1735
  contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
1736
1736
  }
@@ -1771,7 +1771,7 @@ const deserializeAws_restJson1DeletePackageCommandError = async (output, context
1771
1771
  $fault: "client",
1772
1772
  $metadata: deserializeMetadata(output),
1773
1773
  });
1774
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1774
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1775
1775
  }
1776
1776
  };
1777
1777
  const deserializeAws_restJson1DescribeDomainAutoTunesCommand = async (output, context) => {
@@ -1783,12 +1783,12 @@ const deserializeAws_restJson1DescribeDomainAutoTunesCommand = async (output, co
1783
1783
  AutoTunes: undefined,
1784
1784
  NextToken: undefined,
1785
1785
  };
1786
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1786
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1787
1787
  if (data.AutoTunes !== undefined && data.AutoTunes !== null) {
1788
1788
  contents.AutoTunes = deserializeAws_restJson1AutoTuneList(data.AutoTunes, context);
1789
1789
  }
1790
1790
  if (data.NextToken !== undefined && data.NextToken !== null) {
1791
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1791
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1792
1792
  }
1793
1793
  return Promise.resolve(contents);
1794
1794
  };
@@ -1821,7 +1821,7 @@ const deserializeAws_restJson1DescribeDomainAutoTunesCommandError = async (outpu
1821
1821
  $fault: "client",
1822
1822
  $metadata: deserializeMetadata(output),
1823
1823
  });
1824
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1824
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1825
1825
  }
1826
1826
  };
1827
1827
  const deserializeAws_restJson1DescribeDomainChangeProgressCommand = async (output, context) => {
@@ -1832,7 +1832,7 @@ const deserializeAws_restJson1DescribeDomainChangeProgressCommand = async (outpu
1832
1832
  $metadata: deserializeMetadata(output),
1833
1833
  ChangeProgressStatus: undefined,
1834
1834
  };
1835
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1835
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1836
1836
  if (data.ChangeProgressStatus !== undefined && data.ChangeProgressStatus !== null) {
1837
1837
  contents.ChangeProgressStatus = deserializeAws_restJson1ChangeProgressStatusDetails(data.ChangeProgressStatus, context);
1838
1838
  }
@@ -1867,7 +1867,7 @@ const deserializeAws_restJson1DescribeDomainChangeProgressCommandError = async (
1867
1867
  $fault: "client",
1868
1868
  $metadata: deserializeMetadata(output),
1869
1869
  });
1870
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1870
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1871
1871
  }
1872
1872
  };
1873
1873
  const deserializeAws_restJson1DescribeElasticsearchDomainCommand = async (output, context) => {
@@ -1878,7 +1878,7 @@ const deserializeAws_restJson1DescribeElasticsearchDomainCommand = async (output
1878
1878
  $metadata: deserializeMetadata(output),
1879
1879
  DomainStatus: undefined,
1880
1880
  };
1881
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1881
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1882
1882
  if (data.DomainStatus !== undefined && data.DomainStatus !== null) {
1883
1883
  contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
1884
1884
  }
@@ -1913,7 +1913,7 @@ const deserializeAws_restJson1DescribeElasticsearchDomainCommandError = async (o
1913
1913
  $fault: "client",
1914
1914
  $metadata: deserializeMetadata(output),
1915
1915
  });
1916
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1916
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1917
1917
  }
1918
1918
  };
1919
1919
  const deserializeAws_restJson1DescribeElasticsearchDomainConfigCommand = async (output, context) => {
@@ -1924,7 +1924,7 @@ const deserializeAws_restJson1DescribeElasticsearchDomainConfigCommand = async (
1924
1924
  $metadata: deserializeMetadata(output),
1925
1925
  DomainConfig: undefined,
1926
1926
  };
1927
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1927
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1928
1928
  if (data.DomainConfig !== undefined && data.DomainConfig !== null) {
1929
1929
  contents.DomainConfig = deserializeAws_restJson1ElasticsearchDomainConfig(data.DomainConfig, context);
1930
1930
  }
@@ -1959,7 +1959,7 @@ const deserializeAws_restJson1DescribeElasticsearchDomainConfigCommandError = as
1959
1959
  $fault: "client",
1960
1960
  $metadata: deserializeMetadata(output),
1961
1961
  });
1962
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1962
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1963
1963
  }
1964
1964
  };
1965
1965
  const deserializeAws_restJson1DescribeElasticsearchDomainsCommand = async (output, context) => {
@@ -1970,7 +1970,7 @@ const deserializeAws_restJson1DescribeElasticsearchDomainsCommand = async (outpu
1970
1970
  $metadata: deserializeMetadata(output),
1971
1971
  DomainStatusList: undefined,
1972
1972
  };
1973
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1973
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1974
1974
  if (data.DomainStatusList !== undefined && data.DomainStatusList !== null) {
1975
1975
  contents.DomainStatusList = deserializeAws_restJson1ElasticsearchDomainStatusList(data.DomainStatusList, context);
1976
1976
  }
@@ -2002,7 +2002,7 @@ const deserializeAws_restJson1DescribeElasticsearchDomainsCommandError = async (
2002
2002
  $fault: "client",
2003
2003
  $metadata: deserializeMetadata(output),
2004
2004
  });
2005
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2005
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2006
2006
  }
2007
2007
  };
2008
2008
  const deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = async (output, context) => {
@@ -2013,7 +2013,7 @@ const deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = a
2013
2013
  $metadata: deserializeMetadata(output),
2014
2014
  LimitsByRole: undefined,
2015
2015
  };
2016
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2016
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2017
2017
  if (data.LimitsByRole !== undefined && data.LimitsByRole !== null) {
2018
2018
  contents.LimitsByRole = deserializeAws_restJson1LimitsByRole(data.LimitsByRole, context);
2019
2019
  }
@@ -2054,7 +2054,7 @@ const deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommandErro
2054
2054
  $fault: "client",
2055
2055
  $metadata: deserializeMetadata(output),
2056
2056
  });
2057
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2057
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2058
2058
  }
2059
2059
  };
2060
2060
  const deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommand = async (output, context) => {
@@ -2066,12 +2066,12 @@ const deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsComman
2066
2066
  CrossClusterSearchConnections: undefined,
2067
2067
  NextToken: undefined,
2068
2068
  };
2069
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2069
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2070
2070
  if (data.CrossClusterSearchConnections !== undefined && data.CrossClusterSearchConnections !== null) {
2071
2071
  contents.CrossClusterSearchConnections = deserializeAws_restJson1InboundCrossClusterSearchConnections(data.CrossClusterSearchConnections, context);
2072
2072
  }
2073
2073
  if (data.NextToken !== undefined && data.NextToken !== null) {
2074
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2074
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2075
2075
  }
2076
2076
  return Promise.resolve(contents);
2077
2077
  };
@@ -2098,7 +2098,7 @@ const deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsComman
2098
2098
  $fault: "client",
2099
2099
  $metadata: deserializeMetadata(output),
2100
2100
  });
2101
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2101
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2102
2102
  }
2103
2103
  };
2104
2104
  const deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand = async (output, context) => {
@@ -2110,12 +2110,12 @@ const deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsComma
2110
2110
  CrossClusterSearchConnections: undefined,
2111
2111
  NextToken: undefined,
2112
2112
  };
2113
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2113
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2114
2114
  if (data.CrossClusterSearchConnections !== undefined && data.CrossClusterSearchConnections !== null) {
2115
2115
  contents.CrossClusterSearchConnections = deserializeAws_restJson1OutboundCrossClusterSearchConnections(data.CrossClusterSearchConnections, context);
2116
2116
  }
2117
2117
  if (data.NextToken !== undefined && data.NextToken !== null) {
2118
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2118
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2119
2119
  }
2120
2120
  return Promise.resolve(contents);
2121
2121
  };
@@ -2142,7 +2142,7 @@ const deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsComma
2142
2142
  $fault: "client",
2143
2143
  $metadata: deserializeMetadata(output),
2144
2144
  });
2145
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2145
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2146
2146
  }
2147
2147
  };
2148
2148
  const deserializeAws_restJson1DescribePackagesCommand = async (output, context) => {
@@ -2154,9 +2154,9 @@ const deserializeAws_restJson1DescribePackagesCommand = async (output, context)
2154
2154
  NextToken: undefined,
2155
2155
  PackageDetailsList: undefined,
2156
2156
  };
2157
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2157
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2158
2158
  if (data.NextToken !== undefined && data.NextToken !== null) {
2159
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2159
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2160
2160
  }
2161
2161
  if (data.PackageDetailsList !== undefined && data.PackageDetailsList !== null) {
2162
2162
  contents.PackageDetailsList = deserializeAws_restJson1PackageDetailsList(data.PackageDetailsList, context);
@@ -2195,7 +2195,7 @@ const deserializeAws_restJson1DescribePackagesCommandError = async (output, cont
2195
2195
  $fault: "client",
2196
2196
  $metadata: deserializeMetadata(output),
2197
2197
  });
2198
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2198
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2199
2199
  }
2200
2200
  };
2201
2201
  const deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommand = async (output, context) => {
@@ -2207,9 +2207,9 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsComm
2207
2207
  NextToken: undefined,
2208
2208
  ReservedElasticsearchInstanceOfferings: undefined,
2209
2209
  };
2210
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2210
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2211
2211
  if (data.NextToken !== undefined && data.NextToken !== null) {
2212
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2212
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2213
2213
  }
2214
2214
  if (data.ReservedElasticsearchInstanceOfferings !== undefined &&
2215
2215
  data.ReservedElasticsearchInstanceOfferings !== null) {
@@ -2246,7 +2246,7 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsComm
2246
2246
  $fault: "client",
2247
2247
  $metadata: deserializeMetadata(output),
2248
2248
  });
2249
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2249
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2250
2250
  }
2251
2251
  };
2252
2252
  const deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = async (output, context) => {
@@ -2258,9 +2258,9 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = as
2258
2258
  NextToken: undefined,
2259
2259
  ReservedElasticsearchInstances: undefined,
2260
2260
  };
2261
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2261
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2262
2262
  if (data.NextToken !== undefined && data.NextToken !== null) {
2263
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2263
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2264
2264
  }
2265
2265
  if (data.ReservedElasticsearchInstances !== undefined && data.ReservedElasticsearchInstances !== null) {
2266
2266
  contents.ReservedElasticsearchInstances = deserializeAws_restJson1ReservedElasticsearchInstanceList(data.ReservedElasticsearchInstances, context);
@@ -2296,7 +2296,7 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError
2296
2296
  $fault: "client",
2297
2297
  $metadata: deserializeMetadata(output),
2298
2298
  });
2299
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2299
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2300
2300
  }
2301
2301
  };
2302
2302
  const deserializeAws_restJson1DissociatePackageCommand = async (output, context) => {
@@ -2307,7 +2307,7 @@ const deserializeAws_restJson1DissociatePackageCommand = async (output, context)
2307
2307
  $metadata: deserializeMetadata(output),
2308
2308
  DomainPackageDetails: undefined,
2309
2309
  };
2310
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2310
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2311
2311
  if (data.DomainPackageDetails !== undefined && data.DomainPackageDetails !== null) {
2312
2312
  contents.DomainPackageDetails = deserializeAws_restJson1DomainPackageDetails(data.DomainPackageDetails, context);
2313
2313
  }
@@ -2348,7 +2348,7 @@ const deserializeAws_restJson1DissociatePackageCommandError = async (output, con
2348
2348
  $fault: "client",
2349
2349
  $metadata: deserializeMetadata(output),
2350
2350
  });
2351
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2351
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2352
2352
  }
2353
2353
  };
2354
2354
  const deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = async (output, context) => {
@@ -2359,7 +2359,7 @@ const deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = async
2359
2359
  $metadata: deserializeMetadata(output),
2360
2360
  CompatibleElasticsearchVersions: undefined,
2361
2361
  };
2362
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2362
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2363
2363
  if (data.CompatibleElasticsearchVersions !== undefined && data.CompatibleElasticsearchVersions !== null) {
2364
2364
  contents.CompatibleElasticsearchVersions = deserializeAws_restJson1CompatibleElasticsearchVersionsList(data.CompatibleElasticsearchVersions, context);
2365
2365
  }
@@ -2397,7 +2397,7 @@ const deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommandError = a
2397
2397
  $fault: "client",
2398
2398
  $metadata: deserializeMetadata(output),
2399
2399
  });
2400
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2400
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2401
2401
  }
2402
2402
  };
2403
2403
  const deserializeAws_restJson1GetPackageVersionHistoryCommand = async (output, context) => {
@@ -2410,12 +2410,12 @@ const deserializeAws_restJson1GetPackageVersionHistoryCommand = async (output, c
2410
2410
  PackageID: undefined,
2411
2411
  PackageVersionHistoryList: undefined,
2412
2412
  };
2413
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2413
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2414
2414
  if (data.NextToken !== undefined && data.NextToken !== null) {
2415
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2415
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2416
2416
  }
2417
2417
  if (data.PackageID !== undefined && data.PackageID !== null) {
2418
- contents.PackageID = smithy_client_1.expectString(data.PackageID);
2418
+ contents.PackageID = (0, smithy_client_1.expectString)(data.PackageID);
2419
2419
  }
2420
2420
  if (data.PackageVersionHistoryList !== undefined && data.PackageVersionHistoryList !== null) {
2421
2421
  contents.PackageVersionHistoryList = deserializeAws_restJson1PackageVersionHistoryList(data.PackageVersionHistoryList, context);
@@ -2454,7 +2454,7 @@ const deserializeAws_restJson1GetPackageVersionHistoryCommandError = async (outp
2454
2454
  $fault: "client",
2455
2455
  $metadata: deserializeMetadata(output),
2456
2456
  });
2457
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2457
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2458
2458
  }
2459
2459
  };
2460
2460
  const deserializeAws_restJson1GetUpgradeHistoryCommand = async (output, context) => {
@@ -2466,9 +2466,9 @@ const deserializeAws_restJson1GetUpgradeHistoryCommand = async (output, context)
2466
2466
  NextToken: undefined,
2467
2467
  UpgradeHistories: undefined,
2468
2468
  };
2469
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2469
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2470
2470
  if (data.NextToken !== undefined && data.NextToken !== null) {
2471
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2471
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2472
2472
  }
2473
2473
  if (data.UpgradeHistories !== undefined && data.UpgradeHistories !== null) {
2474
2474
  contents.UpgradeHistories = deserializeAws_restJson1UpgradeHistoryList(data.UpgradeHistories, context);
@@ -2507,7 +2507,7 @@ const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, con
2507
2507
  $fault: "client",
2508
2508
  $metadata: deserializeMetadata(output),
2509
2509
  });
2510
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2510
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2511
2511
  }
2512
2512
  };
2513
2513
  const deserializeAws_restJson1GetUpgradeStatusCommand = async (output, context) => {
@@ -2520,15 +2520,15 @@ const deserializeAws_restJson1GetUpgradeStatusCommand = async (output, context)
2520
2520
  UpgradeName: undefined,
2521
2521
  UpgradeStep: undefined,
2522
2522
  };
2523
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2523
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2524
2524
  if (data.StepStatus !== undefined && data.StepStatus !== null) {
2525
- contents.StepStatus = smithy_client_1.expectString(data.StepStatus);
2525
+ contents.StepStatus = (0, smithy_client_1.expectString)(data.StepStatus);
2526
2526
  }
2527
2527
  if (data.UpgradeName !== undefined && data.UpgradeName !== null) {
2528
- contents.UpgradeName = smithy_client_1.expectString(data.UpgradeName);
2528
+ contents.UpgradeName = (0, smithy_client_1.expectString)(data.UpgradeName);
2529
2529
  }
2530
2530
  if (data.UpgradeStep !== undefined && data.UpgradeStep !== null) {
2531
- contents.UpgradeStep = smithy_client_1.expectString(data.UpgradeStep);
2531
+ contents.UpgradeStep = (0, smithy_client_1.expectString)(data.UpgradeStep);
2532
2532
  }
2533
2533
  return Promise.resolve(contents);
2534
2534
  };
@@ -2564,7 +2564,7 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
2564
2564
  $fault: "client",
2565
2565
  $metadata: deserializeMetadata(output),
2566
2566
  });
2567
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2567
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2568
2568
  }
2569
2569
  };
2570
2570
  const deserializeAws_restJson1ListDomainNamesCommand = async (output, context) => {
@@ -2575,7 +2575,7 @@ const deserializeAws_restJson1ListDomainNamesCommand = async (output, context) =
2575
2575
  $metadata: deserializeMetadata(output),
2576
2576
  DomainNames: undefined,
2577
2577
  };
2578
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2578
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2579
2579
  if (data.DomainNames !== undefined && data.DomainNames !== null) {
2580
2580
  contents.DomainNames = deserializeAws_restJson1DomainInfoList(data.DomainNames, context);
2581
2581
  }
@@ -2604,7 +2604,7 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
2604
2604
  $fault: "client",
2605
2605
  $metadata: deserializeMetadata(output),
2606
2606
  });
2607
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2607
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2608
2608
  }
2609
2609
  };
2610
2610
  const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, context) => {
@@ -2616,12 +2616,12 @@ const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, cont
2616
2616
  DomainPackageDetailsList: undefined,
2617
2617
  NextToken: undefined,
2618
2618
  };
2619
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2619
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2620
2620
  if (data.DomainPackageDetailsList !== undefined && data.DomainPackageDetailsList !== null) {
2621
2621
  contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2622
2622
  }
2623
2623
  if (data.NextToken !== undefined && data.NextToken !== null) {
2624
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2624
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2625
2625
  }
2626
2626
  return Promise.resolve(contents);
2627
2627
  };
@@ -2657,7 +2657,7 @@ const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output,
2657
2657
  $fault: "client",
2658
2658
  $metadata: deserializeMetadata(output),
2659
2659
  });
2660
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2660
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2661
2661
  }
2662
2662
  };
2663
2663
  const deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = async (output, context) => {
@@ -2669,12 +2669,12 @@ const deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = async (out
2669
2669
  ElasticsearchInstanceTypes: undefined,
2670
2670
  NextToken: undefined,
2671
2671
  };
2672
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2672
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2673
2673
  if (data.ElasticsearchInstanceTypes !== undefined && data.ElasticsearchInstanceTypes !== null) {
2674
2674
  contents.ElasticsearchInstanceTypes = deserializeAws_restJson1ElasticsearchInstanceTypeList(data.ElasticsearchInstanceTypes, context);
2675
2675
  }
2676
2676
  if (data.NextToken !== undefined && data.NextToken !== null) {
2677
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2677
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2678
2678
  }
2679
2679
  return Promise.resolve(contents);
2680
2680
  };
@@ -2707,7 +2707,7 @@ const deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = async
2707
2707
  $fault: "client",
2708
2708
  $metadata: deserializeMetadata(output),
2709
2709
  });
2710
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2710
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2711
2711
  }
2712
2712
  };
2713
2713
  const deserializeAws_restJson1ListElasticsearchVersionsCommand = async (output, context) => {
@@ -2719,12 +2719,12 @@ const deserializeAws_restJson1ListElasticsearchVersionsCommand = async (output,
2719
2719
  ElasticsearchVersions: undefined,
2720
2720
  NextToken: undefined,
2721
2721
  };
2722
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2722
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2723
2723
  if (data.ElasticsearchVersions !== undefined && data.ElasticsearchVersions !== null) {
2724
2724
  contents.ElasticsearchVersions = deserializeAws_restJson1ElasticsearchVersionList(data.ElasticsearchVersions, context);
2725
2725
  }
2726
2726
  if (data.NextToken !== undefined && data.NextToken !== null) {
2727
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2727
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2728
2728
  }
2729
2729
  return Promise.resolve(contents);
2730
2730
  };
@@ -2757,7 +2757,7 @@ const deserializeAws_restJson1ListElasticsearchVersionsCommandError = async (out
2757
2757
  $fault: "client",
2758
2758
  $metadata: deserializeMetadata(output),
2759
2759
  });
2760
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2760
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2761
2761
  }
2762
2762
  };
2763
2763
  const deserializeAws_restJson1ListPackagesForDomainCommand = async (output, context) => {
@@ -2769,12 +2769,12 @@ const deserializeAws_restJson1ListPackagesForDomainCommand = async (output, cont
2769
2769
  DomainPackageDetailsList: undefined,
2770
2770
  NextToken: undefined,
2771
2771
  };
2772
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2772
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2773
2773
  if (data.DomainPackageDetailsList !== undefined && data.DomainPackageDetailsList !== null) {
2774
2774
  contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2775
2775
  }
2776
2776
  if (data.NextToken !== undefined && data.NextToken !== null) {
2777
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2777
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2778
2778
  }
2779
2779
  return Promise.resolve(contents);
2780
2780
  };
@@ -2810,7 +2810,7 @@ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output,
2810
2810
  $fault: "client",
2811
2811
  $metadata: deserializeMetadata(output),
2812
2812
  });
2813
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2813
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2814
2814
  }
2815
2815
  };
2816
2816
  const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
@@ -2821,7 +2821,7 @@ const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
2821
2821
  $metadata: deserializeMetadata(output),
2822
2822
  TagList: undefined,
2823
2823
  };
2824
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2824
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2825
2825
  if (data.TagList !== undefined && data.TagList !== null) {
2826
2826
  contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
2827
2827
  }
@@ -2856,7 +2856,7 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
2856
2856
  $fault: "client",
2857
2857
  $metadata: deserializeMetadata(output),
2858
2858
  });
2859
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2859
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2860
2860
  }
2861
2861
  };
2862
2862
  const deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand = async (output, context) => {
@@ -2868,12 +2868,12 @@ const deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingComma
2868
2868
  ReservationName: undefined,
2869
2869
  ReservedElasticsearchInstanceId: undefined,
2870
2870
  };
2871
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2871
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2872
2872
  if (data.ReservationName !== undefined && data.ReservationName !== null) {
2873
- contents.ReservationName = smithy_client_1.expectString(data.ReservationName);
2873
+ contents.ReservationName = (0, smithy_client_1.expectString)(data.ReservationName);
2874
2874
  }
2875
2875
  if (data.ReservedElasticsearchInstanceId !== undefined && data.ReservedElasticsearchInstanceId !== null) {
2876
- contents.ReservedElasticsearchInstanceId = smithy_client_1.expectString(data.ReservedElasticsearchInstanceId);
2876
+ contents.ReservedElasticsearchInstanceId = (0, smithy_client_1.expectString)(data.ReservedElasticsearchInstanceId);
2877
2877
  }
2878
2878
  return Promise.resolve(contents);
2879
2879
  };
@@ -2912,7 +2912,7 @@ const deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingComma
2912
2912
  $fault: "client",
2913
2913
  $metadata: deserializeMetadata(output),
2914
2914
  });
2915
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2915
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2916
2916
  }
2917
2917
  };
2918
2918
  const deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand = async (output, context) => {
@@ -2923,7 +2923,7 @@ const deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand =
2923
2923
  $metadata: deserializeMetadata(output),
2924
2924
  CrossClusterSearchConnection: undefined,
2925
2925
  };
2926
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2926
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2927
2927
  if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
2928
2928
  contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
2929
2929
  }
@@ -2952,7 +2952,7 @@ const deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommandEr
2952
2952
  $fault: "client",
2953
2953
  $metadata: deserializeMetadata(output),
2954
2954
  });
2955
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2955
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2956
2956
  }
2957
2957
  };
2958
2958
  const deserializeAws_restJson1RemoveTagsCommand = async (output, context) => {
@@ -2991,7 +2991,7 @@ const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) =
2991
2991
  $fault: "client",
2992
2992
  $metadata: deserializeMetadata(output),
2993
2993
  });
2994
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2994
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2995
2995
  }
2996
2996
  };
2997
2997
  const deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = async (output, context) => {
@@ -3002,7 +3002,7 @@ const deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = a
3002
3002
  $metadata: deserializeMetadata(output),
3003
3003
  ServiceSoftwareOptions: undefined,
3004
3004
  };
3005
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3005
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3006
3006
  if (data.ServiceSoftwareOptions !== undefined && data.ServiceSoftwareOptions !== null) {
3007
3007
  contents.ServiceSoftwareOptions = deserializeAws_restJson1ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
3008
3008
  }
@@ -3037,7 +3037,7 @@ const deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandErro
3037
3037
  $fault: "client",
3038
3038
  $metadata: deserializeMetadata(output),
3039
3039
  });
3040
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3040
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3041
3041
  }
3042
3042
  };
3043
3043
  const deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = async (output, context) => {
@@ -3049,7 +3049,7 @@ const deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = async (ou
3049
3049
  DomainConfig: undefined,
3050
3050
  DryRunResults: undefined,
3051
3051
  };
3052
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3052
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3053
3053
  if (data.DomainConfig !== undefined && data.DomainConfig !== null) {
3054
3054
  contents.DomainConfig = deserializeAws_restJson1ElasticsearchDomainConfig(data.DomainConfig, context);
3055
3055
  }
@@ -3093,7 +3093,7 @@ const deserializeAws_restJson1UpdateElasticsearchDomainConfigCommandError = asyn
3093
3093
  $fault: "client",
3094
3094
  $metadata: deserializeMetadata(output),
3095
3095
  });
3096
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3096
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3097
3097
  }
3098
3098
  };
3099
3099
  const deserializeAws_restJson1UpdatePackageCommand = async (output, context) => {
@@ -3104,7 +3104,7 @@ const deserializeAws_restJson1UpdatePackageCommand = async (output, context) =>
3104
3104
  $metadata: deserializeMetadata(output),
3105
3105
  PackageDetails: undefined,
3106
3106
  };
3107
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3107
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3108
3108
  if (data.PackageDetails !== undefined && data.PackageDetails !== null) {
3109
3109
  contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
3110
3110
  }
@@ -3145,7 +3145,7 @@ const deserializeAws_restJson1UpdatePackageCommandError = async (output, context
3145
3145
  $fault: "client",
3146
3146
  $metadata: deserializeMetadata(output),
3147
3147
  });
3148
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3148
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3149
3149
  }
3150
3150
  };
3151
3151
  const deserializeAws_restJson1UpgradeElasticsearchDomainCommand = async (output, context) => {
@@ -3159,18 +3159,18 @@ const deserializeAws_restJson1UpgradeElasticsearchDomainCommand = async (output,
3159
3159
  PerformCheckOnly: undefined,
3160
3160
  TargetVersion: undefined,
3161
3161
  };
3162
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3162
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3163
3163
  if (data.ChangeProgressDetails !== undefined && data.ChangeProgressDetails !== null) {
3164
3164
  contents.ChangeProgressDetails = deserializeAws_restJson1ChangeProgressDetails(data.ChangeProgressDetails, context);
3165
3165
  }
3166
3166
  if (data.DomainName !== undefined && data.DomainName !== null) {
3167
- contents.DomainName = smithy_client_1.expectString(data.DomainName);
3167
+ contents.DomainName = (0, smithy_client_1.expectString)(data.DomainName);
3168
3168
  }
3169
3169
  if (data.PerformCheckOnly !== undefined && data.PerformCheckOnly !== null) {
3170
- contents.PerformCheckOnly = smithy_client_1.expectBoolean(data.PerformCheckOnly);
3170
+ contents.PerformCheckOnly = (0, smithy_client_1.expectBoolean)(data.PerformCheckOnly);
3171
3171
  }
3172
3172
  if (data.TargetVersion !== undefined && data.TargetVersion !== null) {
3173
- contents.TargetVersion = smithy_client_1.expectString(data.TargetVersion);
3173
+ contents.TargetVersion = (0, smithy_client_1.expectString)(data.TargetVersion);
3174
3174
  }
3175
3175
  return Promise.resolve(contents);
3176
3176
  };
@@ -3209,140 +3209,140 @@ const deserializeAws_restJson1UpgradeElasticsearchDomainCommandError = async (ou
3209
3209
  $fault: "client",
3210
3210
  $metadata: deserializeMetadata(output),
3211
3211
  });
3212
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3212
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3213
3213
  }
3214
3214
  };
3215
3215
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
3216
3216
  const contents = {};
3217
3217
  const data = parsedOutput.body;
3218
3218
  if (data.message !== undefined && data.message !== null) {
3219
- contents.message = smithy_client_1.expectString(data.message);
3219
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3220
3220
  }
3221
3221
  const exception = new models_0_1.AccessDeniedException({
3222
3222
  $metadata: deserializeMetadata(parsedOutput),
3223
3223
  ...contents,
3224
3224
  });
3225
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3225
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3226
3226
  };
3227
3227
  const deserializeAws_restJson1BaseExceptionResponse = async (parsedOutput, context) => {
3228
3228
  const contents = {};
3229
3229
  const data = parsedOutput.body;
3230
3230
  if (data.message !== undefined && data.message !== null) {
3231
- contents.message = smithy_client_1.expectString(data.message);
3231
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3232
3232
  }
3233
3233
  const exception = new models_0_1.BaseException({
3234
3234
  $metadata: deserializeMetadata(parsedOutput),
3235
3235
  ...contents,
3236
3236
  });
3237
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3237
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3238
3238
  };
3239
3239
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
3240
3240
  const contents = {};
3241
3241
  const data = parsedOutput.body;
3242
3242
  if (data.message !== undefined && data.message !== null) {
3243
- contents.message = smithy_client_1.expectString(data.message);
3243
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3244
3244
  }
3245
3245
  const exception = new models_0_1.ConflictException({
3246
3246
  $metadata: deserializeMetadata(parsedOutput),
3247
3247
  ...contents,
3248
3248
  });
3249
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3249
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3250
3250
  };
3251
3251
  const deserializeAws_restJson1DisabledOperationExceptionResponse = async (parsedOutput, context) => {
3252
3252
  const contents = {};
3253
3253
  const data = parsedOutput.body;
3254
3254
  if (data.message !== undefined && data.message !== null) {
3255
- contents.message = smithy_client_1.expectString(data.message);
3255
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3256
3256
  }
3257
3257
  const exception = new models_0_1.DisabledOperationException({
3258
3258
  $metadata: deserializeMetadata(parsedOutput),
3259
3259
  ...contents,
3260
3260
  });
3261
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3261
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3262
3262
  };
3263
3263
  const deserializeAws_restJson1InternalExceptionResponse = async (parsedOutput, context) => {
3264
3264
  const contents = {};
3265
3265
  const data = parsedOutput.body;
3266
3266
  if (data.message !== undefined && data.message !== null) {
3267
- contents.message = smithy_client_1.expectString(data.message);
3267
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3268
3268
  }
3269
3269
  const exception = new models_0_1.InternalException({
3270
3270
  $metadata: deserializeMetadata(parsedOutput),
3271
3271
  ...contents,
3272
3272
  });
3273
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3273
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3274
3274
  };
3275
3275
  const deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = async (parsedOutput, context) => {
3276
3276
  const contents = {};
3277
3277
  const data = parsedOutput.body;
3278
3278
  if (data.message !== undefined && data.message !== null) {
3279
- contents.message = smithy_client_1.expectString(data.message);
3279
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3280
3280
  }
3281
3281
  const exception = new models_0_1.InvalidPaginationTokenException({
3282
3282
  $metadata: deserializeMetadata(parsedOutput),
3283
3283
  ...contents,
3284
3284
  });
3285
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3285
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3286
3286
  };
3287
3287
  const deserializeAws_restJson1InvalidTypeExceptionResponse = async (parsedOutput, context) => {
3288
3288
  const contents = {};
3289
3289
  const data = parsedOutput.body;
3290
3290
  if (data.message !== undefined && data.message !== null) {
3291
- contents.message = smithy_client_1.expectString(data.message);
3291
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3292
3292
  }
3293
3293
  const exception = new models_0_1.InvalidTypeException({
3294
3294
  $metadata: deserializeMetadata(parsedOutput),
3295
3295
  ...contents,
3296
3296
  });
3297
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3297
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3298
3298
  };
3299
3299
  const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
3300
3300
  const contents = {};
3301
3301
  const data = parsedOutput.body;
3302
3302
  if (data.message !== undefined && data.message !== null) {
3303
- contents.message = smithy_client_1.expectString(data.message);
3303
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3304
3304
  }
3305
3305
  const exception = new models_0_1.LimitExceededException({
3306
3306
  $metadata: deserializeMetadata(parsedOutput),
3307
3307
  ...contents,
3308
3308
  });
3309
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3309
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3310
3310
  };
3311
3311
  const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
3312
3312
  const contents = {};
3313
3313
  const data = parsedOutput.body;
3314
3314
  if (data.message !== undefined && data.message !== null) {
3315
- contents.message = smithy_client_1.expectString(data.message);
3315
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3316
3316
  }
3317
3317
  const exception = new models_0_1.ResourceAlreadyExistsException({
3318
3318
  $metadata: deserializeMetadata(parsedOutput),
3319
3319
  ...contents,
3320
3320
  });
3321
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3321
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3322
3322
  };
3323
3323
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
3324
3324
  const contents = {};
3325
3325
  const data = parsedOutput.body;
3326
3326
  if (data.message !== undefined && data.message !== null) {
3327
- contents.message = smithy_client_1.expectString(data.message);
3327
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3328
3328
  }
3329
3329
  const exception = new models_0_1.ResourceNotFoundException({
3330
3330
  $metadata: deserializeMetadata(parsedOutput),
3331
3331
  ...contents,
3332
3332
  });
3333
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3333
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3334
3334
  };
3335
3335
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
3336
3336
  const contents = {};
3337
3337
  const data = parsedOutput.body;
3338
3338
  if (data.message !== undefined && data.message !== null) {
3339
- contents.message = smithy_client_1.expectString(data.message);
3339
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3340
3340
  }
3341
3341
  const exception = new models_0_1.ValidationException({
3342
3342
  $metadata: deserializeMetadata(parsedOutput),
3343
3343
  ...contents,
3344
3344
  });
3345
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3345
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3346
3346
  };
3347
3347
  const serializeAws_restJson1AdvancedOptions = (input, context) => {
3348
3348
  return Object.entries(input).reduce((acc, [key, value]) => {
@@ -3666,7 +3666,7 @@ const serializeAws_restJson1ZoneAwarenessConfig = (input, context) => {
3666
3666
  };
3667
3667
  const deserializeAws_restJson1AccessPoliciesStatus = (output, context) => {
3668
3668
  return {
3669
- Options: smithy_client_1.expectString(output.Options),
3669
+ Options: (0, smithy_client_1.expectString)(output.Options),
3670
3670
  Status: output.Status !== undefined && output.Status !== null
3671
3671
  ? deserializeAws_restJson1OptionStatus(output.Status, context)
3672
3672
  : undefined,
@@ -3674,7 +3674,7 @@ const deserializeAws_restJson1AccessPoliciesStatus = (output, context) => {
3674
3674
  };
3675
3675
  const deserializeAws_restJson1AdditionalLimit = (output, context) => {
3676
3676
  return {
3677
- LimitName: smithy_client_1.expectString(output.LimitName),
3677
+ LimitName: (0, smithy_client_1.expectString)(output.LimitName),
3678
3678
  LimitValues: output.LimitValues !== undefined && output.LimitValues !== null
3679
3679
  ? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
3680
3680
  : undefined,
@@ -3698,7 +3698,7 @@ const deserializeAws_restJson1AdvancedOptions = (output, context) => {
3698
3698
  }
3699
3699
  return {
3700
3700
  ...acc,
3701
- [key]: smithy_client_1.expectString(value),
3701
+ [key]: (0, smithy_client_1.expectString)(value),
3702
3702
  };
3703
3703
  }, {});
3704
3704
  };
@@ -3715,11 +3715,11 @@ const deserializeAws_restJson1AdvancedOptionsStatus = (output, context) => {
3715
3715
  const deserializeAws_restJson1AdvancedSecurityOptions = (output, context) => {
3716
3716
  return {
3717
3717
  AnonymousAuthDisableDate: output.AnonymousAuthDisableDate !== undefined && output.AnonymousAuthDisableDate !== null
3718
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.AnonymousAuthDisableDate)))
3718
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AnonymousAuthDisableDate)))
3719
3719
  : undefined,
3720
- AnonymousAuthEnabled: smithy_client_1.expectBoolean(output.AnonymousAuthEnabled),
3721
- Enabled: smithy_client_1.expectBoolean(output.Enabled),
3722
- InternalUserDatabaseEnabled: smithy_client_1.expectBoolean(output.InternalUserDatabaseEnabled),
3720
+ AnonymousAuthEnabled: (0, smithy_client_1.expectBoolean)(output.AnonymousAuthEnabled),
3721
+ Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
3722
+ InternalUserDatabaseEnabled: (0, smithy_client_1.expectBoolean)(output.InternalUserDatabaseEnabled),
3723
3723
  SAMLOptions: output.SAMLOptions !== undefined && output.SAMLOptions !== null
3724
3724
  ? deserializeAws_restJson1SAMLOptionsOutput(output.SAMLOptions, context)
3725
3725
  : undefined,
@@ -3740,7 +3740,7 @@ const deserializeAws_restJson1AutoTune = (output, context) => {
3740
3740
  AutoTuneDetails: output.AutoTuneDetails !== undefined && output.AutoTuneDetails !== null
3741
3741
  ? deserializeAws_restJson1AutoTuneDetails(output.AutoTuneDetails, context)
3742
3742
  : undefined,
3743
- AutoTuneType: smithy_client_1.expectString(output.AutoTuneType),
3743
+ AutoTuneType: (0, smithy_client_1.expectString)(output.AutoTuneType),
3744
3744
  };
3745
3745
  };
3746
3746
  const deserializeAws_restJson1AutoTuneDetails = (output, context) => {
@@ -3763,12 +3763,12 @@ const deserializeAws_restJson1AutoTuneList = (output, context) => {
3763
3763
  };
3764
3764
  const deserializeAws_restJson1AutoTuneMaintenanceSchedule = (output, context) => {
3765
3765
  return {
3766
- CronExpressionForRecurrence: smithy_client_1.expectString(output.CronExpressionForRecurrence),
3766
+ CronExpressionForRecurrence: (0, smithy_client_1.expectString)(output.CronExpressionForRecurrence),
3767
3767
  Duration: output.Duration !== undefined && output.Duration !== null
3768
3768
  ? deserializeAws_restJson1Duration(output.Duration, context)
3769
3769
  : undefined,
3770
3770
  StartAt: output.StartAt !== undefined && output.StartAt !== null
3771
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartAt)))
3771
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartAt)))
3772
3772
  : undefined,
3773
3773
  };
3774
3774
  };
@@ -3785,17 +3785,17 @@ const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = (output, context
3785
3785
  };
3786
3786
  const deserializeAws_restJson1AutoTuneOptions = (output, context) => {
3787
3787
  return {
3788
- DesiredState: smithy_client_1.expectString(output.DesiredState),
3788
+ DesiredState: (0, smithy_client_1.expectString)(output.DesiredState),
3789
3789
  MaintenanceSchedules: output.MaintenanceSchedules !== undefined && output.MaintenanceSchedules !== null
3790
3790
  ? deserializeAws_restJson1AutoTuneMaintenanceScheduleList(output.MaintenanceSchedules, context)
3791
3791
  : undefined,
3792
- RollbackOnDisable: smithy_client_1.expectString(output.RollbackOnDisable),
3792
+ RollbackOnDisable: (0, smithy_client_1.expectString)(output.RollbackOnDisable),
3793
3793
  };
3794
3794
  };
3795
3795
  const deserializeAws_restJson1AutoTuneOptionsOutput = (output, context) => {
3796
3796
  return {
3797
- ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
3798
- State: smithy_client_1.expectString(output.State),
3797
+ ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
3798
+ State: (0, smithy_client_1.expectString)(output.State),
3799
3799
  };
3800
3800
  };
3801
3801
  const deserializeAws_restJson1AutoTuneOptionsStatus = (output, context) => {
@@ -3811,31 +3811,31 @@ const deserializeAws_restJson1AutoTuneOptionsStatus = (output, context) => {
3811
3811
  const deserializeAws_restJson1AutoTuneStatus = (output, context) => {
3812
3812
  return {
3813
3813
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
3814
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
3814
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
3815
3815
  : undefined,
3816
- ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
3817
- PendingDeletion: smithy_client_1.expectBoolean(output.PendingDeletion),
3818
- State: smithy_client_1.expectString(output.State),
3816
+ ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
3817
+ PendingDeletion: (0, smithy_client_1.expectBoolean)(output.PendingDeletion),
3818
+ State: (0, smithy_client_1.expectString)(output.State),
3819
3819
  UpdateDate: output.UpdateDate !== undefined && output.UpdateDate !== null
3820
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdateDate)))
3820
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateDate)))
3821
3821
  : undefined,
3822
- UpdateVersion: smithy_client_1.expectInt32(output.UpdateVersion),
3822
+ UpdateVersion: (0, smithy_client_1.expectInt32)(output.UpdateVersion),
3823
3823
  };
3824
3824
  };
3825
3825
  const deserializeAws_restJson1ChangeProgressDetails = (output, context) => {
3826
3826
  return {
3827
- ChangeId: smithy_client_1.expectString(output.ChangeId),
3828
- Message: smithy_client_1.expectString(output.Message),
3827
+ ChangeId: (0, smithy_client_1.expectString)(output.ChangeId),
3828
+ Message: (0, smithy_client_1.expectString)(output.Message),
3829
3829
  };
3830
3830
  };
3831
3831
  const deserializeAws_restJson1ChangeProgressStage = (output, context) => {
3832
3832
  return {
3833
- Description: smithy_client_1.expectString(output.Description),
3833
+ Description: (0, smithy_client_1.expectString)(output.Description),
3834
3834
  LastUpdated: output.LastUpdated !== undefined && output.LastUpdated !== null
3835
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdated)))
3835
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
3836
3836
  : undefined,
3837
- Name: smithy_client_1.expectString(output.Name),
3838
- Status: smithy_client_1.expectString(output.Status),
3837
+ Name: (0, smithy_client_1.expectString)(output.Name),
3838
+ Status: (0, smithy_client_1.expectString)(output.Status),
3839
3839
  };
3840
3840
  };
3841
3841
  const deserializeAws_restJson1ChangeProgressStageList = (output, context) => {
@@ -3851,7 +3851,7 @@ const deserializeAws_restJson1ChangeProgressStageList = (output, context) => {
3851
3851
  };
3852
3852
  const deserializeAws_restJson1ChangeProgressStatusDetails = (output, context) => {
3853
3853
  return {
3854
- ChangeId: smithy_client_1.expectString(output.ChangeId),
3854
+ ChangeId: (0, smithy_client_1.expectString)(output.ChangeId),
3855
3855
  ChangeProgressStages: output.ChangeProgressStages !== undefined && output.ChangeProgressStages !== null
3856
3856
  ? deserializeAws_restJson1ChangeProgressStageList(output.ChangeProgressStages, context)
3857
3857
  : undefined,
@@ -3862,18 +3862,18 @@ const deserializeAws_restJson1ChangeProgressStatusDetails = (output, context) =>
3862
3862
  ? deserializeAws_restJson1StringList(output.PendingProperties, context)
3863
3863
  : undefined,
3864
3864
  StartTime: output.StartTime !== undefined && output.StartTime !== null
3865
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTime)))
3865
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
3866
3866
  : undefined,
3867
- Status: smithy_client_1.expectString(output.Status),
3868
- TotalNumberOfStages: smithy_client_1.expectInt32(output.TotalNumberOfStages),
3867
+ Status: (0, smithy_client_1.expectString)(output.Status),
3868
+ TotalNumberOfStages: (0, smithy_client_1.expectInt32)(output.TotalNumberOfStages),
3869
3869
  };
3870
3870
  };
3871
3871
  const deserializeAws_restJson1CognitoOptions = (output, context) => {
3872
3872
  return {
3873
- Enabled: smithy_client_1.expectBoolean(output.Enabled),
3874
- IdentityPoolId: smithy_client_1.expectString(output.IdentityPoolId),
3875
- RoleArn: smithy_client_1.expectString(output.RoleArn),
3876
- UserPoolId: smithy_client_1.expectString(output.UserPoolId),
3873
+ Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
3874
+ IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
3875
+ RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
3876
+ UserPoolId: (0, smithy_client_1.expectString)(output.UserPoolId),
3877
3877
  };
3878
3878
  };
3879
3879
  const deserializeAws_restJson1CognitoOptionsStatus = (output, context) => {
@@ -3888,7 +3888,7 @@ const deserializeAws_restJson1CognitoOptionsStatus = (output, context) => {
3888
3888
  };
3889
3889
  const deserializeAws_restJson1ColdStorageOptions = (output, context) => {
3890
3890
  return {
3891
- Enabled: smithy_client_1.expectBoolean(output.Enabled),
3891
+ Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
3892
3892
  };
3893
3893
  };
3894
3894
  const deserializeAws_restJson1CompatibleElasticsearchVersionsList = (output, context) => {
@@ -3904,7 +3904,7 @@ const deserializeAws_restJson1CompatibleElasticsearchVersionsList = (output, con
3904
3904
  };
3905
3905
  const deserializeAws_restJson1CompatibleVersionsMap = (output, context) => {
3906
3906
  return {
3907
- SourceVersion: smithy_client_1.expectString(output.SourceVersion),
3907
+ SourceVersion: (0, smithy_client_1.expectString)(output.SourceVersion),
3908
3908
  TargetVersions: output.TargetVersions !== undefined && output.TargetVersions !== null
3909
3909
  ? deserializeAws_restJson1ElasticsearchVersionList(output.TargetVersions, context)
3910
3910
  : undefined,
@@ -3912,11 +3912,11 @@ const deserializeAws_restJson1CompatibleVersionsMap = (output, context) => {
3912
3912
  };
3913
3913
  const deserializeAws_restJson1DomainEndpointOptions = (output, context) => {
3914
3914
  return {
3915
- CustomEndpoint: smithy_client_1.expectString(output.CustomEndpoint),
3916
- CustomEndpointCertificateArn: smithy_client_1.expectString(output.CustomEndpointCertificateArn),
3917
- CustomEndpointEnabled: smithy_client_1.expectBoolean(output.CustomEndpointEnabled),
3918
- EnforceHTTPS: smithy_client_1.expectBoolean(output.EnforceHTTPS),
3919
- TLSSecurityPolicy: smithy_client_1.expectString(output.TLSSecurityPolicy),
3915
+ CustomEndpoint: (0, smithy_client_1.expectString)(output.CustomEndpoint),
3916
+ CustomEndpointCertificateArn: (0, smithy_client_1.expectString)(output.CustomEndpointCertificateArn),
3917
+ CustomEndpointEnabled: (0, smithy_client_1.expectBoolean)(output.CustomEndpointEnabled),
3918
+ EnforceHTTPS: (0, smithy_client_1.expectBoolean)(output.EnforceHTTPS),
3919
+ TLSSecurityPolicy: (0, smithy_client_1.expectString)(output.TLSSecurityPolicy),
3920
3920
  };
3921
3921
  };
3922
3922
  const deserializeAws_restJson1DomainEndpointOptionsStatus = (output, context) => {
@@ -3931,8 +3931,8 @@ const deserializeAws_restJson1DomainEndpointOptionsStatus = (output, context) =>
3931
3931
  };
3932
3932
  const deserializeAws_restJson1DomainInfo = (output, context) => {
3933
3933
  return {
3934
- DomainName: smithy_client_1.expectString(output.DomainName),
3935
- EngineType: smithy_client_1.expectString(output.EngineType),
3934
+ DomainName: (0, smithy_client_1.expectString)(output.DomainName),
3935
+ EngineType: (0, smithy_client_1.expectString)(output.EngineType),
3936
3936
  };
3937
3937
  };
3938
3938
  const deserializeAws_restJson1DomainInfoList = (output, context) => {
@@ -3948,26 +3948,26 @@ const deserializeAws_restJson1DomainInfoList = (output, context) => {
3948
3948
  };
3949
3949
  const deserializeAws_restJson1DomainInformation = (output, context) => {
3950
3950
  return {
3951
- DomainName: smithy_client_1.expectString(output.DomainName),
3952
- OwnerId: smithy_client_1.expectString(output.OwnerId),
3953
- Region: smithy_client_1.expectString(output.Region),
3951
+ DomainName: (0, smithy_client_1.expectString)(output.DomainName),
3952
+ OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
3953
+ Region: (0, smithy_client_1.expectString)(output.Region),
3954
3954
  };
3955
3955
  };
3956
3956
  const deserializeAws_restJson1DomainPackageDetails = (output, context) => {
3957
3957
  return {
3958
- DomainName: smithy_client_1.expectString(output.DomainName),
3959
- DomainPackageStatus: smithy_client_1.expectString(output.DomainPackageStatus),
3958
+ DomainName: (0, smithy_client_1.expectString)(output.DomainName),
3959
+ DomainPackageStatus: (0, smithy_client_1.expectString)(output.DomainPackageStatus),
3960
3960
  ErrorDetails: output.ErrorDetails !== undefined && output.ErrorDetails !== null
3961
3961
  ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
3962
3962
  : undefined,
3963
3963
  LastUpdated: output.LastUpdated !== undefined && output.LastUpdated !== null
3964
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdated)))
3964
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
3965
3965
  : undefined,
3966
- PackageID: smithy_client_1.expectString(output.PackageID),
3967
- PackageName: smithy_client_1.expectString(output.PackageName),
3968
- PackageType: smithy_client_1.expectString(output.PackageType),
3969
- PackageVersion: smithy_client_1.expectString(output.PackageVersion),
3970
- ReferencePath: smithy_client_1.expectString(output.ReferencePath),
3966
+ PackageID: (0, smithy_client_1.expectString)(output.PackageID),
3967
+ PackageName: (0, smithy_client_1.expectString)(output.PackageName),
3968
+ PackageType: (0, smithy_client_1.expectString)(output.PackageType),
3969
+ PackageVersion: (0, smithy_client_1.expectString)(output.PackageVersion),
3970
+ ReferencePath: (0, smithy_client_1.expectString)(output.ReferencePath),
3971
3971
  };
3972
3972
  };
3973
3973
  const deserializeAws_restJson1DomainPackageDetailsList = (output, context) => {
@@ -3983,22 +3983,22 @@ const deserializeAws_restJson1DomainPackageDetailsList = (output, context) => {
3983
3983
  };
3984
3984
  const deserializeAws_restJson1DryRunResults = (output, context) => {
3985
3985
  return {
3986
- DeploymentType: smithy_client_1.expectString(output.DeploymentType),
3987
- Message: smithy_client_1.expectString(output.Message),
3986
+ DeploymentType: (0, smithy_client_1.expectString)(output.DeploymentType),
3987
+ Message: (0, smithy_client_1.expectString)(output.Message),
3988
3988
  };
3989
3989
  };
3990
3990
  const deserializeAws_restJson1Duration = (output, context) => {
3991
3991
  return {
3992
- Unit: smithy_client_1.expectString(output.Unit),
3993
- Value: smithy_client_1.expectLong(output.Value),
3992
+ Unit: (0, smithy_client_1.expectString)(output.Unit),
3993
+ Value: (0, smithy_client_1.expectLong)(output.Value),
3994
3994
  };
3995
3995
  };
3996
3996
  const deserializeAws_restJson1EBSOptions = (output, context) => {
3997
3997
  return {
3998
- EBSEnabled: smithy_client_1.expectBoolean(output.EBSEnabled),
3999
- Iops: smithy_client_1.expectInt32(output.Iops),
4000
- VolumeSize: smithy_client_1.expectInt32(output.VolumeSize),
4001
- VolumeType: smithy_client_1.expectString(output.VolumeType),
3998
+ EBSEnabled: (0, smithy_client_1.expectBoolean)(output.EBSEnabled),
3999
+ Iops: (0, smithy_client_1.expectInt32)(output.Iops),
4000
+ VolumeSize: (0, smithy_client_1.expectInt32)(output.VolumeSize),
4001
+ VolumeType: (0, smithy_client_1.expectString)(output.VolumeType),
4002
4002
  };
4003
4003
  };
4004
4004
  const deserializeAws_restJson1EBSOptionsStatus = (output, context) => {
@@ -4016,18 +4016,18 @@ const deserializeAws_restJson1ElasticsearchClusterConfig = (output, context) =>
4016
4016
  ColdStorageOptions: output.ColdStorageOptions !== undefined && output.ColdStorageOptions !== null
4017
4017
  ? deserializeAws_restJson1ColdStorageOptions(output.ColdStorageOptions, context)
4018
4018
  : undefined,
4019
- DedicatedMasterCount: smithy_client_1.expectInt32(output.DedicatedMasterCount),
4020
- DedicatedMasterEnabled: smithy_client_1.expectBoolean(output.DedicatedMasterEnabled),
4021
- DedicatedMasterType: smithy_client_1.expectString(output.DedicatedMasterType),
4022
- InstanceCount: smithy_client_1.expectInt32(output.InstanceCount),
4023
- InstanceType: smithy_client_1.expectString(output.InstanceType),
4024
- WarmCount: smithy_client_1.expectInt32(output.WarmCount),
4025
- WarmEnabled: smithy_client_1.expectBoolean(output.WarmEnabled),
4026
- WarmType: smithy_client_1.expectString(output.WarmType),
4019
+ DedicatedMasterCount: (0, smithy_client_1.expectInt32)(output.DedicatedMasterCount),
4020
+ DedicatedMasterEnabled: (0, smithy_client_1.expectBoolean)(output.DedicatedMasterEnabled),
4021
+ DedicatedMasterType: (0, smithy_client_1.expectString)(output.DedicatedMasterType),
4022
+ InstanceCount: (0, smithy_client_1.expectInt32)(output.InstanceCount),
4023
+ InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
4024
+ WarmCount: (0, smithy_client_1.expectInt32)(output.WarmCount),
4025
+ WarmEnabled: (0, smithy_client_1.expectBoolean)(output.WarmEnabled),
4026
+ WarmType: (0, smithy_client_1.expectString)(output.WarmType),
4027
4027
  ZoneAwarenessConfig: output.ZoneAwarenessConfig !== undefined && output.ZoneAwarenessConfig !== null
4028
4028
  ? deserializeAws_restJson1ZoneAwarenessConfig(output.ZoneAwarenessConfig, context)
4029
4029
  : undefined,
4030
- ZoneAwarenessEnabled: smithy_client_1.expectBoolean(output.ZoneAwarenessEnabled),
4030
+ ZoneAwarenessEnabled: (0, smithy_client_1.expectBoolean)(output.ZoneAwarenessEnabled),
4031
4031
  };
4032
4032
  };
4033
4033
  const deserializeAws_restJson1ElasticsearchClusterConfigStatus = (output, context) => {
@@ -4091,8 +4091,8 @@ const deserializeAws_restJson1ElasticsearchDomainConfig = (output, context) => {
4091
4091
  };
4092
4092
  const deserializeAws_restJson1ElasticsearchDomainStatus = (output, context) => {
4093
4093
  return {
4094
- ARN: smithy_client_1.expectString(output.ARN),
4095
- AccessPolicies: smithy_client_1.expectString(output.AccessPolicies),
4094
+ ARN: (0, smithy_client_1.expectString)(output.ARN),
4095
+ AccessPolicies: (0, smithy_client_1.expectString)(output.AccessPolicies),
4096
4096
  AdvancedOptions: output.AdvancedOptions !== undefined && output.AdvancedOptions !== null
4097
4097
  ? deserializeAws_restJson1AdvancedOptions(output.AdvancedOptions, context)
4098
4098
  : undefined,
@@ -4108,24 +4108,24 @@ const deserializeAws_restJson1ElasticsearchDomainStatus = (output, context) => {
4108
4108
  CognitoOptions: output.CognitoOptions !== undefined && output.CognitoOptions !== null
4109
4109
  ? deserializeAws_restJson1CognitoOptions(output.CognitoOptions, context)
4110
4110
  : undefined,
4111
- Created: smithy_client_1.expectBoolean(output.Created),
4112
- Deleted: smithy_client_1.expectBoolean(output.Deleted),
4111
+ Created: (0, smithy_client_1.expectBoolean)(output.Created),
4112
+ Deleted: (0, smithy_client_1.expectBoolean)(output.Deleted),
4113
4113
  DomainEndpointOptions: output.DomainEndpointOptions !== undefined && output.DomainEndpointOptions !== null
4114
4114
  ? deserializeAws_restJson1DomainEndpointOptions(output.DomainEndpointOptions, context)
4115
4115
  : undefined,
4116
- DomainId: smithy_client_1.expectString(output.DomainId),
4117
- DomainName: smithy_client_1.expectString(output.DomainName),
4116
+ DomainId: (0, smithy_client_1.expectString)(output.DomainId),
4117
+ DomainName: (0, smithy_client_1.expectString)(output.DomainName),
4118
4118
  EBSOptions: output.EBSOptions !== undefined && output.EBSOptions !== null
4119
4119
  ? deserializeAws_restJson1EBSOptions(output.EBSOptions, context)
4120
4120
  : undefined,
4121
4121
  ElasticsearchClusterConfig: output.ElasticsearchClusterConfig !== undefined && output.ElasticsearchClusterConfig !== null
4122
4122
  ? deserializeAws_restJson1ElasticsearchClusterConfig(output.ElasticsearchClusterConfig, context)
4123
4123
  : undefined,
4124
- ElasticsearchVersion: smithy_client_1.expectString(output.ElasticsearchVersion),
4124
+ ElasticsearchVersion: (0, smithy_client_1.expectString)(output.ElasticsearchVersion),
4125
4125
  EncryptionAtRestOptions: output.EncryptionAtRestOptions !== undefined && output.EncryptionAtRestOptions !== null
4126
4126
  ? deserializeAws_restJson1EncryptionAtRestOptions(output.EncryptionAtRestOptions, context)
4127
4127
  : undefined,
4128
- Endpoint: smithy_client_1.expectString(output.Endpoint),
4128
+ Endpoint: (0, smithy_client_1.expectString)(output.Endpoint),
4129
4129
  Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
4130
4130
  ? deserializeAws_restJson1EndpointsMap(output.Endpoints, context)
4131
4131
  : undefined,
@@ -4135,14 +4135,14 @@ const deserializeAws_restJson1ElasticsearchDomainStatus = (output, context) => {
4135
4135
  NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions !== undefined && output.NodeToNodeEncryptionOptions !== null
4136
4136
  ? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.NodeToNodeEncryptionOptions, context)
4137
4137
  : undefined,
4138
- Processing: smithy_client_1.expectBoolean(output.Processing),
4138
+ Processing: (0, smithy_client_1.expectBoolean)(output.Processing),
4139
4139
  ServiceSoftwareOptions: output.ServiceSoftwareOptions !== undefined && output.ServiceSoftwareOptions !== null
4140
4140
  ? deserializeAws_restJson1ServiceSoftwareOptions(output.ServiceSoftwareOptions, context)
4141
4141
  : undefined,
4142
4142
  SnapshotOptions: output.SnapshotOptions !== undefined && output.SnapshotOptions !== null
4143
4143
  ? deserializeAws_restJson1SnapshotOptions(output.SnapshotOptions, context)
4144
4144
  : undefined,
4145
- UpgradeProcessing: smithy_client_1.expectBoolean(output.UpgradeProcessing),
4145
+ UpgradeProcessing: (0, smithy_client_1.expectBoolean)(output.UpgradeProcessing),
4146
4146
  VPCOptions: output.VPCOptions !== undefined && output.VPCOptions !== null
4147
4147
  ? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context)
4148
4148
  : undefined,
@@ -4166,7 +4166,7 @@ const deserializeAws_restJson1ElasticsearchInstanceTypeList = (output, context)
4166
4166
  if (entry === null) {
4167
4167
  return null;
4168
4168
  }
4169
- return smithy_client_1.expectString(entry);
4169
+ return (0, smithy_client_1.expectString)(entry);
4170
4170
  });
4171
4171
  return retVal;
4172
4172
  };
@@ -4177,13 +4177,13 @@ const deserializeAws_restJson1ElasticsearchVersionList = (output, context) => {
4177
4177
  if (entry === null) {
4178
4178
  return null;
4179
4179
  }
4180
- return smithy_client_1.expectString(entry);
4180
+ return (0, smithy_client_1.expectString)(entry);
4181
4181
  });
4182
4182
  return retVal;
4183
4183
  };
4184
4184
  const deserializeAws_restJson1ElasticsearchVersionStatus = (output, context) => {
4185
4185
  return {
4186
- Options: smithy_client_1.expectString(output.Options),
4186
+ Options: (0, smithy_client_1.expectString)(output.Options),
4187
4187
  Status: output.Status !== undefined && output.Status !== null
4188
4188
  ? deserializeAws_restJson1OptionStatus(output.Status, context)
4189
4189
  : undefined,
@@ -4191,8 +4191,8 @@ const deserializeAws_restJson1ElasticsearchVersionStatus = (output, context) =>
4191
4191
  };
4192
4192
  const deserializeAws_restJson1EncryptionAtRestOptions = (output, context) => {
4193
4193
  return {
4194
- Enabled: smithy_client_1.expectBoolean(output.Enabled),
4195
- KmsKeyId: smithy_client_1.expectString(output.KmsKeyId),
4194
+ Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4195
+ KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
4196
4196
  };
4197
4197
  };
4198
4198
  const deserializeAws_restJson1EncryptionAtRestOptionsStatus = (output, context) => {
@@ -4212,14 +4212,14 @@ const deserializeAws_restJson1EndpointsMap = (output, context) => {
4212
4212
  }
4213
4213
  return {
4214
4214
  ...acc,
4215
- [key]: smithy_client_1.expectString(value),
4215
+ [key]: (0, smithy_client_1.expectString)(value),
4216
4216
  };
4217
4217
  }, {});
4218
4218
  };
4219
4219
  const deserializeAws_restJson1ErrorDetails = (output, context) => {
4220
4220
  return {
4221
- ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
4222
- ErrorType: smithy_client_1.expectString(output.ErrorType),
4221
+ ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4222
+ ErrorType: (0, smithy_client_1.expectString)(output.ErrorType),
4223
4223
  };
4224
4224
  };
4225
4225
  const deserializeAws_restJson1InboundCrossClusterSearchConnection = (output, context) => {
@@ -4227,7 +4227,7 @@ const deserializeAws_restJson1InboundCrossClusterSearchConnection = (output, con
4227
4227
  ConnectionStatus: output.ConnectionStatus !== undefined && output.ConnectionStatus !== null
4228
4228
  ? deserializeAws_restJson1InboundCrossClusterSearchConnectionStatus(output.ConnectionStatus, context)
4229
4229
  : undefined,
4230
- CrossClusterSearchConnectionId: smithy_client_1.expectString(output.CrossClusterSearchConnectionId),
4230
+ CrossClusterSearchConnectionId: (0, smithy_client_1.expectString)(output.CrossClusterSearchConnectionId),
4231
4231
  DestinationDomainInfo: output.DestinationDomainInfo !== undefined && output.DestinationDomainInfo !== null
4232
4232
  ? deserializeAws_restJson1DomainInformation(output.DestinationDomainInfo, context)
4233
4233
  : undefined,
@@ -4249,14 +4249,14 @@ const deserializeAws_restJson1InboundCrossClusterSearchConnections = (output, co
4249
4249
  };
4250
4250
  const deserializeAws_restJson1InboundCrossClusterSearchConnectionStatus = (output, context) => {
4251
4251
  return {
4252
- Message: smithy_client_1.expectString(output.Message),
4253
- StatusCode: smithy_client_1.expectString(output.StatusCode),
4252
+ Message: (0, smithy_client_1.expectString)(output.Message),
4253
+ StatusCode: (0, smithy_client_1.expectString)(output.StatusCode),
4254
4254
  };
4255
4255
  };
4256
4256
  const deserializeAws_restJson1InstanceCountLimits = (output, context) => {
4257
4257
  return {
4258
- MaximumInstanceCount: smithy_client_1.expectInt32(output.MaximumInstanceCount),
4259
- MinimumInstanceCount: smithy_client_1.expectInt32(output.MinimumInstanceCount),
4258
+ MaximumInstanceCount: (0, smithy_client_1.expectInt32)(output.MaximumInstanceCount),
4259
+ MinimumInstanceCount: (0, smithy_client_1.expectInt32)(output.MinimumInstanceCount),
4260
4260
  };
4261
4261
  };
4262
4262
  const deserializeAws_restJson1InstanceLimits = (output, context) => {
@@ -4273,7 +4273,7 @@ const deserializeAws_restJson1Issues = (output, context) => {
4273
4273
  if (entry === null) {
4274
4274
  return null;
4275
4275
  }
4276
- return smithy_client_1.expectString(entry);
4276
+ return (0, smithy_client_1.expectString)(entry);
4277
4277
  });
4278
4278
  return retVal;
4279
4279
  };
@@ -4308,14 +4308,14 @@ const deserializeAws_restJson1LimitValueList = (output, context) => {
4308
4308
  if (entry === null) {
4309
4309
  return null;
4310
4310
  }
4311
- return smithy_client_1.expectString(entry);
4311
+ return (0, smithy_client_1.expectString)(entry);
4312
4312
  });
4313
4313
  return retVal;
4314
4314
  };
4315
4315
  const deserializeAws_restJson1LogPublishingOption = (output, context) => {
4316
4316
  return {
4317
- CloudWatchLogsLogGroupArn: smithy_client_1.expectString(output.CloudWatchLogsLogGroupArn),
4318
- Enabled: smithy_client_1.expectBoolean(output.Enabled),
4317
+ CloudWatchLogsLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogsLogGroupArn),
4318
+ Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4319
4319
  };
4320
4320
  };
4321
4321
  const deserializeAws_restJson1LogPublishingOptions = (output, context) => {
@@ -4341,7 +4341,7 @@ const deserializeAws_restJson1LogPublishingOptionsStatus = (output, context) =>
4341
4341
  };
4342
4342
  const deserializeAws_restJson1NodeToNodeEncryptionOptions = (output, context) => {
4343
4343
  return {
4344
- Enabled: smithy_client_1.expectBoolean(output.Enabled),
4344
+ Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4345
4345
  };
4346
4346
  };
4347
4347
  const deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus = (output, context) => {
@@ -4357,23 +4357,23 @@ const deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus = (output, conte
4357
4357
  const deserializeAws_restJson1OptionStatus = (output, context) => {
4358
4358
  return {
4359
4359
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
4360
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
4360
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
4361
4361
  : undefined,
4362
- PendingDeletion: smithy_client_1.expectBoolean(output.PendingDeletion),
4363
- State: smithy_client_1.expectString(output.State),
4362
+ PendingDeletion: (0, smithy_client_1.expectBoolean)(output.PendingDeletion),
4363
+ State: (0, smithy_client_1.expectString)(output.State),
4364
4364
  UpdateDate: output.UpdateDate !== undefined && output.UpdateDate !== null
4365
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdateDate)))
4365
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateDate)))
4366
4366
  : undefined,
4367
- UpdateVersion: smithy_client_1.expectInt32(output.UpdateVersion),
4367
+ UpdateVersion: (0, smithy_client_1.expectInt32)(output.UpdateVersion),
4368
4368
  };
4369
4369
  };
4370
4370
  const deserializeAws_restJson1OutboundCrossClusterSearchConnection = (output, context) => {
4371
4371
  return {
4372
- ConnectionAlias: smithy_client_1.expectString(output.ConnectionAlias),
4372
+ ConnectionAlias: (0, smithy_client_1.expectString)(output.ConnectionAlias),
4373
4373
  ConnectionStatus: output.ConnectionStatus !== undefined && output.ConnectionStatus !== null
4374
4374
  ? deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus(output.ConnectionStatus, context)
4375
4375
  : undefined,
4376
- CrossClusterSearchConnectionId: smithy_client_1.expectString(output.CrossClusterSearchConnectionId),
4376
+ CrossClusterSearchConnectionId: (0, smithy_client_1.expectString)(output.CrossClusterSearchConnectionId),
4377
4377
  DestinationDomainInfo: output.DestinationDomainInfo !== undefined && output.DestinationDomainInfo !== null
4378
4378
  ? deserializeAws_restJson1DomainInformation(output.DestinationDomainInfo, context)
4379
4379
  : undefined,
@@ -4395,27 +4395,27 @@ const deserializeAws_restJson1OutboundCrossClusterSearchConnections = (output, c
4395
4395
  };
4396
4396
  const deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus = (output, context) => {
4397
4397
  return {
4398
- Message: smithy_client_1.expectString(output.Message),
4399
- StatusCode: smithy_client_1.expectString(output.StatusCode),
4398
+ Message: (0, smithy_client_1.expectString)(output.Message),
4399
+ StatusCode: (0, smithy_client_1.expectString)(output.StatusCode),
4400
4400
  };
4401
4401
  };
4402
4402
  const deserializeAws_restJson1PackageDetails = (output, context) => {
4403
4403
  return {
4404
- AvailablePackageVersion: smithy_client_1.expectString(output.AvailablePackageVersion),
4404
+ AvailablePackageVersion: (0, smithy_client_1.expectString)(output.AvailablePackageVersion),
4405
4405
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
4406
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
4406
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
4407
4407
  : undefined,
4408
4408
  ErrorDetails: output.ErrorDetails !== undefined && output.ErrorDetails !== null
4409
4409
  ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
4410
4410
  : undefined,
4411
4411
  LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
4412
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedAt)))
4412
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
4413
4413
  : undefined,
4414
- PackageDescription: smithy_client_1.expectString(output.PackageDescription),
4415
- PackageID: smithy_client_1.expectString(output.PackageID),
4416
- PackageName: smithy_client_1.expectString(output.PackageName),
4417
- PackageStatus: smithy_client_1.expectString(output.PackageStatus),
4418
- PackageType: smithy_client_1.expectString(output.PackageType),
4414
+ PackageDescription: (0, smithy_client_1.expectString)(output.PackageDescription),
4415
+ PackageID: (0, smithy_client_1.expectString)(output.PackageID),
4416
+ PackageName: (0, smithy_client_1.expectString)(output.PackageName),
4417
+ PackageStatus: (0, smithy_client_1.expectString)(output.PackageStatus),
4418
+ PackageType: (0, smithy_client_1.expectString)(output.PackageType),
4419
4419
  };
4420
4420
  };
4421
4421
  const deserializeAws_restJson1PackageDetailsList = (output, context) => {
@@ -4431,11 +4431,11 @@ const deserializeAws_restJson1PackageDetailsList = (output, context) => {
4431
4431
  };
4432
4432
  const deserializeAws_restJson1PackageVersionHistory = (output, context) => {
4433
4433
  return {
4434
- CommitMessage: smithy_client_1.expectString(output.CommitMessage),
4434
+ CommitMessage: (0, smithy_client_1.expectString)(output.CommitMessage),
4435
4435
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
4436
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
4436
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
4437
4437
  : undefined,
4438
- PackageVersion: smithy_client_1.expectString(output.PackageVersion),
4438
+ PackageVersion: (0, smithy_client_1.expectString)(output.PackageVersion),
4439
4439
  };
4440
4440
  };
4441
4441
  const deserializeAws_restJson1PackageVersionHistoryList = (output, context) => {
@@ -4451,8 +4451,8 @@ const deserializeAws_restJson1PackageVersionHistoryList = (output, context) => {
4451
4451
  };
4452
4452
  const deserializeAws_restJson1RecurringCharge = (output, context) => {
4453
4453
  return {
4454
- RecurringChargeAmount: smithy_client_1.limitedParseDouble(output.RecurringChargeAmount),
4455
- RecurringChargeFrequency: smithy_client_1.expectString(output.RecurringChargeFrequency),
4454
+ RecurringChargeAmount: (0, smithy_client_1.limitedParseDouble)(output.RecurringChargeAmount),
4455
+ RecurringChargeFrequency: (0, smithy_client_1.expectString)(output.RecurringChargeFrequency),
4456
4456
  };
4457
4457
  };
4458
4458
  const deserializeAws_restJson1RecurringChargeList = (output, context) => {
@@ -4468,23 +4468,23 @@ const deserializeAws_restJson1RecurringChargeList = (output, context) => {
4468
4468
  };
4469
4469
  const deserializeAws_restJson1ReservedElasticsearchInstance = (output, context) => {
4470
4470
  return {
4471
- CurrencyCode: smithy_client_1.expectString(output.CurrencyCode),
4472
- Duration: smithy_client_1.expectInt32(output.Duration),
4473
- ElasticsearchInstanceCount: smithy_client_1.expectInt32(output.ElasticsearchInstanceCount),
4474
- ElasticsearchInstanceType: smithy_client_1.expectString(output.ElasticsearchInstanceType),
4475
- FixedPrice: smithy_client_1.limitedParseDouble(output.FixedPrice),
4476
- PaymentOption: smithy_client_1.expectString(output.PaymentOption),
4471
+ CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
4472
+ Duration: (0, smithy_client_1.expectInt32)(output.Duration),
4473
+ ElasticsearchInstanceCount: (0, smithy_client_1.expectInt32)(output.ElasticsearchInstanceCount),
4474
+ ElasticsearchInstanceType: (0, smithy_client_1.expectString)(output.ElasticsearchInstanceType),
4475
+ FixedPrice: (0, smithy_client_1.limitedParseDouble)(output.FixedPrice),
4476
+ PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
4477
4477
  RecurringCharges: output.RecurringCharges !== undefined && output.RecurringCharges !== null
4478
4478
  ? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
4479
4479
  : undefined,
4480
- ReservationName: smithy_client_1.expectString(output.ReservationName),
4481
- ReservedElasticsearchInstanceId: smithy_client_1.expectString(output.ReservedElasticsearchInstanceId),
4482
- ReservedElasticsearchInstanceOfferingId: smithy_client_1.expectString(output.ReservedElasticsearchInstanceOfferingId),
4480
+ ReservationName: (0, smithy_client_1.expectString)(output.ReservationName),
4481
+ ReservedElasticsearchInstanceId: (0, smithy_client_1.expectString)(output.ReservedElasticsearchInstanceId),
4482
+ ReservedElasticsearchInstanceOfferingId: (0, smithy_client_1.expectString)(output.ReservedElasticsearchInstanceOfferingId),
4483
4483
  StartTime: output.StartTime !== undefined && output.StartTime !== null
4484
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTime)))
4484
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
4485
4485
  : undefined,
4486
- State: smithy_client_1.expectString(output.State),
4487
- UsagePrice: smithy_client_1.limitedParseDouble(output.UsagePrice),
4486
+ State: (0, smithy_client_1.expectString)(output.State),
4487
+ UsagePrice: (0, smithy_client_1.limitedParseDouble)(output.UsagePrice),
4488
4488
  };
4489
4489
  };
4490
4490
  const deserializeAws_restJson1ReservedElasticsearchInstanceList = (output, context) => {
@@ -4500,16 +4500,16 @@ const deserializeAws_restJson1ReservedElasticsearchInstanceList = (output, conte
4500
4500
  };
4501
4501
  const deserializeAws_restJson1ReservedElasticsearchInstanceOffering = (output, context) => {
4502
4502
  return {
4503
- CurrencyCode: smithy_client_1.expectString(output.CurrencyCode),
4504
- Duration: smithy_client_1.expectInt32(output.Duration),
4505
- ElasticsearchInstanceType: smithy_client_1.expectString(output.ElasticsearchInstanceType),
4506
- FixedPrice: smithy_client_1.limitedParseDouble(output.FixedPrice),
4507
- PaymentOption: smithy_client_1.expectString(output.PaymentOption),
4503
+ CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
4504
+ Duration: (0, smithy_client_1.expectInt32)(output.Duration),
4505
+ ElasticsearchInstanceType: (0, smithy_client_1.expectString)(output.ElasticsearchInstanceType),
4506
+ FixedPrice: (0, smithy_client_1.limitedParseDouble)(output.FixedPrice),
4507
+ PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
4508
4508
  RecurringCharges: output.RecurringCharges !== undefined && output.RecurringCharges !== null
4509
4509
  ? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
4510
4510
  : undefined,
4511
- ReservedElasticsearchInstanceOfferingId: smithy_client_1.expectString(output.ReservedElasticsearchInstanceOfferingId),
4512
- UsagePrice: smithy_client_1.limitedParseDouble(output.UsagePrice),
4511
+ ReservedElasticsearchInstanceOfferingId: (0, smithy_client_1.expectString)(output.ReservedElasticsearchInstanceOfferingId),
4512
+ UsagePrice: (0, smithy_client_1.limitedParseDouble)(output.UsagePrice),
4513
4513
  };
4514
4514
  };
4515
4515
  const deserializeAws_restJson1ReservedElasticsearchInstanceOfferingList = (output, context) => {
@@ -4525,48 +4525,48 @@ const deserializeAws_restJson1ReservedElasticsearchInstanceOfferingList = (outpu
4525
4525
  };
4526
4526
  const deserializeAws_restJson1SAMLIdp = (output, context) => {
4527
4527
  return {
4528
- EntityId: smithy_client_1.expectString(output.EntityId),
4529
- MetadataContent: smithy_client_1.expectString(output.MetadataContent),
4528
+ EntityId: (0, smithy_client_1.expectString)(output.EntityId),
4529
+ MetadataContent: (0, smithy_client_1.expectString)(output.MetadataContent),
4530
4530
  };
4531
4531
  };
4532
4532
  const deserializeAws_restJson1SAMLOptionsOutput = (output, context) => {
4533
4533
  return {
4534
- Enabled: smithy_client_1.expectBoolean(output.Enabled),
4534
+ Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4535
4535
  Idp: output.Idp !== undefined && output.Idp !== null
4536
4536
  ? deserializeAws_restJson1SAMLIdp(output.Idp, context)
4537
4537
  : undefined,
4538
- RolesKey: smithy_client_1.expectString(output.RolesKey),
4539
- SessionTimeoutMinutes: smithy_client_1.expectInt32(output.SessionTimeoutMinutes),
4540
- SubjectKey: smithy_client_1.expectString(output.SubjectKey),
4538
+ RolesKey: (0, smithy_client_1.expectString)(output.RolesKey),
4539
+ SessionTimeoutMinutes: (0, smithy_client_1.expectInt32)(output.SessionTimeoutMinutes),
4540
+ SubjectKey: (0, smithy_client_1.expectString)(output.SubjectKey),
4541
4541
  };
4542
4542
  };
4543
4543
  const deserializeAws_restJson1ScheduledAutoTuneDetails = (output, context) => {
4544
4544
  return {
4545
- Action: smithy_client_1.expectString(output.Action),
4546
- ActionType: smithy_client_1.expectString(output.ActionType),
4545
+ Action: (0, smithy_client_1.expectString)(output.Action),
4546
+ ActionType: (0, smithy_client_1.expectString)(output.ActionType),
4547
4547
  Date: output.Date !== undefined && output.Date !== null
4548
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Date)))
4548
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date)))
4549
4549
  : undefined,
4550
- Severity: smithy_client_1.expectString(output.Severity),
4550
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
4551
4551
  };
4552
4552
  };
4553
4553
  const deserializeAws_restJson1ServiceSoftwareOptions = (output, context) => {
4554
4554
  return {
4555
4555
  AutomatedUpdateDate: output.AutomatedUpdateDate !== undefined && output.AutomatedUpdateDate !== null
4556
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.AutomatedUpdateDate)))
4556
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AutomatedUpdateDate)))
4557
4557
  : undefined,
4558
- Cancellable: smithy_client_1.expectBoolean(output.Cancellable),
4559
- CurrentVersion: smithy_client_1.expectString(output.CurrentVersion),
4560
- Description: smithy_client_1.expectString(output.Description),
4561
- NewVersion: smithy_client_1.expectString(output.NewVersion),
4562
- OptionalDeployment: smithy_client_1.expectBoolean(output.OptionalDeployment),
4563
- UpdateAvailable: smithy_client_1.expectBoolean(output.UpdateAvailable),
4564
- UpdateStatus: smithy_client_1.expectString(output.UpdateStatus),
4558
+ Cancellable: (0, smithy_client_1.expectBoolean)(output.Cancellable),
4559
+ CurrentVersion: (0, smithy_client_1.expectString)(output.CurrentVersion),
4560
+ Description: (0, smithy_client_1.expectString)(output.Description),
4561
+ NewVersion: (0, smithy_client_1.expectString)(output.NewVersion),
4562
+ OptionalDeployment: (0, smithy_client_1.expectBoolean)(output.OptionalDeployment),
4563
+ UpdateAvailable: (0, smithy_client_1.expectBoolean)(output.UpdateAvailable),
4564
+ UpdateStatus: (0, smithy_client_1.expectString)(output.UpdateStatus),
4565
4565
  };
4566
4566
  };
4567
4567
  const deserializeAws_restJson1SnapshotOptions = (output, context) => {
4568
4568
  return {
4569
- AutomatedSnapshotStartHour: smithy_client_1.expectInt32(output.AutomatedSnapshotStartHour),
4569
+ AutomatedSnapshotStartHour: (0, smithy_client_1.expectInt32)(output.AutomatedSnapshotStartHour),
4570
4570
  };
4571
4571
  };
4572
4572
  const deserializeAws_restJson1SnapshotOptionsStatus = (output, context) => {
@@ -4581,16 +4581,16 @@ const deserializeAws_restJson1SnapshotOptionsStatus = (output, context) => {
4581
4581
  };
4582
4582
  const deserializeAws_restJson1StorageType = (output, context) => {
4583
4583
  return {
4584
- StorageSubTypeName: smithy_client_1.expectString(output.StorageSubTypeName),
4584
+ StorageSubTypeName: (0, smithy_client_1.expectString)(output.StorageSubTypeName),
4585
4585
  StorageTypeLimits: output.StorageTypeLimits !== undefined && output.StorageTypeLimits !== null
4586
4586
  ? deserializeAws_restJson1StorageTypeLimitList(output.StorageTypeLimits, context)
4587
4587
  : undefined,
4588
- StorageTypeName: smithy_client_1.expectString(output.StorageTypeName),
4588
+ StorageTypeName: (0, smithy_client_1.expectString)(output.StorageTypeName),
4589
4589
  };
4590
4590
  };
4591
4591
  const deserializeAws_restJson1StorageTypeLimit = (output, context) => {
4592
4592
  return {
4593
- LimitName: smithy_client_1.expectString(output.LimitName),
4593
+ LimitName: (0, smithy_client_1.expectString)(output.LimitName),
4594
4594
  LimitValues: output.LimitValues !== undefined && output.LimitValues !== null
4595
4595
  ? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
4596
4596
  : undefined,
@@ -4625,14 +4625,14 @@ const deserializeAws_restJson1StringList = (output, context) => {
4625
4625
  if (entry === null) {
4626
4626
  return null;
4627
4627
  }
4628
- return smithy_client_1.expectString(entry);
4628
+ return (0, smithy_client_1.expectString)(entry);
4629
4629
  });
4630
4630
  return retVal;
4631
4631
  };
4632
4632
  const deserializeAws_restJson1Tag = (output, context) => {
4633
4633
  return {
4634
- Key: smithy_client_1.expectString(output.Key),
4635
- Value: smithy_client_1.expectString(output.Value),
4634
+ Key: (0, smithy_client_1.expectString)(output.Key),
4635
+ Value: (0, smithy_client_1.expectString)(output.Value),
4636
4636
  };
4637
4637
  };
4638
4638
  const deserializeAws_restJson1TagList = (output, context) => {
@@ -4649,13 +4649,13 @@ const deserializeAws_restJson1TagList = (output, context) => {
4649
4649
  const deserializeAws_restJson1UpgradeHistory = (output, context) => {
4650
4650
  return {
4651
4651
  StartTimestamp: output.StartTimestamp !== undefined && output.StartTimestamp !== null
4652
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTimestamp)))
4652
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTimestamp)))
4653
4653
  : undefined,
4654
4654
  StepsList: output.StepsList !== undefined && output.StepsList !== null
4655
4655
  ? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context)
4656
4656
  : undefined,
4657
- UpgradeName: smithy_client_1.expectString(output.UpgradeName),
4658
- UpgradeStatus: smithy_client_1.expectString(output.UpgradeStatus),
4657
+ UpgradeName: (0, smithy_client_1.expectString)(output.UpgradeName),
4658
+ UpgradeStatus: (0, smithy_client_1.expectString)(output.UpgradeStatus),
4659
4659
  };
4660
4660
  };
4661
4661
  const deserializeAws_restJson1UpgradeHistoryList = (output, context) => {
@@ -4674,9 +4674,9 @@ const deserializeAws_restJson1UpgradeStepItem = (output, context) => {
4674
4674
  Issues: output.Issues !== undefined && output.Issues !== null
4675
4675
  ? deserializeAws_restJson1Issues(output.Issues, context)
4676
4676
  : undefined,
4677
- ProgressPercent: smithy_client_1.limitedParseDouble(output.ProgressPercent),
4678
- UpgradeStep: smithy_client_1.expectString(output.UpgradeStep),
4679
- UpgradeStepStatus: smithy_client_1.expectString(output.UpgradeStepStatus),
4677
+ ProgressPercent: (0, smithy_client_1.limitedParseDouble)(output.ProgressPercent),
4678
+ UpgradeStep: (0, smithy_client_1.expectString)(output.UpgradeStep),
4679
+ UpgradeStepStatus: (0, smithy_client_1.expectString)(output.UpgradeStepStatus),
4680
4680
  };
4681
4681
  };
4682
4682
  const deserializeAws_restJson1UpgradeStepsList = (output, context) => {
@@ -4701,7 +4701,7 @@ const deserializeAws_restJson1VPCDerivedInfo = (output, context) => {
4701
4701
  SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
4702
4702
  ? deserializeAws_restJson1StringList(output.SubnetIds, context)
4703
4703
  : undefined,
4704
- VPCId: smithy_client_1.expectString(output.VPCId),
4704
+ VPCId: (0, smithy_client_1.expectString)(output.VPCId),
4705
4705
  };
4706
4706
  };
4707
4707
  const deserializeAws_restJson1VPCDerivedInfoStatus = (output, context) => {
@@ -4716,7 +4716,7 @@ const deserializeAws_restJson1VPCDerivedInfoStatus = (output, context) => {
4716
4716
  };
4717
4717
  const deserializeAws_restJson1ZoneAwarenessConfig = (output, context) => {
4718
4718
  return {
4719
- AvailabilityZoneCount: smithy_client_1.expectInt32(output.AvailabilityZoneCount),
4719
+ AvailabilityZoneCount: (0, smithy_client_1.expectInt32)(output.AvailabilityZoneCount),
4720
4720
  };
4721
4721
  };
4722
4722
  const deserializeMetadata = (output) => {