@aws-sdk/client-elasticsearch-service 3.28.0 → 3.32.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.
@@ -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
  };
@@ -1175,7 +1176,7 @@ const deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand =
1175
1176
  $metadata: deserializeMetadata(output),
1176
1177
  CrossClusterSearchConnection: undefined,
1177
1178
  };
1178
- const data = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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,7 +1568,7 @@ const deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand
1567
1568
  DestinationDomainInfo: undefined,
1568
1569
  SourceDomainInfo: undefined,
1569
1570
  };
1570
- const data = await parseBody(output.body, context);
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
1573
  contents.ConnectionAlias = smithy_client_1.expectString(data.ConnectionAlias);
1573
1574
  }
@@ -1651,7 +1652,7 @@ const deserializeAws_restJson1CreatePackageCommand = async (output, context) =>
1651
1652
  $metadata: deserializeMetadata(output),
1652
1653
  PackageDetails: undefined,
1653
1654
  };
1654
- const data = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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,7 +2081,7 @@ const deserializeAws_restJson1DescribeDomainAutoTunesCommand = async (output, co
2080
2081
  AutoTunes: undefined,
2081
2082
  NextToken: undefined,
2082
2083
  };
2083
- const data = await parseBody(output.body, context);
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
  }
@@ -2155,7 +2156,7 @@ const deserializeAws_restJson1DescribeElasticsearchDomainCommand = async (output
2155
2156
  $metadata: deserializeMetadata(output),
2156
2157
  DomainStatus: undefined,
2157
2158
  };
2158
- const data = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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,7 +2453,7 @@ const deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsComman
2452
2453
  CrossClusterSearchConnections: undefined,
2453
2454
  NextToken: undefined,
2454
2455
  };
2455
- const data = await parseBody(output.body, context);
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
  }
@@ -2512,7 +2513,7 @@ const deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsComma
2512
2513
  CrossClusterSearchConnections: undefined,
2513
2514
  NextToken: undefined,
2514
2515
  };
2515
- const data = await parseBody(output.body, context);
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
  }
@@ -2572,7 +2573,7 @@ const deserializeAws_restJson1DescribePackagesCommand = async (output, context)
2572
2573
  NextToken: undefined,
2573
2574
  PackageDetailsList: undefined,
2574
2575
  };
2575
- const data = await parseBody(output.body, context);
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
2578
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
2578
2579
  }
@@ -2656,7 +2657,7 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsComm
2656
2657
  NextToken: undefined,
2657
2658
  ReservedElasticsearchInstanceOfferings: undefined,
2658
2659
  };
2659
- const data = await parseBody(output.body, context);
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
2662
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
2662
2663
  }
@@ -2733,7 +2734,7 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = as
2733
2734
  NextToken: undefined,
2734
2735
  ReservedElasticsearchInstances: undefined,
2735
2736
  };
2736
- const data = await parseBody(output.body, context);
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
2739
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
2739
2740
  }
@@ -2808,7 +2809,7 @@ const deserializeAws_restJson1DissociatePackageCommand = async (output, context)
2808
2809
  $metadata: deserializeMetadata(output),
2809
2810
  DomainPackageDetails: undefined,
2810
2811
  };
2811
- const data = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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,7 +2979,7 @@ const deserializeAws_restJson1GetPackageVersionHistoryCommand = async (output, c
2978
2979
  PackageID: undefined,
2979
2980
  PackageVersionHistoryList: undefined,
2980
2981
  };
2981
- const data = await parseBody(output.body, context);
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
2984
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
2984
2985
  }
@@ -3065,7 +3066,7 @@ const deserializeAws_restJson1GetUpgradeHistoryCommand = async (output, context)
3065
3066
  NextToken: undefined,
3066
3067
  UpgradeHistories: undefined,
3067
3068
  };
3068
- const data = await parseBody(output.body, context);
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
3071
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
3071
3072
  }
@@ -3150,7 +3151,7 @@ const deserializeAws_restJson1GetUpgradeStatusCommand = async (output, context)
3150
3151
  UpgradeName: undefined,
3151
3152
  UpgradeStep: undefined,
3152
3153
  };
3153
- const data = await parseBody(output.body, context);
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
3156
  contents.StepStatus = smithy_client_1.expectString(data.StepStatus);
3156
3157
  }
@@ -3236,7 +3237,7 @@ const deserializeAws_restJson1ListDomainNamesCommand = async (output, context) =
3236
3237
  $metadata: deserializeMetadata(output),
3237
3238
  DomainNames: undefined,
3238
3239
  };
3239
- const data = await parseBody(output.body, context);
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,7 +3294,7 @@ const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, cont
3293
3294
  DomainPackageDetailsList: undefined,
3294
3295
  NextToken: undefined,
3295
3296
  };
