@aws-sdk/client-elasticsearch-service 3.29.0 → 3.33.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 (140) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/commands/ListDomainNamesCommand.ts +3 -3
  3. package/dist/cjs/ElasticsearchServiceClient.js +13 -13
  4. package/dist/cjs/ElasticsearchServiceClient.js.map +1 -1
  5. package/dist/cjs/commands/AcceptInboundCrossClusterSearchConnectionCommand.js +3 -3
  6. package/dist/cjs/commands/AcceptInboundCrossClusterSearchConnectionCommand.js.map +1 -1
  7. package/dist/cjs/commands/AddTagsCommand.js +3 -3
  8. package/dist/cjs/commands/AddTagsCommand.js.map +1 -1
  9. package/dist/cjs/commands/AssociatePackageCommand.js +3 -3
  10. package/dist/cjs/commands/AssociatePackageCommand.js.map +1 -1
  11. package/dist/cjs/commands/CancelElasticsearchServiceSoftwareUpdateCommand.js +3 -3
  12. package/dist/cjs/commands/CancelElasticsearchServiceSoftwareUpdateCommand.js.map +1 -1
  13. package/dist/cjs/commands/CreateElasticsearchDomainCommand.js +3 -3
  14. package/dist/cjs/commands/CreateElasticsearchDomainCommand.js.map +1 -1
  15. package/dist/cjs/commands/CreateOutboundCrossClusterSearchConnectionCommand.js +3 -3
  16. package/dist/cjs/commands/CreateOutboundCrossClusterSearchConnectionCommand.js.map +1 -1
  17. package/dist/cjs/commands/CreatePackageCommand.js +3 -3
  18. package/dist/cjs/commands/CreatePackageCommand.js.map +1 -1
  19. package/dist/cjs/commands/DeleteElasticsearchDomainCommand.js +3 -3
  20. package/dist/cjs/commands/DeleteElasticsearchDomainCommand.js.map +1 -1
  21. package/dist/cjs/commands/DeleteElasticsearchServiceRoleCommand.js +3 -3
  22. package/dist/cjs/commands/DeleteElasticsearchServiceRoleCommand.js.map +1 -1
  23. package/dist/cjs/commands/DeleteInboundCrossClusterSearchConnectionCommand.js +3 -3
  24. package/dist/cjs/commands/DeleteInboundCrossClusterSearchConnectionCommand.js.map +1 -1
  25. package/dist/cjs/commands/DeleteOutboundCrossClusterSearchConnectionCommand.js +3 -3
  26. package/dist/cjs/commands/DeleteOutboundCrossClusterSearchConnectionCommand.js.map +1 -1
  27. package/dist/cjs/commands/DeletePackageCommand.js +3 -3
  28. package/dist/cjs/commands/DeletePackageCommand.js.map +1 -1
  29. package/dist/cjs/commands/DescribeDomainAutoTunesCommand.js +3 -3
  30. package/dist/cjs/commands/DescribeDomainAutoTunesCommand.js.map +1 -1
  31. package/dist/cjs/commands/DescribeElasticsearchDomainCommand.js +3 -3
  32. package/dist/cjs/commands/DescribeElasticsearchDomainCommand.js.map +1 -1
  33. package/dist/cjs/commands/DescribeElasticsearchDomainConfigCommand.js +3 -3
  34. package/dist/cjs/commands/DescribeElasticsearchDomainConfigCommand.js.map +1 -1
  35. package/dist/cjs/commands/DescribeElasticsearchDomainsCommand.js +3 -3
  36. package/dist/cjs/commands/DescribeElasticsearchDomainsCommand.js.map +1 -1
  37. package/dist/cjs/commands/DescribeElasticsearchInstanceTypeLimitsCommand.js +3 -3
  38. package/dist/cjs/commands/DescribeElasticsearchInstanceTypeLimitsCommand.js.map +1 -1
  39. package/dist/cjs/commands/DescribeInboundCrossClusterSearchConnectionsCommand.js +3 -3
  40. package/dist/cjs/commands/DescribeInboundCrossClusterSearchConnectionsCommand.js.map +1 -1
  41. package/dist/cjs/commands/DescribeOutboundCrossClusterSearchConnectionsCommand.js +3 -3
  42. package/dist/cjs/commands/DescribeOutboundCrossClusterSearchConnectionsCommand.js.map +1 -1
  43. package/dist/cjs/commands/DescribePackagesCommand.js +3 -3
  44. package/dist/cjs/commands/DescribePackagesCommand.js.map +1 -1
  45. package/dist/cjs/commands/DescribeReservedElasticsearchInstanceOfferingsCommand.js +3 -3
  46. package/dist/cjs/commands/DescribeReservedElasticsearchInstanceOfferingsCommand.js.map +1 -1
  47. package/dist/cjs/commands/DescribeReservedElasticsearchInstancesCommand.js +3 -3
  48. package/dist/cjs/commands/DescribeReservedElasticsearchInstancesCommand.js.map +1 -1
  49. package/dist/cjs/commands/DissociatePackageCommand.js +3 -3
  50. package/dist/cjs/commands/DissociatePackageCommand.js.map +1 -1
  51. package/dist/cjs/commands/GetCompatibleElasticsearchVersionsCommand.js +3 -3
  52. package/dist/cjs/commands/GetCompatibleElasticsearchVersionsCommand.js.map +1 -1
  53. package/dist/cjs/commands/GetPackageVersionHistoryCommand.js +3 -3
  54. package/dist/cjs/commands/GetPackageVersionHistoryCommand.js.map +1 -1
  55. package/dist/cjs/commands/GetUpgradeHistoryCommand.js +3 -3
  56. package/dist/cjs/commands/GetUpgradeHistoryCommand.js.map +1 -1
  57. package/dist/cjs/commands/GetUpgradeStatusCommand.js +3 -3
  58. package/dist/cjs/commands/GetUpgradeStatusCommand.js.map +1 -1
  59. package/dist/cjs/commands/ListDomainNamesCommand.js +4 -4
  60. package/dist/cjs/commands/ListDomainNamesCommand.js.map +1 -1
  61. package/dist/cjs/commands/ListDomainsForPackageCommand.js +3 -3
  62. package/dist/cjs/commands/ListDomainsForPackageCommand.js.map +1 -1
  63. package/dist/cjs/commands/ListElasticsearchInstanceTypesCommand.js +3 -3
  64. package/dist/cjs/commands/ListElasticsearchInstanceTypesCommand.js.map +1 -1
  65. package/dist/cjs/commands/ListElasticsearchVersionsCommand.js +3 -3
  66. package/dist/cjs/commands/ListElasticsearchVersionsCommand.js.map +1 -1
  67. package/dist/cjs/commands/ListPackagesForDomainCommand.js +3 -3
  68. package/dist/cjs/commands/ListPackagesForDomainCommand.js.map +1 -1
  69. package/dist/cjs/commands/ListTagsCommand.js +3 -3
  70. package/dist/cjs/commands/ListTagsCommand.js.map +1 -1
  71. package/dist/cjs/commands/PurchaseReservedElasticsearchInstanceOfferingCommand.js +3 -3
  72. package/dist/cjs/commands/PurchaseReservedElasticsearchInstanceOfferingCommand.js.map +1 -1
  73. package/dist/cjs/commands/RejectInboundCrossClusterSearchConnectionCommand.js +3 -3
  74. package/dist/cjs/commands/RejectInboundCrossClusterSearchConnectionCommand.js.map +1 -1
  75. package/dist/cjs/commands/RemoveTagsCommand.js +3 -3
  76. package/dist/cjs/commands/RemoveTagsCommand.js.map +1 -1
  77. package/dist/cjs/commands/StartElasticsearchServiceSoftwareUpdateCommand.js +3 -3
  78. package/dist/cjs/commands/StartElasticsearchServiceSoftwareUpdateCommand.js.map +1 -1
  79. package/dist/cjs/commands/UpdateElasticsearchDomainConfigCommand.js +3 -3
  80. package/dist/cjs/commands/UpdateElasticsearchDomainConfigCommand.js.map +1 -1
  81. package/dist/cjs/commands/UpdatePackageCommand.js +3 -3
  82. package/dist/cjs/commands/UpdatePackageCommand.js.map +1 -1
  83. package/dist/cjs/commands/UpgradeElasticsearchDomainCommand.js +3 -3
  84. package/dist/cjs/commands/UpgradeElasticsearchDomainCommand.js.map +1 -1
  85. package/dist/cjs/endpoints.js +1 -1
  86. package/dist/cjs/endpoints.js.map +1 -1
  87. package/dist/cjs/index.js +56 -56
  88. package/dist/cjs/index.js.map +1 -1
  89. package/dist/cjs/models/index.js +1 -1
  90. package/dist/cjs/models/index.js.map +1 -1
  91. package/dist/cjs/models/models_0.js +16 -2
  92. package/dist/cjs/models/models_0.js.map +1 -1
  93. package/dist/cjs/package.json +31 -31
  94. package/dist/cjs/protocols/Aws_restJson1.js +261 -255
  95. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  96. package/dist/cjs/runtimeConfig.browser.js +4 -4
  97. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  98. package/dist/cjs/runtimeConfig.js +8 -8
  99. package/dist/cjs/runtimeConfig.js.map +1 -1
  100. package/dist/cjs/runtimeConfig.native.js +1 -1
  101. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  102. package/dist/es/commands/ListDomainNamesCommand.js +2 -2
  103. package/dist/es/commands/ListDomainNamesCommand.js.map +1 -1
  104. package/dist/es/models/models_0.js +12 -0
  105. package/dist/es/models/models_0.js.map +1 -1
  106. package/dist/es/package.json +31 -31
  107. package/dist/es/pagination/DescribeDomainAutoTunesPaginator.js +4 -4
  108. package/dist/es/pagination/DescribeDomainAutoTunesPaginator.js.map +1 -1
  109. package/dist/es/pagination/DescribeInboundCrossClusterSearchConnectionsPaginator.js +4 -4
  110. package/dist/es/pagination/DescribeInboundCrossClusterSearchConnectionsPaginator.js.map +1 -1
  111. package/dist/es/pagination/DescribeOutboundCrossClusterSearchConnectionsPaginator.js +4 -4
  112. package/dist/es/pagination/DescribeOutboundCrossClusterSearchConnectionsPaginator.js.map +1 -1
  113. package/dist/es/pagination/DescribePackagesPaginator.js +4 -4
  114. package/dist/es/pagination/DescribePackagesPaginator.js.map +1 -1
  115. package/dist/es/pagination/DescribeReservedElasticsearchInstanceOfferingsPaginator.js +4 -4
  116. package/dist/es/pagination/DescribeReservedElasticsearchInstanceOfferingsPaginator.js.map +1 -1
  117. package/dist/es/pagination/DescribeReservedElasticsearchInstancesPaginator.js +4 -4
  118. package/dist/es/pagination/DescribeReservedElasticsearchInstancesPaginator.js.map +1 -1
  119. package/dist/es/pagination/GetPackageVersionHistoryPaginator.js +4 -4
  120. package/dist/es/pagination/GetPackageVersionHistoryPaginator.js.map +1 -1
  121. package/dist/es/pagination/GetUpgradeHistoryPaginator.js +4 -4
  122. package/dist/es/pagination/GetUpgradeHistoryPaginator.js.map +1 -1
  123. package/dist/es/pagination/ListDomainsForPackagePaginator.js +4 -4
  124. package/dist/es/pagination/ListDomainsForPackagePaginator.js.map +1 -1
  125. package/dist/es/pagination/ListElasticsearchInstanceTypesPaginator.js +4 -4
  126. package/dist/es/pagination/ListElasticsearchInstanceTypesPaginator.js.map +1 -1
  127. package/dist/es/pagination/ListElasticsearchVersionsPaginator.js +4 -4
  128. package/dist/es/pagination/ListElasticsearchVersionsPaginator.js.map +1 -1
  129. package/dist/es/pagination/ListPackagesForDomainPaginator.js +4 -4
  130. package/dist/es/pagination/ListPackagesForDomainPaginator.js.map +1 -1
  131. package/dist/es/protocols/Aws_restJson1.js +23 -19
  132. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  133. package/dist/types/commands/ListDomainNamesCommand.d.ts +2 -2
  134. package/dist/types/models/models_0.d.ts +28 -5
  135. package/dist/types/ts3.4/commands/ListDomainNamesCommand.d.ts +2 -2
  136. package/dist/types/ts3.4/models/models_0.d.ts +28 -5
  137. package/models/models_0.ts +34 -5
  138. package/package.json +31 -31
  139. package/protocols/Aws_restJson1.ts +26 -17
  140. package/tsconfig.json +1 -2
@@ -14,7 +14,7 @@ const serializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand = a
14
14
  if (labelValue.length <= 0) {
15
15
  throw new Error("Empty value provided for input HTTP label: CrossClusterSearchConnectionId.");
16
16
  }
17
- resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
17
+ resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
18
18
  }
19
19
  else {
20
20
  throw new Error("No value provided for input HTTP label: CrossClusterSearchConnectionId.");
@@ -64,7 +64,7 @@ const serializeAws_restJson1AssociatePackageCommand = async (input, context) =>
64
64
  if (labelValue.length <= 0) {
65
65
  throw new Error("Empty value provided for input HTTP label: PackageID.");
66
66
  }
67
- resolvedPath = resolvedPath.replace("{PackageID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
67
+ resolvedPath = resolvedPath.replace("{PackageID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
68
68
  }
69
69
  else {
70
70
  throw new Error("No value provided for input HTTP label: PackageID.");
@@ -74,7 +74,7 @@ const serializeAws_restJson1AssociatePackageCommand = async (input, context) =>
74
74
  if (labelValue.length <= 0) {
75
75
  throw new Error("Empty value provided for input HTTP label: DomainName.");
76
76
  }
77
- resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
77
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
78
78
  }
79
79
  else {
80
80
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -251,7 +251,7 @@ const serializeAws_restJson1DeleteElasticsearchDomainCommand = async (input, con
251
251
  if (labelValue.length <= 0) {
252
252
  throw new Error("Empty value provided for input HTTP label: DomainName.");
253
253
  }
254
- resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
254
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
255
255
  }
256
256
  else {
257
257
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -297,7 +297,7 @@ const serializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand = a
297
297
  if (labelValue.length <= 0) {
298
298
  throw new Error("Empty value provided for input HTTP label: CrossClusterSearchConnectionId.");
299
299
  }
300
- resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
300
+ resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
301
301
  }
302
302
  else {
303
303
  throw new Error("No value provided for input HTTP label: CrossClusterSearchConnectionId.");
@@ -324,7 +324,7 @@ const serializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand =
324
324
  if (labelValue.length <= 0) {
325
325
  throw new Error("Empty value provided for input HTTP label: CrossClusterSearchConnectionId.");
326
326
  }
327
- resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
327
+ resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
328
328
  }
329
329
  else {
330
330
  throw new Error("No value provided for input HTTP label: CrossClusterSearchConnectionId.");
@@ -350,7 +350,7 @@ const serializeAws_restJson1DeletePackageCommand = async (input, context) => {
350
350
  if (labelValue.length <= 0) {
351
351
  throw new Error("Empty value provided for input HTTP label: PackageID.");
352
352
  }
353
- resolvedPath = resolvedPath.replace("{PackageID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
353
+ resolvedPath = resolvedPath.replace("{PackageID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
354
354
  }
355
355
  else {
356
356
  throw new Error("No value provided for input HTTP label: PackageID.");
@@ -379,7 +379,7 @@ const serializeAws_restJson1DescribeDomainAutoTunesCommand = async (input, conte
379
379
  if (labelValue.length <= 0) {
380
380
  throw new Error("Empty value provided for input HTTP label: DomainName.");
381
381
  }
382
- resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
382
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
383
383
  }
384
384
  else {
385
385
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -409,7 +409,7 @@ const serializeAws_restJson1DescribeElasticsearchDomainCommand = async (input, c
409
409
  if (labelValue.length <= 0) {
410
410
  throw new Error("Empty value provided for input HTTP label: DomainName.");
411
411
  }
412
- resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
412
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
413
413
  }
414
414
  else {
415
415
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -435,7 +435,7 @@ const serializeAws_restJson1DescribeElasticsearchDomainConfigCommand = async (in
435
435
  if (labelValue.length <= 0) {
436
436
  throw new Error("Empty value provided for input HTTP label: DomainName.");
437
437
  }
438
- resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
438
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
439
439
  }
440
440
  else {
441
441
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -484,7 +484,7 @@ const serializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = asy
484
484
  if (labelValue.length <= 0) {
485
485
  throw new Error("Empty value provided for input HTTP label: InstanceType.");
486
486
  }
487
- resolvedPath = resolvedPath.replace("{InstanceType}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
487
+ resolvedPath = resolvedPath.replace("{InstanceType}", smithy_client_1.extendedEncodeURIComponent(labelValue));
488
488
  }
489
489
  else {
490
490
  throw new Error("No value provided for input HTTP label: InstanceType.");
@@ -494,7 +494,7 @@ const serializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = asy
494
494
  if (labelValue.length <= 0) {
495
495
  throw new Error("Empty value provided for input HTTP label: ElasticsearchVersion.");
496
496
  }
497
- resolvedPath = resolvedPath.replace("{ElasticsearchVersion}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
497
+ resolvedPath = resolvedPath.replace("{ElasticsearchVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
498
498
  }
499
499
  else {
500
500
  throw new Error("No value provided for input HTTP label: ElasticsearchVersion.");
@@ -647,7 +647,7 @@ const serializeAws_restJson1DissociatePackageCommand = async (input, context) =>
647
647
  if (labelValue.length <= 0) {
648
648
  throw new Error("Empty value provided for input HTTP label: PackageID.");
649
649
  }
650
- resolvedPath = resolvedPath.replace("{PackageID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
650
+ resolvedPath = resolvedPath.replace("{PackageID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
651
651
  }
652
652
  else {
653
653
  throw new Error("No value provided for input HTTP label: PackageID.");
@@ -657,7 +657,7 @@ const serializeAws_restJson1DissociatePackageCommand = async (input, context) =>
657
657
  if (labelValue.length <= 0) {
658
658
  throw new Error("Empty value provided for input HTTP label: DomainName.");
659
659
  }
660
- resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
660
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
661
661
  }
662
662
  else {
663
663
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -703,7 +703,7 @@ const serializeAws_restJson1GetPackageVersionHistoryCommand = async (input, cont
703
703
  if (labelValue.length <= 0) {
704
704
  throw new Error("Empty value provided for input HTTP label: PackageID.");
705
705
  }
706
- resolvedPath = resolvedPath.replace("{PackageID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
706
+ resolvedPath = resolvedPath.replace("{PackageID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
707
707
  }
708
708
  else {
709
709
  throw new Error("No value provided for input HTTP label: PackageID.");
@@ -735,7 +735,7 @@ const serializeAws_restJson1GetUpgradeHistoryCommand = async (input, context) =>
735
735
  if (labelValue.length <= 0) {
736
736
  throw new Error("Empty value provided for input HTTP label: DomainName.");
737
737
  }
738
- resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
738
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
739
739
  }
740
740
  else {
741
741
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -767,7 +767,7 @@ const serializeAws_restJson1GetUpgradeStatusCommand = async (input, context) =>
767
767
  if (labelValue.length <= 0) {
768
768
  throw new Error("Empty value provided for input HTTP label: DomainName.");
769
769
  }
770
- resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
770
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
771
771
  }
772
772
  else {
773
773
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -786,12 +786,12 @@ const serializeAws_restJson1GetUpgradeStatusCommand = async (input, context) =>
786
786
  exports.serializeAws_restJson1GetUpgradeStatusCommand = serializeAws_restJson1GetUpgradeStatusCommand;
787
787
  const serializeAws_restJson1ListDomainNamesCommand = async (input, context) => {
788
788
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
789
- const headers = {
790
- "content-type": "application/json",
791
- };
789
+ const headers = {};
792
790
  let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/domain";
791
+ const query = {
792
+ ...(input.EngineType !== undefined && { engineType: input.EngineType }),
793
+ };
793
794
  let body;
794
- body = "";
795
795
  return new protocol_http_1.HttpRequest({
796
796
  protocol,
797
797
  hostname,
@@ -799,6 +799,7 @@ const serializeAws_restJson1ListDomainNamesCommand = async (input, context) => {
799
799
  method: "GET",
800
800
  headers,
801
801
  path: resolvedPath,
802
+ query,
802
803
  body,
803
804
  });
804
805
  };
@@ -812,7 +813,7 @@ const serializeAws_restJson1ListDomainsForPackageCommand = async (input, context
812
813
  if (labelValue.length <= 0) {
813
814
  throw new Error("Empty value provided for input HTTP label: PackageID.");
814
815
  }
815
- resolvedPath = resolvedPath.replace("{PackageID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
816
+ resolvedPath = resolvedPath.replace("{PackageID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
816
817
  }
817
818
  else {
818
819
  throw new Error("No value provided for input HTTP label: PackageID.");
@@ -844,7 +845,7 @@ const serializeAws_restJson1ListElasticsearchInstanceTypesCommand = async (input
844
845
  if (labelValue.length <= 0) {
845
846
  throw new Error("Empty value provided for input HTTP label: ElasticsearchVersion.");
846
847
  }
847
- resolvedPath = resolvedPath.replace("{ElasticsearchVersion}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
848
+ resolvedPath = resolvedPath.replace("{ElasticsearchVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
848
849
  }
849
850
  else {
850
851
  throw new Error("No value provided for input HTTP label: ElasticsearchVersion.");
@@ -897,7 +898,7 @@ const serializeAws_restJson1ListPackagesForDomainCommand = async (input, context
897
898
  if (labelValue.length <= 0) {
898
899
  throw new Error("Empty value provided for input HTTP label: DomainName.");
899
900
  }
900
- resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
901
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
901
902
  }
902
903
  else {
903
904
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -977,7 +978,7 @@ const serializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand = a
977
978
  if (labelValue.length <= 0) {
978
979
  throw new Error("Empty value provided for input HTTP label: CrossClusterSearchConnectionId.");
979
980
  }
980
- resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
981
+ resolvedPath = resolvedPath.replace("{CrossClusterSearchConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
981
982
  }
982
983
  else {
983
984
  throw new Error("No value provided for input HTTP label: CrossClusterSearchConnectionId.");
@@ -1050,7 +1051,7 @@ const serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = async (inpu
1050
1051
  if (labelValue.length <= 0) {
1051
1052
  throw new Error("Empty value provided for input HTTP label: DomainName.");
1052
1053
  }
1053
- resolvedPath = resolvedPath.replace("{DomainName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1054
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1054
1055
  }
1055
1056
  else {
1056
1057
  throw new Error("No value provided for input HTTP label: DomainName.");
@@ -1175,7 +1176,7 @@ const deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand =
1175
1176
  $metadata: deserializeMetadata(output),
1176
1177
  CrossClusterSearchConnection: undefined,
1177
1178
  };
1178
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1179
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1179
1180
  if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
1180
1181
  contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1181
1182
  }
@@ -1307,7 +1308,7 @@ const deserializeAws_restJson1AssociatePackageCommand = async (output, context)
1307
1308
  $metadata: deserializeMetadata(output),
1308
1309
  DomainPackageDetails: undefined,
1309
1310
  };
1310
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1311
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1311
1312
  if (data.DomainPackageDetails !== undefined && data.DomainPackageDetails !== null) {
1312
1313
  contents.DomainPackageDetails = deserializeAws_restJson1DomainPackageDetails(data.DomainPackageDetails, context);
1313
1314
  }
@@ -1395,7 +1396,7 @@ const deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand =
1395
1396
  $metadata: deserializeMetadata(output),
1396
1397
  ServiceSoftwareOptions: undefined,
1397
1398
  };
1398
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1399
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1399
1400
  if (data.ServiceSoftwareOptions !== undefined && data.ServiceSoftwareOptions !== null) {
1400
1401
  contents.ServiceSoftwareOptions = deserializeAws_restJson1ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
1401
1402
  }
@@ -1467,7 +1468,7 @@ const deserializeAws_restJson1CreateElasticsearchDomainCommand = async (output,
1467
1468
  $metadata: deserializeMetadata(output),
1468
1469
  DomainStatus: undefined,
1469
1470
  };
1470
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1471
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1471
1472
  if (data.DomainStatus !== undefined && data.DomainStatus !== null) {
1472
1473
  contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
1473
1474
  }
@@ -1567,15 +1568,15 @@ const deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand
1567
1568
  DestinationDomainInfo: undefined,
1568
1569
  SourceDomainInfo: undefined,
1569
1570
  };
1570
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1571
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1571
1572
  if (data.ConnectionAlias !== undefined && data.ConnectionAlias !== null) {
1572
- contents.ConnectionAlias = (0, smithy_client_1.expectString)(data.ConnectionAlias);
1573
+ contents.ConnectionAlias = smithy_client_1.expectString(data.ConnectionAlias);
1573
1574
  }
1574
1575
  if (data.ConnectionStatus !== undefined && data.ConnectionStatus !== null) {
1575
1576
  contents.ConnectionStatus = deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus(data.ConnectionStatus, context);
1576
1577
  }
1577
1578
  if (data.CrossClusterSearchConnectionId !== undefined && data.CrossClusterSearchConnectionId !== null) {
1578
- contents.CrossClusterSearchConnectionId = (0, smithy_client_1.expectString)(data.CrossClusterSearchConnectionId);
1579
+ contents.CrossClusterSearchConnectionId = smithy_client_1.expectString(data.CrossClusterSearchConnectionId);
1579
1580
  }
1580
1581
  if (data.DestinationDomainInfo !== undefined && data.DestinationDomainInfo !== null) {
1581
1582
  contents.DestinationDomainInfo = deserializeAws_restJson1DomainInformation(data.DestinationDomainInfo, context);
@@ -1651,7 +1652,7 @@ const deserializeAws_restJson1CreatePackageCommand = async (output, context) =>
1651
1652
  $metadata: deserializeMetadata(output),
1652
1653
  PackageDetails: undefined,
1653
1654
  };
1654
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1655
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1655
1656
  if (data.PackageDetails !== undefined && data.PackageDetails !== null) {
1656
1657
  contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
1657
1658
  }
@@ -1747,7 +1748,7 @@ const deserializeAws_restJson1DeleteElasticsearchDomainCommand = async (output,
1747
1748
  $metadata: deserializeMetadata(output),
1748
1749
  DomainStatus: undefined,
1749
1750
  };
1750
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1751
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1751
1752
  if (data.DomainStatus !== undefined && data.DomainStatus !== null) {
1752
1753
  contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
1753
1754
  }
@@ -1879,7 +1880,7 @@ const deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand =
1879
1880
  $metadata: deserializeMetadata(output),
1880
1881
  CrossClusterSearchConnection: undefined,
1881
1882
  };
1882
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1883
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1883
1884
  if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
1884
1885
  contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1885
1886
  }
@@ -1935,7 +1936,7 @@ const deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand
1935
1936
  $metadata: deserializeMetadata(output),
1936
1937
  CrossClusterSearchConnection: undefined,
1937
1938
  };
1938
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1939
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1939
1940
  if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
1940
1941
  contents.CrossClusterSearchConnection = deserializeAws_restJson1OutboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1941
1942
  }
@@ -1991,7 +1992,7 @@ const deserializeAws_restJson1DeletePackageCommand = async (output, context) =>
1991
1992
  $metadata: deserializeMetadata(output),
1992
1993
  PackageDetails: undefined,
1993
1994
  };
1994
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1995
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1995
1996
  if (data.PackageDetails !== undefined && data.PackageDetails !== null) {
1996
1997
  contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
1997
1998
  }
@@ -2080,12 +2081,12 @@ const deserializeAws_restJson1DescribeDomainAutoTunesCommand = async (output, co
2080
2081
  AutoTunes: undefined,
2081
2082
  NextToken: undefined,
2082
2083
  };
2083
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2084
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2084
2085
  if (data.AutoTunes !== undefined && data.AutoTunes !== null) {
2085
2086
  contents.AutoTunes = deserializeAws_restJson1AutoTuneList(data.AutoTunes, context);
2086
2087
  }
2087
2088
  if (data.NextToken !== undefined && data.NextToken !== null) {
2088
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2089
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2089
2090
  }
2090
2091
  return Promise.resolve(contents);
2091
2092
  };
@@ -2155,7 +2156,7 @@ const deserializeAws_restJson1DescribeElasticsearchDomainCommand = async (output
2155
2156
  $metadata: deserializeMetadata(output),
2156
2157
  DomainStatus: undefined,
2157
2158
  };
2158
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2159
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2159
2160
  if (data.DomainStatus !== undefined && data.DomainStatus !== null) {
2160
2161
  contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
2161
2162
  }
@@ -2227,7 +2228,7 @@ const deserializeAws_restJson1DescribeElasticsearchDomainConfigCommand = async (
2227
2228
  $metadata: deserializeMetadata(output),
2228
2229
  DomainConfig: undefined,
2229
2230
  };
2230
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2231
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2231
2232
  if (data.DomainConfig !== undefined && data.DomainConfig !== null) {
2232
2233
  contents.DomainConfig = deserializeAws_restJson1ElasticsearchDomainConfig(data.DomainConfig, context);
2233
2234
  }
@@ -2299,7 +2300,7 @@ const deserializeAws_restJson1DescribeElasticsearchDomainsCommand = async (outpu
2299
2300
  $metadata: deserializeMetadata(output),
2300
2301
  DomainStatusList: undefined,
2301
2302
  };
2302
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2303
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2303
2304
  if (data.DomainStatusList !== undefined && data.DomainStatusList !== null) {
2304
2305
  contents.DomainStatusList = deserializeAws_restJson1ElasticsearchDomainStatusList(data.DomainStatusList, context);
2305
2306
  }
@@ -2363,7 +2364,7 @@ const deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = a
2363
2364
  $metadata: deserializeMetadata(output),
2364
2365
  LimitsByRole: undefined,
2365
2366
  };
2366
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2367
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2367
2368
  if (data.LimitsByRole !== undefined && data.LimitsByRole !== null) {
2368
2369
  contents.LimitsByRole = deserializeAws_restJson1LimitsByRole(data.LimitsByRole, context);
2369
2370
  }
@@ -2452,12 +2453,12 @@ const deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsComman
2452
2453
  CrossClusterSearchConnections: undefined,
2453
2454
  NextToken: undefined,
2454
2455
  };
2455
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2456
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2456
2457
  if (data.CrossClusterSearchConnections !== undefined && data.CrossClusterSearchConnections !== null) {
2457
2458
  contents.CrossClusterSearchConnections = deserializeAws_restJson1InboundCrossClusterSearchConnections(data.CrossClusterSearchConnections, context);
2458
2459
  }
2459
2460
  if (data.NextToken !== undefined && data.NextToken !== null) {
2460
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2461
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2461
2462
  }
2462
2463
  return Promise.resolve(contents);
2463
2464
  };
@@ -2512,12 +2513,12 @@ const deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsComma
2512
2513
  CrossClusterSearchConnections: undefined,
2513
2514
  NextToken: undefined,
2514
2515
  };
2515
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2516
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2516
2517
  if (data.CrossClusterSearchConnections !== undefined && data.CrossClusterSearchConnections !== null) {
2517
2518
  contents.CrossClusterSearchConnections = deserializeAws_restJson1OutboundCrossClusterSearchConnections(data.CrossClusterSearchConnections, context);
2518
2519
  }
2519
2520
  if (data.NextToken !== undefined && data.NextToken !== null) {
2520
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2521
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2521
2522
  }
2522
2523
  return Promise.resolve(contents);
2523
2524
  };
@@ -2572,9 +2573,9 @@ const deserializeAws_restJson1DescribePackagesCommand = async (output, context)
2572
2573
  NextToken: undefined,
2573
2574
  PackageDetailsList: undefined,
2574
2575
  };
2575
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2576
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2576
2577
  if (data.NextToken !== undefined && data.NextToken !== null) {
2577
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2578
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2578
2579
  }
2579
2580
  if (data.PackageDetailsList !== undefined && data.PackageDetailsList !== null) {
2580
2581
  contents.PackageDetailsList = deserializeAws_restJson1PackageDetailsList(data.PackageDetailsList, context);
@@ -2656,9 +2657,9 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsComm
2656
2657
  NextToken: undefined,
2657
2658
  ReservedElasticsearchInstanceOfferings: undefined,
2658
2659
  };
2659
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2660
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2660
2661
  if (data.NextToken !== undefined && data.NextToken !== null) {
2661
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2662
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2662
2663
  }
2663
2664
  if (data.ReservedElasticsearchInstanceOfferings !== undefined &&
2664
2665
  data.ReservedElasticsearchInstanceOfferings !== null) {
@@ -2733,9 +2734,9 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = as
2733
2734
  NextToken: undefined,
2734
2735
  ReservedElasticsearchInstances: undefined,
2735
2736
  };
2736
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2737
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2737
2738
  if (data.NextToken !== undefined && data.NextToken !== null) {
2738
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2739
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2739
2740
  }
2740
2741
  if (data.ReservedElasticsearchInstances !== undefined && data.ReservedElasticsearchInstances !== null) {
2741
2742
  contents.ReservedElasticsearchInstances = deserializeAws_restJson1ReservedElasticsearchInstanceList(data.ReservedElasticsearchInstances, context);
@@ -2808,7 +2809,7 @@ const deserializeAws_restJson1DissociatePackageCommand = async (output, context)
2808
2809
  $metadata: deserializeMetadata(output),
2809
2810
  DomainPackageDetails: undefined,
2810
2811
  };
2811
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2812
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2812
2813
  if (data.DomainPackageDetails !== undefined && data.DomainPackageDetails !== null) {
2813
2814
  contents.DomainPackageDetails = deserializeAws_restJson1DomainPackageDetails(data.DomainPackageDetails, context);
2814
2815
  }
@@ -2896,7 +2897,7 @@ const deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = async
2896
2897
  $metadata: deserializeMetadata(output),
2897
2898
  CompatibleElasticsearchVersions: undefined,
2898
2899
  };
2899
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2900
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2900
2901
  if (data.CompatibleElasticsearchVersions !== undefined && data.CompatibleElasticsearchVersions !== null) {
2901
2902
  contents.CompatibleElasticsearchVersions = deserializeAws_restJson1CompatibleElasticsearchVersionsList(data.CompatibleElasticsearchVersions, context);
2902
2903
  }
@@ -2978,12 +2979,12 @@ const deserializeAws_restJson1GetPackageVersionHistoryCommand = async (output, c
2978
2979
  PackageID: undefined,
2979
2980
  PackageVersionHistoryList: undefined,
2980
2981
  };
2981
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2982
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2982
2983
  if (data.NextToken !== undefined && data.NextToken !== null) {
2983
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2984
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2984
2985
  }
2985
2986
  if (data.PackageID !== undefined && data.PackageID !== null) {
2986
- contents.PackageID = (0, smithy_client_1.expectString)(data.PackageID);
2987
+ contents.PackageID = smithy_client_1.expectString(data.PackageID);
2987
2988
  }
2988
2989
  if (data.PackageVersionHistoryList !== undefined && data.PackageVersionHistoryList !== null) {
2989
2990
  contents.PackageVersionHistoryList = deserializeAws_restJson1PackageVersionHistoryList(data.PackageVersionHistoryList, context);
@@ -3065,9 +3066,9 @@ const deserializeAws_restJson1GetUpgradeHistoryCommand = async (output, context)
3065
3066
  NextToken: undefined,
3066
3067
  UpgradeHistories: undefined,
3067
3068
  };
3068
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3069
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3069
3070
  if (data.NextToken !== undefined && data.NextToken !== null) {
3070
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3071
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
3071
3072
  }
3072
3073
  if (data.UpgradeHistories !== undefined && data.UpgradeHistories !== null) {
3073
3074
  contents.UpgradeHistories = deserializeAws_restJson1UpgradeHistoryList(data.UpgradeHistories, context);
@@ -3150,15 +3151,15 @@ const deserializeAws_restJson1GetUpgradeStatusCommand = async (output, context)
3150
3151
  UpgradeName: undefined,
3151
3152
  UpgradeStep: undefined,
3152
3153
  };
3153
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3154
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3154
3155
  if (data.StepStatus !== undefined && data.StepStatus !== null) {
3155
- contents.StepStatus = (0, smithy_client_1.expectString)(data.StepStatus);
3156
+ contents.StepStatus = smithy_client_1.expectString(data.StepStatus);
3156
3157
  }
3157
3158
  if (data.UpgradeName !== undefined && data.UpgradeName !== null) {
3158
- contents.UpgradeName = (0, smithy_client_1.expectString)(data.UpgradeName);
3159
+ contents.UpgradeName = smithy_client_1.expectString(data.UpgradeName);
3159
3160
  }
3160
3161
  if (data.UpgradeStep !== undefined && data.UpgradeStep !== null) {
3161
- contents.UpgradeStep = (0, smithy_client_1.expectString)(data.UpgradeStep);
3162
+ contents.UpgradeStep = smithy_client_1.expectString(data.UpgradeStep);
3162
3163
  }
3163
3164
  return Promise.resolve(contents);
3164
3165
  };
@@ -3236,7 +3237,7 @@ const deserializeAws_restJson1ListDomainNamesCommand = async (output, context) =
3236
3237
  $metadata: deserializeMetadata(output),
3237
3238
  DomainNames: undefined,
3238
3239
  };
3239
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3240
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3240
3241
  if (data.DomainNames !== undefined && data.DomainNames !== null) {
3241
3242
  contents.DomainNames = deserializeAws_restJson1DomainInfoList(data.DomainNames, context);
3242
3243
  }
@@ -3293,12 +3294,12 @@ const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, cont
3293
3294
  DomainPackageDetailsList: undefined,
3294
3295
  NextToken: undefined,
3295
3296
  };
3296
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3297
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3297
3298
  if (data.DomainPackageDetailsList !== undefined && data.DomainPackageDetailsList !== null) {
3298
3299
  contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
3299
3300
  }
3300
3301
  if (data.NextToken !== undefined && data.NextToken !== null) {
3301
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3302
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
3302
3303
  }
3303
3304
  return Promise.resolve(contents);
3304
3305
  };
@@ -3377,12 +3378,12 @@ const deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = async (out
3377
3378
  ElasticsearchInstanceTypes: undefined,
3378
3379
  NextToken: undefined,
3379
3380
  };
3380
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3381
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3381
3382
  if (data.ElasticsearchInstanceTypes !== undefined && data.ElasticsearchInstanceTypes !== null) {
3382
3383
  contents.ElasticsearchInstanceTypes = deserializeAws_restJson1ElasticsearchInstanceTypeList(data.ElasticsearchInstanceTypes, context);
3383
3384
  }
3384
3385
  if (data.NextToken !== undefined && data.NextToken !== null) {
3385
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3386
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
3386
3387
  }
3387
3388
  return Promise.resolve(contents);
3388
3389
  };
@@ -3453,12 +3454,12 @@ const deserializeAws_restJson1ListElasticsearchVersionsCommand = async (output,
3453
3454
  ElasticsearchVersions: undefined,
3454
3455
  NextToken: undefined,
3455
3456
  };
3456
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3457
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3457
3458
  if (data.ElasticsearchVersions !== undefined && data.ElasticsearchVersions !== null) {
3458
3459
  contents.ElasticsearchVersions = deserializeAws_restJson1ElasticsearchVersionList(data.ElasticsearchVersions, context);
3459
3460
  }
3460
3461
  if (data.NextToken !== undefined && data.NextToken !== null) {
3461
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3462
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
3462
3463
  }
3463
3464
  return Promise.resolve(contents);
3464
3465
  };
@@ -3529,12 +3530,12 @@ const deserializeAws_restJson1ListPackagesForDomainCommand = async (output, cont
3529
3530
  DomainPackageDetailsList: undefined,
3530
3531
  NextToken: undefined,
3531
3532
  };
3532
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3533
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3533
3534
  if (data.DomainPackageDetailsList !== undefined && data.DomainPackageDetailsList !== null) {
3534
3535
  contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
3535
3536
  }
3536
3537
  if (data.NextToken !== undefined && data.NextToken !== null) {
3537
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3538
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
3538
3539
  }
3539
3540
  return Promise.resolve(contents);
3540
3541
  };
@@ -3612,7 +3613,7 @@ const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
3612
3613
  $metadata: deserializeMetadata(output),
3613
3614
  TagList: undefined,
3614
3615
  };
3615
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3616
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3616
3617
  if (data.TagList !== undefined && data.TagList !== null) {
3617
3618
  contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
3618
3619
  }
@@ -3685,12 +3686,12 @@ const deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingComma
3685
3686
  ReservationName: undefined,
3686
3687
  ReservedElasticsearchInstanceId: undefined,
3687
3688
  };
3688
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3689
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3689
3690
  if (data.ReservationName !== undefined && data.ReservationName !== null) {
3690
- contents.ReservationName = (0, smithy_client_1.expectString)(data.ReservationName);
3691
+ contents.ReservationName = smithy_client_1.expectString(data.ReservationName);
3691
3692
  }
3692
3693
  if (data.ReservedElasticsearchInstanceId !== undefined && data.ReservedElasticsearchInstanceId !== null) {
3693
- contents.ReservedElasticsearchInstanceId = (0, smithy_client_1.expectString)(data.ReservedElasticsearchInstanceId);
3694
+ contents.ReservedElasticsearchInstanceId = smithy_client_1.expectString(data.ReservedElasticsearchInstanceId);
3694
3695
  }
3695
3696
  return Promise.resolve(contents);
3696
3697
  };
@@ -3776,7 +3777,7 @@ const deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand =
3776
3777
  $metadata: deserializeMetadata(output),
3777
3778
  CrossClusterSearchConnection: undefined,
3778
3779
  };