3296
- const data = await parseBody(output.body, context);
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
  }
@@ -3377,7 +3378,7 @@ const deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = async (out
3377
3378
  ElasticsearchInstanceTypes: undefined,
3378
3379
  NextToken: undefined,
3379
3380
  };
3380
- const data = await parseBody(output.body, context);
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
  }
@@ -3453,7 +3454,7 @@ const deserializeAws_restJson1ListElasticsearchVersionsCommand = async (output,
3453
3454
  ElasticsearchVersions: undefined,
3454
3455
  NextToken: undefined,
3455
3456
  };
3456
- const data = await parseBody(output.body, context);
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
  }
@@ -3529,7 +3530,7 @@ const deserializeAws_restJson1ListPackagesForDomainCommand = async (output, cont
3529
3530
  DomainPackageDetailsList: undefined,
3530
3531
  NextToken: undefined,
3531
3532
  };
3532
- const data = await parseBody(output.body, context);
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
  }
@@ -3612,7 +3613,7 @@ const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
3612
3613
  $metadata: deserializeMetadata(output),
3613
3614
  TagList: undefined,
3614
3615
  };
3615
- const data = await parseBody(output.body, context);
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,7 +3686,7 @@ const deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingComma
3685
3686
  ReservationName: undefined,
3686
3687
  ReservedElasticsearchInstanceId: undefined,
3687
3688
  };
3688
- const data = await parseBody(output.body, context);
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
3691
  contents.ReservationName = smithy_client_1.expectString(data.ReservationName);
3691
3692
  }
@@ -3776,7 +3777,7 @@ const deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand =
3776
3777
  $metadata: deserializeMetadata(output),
3777
3778
  CrossClusterSearchConnection: undefined,
3778
3779
  };
3779
- const data = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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 = await parseBody(output.body, context);
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,7 +4143,7 @@ const deserializeAws_restJson1UpgradeElasticsearchDomainCommand = async (output,
4142
4143
  PerformCheckOnly: undefined,
4143
4144
  TargetVersion: undefined,
4144
4145
  };
4145
- const data = await parseBody(output.body, context);
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
4148
  contents.DomainName = smithy_client_1.expectString(data.DomainName);
4148
4149
  }
@@ -4786,7 +4787,9 @@ const deserializeAws_restJson1AutoTuneMaintenanceSchedule = (output, context) =>
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) => {
@@ -4827,15 +4830,15 @@ 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
4835
  ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
4833
4836
  PendingDeletion: smithy_client_1.expectBoolean(output.PendingDeletion),
4834
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: smithy_client_1.expectInt(output.UpdateVersion),
4841
+ UpdateVersion: smithy_client_1.expectInt32(output.UpdateVersion),
4839
4842
  };
4840
4843
  };