3779
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3780
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3780
3781
  if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
3781
3782
  contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
3782
3783
  }
@@ -3892,7 +3893,7 @@ const deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = a
3892
3893
  $metadata: deserializeMetadata(output),
3893
3894
  ServiceSoftwareOptions: undefined,
3894
3895
  };
3895
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3896
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3896
3897
  if (data.ServiceSoftwareOptions !== undefined && data.ServiceSoftwareOptions !== null) {
3897
3898
  contents.ServiceSoftwareOptions = deserializeAws_restJson1ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
3898
3899
  }
@@ -3964,7 +3965,7 @@ const deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = async (ou
3964
3965
  $metadata: deserializeMetadata(output),
3965
3966
  DomainConfig: undefined,
3966
3967
  };
3967
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3968
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3968
3969
  if (data.DomainConfig !== undefined && data.DomainConfig !== null) {
3969
3970
  contents.DomainConfig = deserializeAws_restJson1ElasticsearchDomainConfig(data.DomainConfig, context);
3970
3971
  }
@@ -4052,7 +4053,7 @@ const deserializeAws_restJson1UpdatePackageCommand = async (output, context) =>
4052
4053
  $metadata: deserializeMetadata(output),
4053
4054
  PackageDetails: undefined,
4054
4055
  };
4055
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4056
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4056
4057
  if (data.PackageDetails !== undefined && data.PackageDetails !== null) {
4057
4058
  contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
4058
4059
  }
@@ -4142,15 +4143,15 @@ const deserializeAws_restJson1UpgradeElasticsearchDomainCommand = async (output,
4142
4143
  PerformCheckOnly: undefined,
4143
4144
  TargetVersion: undefined,
4144
4145
  };
4145
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4146
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4146
4147
  if (data.DomainName !== undefined && data.DomainName !== null) {
4147
- contents.DomainName = (0, smithy_client_1.expectString)(data.DomainName);
4148
+ contents.DomainName = smithy_client_1.expectString(data.DomainName);
4148
4149
  }
4149
4150
  if (data.PerformCheckOnly !== undefined && data.PerformCheckOnly !== null) {
4150
- contents.PerformCheckOnly = (0, smithy_client_1.expectBoolean)(data.PerformCheckOnly);
4151
+ contents.PerformCheckOnly = smithy_client_1.expectBoolean(data.PerformCheckOnly);
4151
4152
  }
4152
4153
  if (data.TargetVersion !== undefined && data.TargetVersion !== null) {
4153
- contents.TargetVersion = (0, smithy_client_1.expectString)(data.TargetVersion);
4154
+ contents.TargetVersion = smithy_client_1.expectString(data.TargetVersion);
4154
4155
  }
4155
4156
  return Promise.resolve(contents);
4156
4157
  };
@@ -4237,7 +4238,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
4237
4238
  };
4238
4239
  const data = parsedOutput.body;
4239
4240
  if (data.message !== undefined && data.message !== null) {
4240
- contents.message = (0, smithy_client_1.expectString)(data.message);
4241
+ contents.message = smithy_client_1.expectString(data.message);
4241
4242
  }
4242
4243
  return contents;
4243
4244
  };
@@ -4250,7 +4251,7 @@ const deserializeAws_restJson1BaseExceptionResponse = async (parsedOutput, conte
4250
4251
  };
4251
4252
  const data = parsedOutput.body;
4252
4253
  if (data.message !== undefined && data.message !== null) {
4253
- contents.message = (0, smithy_client_1.expectString)(data.message);
4254
+ contents.message = smithy_client_1.expectString(data.message);
4254
4255
  }
4255
4256
  return contents;
4256
4257
  };
@@ -4263,7 +4264,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
4263
4264
  };
4264
4265
  const data = parsedOutput.body;
4265
4266
  if (data.message !== undefined && data.message !== null) {
4266
- contents.message = (0, smithy_client_1.expectString)(data.message);
4267
+ contents.message = smithy_client_1.expectString(data.message);
4267
4268
  }
4268
4269
  return contents;
4269
4270
  };
@@ -4276,7 +4277,7 @@ const deserializeAws_restJson1DisabledOperationExceptionResponse = async (parsed
4276
4277
  };
4277
4278
  const data = parsedOutput.body;
4278
4279
  if (data.message !== undefined && data.message !== null) {
4279
- contents.message = (0, smithy_client_1.expectString)(data.message);
4280
+ contents.message = smithy_client_1.expectString(data.message);
4280
4281
  }
4281
4282
  return contents;
4282
4283
  };
@@ -4289,7 +4290,7 @@ const deserializeAws_restJson1InternalExceptionResponse = async (parsedOutput, c
4289
4290
  };
4290
4291
  const data = parsedOutput.body;
4291
4292
  if (data.message !== undefined && data.message !== null) {
4292
- contents.message = (0, smithy_client_1.expectString)(data.message);
4293
+ contents.message = smithy_client_1.expectString(data.message);
4293
4294
  }
4294
4295
  return contents;
4295
4296
  };
@@ -4302,7 +4303,7 @@ const deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = async (p
4302
4303
  };
4303
4304
  const data = parsedOutput.body;
4304
4305
  if (data.message !== undefined && data.message !== null) {
4305
- contents.message = (0, smithy_client_1.expectString)(data.message);
4306
+ contents.message = smithy_client_1.expectString(data.message);
4306
4307
  }
4307
4308
  return contents;
4308
4309
  };
@@ -4315,7 +4316,7 @@ const deserializeAws_restJson1InvalidTypeExceptionResponse = async (parsedOutput
4315
4316
  };
4316
4317
  const data = parsedOutput.body;
4317
4318
  if (data.message !== undefined && data.message !== null) {
4318
- contents.message = (0, smithy_client_1.expectString)(data.message);
4319
+ contents.message = smithy_client_1.expectString(data.message);
4319
4320
  }
4320
4321
  return contents;
4321
4322
  };
@@ -4328,7 +4329,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
4328
4329
  };
4329
4330
  const data = parsedOutput.body;
4330
4331
  if (data.message !== undefined && data.message !== null) {
4331
- contents.message = (0, smithy_client_1.expectString)(data.message);
4332
+ contents.message = smithy_client_1.expectString(data.message);
4332
4333
  }
4333
4334
  return contents;
4334
4335
  };
@@ -4341,7 +4342,7 @@ const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (pa
4341
4342
  };
4342
4343
  const data = parsedOutput.body;
4343
4344
  if (data.message !== undefined && data.message !== null) {
4344
- contents.message = (0, smithy_client_1.expectString)(data.message);
4345
+ contents.message = smithy_client_1.expectString(data.message);
4345
4346
  }
4346
4347
  return contents;
4347
4348
  };
@@ -4354,7 +4355,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
4354
4355
  };
4355
4356
  const data = parsedOutput.body;
4356
4357
  if (data.message !== undefined && data.message !== null) {
4357
- contents.message = (0, smithy_client_1.expectString)(data.message);
4358
+ contents.message = smithy_client_1.expectString(data.message);
4358
4359
  }
4359
4360
  return contents;
4360
4361
  };
@@ -4367,7 +4368,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
4367
4368
  };
4368
4369
  const data = parsedOutput.body;
4369
4370
  if (data.message !== undefined && data.message !== null) {
4370
- contents.message = (0, smithy_client_1.expectString)(data.message);
4371
+ contents.message = smithy_client_1.expectString(data.message);
4371
4372
  }
4372
4373
  return contents;
4373
4374
  };
@@ -4691,7 +4692,7 @@ const serializeAws_restJson1ZoneAwarenessConfig = (input, context) => {
4691
4692
  };