4841
4844
  const deserializeAws_restJson1CognitoOptions = (output, context) => {
@@ -4901,6 +4904,7 @@ const deserializeAws_restJson1DomainEndpointOptionsStatus = (output, context) =>
4901
4904
  const deserializeAws_restJson1DomainInfo = (output, context) => {
4902
4905
  return {
4903
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) => {
@@ -4928,7 +4932,7 @@ const deserializeAws_restJson1DomainPackageDetails = (output, context) => {
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
4937
  PackageID: smithy_client_1.expectString(output.PackageID),
4934
4938
  PackageName: smithy_client_1.expectString(output.PackageName),
@@ -4950,14 +4954,14 @@ const deserializeAws_restJson1DomainPackageDetailsList = (output, context) => {
4950
4954
  const deserializeAws_restJson1Duration = (output, context) => {
4951
4955
  return {
4952
4956
  Unit: smithy_client_1.expectString(output.Unit),
4953
- Value: smithy_client_1.expectInt(output.Value),
4957
+ Value: smithy_client_1.expectLong(output.Value),
4954
4958
  };
4955
4959
  };
4956
4960
  const deserializeAws_restJson1EBSOptions = (output, context) => {
4957
4961
  return {
4958
4962
  EBSEnabled: smithy_client_1.expectBoolean(output.EBSEnabled),
4959
- Iops: smithy_client_1.expectInt(output.Iops),
4960
- VolumeSize: smithy_client_1.expectInt(output.VolumeSize),
4963
+ Iops: smithy_client_1.expectInt32(output.Iops),
4964
+ VolumeSize: smithy_client_1.expectInt32(output.VolumeSize),
4961
4965
  VolumeType: smithy_client_1.expectString(output.VolumeType),
4962
4966
  };
4963
4967
  };
@@ -4976,12 +4980,12 @@ 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: smithy_client_1.expectInt(output.DedicatedMasterCount),
4983
+ DedicatedMasterCount: smithy_client_1.expectInt32(output.DedicatedMasterCount),
4980
4984
  DedicatedMasterEnabled: smithy_client_1.expectBoolean(output.DedicatedMasterEnabled),
4981
4985
  DedicatedMasterType: smithy_client_1.expectString(output.DedicatedMasterType),
4982
- InstanceCount: smithy_client_1.expectInt(output.InstanceCount),
4986
+ InstanceCount: smithy_client_1.expectInt32(output.InstanceCount),
4983
4987
  InstanceType: smithy_client_1.expectString(output.InstanceType),
4984
- WarmCount: smithy_client_1.expectInt(output.WarmCount),
4988
+ WarmCount: smithy_client_1.expectInt32(output.WarmCount),
4985
4989
  WarmEnabled: smithy_client_1.expectBoolean(output.WarmEnabled),
4986
4990
  WarmType: smithy_client_1.expectString(output.WarmType),
4987
4991
  ZoneAwarenessConfig: output.ZoneAwarenessConfig !== undefined && output.ZoneAwarenessConfig !== null
@@ -5205,8 +5209,8 @@ const deserializeAws_restJson1InboundCrossClusterSearchConnectionStatus = (outpu
5205
5209
  };
5206
5210
  const deserializeAws_restJson1InstanceCountLimits = (output, context) => {
5207
5211
  return {
5208
- MaximumInstanceCount: smithy_client_1.expectInt(output.MaximumInstanceCount),
5209
- MinimumInstanceCount: smithy_client_1.expectInt(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) => {
@@ -5305,14 +5309,14 @@ 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
5314
  PendingDeletion: smithy_client_1.expectBoolean(output.PendingDeletion),
5311
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: smithy_client_1.expectInt(output.UpdateVersion),
5319
+ UpdateVersion: smithy_client_1.expectInt32(output.UpdateVersion),
5316
5320
  };
5317
5321
  };
5318
5322
  const deserializeAws_restJson1OutboundCrossClusterSearchConnection = (output, context) => {
@@ -5350,13 +5354,13 @@ const deserializeAws_restJson1PackageDetails = (output, context) => {
5350
5354
  return {
5351
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
5365
  PackageDescription: smithy_client_1.expectString(output.PackageDescription),
5362
5366
  PackageID: smithy_client_1.expectString(output.PackageID),
@@ -5379,7 +5383,7 @@ const deserializeAws_restJson1PackageVersionHistory = (output, context) => {
5379
5383
  return {
5380
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
5388
  PackageVersion: smithy_client_1.expectString(output.PackageVersion),
5385
5389
  };
@@ -5396,7 +5400,7 @@ const deserializeAws_restJson1PackageVersionHistoryList = (output, context) => {
5396
5400
  };
5397
5401
  const deserializeAws_restJson1RecurringCharge = (output, context) => {
5398
5402
  return {
5399
- RecurringChargeAmount: smithy_client_1.limitedParseFloat(output.RecurringChargeAmount),
5403
+ RecurringChargeAmount: smithy_client_1.limitedParseDouble(output.RecurringChargeAmount),
5400
5404
  RecurringChargeFrequency: smithy_client_1.expectString(output.RecurringChargeFrequency),
5401
5405
  };
5402
5406
  };
@@ -5413,10 +5417,10 @@ const deserializeAws_restJson1RecurringChargeList = (output, context) => {
5413
5417
  const deserializeAws_restJson1ReservedElasticsearchInstance = (output, context) => {
5414
5418
  return {
5415
5419
  CurrencyCode: smithy_client_1.expectString(output.CurrencyCode),
5416
- Duration: smithy_client_1.expectInt(output.Duration),
5417
- ElasticsearchInstanceCount: smithy_client_1.expectInt(output.ElasticsearchInstanceCount),
5420
+ Duration: smithy_client_1.expectInt32(output.Duration),
5421
+ ElasticsearchInstanceCount: smithy_client_1.expectInt32(output.ElasticsearchInstanceCount),
5418
5422
  ElasticsearchInstanceType: smithy_client_1.expectString(output.ElasticsearchInstanceType),
5419
- FixedPrice: smithy_client_1.limitedParseFloat(output.FixedPrice),
5423
+ FixedPrice: smithy_client_1.limitedParseDouble(output.FixedPrice),
5420
5424
  PaymentOption: smithy_client_1.expectString(output.PaymentOption),
5421
5425
  RecurringCharges: output.RecurringCharges !== undefined && output.RecurringCharges !== null
5422
5426
  ? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
@@ -5425,10 +5429,10 @@ const deserializeAws_restJson1ReservedElasticsearchInstance = (output, context)
5425
5429
  ReservedElasticsearchInstanceId: smithy_client_1.expectString(output.ReservedElasticsearchInstanceId),
5426
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
5434
  State: smithy_client_1.expectString(output.State),
5431
- UsagePrice: smithy_client_1.limitedParseFloat(output.UsagePrice),
5435
+ UsagePrice: smithy_client_1.limitedParseDouble(output.UsagePrice),
5432
5436
  };
5433
5437
  };
5434
5438
  const deserializeAws_restJson1ReservedElasticsearchInstanceList = (output, context) => {
@@ -5444,15 +5448,15 @@ const deserializeAws_restJson1ReservedElasticsearchInstanceList = (output, conte
5444
5448
  const deserializeAws_restJson1ReservedElasticsearchInstanceOffering = (output, context) => {
5445
5449
  return {
5446
5450
  CurrencyCode: smithy_client_1.expectString(output.CurrencyCode),
5447
- Duration: smithy_client_1.expectInt(output.Duration),
5451
+ Duration: smithy_client_1.expectInt32(output.Duration),
5448
5452
  ElasticsearchInstanceType: smithy_client_1.expectString(output.ElasticsearchInstanceType),
5449
- FixedPrice: smithy_client_1.limitedParseFloat(output.FixedPrice),
5453
+ FixedPrice: smithy_client_1.limitedParseDouble(output.FixedPrice),
5450
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
5458
  ReservedElasticsearchInstanceOfferingId: smithy_client_1.expectString(output.ReservedElasticsearchInstanceOfferingId),
5455
- UsagePrice: smithy_client_1.limitedParseFloat(output.UsagePrice),
5459
+ UsagePrice: smithy_client_1.limitedParseDouble(output.UsagePrice),
5456
5460
  };
5457
5461
  };
5458
5462
  const deserializeAws_restJson1ReservedElasticsearchInstanceOfferingList = (output, context) => {
@@ -5478,7 +5482,7 @@ const deserializeAws_restJson1SAMLOptionsOutput = (output, context) => {
5478
5482
  ? deserializeAws_restJson1SAMLIdp(output.Idp, context)
5479
5483
  : undefined,
5480
5484
  RolesKey: smithy_client_1.expectString(output.RolesKey),
5481
- SessionTimeoutMinutes: smithy_client_1.expectInt(output.SessionTimeoutMinutes),
5485
+ SessionTimeoutMinutes: smithy_client_1.expectInt32(output.SessionTimeoutMinutes),
5482
5486
  SubjectKey: smithy_client_1.expectString(output.SubjectKey),
5483
5487
  };
5484
5488
  };
@@ -5486,14 +5490,16 @@ const deserializeAws_restJson1ScheduledAutoTuneDetails = (output, context) => {
5486
5490
  return {
5487
5491
  Action: smithy_client_1.expectString(output.Action),
5488
5492
  ActionType: smithy_client_1.expectString(output.ActionType),
5489
- Date: output.Date !== undefined && output.Date !== null ? new Date(Math.round(output.Date * 1000)) : undefined,
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,
5490
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
5504
  Cancellable: smithy_client_1.expectBoolean(output.Cancellable),
5499
5505
  CurrentVersion: smithy_client_1.expectString(output.CurrentVersion),
@@ -5506,7 +5512,7 @@ const deserializeAws_restJson1ServiceSoftwareOptions = (output, context) => {
5506
5512
  };
5507
5513
  const deserializeAws_restJson1SnapshotOptions = (output, context) => {
5508
5514
  return {
5509
- AutomatedSnapshotStartHour: smithy_client_1.expectInt(output.AutomatedSnapshotStartHour),
5515
+ AutomatedSnapshotStartHour: smithy_client_1.expectInt32(output.AutomatedSnapshotStartHour),
5510
5516
  };
5511
5517
  };
5512
5518
  const deserializeAws_restJson1SnapshotOptionsStatus = (output, context) => {
@@ -5585,7 +5591,7 @@ 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)
@@ -5609,7 +5615,7 @@ 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: smithy_client_1.limitedParseFloat(output.ProgressPercent),
5618
+ ProgressPercent: smithy_client_1.limitedParseDouble(output.ProgressPercent),
5613
5619
  UpgradeStep: smithy_client_1.expectString(output.UpgradeStep),
5614
5620
  UpgradeStepStatus: smithy_client_1.expectString(output.UpgradeStepStatus),
5615
5621
  };
@@ -5650,7 +5656,7 @@ const deserializeAws_restJson1VPCDerivedInfoStatus = (output, context) => {
5650
5656
  };
5651
5657
  const deserializeAws_restJson1ZoneAwarenessConfig = (output, context) => {
5652
5658
  return {
5653
- AvailabilityZoneCount: smithy_client_1.expectInt(output.AvailabilityZoneCount),
5659
+ AvailabilityZoneCount: smithy_client_1.expectInt32(output.AvailabilityZoneCount),
5654
5660
  };
5655
5661
  };
5656
5662
  const deserializeMetadata = (output) => {