4692
4693
  const deserializeAws_restJson1AccessPoliciesStatus = (output, context) => {
4693
4694
  return {
4694
- Options: (0, smithy_client_1.expectString)(output.Options),
4695
+ Options: smithy_client_1.expectString(output.Options),
4695
4696
  Status: output.Status !== undefined && output.Status !== null
4696
4697
  ? deserializeAws_restJson1OptionStatus(output.Status, context)
4697
4698
  : undefined,
@@ -4699,7 +4700,7 @@ const deserializeAws_restJson1AccessPoliciesStatus = (output, context) => {
4699
4700
  };
4700
4701
  const deserializeAws_restJson1AdditionalLimit = (output, context) => {
4701
4702
  return {
4702
- LimitName: (0, smithy_client_1.expectString)(output.LimitName),
4703
+ LimitName: smithy_client_1.expectString(output.LimitName),
4703
4704
  LimitValues: output.LimitValues !== undefined && output.LimitValues !== null
4704
4705
  ? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
4705
4706
  : undefined,
@@ -4722,7 +4723,7 @@ const deserializeAws_restJson1AdvancedOptions = (output, context) => {
4722
4723
  }
4723
4724
  return {
4724
4725
  ...acc,
4725
- [key]: (0, smithy_client_1.expectString)(value),
4726
+ [key]: smithy_client_1.expectString(value),
4726
4727
  };
4727
4728
  }, {});
4728
4729
  };
@@ -4738,8 +4739,8 @@ const deserializeAws_restJson1AdvancedOptionsStatus = (output, context) => {
4738
4739
  };
4739
4740
  const deserializeAws_restJson1AdvancedSecurityOptions = (output, context) => {
4740
4741
  return {
4741
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4742
- InternalUserDatabaseEnabled: (0, smithy_client_1.expectBoolean)(output.InternalUserDatabaseEnabled),
4742
+ Enabled: smithy_client_1.expectBoolean(output.Enabled),
4743
+ InternalUserDatabaseEnabled: smithy_client_1.expectBoolean(output.InternalUserDatabaseEnabled),
4743
4744
  SAMLOptions: output.SAMLOptions !== undefined && output.SAMLOptions !== null
4744
4745
  ? deserializeAws_restJson1SAMLOptionsOutput(output.SAMLOptions, context)
4745
4746
  : undefined,
@@ -4760,7 +4761,7 @@ const deserializeAws_restJson1AutoTune = (output, context) => {
4760
4761
  AutoTuneDetails: output.AutoTuneDetails !== undefined && output.AutoTuneDetails !== null
4761
4762
  ? deserializeAws_restJson1AutoTuneDetails(output.AutoTuneDetails, context)
4762
4763
  : undefined,
4763
- AutoTuneType: (0, smithy_client_1.expectString)(output.AutoTuneType),
4764
+ AutoTuneType: smithy_client_1.expectString(output.AutoTuneType),
4764
4765
  };
4765
4766
  };
4766
4767
  const deserializeAws_restJson1AutoTuneDetails = (output, context) => {
@@ -4782,11 +4783,13 @@ const deserializeAws_restJson1AutoTuneList = (output, context) => {
4782
4783
  };
4783
4784
  const deserializeAws_restJson1AutoTuneMaintenanceSchedule = (output, context) => {
4784
4785
  return {
4785
- CronExpressionForRecurrence: (0, smithy_client_1.expectString)(output.CronExpressionForRecurrence),
4786
+ CronExpressionForRecurrence: smithy_client_1.expectString(output.CronExpressionForRecurrence),
4786
4787
  Duration: output.Duration !== undefined && output.Duration !== null
4787
4788
  ? deserializeAws_restJson1Duration(output.Duration, context)
4788
4789
  : undefined,
4789
- StartAt: output.StartAt !== undefined && output.StartAt !== null ? new Date(Math.round(output.StartAt * 1000)) : undefined,
4790
+ StartAt: output.StartAt !== undefined && output.StartAt !== null
4791
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartAt)))
4792
+ : undefined,
4790
4793
  };
4791
4794
  };
4792
4795
  const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = (output, context) => {
@@ -4801,17 +4804,17 @@ const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = (output, context
4801
4804
  };
4802
4805
  const deserializeAws_restJson1AutoTuneOptions = (output, context) => {
4803
4806
  return {
4804
- DesiredState: (0, smithy_client_1.expectString)(output.DesiredState),
4807
+ DesiredState: smithy_client_1.expectString(output.DesiredState),
4805
4808
  MaintenanceSchedules: output.MaintenanceSchedules !== undefined && output.MaintenanceSchedules !== null
4806
4809
  ? deserializeAws_restJson1AutoTuneMaintenanceScheduleList(output.MaintenanceSchedules, context)
4807
4810
  : undefined,
4808
- RollbackOnDisable: (0, smithy_client_1.expectString)(output.RollbackOnDisable),
4811
+ RollbackOnDisable: smithy_client_1.expectString(output.RollbackOnDisable),
4809
4812
  };
4810
4813
  };
4811
4814
  const deserializeAws_restJson1AutoTuneOptionsOutput = (output, context) => {
4812
4815
  return {
4813
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4814
- State: (0, smithy_client_1.expectString)(output.State),
4816
+ ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
4817
+ State: smithy_client_1.expectString(output.State),
4815
4818
  };
4816
4819
  };
4817
4820
  const deserializeAws_restJson1AutoTuneOptionsStatus = (output, context) => {
@@ -4827,23 +4830,23 @@ const deserializeAws_restJson1AutoTuneOptionsStatus = (output, context) => {
4827
4830
  const deserializeAws_restJson1AutoTuneStatus = (output, context) => {
4828
4831
  return {
4829
4832
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
4830
- ? new Date(Math.round(output.CreationDate * 1000))
4833
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
4831
4834
  : undefined,
4832
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4833
- PendingDeletion: (0, smithy_client_1.expectBoolean)(output.PendingDeletion),
4834
- State: (0, smithy_client_1.expectString)(output.State),
4835
+ ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
4836
+ PendingDeletion: smithy_client_1.expectBoolean(output.PendingDeletion),
4837
+ State: smithy_client_1.expectString(output.State),
4835
4838
  UpdateDate: output.UpdateDate !== undefined && output.UpdateDate !== null
4836
- ? new Date(Math.round(output.UpdateDate * 1000))
4839
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdateDate)))
4837
4840
  : undefined,
4838
- UpdateVersion: (0, smithy_client_1.expectInt32)(output.UpdateVersion),
4841
+ UpdateVersion: smithy_client_1.expectInt32(output.UpdateVersion),
4839
4842
  };
4840
4843
  };
4841
4844
  const deserializeAws_restJson1CognitoOptions = (output, context) => {
4842
4845
  return {
4843
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4844
- IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
4845
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4846
- UserPoolId: (0, smithy_client_1.expectString)(output.UserPoolId),
4846
+ Enabled: smithy_client_1.expectBoolean(output.Enabled),
4847
+ IdentityPoolId: smithy_client_1.expectString(output.IdentityPoolId),
4848
+ RoleArn: smithy_client_1.expectString(output.RoleArn),
4849
+ UserPoolId: smithy_client_1.expectString(output.UserPoolId),
4847
4850
  };
4848
4851
  };
4849
4852
  const deserializeAws_restJson1CognitoOptionsStatus = (output, context) => {
@@ -4858,7 +4861,7 @@ const deserializeAws_restJson1CognitoOptionsStatus = (output, context) => {
4858
4861
  };
4859
4862
  const deserializeAws_restJson1ColdStorageOptions = (output, context) => {
4860
4863
  return {
4861
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4864
+ Enabled: smithy_client_1.expectBoolean(output.Enabled),
4862
4865
  };
4863
4866
  };
4864
4867
  const deserializeAws_restJson1CompatibleElasticsearchVersionsList = (output, context) => {
@@ -4873,7 +4876,7 @@ const deserializeAws_restJson1CompatibleElasticsearchVersionsList = (output, con
4873
4876
  };
4874
4877
  const deserializeAws_restJson1CompatibleVersionsMap = (output, context) => {
4875
4878
  return {
4876
- SourceVersion: (0, smithy_client_1.expectString)(output.SourceVersion),
4879
+ SourceVersion: smithy_client_1.expectString(output.SourceVersion),
4877
4880
  TargetVersions: output.TargetVersions !== undefined && output.TargetVersions !== null
4878
4881
  ? deserializeAws_restJson1ElasticsearchVersionList(output.TargetVersions, context)
4879
4882
  : undefined,
@@ -4881,11 +4884,11 @@ const deserializeAws_restJson1CompatibleVersionsMap = (output, context) => {
4881
4884
  };
4882
4885
  const deserializeAws_restJson1DomainEndpointOptions = (output, context) => {
4883
4886
  return {
4884
- CustomEndpoint: (0, smithy_client_1.expectString)(output.CustomEndpoint),
4885
- CustomEndpointCertificateArn: (0, smithy_client_1.expectString)(output.CustomEndpointCertificateArn),
4886
- CustomEndpointEnabled: (0, smithy_client_1.expectBoolean)(output.CustomEndpointEnabled),
4887
- EnforceHTTPS: (0, smithy_client_1.expectBoolean)(output.EnforceHTTPS),
4888
- TLSSecurityPolicy: (0, smithy_client_1.expectString)(output.TLSSecurityPolicy),
4887
+ CustomEndpoint: smithy_client_1.expectString(output.CustomEndpoint),
4888
+ CustomEndpointCertificateArn: smithy_client_1.expectString(output.CustomEndpointCertificateArn),
4889
+ CustomEndpointEnabled: smithy_client_1.expectBoolean(output.CustomEndpointEnabled),
4890
+ EnforceHTTPS: smithy_client_1.expectBoolean(output.EnforceHTTPS),
4891
+ TLSSecurityPolicy: smithy_client_1.expectString(output.TLSSecurityPolicy),
4889
4892
  };
4890
4893
  };
4891
4894
  const deserializeAws_restJson1DomainEndpointOptionsStatus = (output, context) => {
@@ -4900,7 +4903,8 @@ const deserializeAws_restJson1DomainEndpointOptionsStatus = (output, context) =>
4900
4903
  };
4901
4904
  const deserializeAws_restJson1DomainInfo = (output, context) => {
4902
4905
  return {
4903
- DomainName: (0, smithy_client_1.expectString)(output.DomainName),
4906
+ DomainName: smithy_client_1.expectString(output.DomainName),
4907
+ EngineType: smithy_client_1.expectString(output.EngineType),
4904
4908
  };
4905
4909
  };
4906
4910
  const deserializeAws_restJson1DomainInfoList = (output, context) => {
@@ -4915,26 +4919,26 @@ const deserializeAws_restJson1DomainInfoList = (output, context) => {
4915
4919
  };
4916
4920
  const deserializeAws_restJson1DomainInformation = (output, context) => {
4917
4921
  return {
4918
- DomainName: (0, smithy_client_1.expectString)(output.DomainName),
4919
- OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
4920
- Region: (0, smithy_client_1.expectString)(output.Region),
4922
+ DomainName: smithy_client_1.expectString(output.DomainName),
4923
+ OwnerId: smithy_client_1.expectString(output.OwnerId),
4924
+ Region: smithy_client_1.expectString(output.Region),
4921
4925
  };
4922
4926
  };
4923
4927
  const deserializeAws_restJson1DomainPackageDetails = (output, context) => {
4924
4928
  return {
4925
- DomainName: (0, smithy_client_1.expectString)(output.DomainName),
4926
- DomainPackageStatus: (0, smithy_client_1.expectString)(output.DomainPackageStatus),
4929
+ DomainName: smithy_client_1.expectString(output.DomainName),
4930
+ DomainPackageStatus: smithy_client_1.expectString(output.DomainPackageStatus),
4927
4931
  ErrorDetails: output.ErrorDetails !== undefined && output.ErrorDetails !== null
4928
4932
  ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
4929
4933
  : undefined,
4930
4934
  LastUpdated: output.LastUpdated !== undefined && output.LastUpdated !== null
4931
- ? new Date(Math.round(output.LastUpdated * 1000))
4935
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdated)))
4932
4936
  : undefined,
4933
- PackageID: (0, smithy_client_1.expectString)(output.PackageID),
4934
- PackageName: (0, smithy_client_1.expectString)(output.PackageName),
4935
- PackageType: (0, smithy_client_1.expectString)(output.PackageType),
4936
- PackageVersion: (0, smithy_client_1.expectString)(output.PackageVersion),
4937
- ReferencePath: (0, smithy_client_1.expectString)(output.ReferencePath),
4937
+ PackageID: smithy_client_1.expectString(output.PackageID),
4938
+ PackageName: smithy_client_1.expectString(output.PackageName),
4939
+ PackageType: smithy_client_1.expectString(output.PackageType),
4940
+ PackageVersion: smithy_client_1.expectString(output.PackageVersion),
4941
+ ReferencePath: smithy_client_1.expectString(output.ReferencePath),
4938
4942
  };
4939
4943
  };
4940
4944
  const deserializeAws_restJson1DomainPackageDetailsList = (output, context) => {
@@ -4949,16 +4953,16 @@ const deserializeAws_restJson1DomainPackageDetailsList = (output, context) => {
4949
4953
  };
4950
4954
  const deserializeAws_restJson1Duration = (output, context) => {
4951
4955
  return {
4952
- Unit: (0, smithy_client_1.expectString)(output.Unit),
4953
- Value: (0, smithy_client_1.expectLong)(output.Value),
4956
+ Unit: smithy_client_1.expectString(output.Unit),
4957
+ Value: smithy_client_1.expectLong(output.Value),
4954
4958
  };
4955
4959
  };
4956
4960
  const deserializeAws_restJson1EBSOptions = (output, context) => {
4957
4961
  return {
4958
- EBSEnabled: (0, smithy_client_1.expectBoolean)(output.EBSEnabled),
4959
- Iops: (0, smithy_client_1.expectInt32)(output.Iops),
4960
- VolumeSize: (0, smithy_client_1.expectInt32)(output.VolumeSize),
4961
- VolumeType: (0, smithy_client_1.expectString)(output.VolumeType),
4962
+ EBSEnabled: smithy_client_1.expectBoolean(output.EBSEnabled),
4963
+ Iops: smithy_client_1.expectInt32(output.Iops),
4964
+ VolumeSize: smithy_client_1.expectInt32(output.VolumeSize),
4965
+ VolumeType: smithy_client_1.expectString(output.VolumeType),
4962
4966
  };
4963
4967
  };
4964
4968
  const deserializeAws_restJson1EBSOptionsStatus = (output, context) => {
@@ -4976,18 +4980,18 @@ const deserializeAws_restJson1ElasticsearchClusterConfig = (output, context) =>
4976
4980
  ColdStorageOptions: output.ColdStorageOptions !== undefined && output.ColdStorageOptions !== null
4977
4981
  ? deserializeAws_restJson1ColdStorageOptions(output.ColdStorageOptions, context)
4978
4982
  : undefined,
4979
- DedicatedMasterCount: (0, smithy_client_1.expectInt32)(output.DedicatedMasterCount),
4980
- DedicatedMasterEnabled: (0, smithy_client_1.expectBoolean)(output.DedicatedMasterEnabled),
4981
- DedicatedMasterType: (0, smithy_client_1.expectString)(output.DedicatedMasterType),
4982
- InstanceCount: (0, smithy_client_1.expectInt32)(output.InstanceCount),
4983
- InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
4984
- WarmCount: (0, smithy_client_1.expectInt32)(output.WarmCount),
4985
- WarmEnabled: (0, smithy_client_1.expectBoolean)(output.WarmEnabled),
4986
- WarmType: (0, smithy_client_1.expectString)(output.WarmType),
4983
+ DedicatedMasterCount: smithy_client_1.expectInt32(output.DedicatedMasterCount),
4984
+ DedicatedMasterEnabled: smithy_client_1.expectBoolean(output.DedicatedMasterEnabled),
4985
+ DedicatedMasterType: smithy_client_1.expectString(output.DedicatedMasterType),
4986
+ InstanceCount: smithy_client_1.expectInt32(output.InstanceCount),
4987
+ InstanceType: smithy_client_1.expectString(output.InstanceType),
4988
+ WarmCount: smithy_client_1.expectInt32(output.WarmCount),
4989
+ WarmEnabled: smithy_client_1.expectBoolean(output.WarmEnabled),
4990
+ WarmType: smithy_client_1.expectString(output.WarmType),
4987
4991
  ZoneAwarenessConfig: output.ZoneAwarenessConfig !== undefined && output.ZoneAwarenessConfig !== null
4988
4992
  ? deserializeAws_restJson1ZoneAwarenessConfig(output.ZoneAwarenessConfig, context)
4989
4993
  : undefined,
4990
- ZoneAwarenessEnabled: (0, smithy_client_1.expectBoolean)(output.ZoneAwarenessEnabled),
4994
+ ZoneAwarenessEnabled: smithy_client_1.expectBoolean(output.ZoneAwarenessEnabled),
4991
4995
  };
4992
4996
  };
4993
4997
  const deserializeAws_restJson1ElasticsearchClusterConfigStatus = (output, context) => {
@@ -5048,8 +5052,8 @@ const deserializeAws_restJson1ElasticsearchDomainConfig = (output, context) => {
5048
5052
  };
5049
5053
  const deserializeAws_restJson1ElasticsearchDomainStatus = (output, context) => {
5050
5054
  return {
5051
- ARN: (0, smithy_client_1.expectString)(output.ARN),
5052
- AccessPolicies: (0, smithy_client_1.expectString)(output.AccessPolicies),
5055
+ ARN: smithy_client_1.expectString(output.ARN),
5056
+ AccessPolicies: smithy_client_1.expectString(output.AccessPolicies),
5053
5057
  AdvancedOptions: output.AdvancedOptions !== undefined && output.AdvancedOptions !== null
5054
5058
  ? deserializeAws_restJson1AdvancedOptions(output.AdvancedOptions, context)
5055
5059
  : undefined,
@@ -5062,24 +5066,24 @@ const deserializeAws_restJson1ElasticsearchDomainStatus = (output, context) => {
5062
5066
  CognitoOptions: output.CognitoOptions !== undefined && output.CognitoOptions !== null
5063
5067
  ? deserializeAws_restJson1CognitoOptions(output.CognitoOptions, context)
5064
5068
  : undefined,
5065
- Created: (0, smithy_client_1.expectBoolean)(output.Created),
5066
- Deleted: (0, smithy_client_1.expectBoolean)(output.Deleted),
5069
+ Created: smithy_client_1.expectBoolean(output.Created),
5070
+ Deleted: smithy_client_1.expectBoolean(output.Deleted),
5067
5071
  DomainEndpointOptions: output.DomainEndpointOptions !== undefined && output.DomainEndpointOptions !== null
5068
5072
  ? deserializeAws_restJson1DomainEndpointOptions(output.DomainEndpointOptions, context)
5069
5073
  : undefined,
5070
- DomainId: (0, smithy_client_1.expectString)(output.DomainId),
5071
- DomainName: (0, smithy_client_1.expectString)(output.DomainName),
5074
+ DomainId: smithy_client_1.expectString(output.DomainId),
5075
+ DomainName: smithy_client_1.expectString(output.DomainName),
5072
5076
  EBSOptions: output.EBSOptions !== undefined && output.EBSOptions !== null
5073
5077
  ? deserializeAws_restJson1EBSOptions(output.EBSOptions, context)
5074
5078
  : undefined,
5075
5079
  ElasticsearchClusterConfig: output.ElasticsearchClusterConfig !== undefined && output.ElasticsearchClusterConfig !== null
5076
5080
  ? deserializeAws_restJson1ElasticsearchClusterConfig(output.ElasticsearchClusterConfig, context)
5077
5081
  : undefined,
5078
- ElasticsearchVersion: (0, smithy_client_1.expectString)(output.ElasticsearchVersion),
5082
+ ElasticsearchVersion: smithy_client_1.expectString(output.ElasticsearchVersion),
5079
5083
  EncryptionAtRestOptions: output.EncryptionAtRestOptions !== undefined && output.EncryptionAtRestOptions !== null
5080
5084
  ? deserializeAws_restJson1EncryptionAtRestOptions(output.EncryptionAtRestOptions, context)
5081
5085
  : undefined,
5082
- Endpoint: (0, smithy_client_1.expectString)(output.Endpoint),
5086
+ Endpoint: smithy_client_1.expectString(output.Endpoint),
5083
5087
  Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
5084
5088
  ? deserializeAws_restJson1EndpointsMap(output.Endpoints, context)
5085
5089
  : undefined,
@@ -5089,14 +5093,14 @@ const deserializeAws_restJson1ElasticsearchDomainStatus = (output, context) => {
5089
5093
  NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions !== undefined && output.NodeToNodeEncryptionOptions !== null
5090
5094
  ? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.NodeToNodeEncryptionOptions, context)
5091
5095
  : undefined,
5092
- Processing: (0, smithy_client_1.expectBoolean)(output.Processing),
5096
+ Processing: smithy_client_1.expectBoolean(output.Processing),
5093
5097
  ServiceSoftwareOptions: output.ServiceSoftwareOptions !== undefined && output.ServiceSoftwareOptions !== null
5094
5098
  ? deserializeAws_restJson1ServiceSoftwareOptions(output.ServiceSoftwareOptions, context)
5095
5099
  : undefined,
5096
5100
  SnapshotOptions: output.SnapshotOptions !== undefined && output.SnapshotOptions !== null
5097
5101
  ? deserializeAws_restJson1SnapshotOptions(output.SnapshotOptions, context)
5098
5102
  : undefined,
5099
- UpgradeProcessing: (0, smithy_client_1.expectBoolean)(output.UpgradeProcessing),
5103
+ UpgradeProcessing: smithy_client_1.expectBoolean(output.UpgradeProcessing),
5100
5104
  VPCOptions: output.VPCOptions !== undefined && output.VPCOptions !== null
5101
5105
  ? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context)
5102
5106
  : undefined,
@@ -5119,7 +5123,7 @@ const deserializeAws_restJson1ElasticsearchInstanceTypeList = (output, context)
5119
5123
  if (entry === null) {
5120
5124
  return null;
5121
5125
  }
5122
- return (0, smithy_client_1.expectString)(entry);
5126
+ return smithy_client_1.expectString(entry);
5123
5127
  });
5124
5128
  };
5125
5129
  const deserializeAws_restJson1ElasticsearchVersionList = (output, context) => {
@@ -5129,12 +5133,12 @@ const deserializeAws_restJson1ElasticsearchVersionList = (output, context) => {
5129
5133
  if (entry === null) {
5130
5134
  return null;
5131
5135
  }
5132
- return (0, smithy_client_1.expectString)(entry);
5136
+ return smithy_client_1.expectString(entry);
5133
5137
  });
5134
5138
  };
5135
5139
  const deserializeAws_restJson1ElasticsearchVersionStatus = (output, context) => {
5136
5140
  return {
5137
- Options: (0, smithy_client_1.expectString)(output.Options),
5141
+ Options: smithy_client_1.expectString(output.Options),
5138
5142
  Status: output.Status !== undefined && output.Status !== null
5139
5143
  ? deserializeAws_restJson1OptionStatus(output.Status, context)
5140
5144
  : undefined,
@@ -5142,8 +5146,8 @@ const deserializeAws_restJson1ElasticsearchVersionStatus = (output, context) =>
5142
5146
  };
5143
5147
  const deserializeAws_restJson1EncryptionAtRestOptions = (output, context) => {
5144
5148
  return {
5145
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
5146
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
5149
+ Enabled: smithy_client_1.expectBoolean(output.Enabled),
5150
+ KmsKeyId: smithy_client_1.expectString(output.KmsKeyId),
5147
5151
  };
5148
5152
  };
5149
5153
  const deserializeAws_restJson1EncryptionAtRestOptionsStatus = (output, context) => {
@@ -5163,14 +5167,14 @@ const deserializeAws_restJson1EndpointsMap = (output, context) => {
5163
5167
  }
5164
5168
  return {
5165
5169
  ...acc,
5166
- [key]: (0, smithy_client_1.expectString)(value),
5170
+ [key]: smithy_client_1.expectString(value),
5167
5171
  };
5168
5172
  }, {});
5169
5173
  };
5170
5174
  const deserializeAws_restJson1ErrorDetails = (output, context) => {
5171
5175
  return {
5172
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
5173
- ErrorType: (0, smithy_client_1.expectString)(output.ErrorType),
5176
+ ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
5177
+ ErrorType: smithy_client_1.expectString(output.ErrorType),
5174
5178
  };
5175
5179
  };
5176
5180
  const deserializeAws_restJson1InboundCrossClusterSearchConnection = (output, context) => {
@@ -5178,7 +5182,7 @@ const deserializeAws_restJson1InboundCrossClusterSearchConnection = (output, con
5178
5182
  ConnectionStatus: output.ConnectionStatus !== undefined && output.ConnectionStatus !== null
5179
5183
  ? deserializeAws_restJson1InboundCrossClusterSearchConnectionStatus(output.ConnectionStatus, context)
5180
5184
  : undefined,
5181
- CrossClusterSearchConnectionId: (0, smithy_client_1.expectString)(output.CrossClusterSearchConnectionId),
5185
+ CrossClusterSearchConnectionId: smithy_client_1.expectString(output.CrossClusterSearchConnectionId),
5182
5186
  DestinationDomainInfo: output.DestinationDomainInfo !== undefined && output.DestinationDomainInfo !== null
5183
5187
  ? deserializeAws_restJson1DomainInformation(output.DestinationDomainInfo, context)
5184
5188
  : undefined,
@@ -5199,14 +5203,14 @@ const deserializeAws_restJson1InboundCrossClusterSearchConnections = (output, co
5199
5203
  };
5200
5204
  const deserializeAws_restJson1InboundCrossClusterSearchConnectionStatus = (output, context) => {
5201
5205
  return {
5202
- Message: (0, smithy_client_1.expectString)(output.Message),
5203
- StatusCode: (0, smithy_client_1.expectString)(output.StatusCode),
5206
+ Message: smithy_client_1.expectString(output.Message),
5207
+ StatusCode: smithy_client_1.expectString(output.StatusCode),
5204
5208
  };
5205
5209
  };
5206
5210
  const deserializeAws_restJson1InstanceCountLimits = (output, context) => {
5207
5211
  return {
5208
- MaximumInstanceCount: (0, smithy_client_1.expectInt32)(output.MaximumInstanceCount),
5209
- MinimumInstanceCount: (0, smithy_client_1.expectInt32)(output.MinimumInstanceCount),
5212
+ MaximumInstanceCount: smithy_client_1.expectInt32(output.MaximumInstanceCount),
5213
+ MinimumInstanceCount: smithy_client_1.expectInt32(output.MinimumInstanceCount),
5210
5214
  };
5211
5215
  };
5212
5216
  const deserializeAws_restJson1InstanceLimits = (output, context) => {
@@ -5223,7 +5227,7 @@ const deserializeAws_restJson1Issues = (output, context) => {
5223
5227
  if (entry === null) {
5224
5228
  return null;
5225
5229
  }
5226
- return (0, smithy_client_1.expectString)(entry);
5230
+ return smithy_client_1.expectString(entry);
5227
5231
  });
5228
5232
  };
5229
5233
  const deserializeAws_restJson1Limits = (output, context) => {
@@ -5257,13 +5261,13 @@ const deserializeAws_restJson1LimitValueList = (output, context) => {
5257
5261
  if (entry === null) {
5258
5262
  return null;
5259
5263
  }
5260
- return (0, smithy_client_1.expectString)(entry);
5264
+ return smithy_client_1.expectString(entry);
5261
5265
  });
5262
5266
  };
5263
5267
  const deserializeAws_restJson1LogPublishingOption = (output, context) => {
5264
5268
  return {
5265
- CloudWatchLogsLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogsLogGroupArn),
5266
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
5269
+ CloudWatchLogsLogGroupArn: smithy_client_1.expectString(output.CloudWatchLogsLogGroupArn),
5270
+ Enabled: smithy_client_1.expectBoolean(output.Enabled),
5267
5271
  };
5268
5272
  };
5269
5273
  const deserializeAws_restJson1LogPublishingOptions = (output, context) => {
@@ -5289,7 +5293,7 @@ const deserializeAws_restJson1LogPublishingOptionsStatus = (output, context) =>
5289
5293
  };
5290
5294
  const deserializeAws_restJson1NodeToNodeEncryptionOptions = (output, context) => {
5291
5295
  return {
5292
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
5296
+ Enabled: smithy_client_1.expectBoolean(output.Enabled),
5293
5297
  };
5294
5298
  };
5295
5299
  const deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus = (output, context) => {
@@ -5305,23 +5309,23 @@ const deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus = (output, conte
5305
5309
  const deserializeAws_restJson1OptionStatus = (output, context) => {
5306
5310
  return {
5307
5311
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
5308
- ? new Date(Math.round(output.CreationDate * 1000))
5312
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
5309
5313
  : undefined,
5310
- PendingDeletion: (0, smithy_client_1.expectBoolean)(output.PendingDeletion),
5311
- State: (0, smithy_client_1.expectString)(output.State),
5314
+ PendingDeletion: smithy_client_1.expectBoolean(output.PendingDeletion),
5315
+ State: smithy_client_1.expectString(output.State),
5312
5316
  UpdateDate: output.UpdateDate !== undefined && output.UpdateDate !== null
5313
- ? new Date(Math.round(output.UpdateDate * 1000))
5317
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdateDate)))
5314
5318
  : undefined,
5315
- UpdateVersion: (0, smithy_client_1.expectInt32)(output.UpdateVersion),
5319
+ UpdateVersion: smithy_client_1.expectInt32(output.UpdateVersion),
5316
5320
  };
5317
5321
  };
5318
5322
  const deserializeAws_restJson1OutboundCrossClusterSearchConnection = (output, context) => {
5319
5323
  return {
5320
- ConnectionAlias: (0, smithy_client_1.expectString)(output.ConnectionAlias),
5324
+ ConnectionAlias: smithy_client_1.expectString(output.ConnectionAlias),
5321
5325
  ConnectionStatus: output.ConnectionStatus !== undefined && output.ConnectionStatus !== null
5322
5326
  ? deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus(output.ConnectionStatus, context)
5323
5327
  : undefined,
5324
- CrossClusterSearchConnectionId: (0, smithy_client_1.expectString)(output.CrossClusterSearchConnectionId),
5328
+ CrossClusterSearchConnectionId: smithy_client_1.expectString(output.CrossClusterSearchConnectionId),
5325
5329
  DestinationDomainInfo: output.DestinationDomainInfo !== undefined && output.DestinationDomainInfo !== null
5326
5330
  ? deserializeAws_restJson1DomainInformation(output.DestinationDomainInfo, context)
5327
5331
  : undefined,
@@ -5342,27 +5346,27 @@ const deserializeAws_restJson1OutboundCrossClusterSearchConnections = (output, c
5342
5346
  };
5343
5347
  const deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus = (output, context) => {
5344
5348
  return {
5345
- Message: (0, smithy_client_1.expectString)(output.Message),
5346
- StatusCode: (0, smithy_client_1.expectString)(output.StatusCode),
5349
+ Message: smithy_client_1.expectString(output.Message),
5350
+ StatusCode: smithy_client_1.expectString(output.StatusCode),
5347
5351
  };
5348
5352
  };
5349
5353
  const deserializeAws_restJson1PackageDetails = (output, context) => {
5350
5354
  return {
5351
- AvailablePackageVersion: (0, smithy_client_1.expectString)(output.AvailablePackageVersion),
5355
+ AvailablePackageVersion: smithy_client_1.expectString(output.AvailablePackageVersion),
5352
5356
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
5353
- ? new Date(Math.round(output.CreatedAt * 1000))
5357
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
5354
5358
  : undefined,
5355
5359
  ErrorDetails: output.ErrorDetails !== undefined && output.ErrorDetails !== null
5356
5360
  ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
5357
5361
  : undefined,
5358
5362
  LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
5359
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
5363
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedAt)))
5360
5364
  : undefined,
5361
- PackageDescription: (0, smithy_client_1.expectString)(output.PackageDescription),
5362
- PackageID: (0, smithy_client_1.expectString)(output.PackageID),
5363
- PackageName: (0, smithy_client_1.expectString)(output.PackageName),
5364
- PackageStatus: (0, smithy_client_1.expectString)(output.PackageStatus),
5365
- PackageType: (0, smithy_client_1.expectString)(output.PackageType),
5365
+ PackageDescription: smithy_client_1.expectString(output.PackageDescription),
5366
+ PackageID: smithy_client_1.expectString(output.PackageID),
5367
+ PackageName: smithy_client_1.expectString(output.PackageName),
5368
+ PackageStatus: smithy_client_1.expectString(output.PackageStatus),
5369
+ PackageType: smithy_client_1.expectString(output.PackageType),
5366
5370
  };
5367
5371
  };
5368
5372
  const deserializeAws_restJson1PackageDetailsList = (output, context) => {
@@ -5377,11 +5381,11 @@ const deserializeAws_restJson1PackageDetailsList = (output, context) => {
5377
5381
  };
5378
5382
  const deserializeAws_restJson1PackageVersionHistory = (output, context) => {
5379
5383
  return {
5380
- CommitMessage: (0, smithy_client_1.expectString)(output.CommitMessage),
5384
+ CommitMessage: smithy_client_1.expectString(output.CommitMessage),
5381
5385
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
5382
- ? new Date(Math.round(output.CreatedAt * 1000))
5386
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
5383
5387
  : undefined,
5384
- PackageVersion: (0, smithy_client_1.expectString)(output.PackageVersion),
5388
+ PackageVersion: smithy_client_1.expectString(output.PackageVersion),
5385
5389
  };
5386
5390
  };
5387
5391
  const deserializeAws_restJson1PackageVersionHistoryList = (output, context) => {
@@ -5396,8 +5400,8 @@ const deserializeAws_restJson1PackageVersionHistoryList = (output, context) => {
5396
5400
  };
5397
5401
  const deserializeAws_restJson1RecurringCharge = (output, context) => {
5398
5402
  return {
5399
- RecurringChargeAmount: (0, smithy_client_1.limitedParseDouble)(output.RecurringChargeAmount),
5400
- RecurringChargeFrequency: (0, smithy_client_1.expectString)(output.RecurringChargeFrequency),
5403
+ RecurringChargeAmount: smithy_client_1.limitedParseDouble(output.RecurringChargeAmount),
5404
+ RecurringChargeFrequency: smithy_client_1.expectString(output.RecurringChargeFrequency),
5401
5405
  };
5402
5406
  };
5403
5407
  const deserializeAws_restJson1RecurringChargeList = (output, context) => {
@@ -5412,23 +5416,23 @@ const deserializeAws_restJson1RecurringChargeList = (output, context) => {
5412
5416
  };
5413
5417
  const deserializeAws_restJson1ReservedElasticsearchInstance = (output, context) => {
5414
5418
  return {
5415
- CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
5416
- Duration: (0, smithy_client_1.expectInt32)(output.Duration),
5417
- ElasticsearchInstanceCount: (0, smithy_client_1.expectInt32)(output.ElasticsearchInstanceCount),
5418
- ElasticsearchInstanceType: (0, smithy_client_1.expectString)(output.ElasticsearchInstanceType),
5419
- FixedPrice: (0, smithy_client_1.limitedParseDouble)(output.FixedPrice),
5420
- PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
5419
+ CurrencyCode: smithy_client_1.expectString(output.CurrencyCode),
5420
+ Duration: smithy_client_1.expectInt32(output.Duration),
5421
+ ElasticsearchInstanceCount: smithy_client_1.expectInt32(output.ElasticsearchInstanceCount),
5422
+ ElasticsearchInstanceType: smithy_client_1.expectString(output.ElasticsearchInstanceType),
5423
+ FixedPrice: smithy_client_1.limitedParseDouble(output.FixedPrice),
5424
+ PaymentOption: smithy_client_1.expectString(output.PaymentOption),
5421
5425
  RecurringCharges: output.RecurringCharges !== undefined && output.RecurringCharges !== null
5422
5426
  ? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
5423
5427
  : undefined,
5424
- ReservationName: (0, smithy_client_1.expectString)(output.ReservationName),
5425
- ReservedElasticsearchInstanceId: (0, smithy_client_1.expectString)(output.ReservedElasticsearchInstanceId),
5426
- ReservedElasticsearchInstanceOfferingId: (0, smithy_client_1.expectString)(output.ReservedElasticsearchInstanceOfferingId),
5428
+ ReservationName: smithy_client_1.expectString(output.ReservationName),
5429
+ ReservedElasticsearchInstanceId: smithy_client_1.expectString(output.ReservedElasticsearchInstanceId),
5430
+ ReservedElasticsearchInstanceOfferingId: smithy_client_1.expectString(output.ReservedElasticsearchInstanceOfferingId),
5427
5431
  StartTime: output.StartTime !== undefined && output.StartTime !== null
5428
- ? new Date(Math.round(output.StartTime * 1000))
5432
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTime)))
5429
5433
  : undefined,
5430
- State: (0, smithy_client_1.expectString)(output.State),
5431
- UsagePrice: (0, smithy_client_1.limitedParseDouble)(output.UsagePrice),
5434
+ State: smithy_client_1.expectString(output.State),
5435
+ UsagePrice: smithy_client_1.limitedParseDouble(output.UsagePrice),
5432
5436
  };
5433
5437
  };
5434
5438
  const deserializeAws_restJson1ReservedElasticsearchInstanceList = (output, context) => {
@@ -5443,16 +5447,16 @@ const deserializeAws_restJson1ReservedElasticsearchInstanceList = (output, conte
5443
5447
  };
5444
5448
  const deserializeAws_restJson1ReservedElasticsearchInstanceOffering = (output, context) => {
5445
5449
  return {
5446
- CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
5447
- Duration: (0, smithy_client_1.expectInt32)(output.Duration),
5448
- ElasticsearchInstanceType: (0, smithy_client_1.expectString)(output.ElasticsearchInstanceType),
5449
- FixedPrice: (0, smithy_client_1.limitedParseDouble)(output.FixedPrice),
5450
- PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
5450
+ CurrencyCode: smithy_client_1.expectString(output.CurrencyCode),
5451
+ Duration: smithy_client_1.expectInt32(output.Duration),
5452
+ ElasticsearchInstanceType: smithy_client_1.expectString(output.ElasticsearchInstanceType),
5453
+ FixedPrice: smithy_client_1.limitedParseDouble(output.FixedPrice),
5454
+ PaymentOption: smithy_client_1.expectString(output.PaymentOption),
5451
5455
  RecurringCharges: output.RecurringCharges !== undefined && output.RecurringCharges !== null
5452
5456
  ? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
5453
5457
  : undefined,
5454
- ReservedElasticsearchInstanceOfferingId: (0, smithy_client_1.expectString)(output.ReservedElasticsearchInstanceOfferingId),
5455
- UsagePrice: (0, smithy_client_1.limitedParseDouble)(output.UsagePrice),
5458
+ ReservedElasticsearchInstanceOfferingId: smithy_client_1.expectString(output.ReservedElasticsearchInstanceOfferingId),
5459
+ UsagePrice: smithy_client_1.limitedParseDouble(output.UsagePrice),
5456
5460
  };
5457
5461
  };
5458
5462
  const deserializeAws_restJson1ReservedElasticsearchInstanceOfferingList = (output, context) => {
@@ -5467,46 +5471,48 @@ const deserializeAws_restJson1ReservedElasticsearchInstanceOfferingList = (outpu
5467
5471
  };
5468
5472
  const deserializeAws_restJson1SAMLIdp = (output, context) => {
5469
5473
  return {
5470
- EntityId: (0, smithy_client_1.expectString)(output.EntityId),
5471
- MetadataContent: (0, smithy_client_1.expectString)(output.MetadataContent),
5474
+ EntityId: smithy_client_1.expectString(output.EntityId),
5475
+ MetadataContent: smithy_client_1.expectString(output.MetadataContent),
5472
5476
  };
5473
5477
  };
5474
5478
  const deserializeAws_restJson1SAMLOptionsOutput = (output, context) => {
5475
5479
  return {
5476
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
5480
+ Enabled: smithy_client_1.expectBoolean(output.Enabled),
5477
5481
  Idp: output.Idp !== undefined && output.Idp !== null
5478
5482
  ? deserializeAws_restJson1SAMLIdp(output.Idp, context)
5479
5483
  : undefined,
5480
- RolesKey: (0, smithy_client_1.expectString)(output.RolesKey),
5481
- SessionTimeoutMinutes: (0, smithy_client_1.expectInt32)(output.SessionTimeoutMinutes),
5482
- SubjectKey: (0, smithy_client_1.expectString)(output.SubjectKey),
5484
+ RolesKey: smithy_client_1.expectString(output.RolesKey),
5485
+ SessionTimeoutMinutes: smithy_client_1.expectInt32(output.SessionTimeoutMinutes),
5486
+ SubjectKey: smithy_client_1.expectString(output.SubjectKey),
5483
5487
  };
5484
5488
  };
5485
5489
  const deserializeAws_restJson1ScheduledAutoTuneDetails = (output, context) => {
5486
5490
  return {
5487
- Action: (0, smithy_client_1.expectString)(output.Action),
5488
- ActionType: (0, smithy_client_1.expectString)(output.ActionType),
5489
- Date: output.Date !== undefined && output.Date !== null ? new Date(Math.round(output.Date * 1000)) : undefined,
5490
- Severity: (0, smithy_client_1.expectString)(output.Severity),
5491
+ Action: smithy_client_1.expectString(output.Action),
5492
+ ActionType: smithy_client_1.expectString(output.ActionType),
5493
+ Date: output.Date !== undefined && output.Date !== null
5494
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Date)))
5495
+ : undefined,
5496
+ Severity: smithy_client_1.expectString(output.Severity),
5491
5497
  };
5492
5498
  };
5493
5499
  const deserializeAws_restJson1ServiceSoftwareOptions = (output, context) => {
5494
5500
  return {
5495
5501
  AutomatedUpdateDate: output.AutomatedUpdateDate !== undefined && output.AutomatedUpdateDate !== null
5496
- ? new Date(Math.round(output.AutomatedUpdateDate * 1000))
5502
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.AutomatedUpdateDate)))
5497
5503
  : undefined,
5498
- Cancellable: (0, smithy_client_1.expectBoolean)(output.Cancellable),
5499
- CurrentVersion: (0, smithy_client_1.expectString)(output.CurrentVersion),
5500
- Description: (0, smithy_client_1.expectString)(output.Description),
5501
- NewVersion: (0, smithy_client_1.expectString)(output.NewVersion),
5502
- OptionalDeployment: (0, smithy_client_1.expectBoolean)(output.OptionalDeployment),
5503
- UpdateAvailable: (0, smithy_client_1.expectBoolean)(output.UpdateAvailable),
5504
- UpdateStatus: (0, smithy_client_1.expectString)(output.UpdateStatus),
5504
+ Cancellable: smithy_client_1.expectBoolean(output.Cancellable),
5505
+ CurrentVersion: smithy_client_1.expectString(output.CurrentVersion),
5506
+ Description: smithy_client_1.expectString(output.Description),
5507
+ NewVersion: smithy_client_1.expectString(output.NewVersion),
5508
+ OptionalDeployment: smithy_client_1.expectBoolean(output.OptionalDeployment),
5509
+ UpdateAvailable: smithy_client_1.expectBoolean(output.UpdateAvailable),
5510
+ UpdateStatus: smithy_client_1.expectString(output.UpdateStatus),
5505
5511
  };
5506
5512
  };
5507
5513
  const deserializeAws_restJson1SnapshotOptions = (output, context) => {
5508
5514
  return {
5509
- AutomatedSnapshotStartHour: (0, smithy_client_1.expectInt32)(output.AutomatedSnapshotStartHour),
5515
+ AutomatedSnapshotStartHour: smithy_client_1.expectInt32(output.AutomatedSnapshotStartHour),
5510
5516
  };
5511
5517
  };
5512
5518
  const deserializeAws_restJson1SnapshotOptionsStatus = (output, context) => {
@@ -5521,16 +5527,16 @@ const deserializeAws_restJson1SnapshotOptionsStatus = (output, context) => {
5521
5527
  };
5522
5528
  const deserializeAws_restJson1StorageType = (output, context) => {
5523
5529
  return {
5524
- StorageSubTypeName: (0, smithy_client_1.expectString)(output.StorageSubTypeName),
5530
+ StorageSubTypeName: smithy_client_1.expectString(output.StorageSubTypeName),
5525
5531
  StorageTypeLimits: output.StorageTypeLimits !== undefined && output.StorageTypeLimits !== null
5526
5532
  ? deserializeAws_restJson1StorageTypeLimitList(output.StorageTypeLimits, context)
5527
5533
  : undefined,
5528
- StorageTypeName: (0, smithy_client_1.expectString)(output.StorageTypeName),
5534
+ StorageTypeName: smithy_client_1.expectString(output.StorageTypeName),
5529
5535
  };
5530
5536
  };
5531
5537
  const deserializeAws_restJson1StorageTypeLimit = (output, context) => {
5532
5538
  return {
5533
- LimitName: (0, smithy_client_1.expectString)(output.LimitName),
5539
+ LimitName: smithy_client_1.expectString(output.LimitName),
5534
5540
  LimitValues: output.LimitValues !== undefined && output.LimitValues !== null
5535
5541
  ? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
5536
5542
  : undefined,
@@ -5563,13 +5569,13 @@ const deserializeAws_restJson1StringList = (output, context) => {
5563
5569
  if (entry === null) {
5564
5570
  return null;
5565
5571
  }
5566
- return (0, smithy_client_1.expectString)(entry);
5572
+ return smithy_client_1.expectString(entry);
5567
5573
  });
5568
5574
  };
5569
5575
  const deserializeAws_restJson1Tag = (output, context) => {
5570
5576
  return {
5571
- Key: (0, smithy_client_1.expectString)(output.Key),
5572
- Value: (0, smithy_client_1.expectString)(output.Value),
5577
+ Key: smithy_client_1.expectString(output.Key),
5578
+ Value: smithy_client_1.expectString(output.Value),
5573
5579
  };
5574
5580
  };
5575
5581
  const deserializeAws_restJson1TagList = (output, context) => {
@@ -5585,13 +5591,13 @@ const deserializeAws_restJson1TagList = (output, context) => {
5585
5591
  const deserializeAws_restJson1UpgradeHistory = (output, context) => {
5586
5592
  return {
5587
5593
  StartTimestamp: output.StartTimestamp !== undefined && output.StartTimestamp !== null
5588
- ? new Date(Math.round(output.StartTimestamp * 1000))
5594
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTimestamp)))
5589
5595
  : undefined,
5590
5596
  StepsList: output.StepsList !== undefined && output.StepsList !== null
5591
5597
  ? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context)
5592
5598
  : undefined,
5593
- UpgradeName: (0, smithy_client_1.expectString)(output.UpgradeName),
5594
- UpgradeStatus: (0, smithy_client_1.expectString)(output.UpgradeStatus),
5599
+ UpgradeName: smithy_client_1.expectString(output.UpgradeName),
5600
+ UpgradeStatus: smithy_client_1.expectString(output.UpgradeStatus),
5595
5601
  };
5596
5602
  };
5597
5603
  const deserializeAws_restJson1UpgradeHistoryList = (output, context) => {
@@ -5609,9 +5615,9 @@ const deserializeAws_restJson1UpgradeStepItem = (output, context) => {
5609
5615
  Issues: output.Issues !== undefined && output.Issues !== null
5610
5616
  ? deserializeAws_restJson1Issues(output.Issues, context)
5611
5617
  : undefined,
5612
- ProgressPercent: (0, smithy_client_1.limitedParseDouble)(output.ProgressPercent),
5613
- UpgradeStep: (0, smithy_client_1.expectString)(output.UpgradeStep),
5614
- UpgradeStepStatus: (0, smithy_client_1.expectString)(output.UpgradeStepStatus),
5618
+ ProgressPercent: smithy_client_1.limitedParseDouble(output.ProgressPercent),
5619
+ UpgradeStep: smithy_client_1.expectString(output.UpgradeStep),
5620
+ UpgradeStepStatus: smithy_client_1.expectString(output.UpgradeStepStatus),
5615
5621
  };
5616
5622
  };
5617
5623
  const deserializeAws_restJson1UpgradeStepsList = (output, context) => {
@@ -5635,7 +5641,7 @@ const deserializeAws_restJson1VPCDerivedInfo = (output, context) => {
5635
5641
  SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
5636
5642
  ? deserializeAws_restJson1StringList(output.SubnetIds, context)
5637
5643
  : undefined,
5638
- VPCId: (0, smithy_client_1.expectString)(output.VPCId),
5644
+ VPCId: smithy_client_1.expectString(output.VPCId),
5639
5645
  };
5640
5646
  };
5641
5647
  const deserializeAws_restJson1VPCDerivedInfoStatus = (output, context) => {
@@ -5650,7 +5656,7 @@ const deserializeAws_restJson1VPCDerivedInfoStatus = (output, context) => {
5650
5656
  };
5651
5657
  const deserializeAws_restJson1ZoneAwarenessConfig = (output, context) => {
5652
5658
  return {
5653
- AvailabilityZoneCount: (0, smithy_client_1.expectInt32)(output.AvailabilityZoneCount),
5659
+ AvailabilityZoneCount: smithy_client_1.expectInt32(output.AvailabilityZoneCount),
5654
5660
  };
5655
5661
  };
5656
5662
  const deserializeMetadata = (output) => {