@aws-sdk/client-elasticsearch-service 3.202.0 → 3.208.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 (68) hide show
  1. package/dist-cjs/ElasticsearchService.js +135 -0
  2. package/dist-cjs/commands/AuthorizeVpcEndpointAccessCommand.js +46 -0
  3. package/dist-cjs/commands/CreateVpcEndpointCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteVpcEndpointCommand.js +46 -0
  5. package/dist-cjs/commands/DescribeVpcEndpointsCommand.js +46 -0
  6. package/dist-cjs/commands/ListVpcEndpointAccessCommand.js +46 -0
  7. package/dist-cjs/commands/ListVpcEndpointsCommand.js +46 -0
  8. package/dist-cjs/commands/ListVpcEndpointsForDomainCommand.js +46 -0
  9. package/dist-cjs/commands/RevokeVpcEndpointAccessCommand.js +46 -0
  10. package/dist-cjs/commands/UpdateVpcEndpointCommand.js +46 -0
  11. package/dist-cjs/commands/index.js +9 -0
  12. package/dist-cjs/models/models_0.js +249 -4
  13. package/dist-cjs/protocols/Aws_restJson1.js +764 -72
  14. package/dist-cjs/runtimeConfig.browser.js +0 -3
  15. package/dist-cjs/runtimeConfig.js +0 -3
  16. package/dist-cjs/runtimeConfig.shared.js +3 -0
  17. package/dist-es/ElasticsearchService.js +135 -0
  18. package/dist-es/commands/AuthorizeVpcEndpointAccessCommand.js +42 -0
  19. package/dist-es/commands/CreateVpcEndpointCommand.js +42 -0
  20. package/dist-es/commands/DeleteVpcEndpointCommand.js +42 -0
  21. package/dist-es/commands/DescribeVpcEndpointsCommand.js +42 -0
  22. package/dist-es/commands/ListVpcEndpointAccessCommand.js +42 -0
  23. package/dist-es/commands/ListVpcEndpointsCommand.js +42 -0
  24. package/dist-es/commands/ListVpcEndpointsForDomainCommand.js +42 -0
  25. package/dist-es/commands/RevokeVpcEndpointAccessCommand.js +42 -0
  26. package/dist-es/commands/UpdateVpcEndpointCommand.js +42 -0
  27. package/dist-es/commands/index.js +9 -0
  28. package/dist-es/models/models_0.js +222 -0
  29. package/dist-es/protocols/Aws_restJson1.js +741 -67
  30. package/dist-es/runtimeConfig.browser.js +0 -3
  31. package/dist-es/runtimeConfig.js +0 -3
  32. package/dist-es/runtimeConfig.shared.js +3 -0
  33. package/dist-types/ElasticsearchService.d.ts +65 -0
  34. package/dist-types/ElasticsearchServiceClient.d.ts +11 -2
  35. package/dist-types/commands/AuthorizeVpcEndpointAccessCommand.d.ts +37 -0
  36. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +37 -0
  37. package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +37 -0
  38. package/dist-types/commands/DescribeVpcEndpointsCommand.d.ts +37 -0
  39. package/dist-types/commands/ListVpcEndpointAccessCommand.d.ts +38 -0
  40. package/dist-types/commands/ListVpcEndpointsCommand.d.ts +37 -0
  41. package/dist-types/commands/ListVpcEndpointsForDomainCommand.d.ts +37 -0
  42. package/dist-types/commands/RevokeVpcEndpointAccessCommand.d.ts +38 -0
  43. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +37 -0
  44. package/dist-types/commands/index.d.ts +9 -0
  45. package/dist-types/models/models_0.d.ts +523 -12
  46. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  47. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  48. package/dist-types/runtimeConfig.d.ts +2 -2
  49. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  50. package/dist-types/ts3.4/ElasticsearchService.d.ts +153 -0
  51. package/dist-types/ts3.4/ElasticsearchServiceClient.d.ts +54 -0
  52. package/dist-types/ts3.4/commands/AuthorizeVpcEndpointAccessCommand.d.ts +41 -0
  53. package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +38 -0
  54. package/dist-types/ts3.4/commands/DeleteVpcEndpointCommand.d.ts +38 -0
  55. package/dist-types/ts3.4/commands/DescribeVpcEndpointsCommand.d.ts +41 -0
  56. package/dist-types/ts3.4/commands/ListVpcEndpointAccessCommand.d.ts +41 -0
  57. package/dist-types/ts3.4/commands/ListVpcEndpointsCommand.d.ts +37 -0
  58. package/dist-types/ts3.4/commands/ListVpcEndpointsForDomainCommand.d.ts +41 -0
  59. package/dist-types/ts3.4/commands/RevokeVpcEndpointAccessCommand.d.ts +41 -0
  60. package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +38 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +291 -104
  63. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  64. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  65. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  66. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  67. package/package.json +35 -34
  68. package/CHANGELOG.md +0 -4175
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1DeleteElasticsearchServiceRoleCommand = exports.deserializeAws_restJson1DeleteElasticsearchDomainCommand = exports.deserializeAws_restJson1CreatePackageCommand = exports.deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand = exports.deserializeAws_restJson1CreateElasticsearchDomainCommand = exports.deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1AssociatePackageCommand = exports.deserializeAws_restJson1AddTagsCommand = exports.deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand = exports.serializeAws_restJson1UpgradeElasticsearchDomainCommand = exports.serializeAws_restJson1UpdatePackageCommand = exports.serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = exports.serializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = exports.serializeAws_restJson1RemoveTagsCommand = exports.serializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand = exports.serializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand = exports.serializeAws_restJson1ListTagsCommand = exports.serializeAws_restJson1ListPackagesForDomainCommand = exports.serializeAws_restJson1ListElasticsearchVersionsCommand = exports.serializeAws_restJson1ListElasticsearchInstanceTypesCommand = exports.serializeAws_restJson1ListDomainsForPackageCommand = exports.serializeAws_restJson1ListDomainNamesCommand = exports.serializeAws_restJson1GetUpgradeStatusCommand = exports.serializeAws_restJson1GetUpgradeHistoryCommand = exports.serializeAws_restJson1GetPackageVersionHistoryCommand = exports.serializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = exports.serializeAws_restJson1DissociatePackageCommand = exports.serializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = exports.serializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommand = exports.serializeAws_restJson1DescribePackagesCommand = exports.serializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand = exports.serializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommand = exports.serializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = exports.serializeAws_restJson1DescribeElasticsearchDomainsCommand = exports.serializeAws_restJson1DescribeElasticsearchDomainConfigCommand = exports.serializeAws_restJson1DescribeElasticsearchDomainCommand = exports.serializeAws_restJson1DescribeDomainChangeProgressCommand = exports.serializeAws_restJson1DescribeDomainAutoTunesCommand = exports.serializeAws_restJson1DeletePackageCommand = exports.serializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand = exports.serializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand = exports.serializeAws_restJson1DeleteElasticsearchServiceRoleCommand = exports.serializeAws_restJson1DeleteElasticsearchDomainCommand = exports.serializeAws_restJson1CreatePackageCommand = exports.serializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand = exports.serializeAws_restJson1CreateElasticsearchDomainCommand = exports.serializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = exports.serializeAws_restJson1AssociatePackageCommand = exports.serializeAws_restJson1AddTagsCommand = exports.serializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand = void 0;
4
- exports.deserializeAws_restJson1UpgradeElasticsearchDomainCommand = exports.deserializeAws_restJson1UpdatePackageCommand = exports.deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = exports.deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1RemoveTagsCommand = exports.deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand = exports.deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand = exports.deserializeAws_restJson1ListTagsCommand = exports.deserializeAws_restJson1ListPackagesForDomainCommand = exports.deserializeAws_restJson1ListElasticsearchVersionsCommand = exports.deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = exports.deserializeAws_restJson1ListDomainsForPackageCommand = exports.deserializeAws_restJson1ListDomainNamesCommand = exports.deserializeAws_restJson1GetUpgradeStatusCommand = exports.deserializeAws_restJson1GetUpgradeHistoryCommand = exports.deserializeAws_restJson1GetPackageVersionHistoryCommand = exports.deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = exports.deserializeAws_restJson1DissociatePackageCommand = exports.deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = exports.deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommand = exports.deserializeAws_restJson1DescribePackagesCommand = exports.deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand = exports.deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommand = exports.deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = exports.deserializeAws_restJson1DescribeElasticsearchDomainsCommand = exports.deserializeAws_restJson1DescribeElasticsearchDomainConfigCommand = exports.deserializeAws_restJson1DescribeElasticsearchDomainCommand = exports.deserializeAws_restJson1DescribeDomainChangeProgressCommand = exports.deserializeAws_restJson1DescribeDomainAutoTunesCommand = exports.deserializeAws_restJson1DeletePackageCommand = exports.deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand = exports.deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand = void 0;
3
+ exports.serializeAws_restJson1UpgradeElasticsearchDomainCommand = exports.serializeAws_restJson1UpdateVpcEndpointCommand = exports.serializeAws_restJson1UpdatePackageCommand = exports.serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = exports.serializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = exports.serializeAws_restJson1RevokeVpcEndpointAccessCommand = exports.serializeAws_restJson1RemoveTagsCommand = exports.serializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand = exports.serializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand = exports.serializeAws_restJson1ListVpcEndpointsForDomainCommand = exports.serializeAws_restJson1ListVpcEndpointsCommand = exports.serializeAws_restJson1ListVpcEndpointAccessCommand = exports.serializeAws_restJson1ListTagsCommand = exports.serializeAws_restJson1ListPackagesForDomainCommand = exports.serializeAws_restJson1ListElasticsearchVersionsCommand = exports.serializeAws_restJson1ListElasticsearchInstanceTypesCommand = exports.serializeAws_restJson1ListDomainsForPackageCommand = exports.serializeAws_restJson1ListDomainNamesCommand = exports.serializeAws_restJson1GetUpgradeStatusCommand = exports.serializeAws_restJson1GetUpgradeHistoryCommand = exports.serializeAws_restJson1GetPackageVersionHistoryCommand = exports.serializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = exports.serializeAws_restJson1DissociatePackageCommand = exports.serializeAws_restJson1DescribeVpcEndpointsCommand = exports.serializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = exports.serializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommand = exports.serializeAws_restJson1DescribePackagesCommand = exports.serializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand = exports.serializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommand = exports.serializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = exports.serializeAws_restJson1DescribeElasticsearchDomainsCommand = exports.serializeAws_restJson1DescribeElasticsearchDomainConfigCommand = exports.serializeAws_restJson1DescribeElasticsearchDomainCommand = exports.serializeAws_restJson1DescribeDomainChangeProgressCommand = exports.serializeAws_restJson1DescribeDomainAutoTunesCommand = exports.serializeAws_restJson1DeleteVpcEndpointCommand = exports.serializeAws_restJson1DeletePackageCommand = exports.serializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand = exports.serializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand = exports.serializeAws_restJson1DeleteElasticsearchServiceRoleCommand = exports.serializeAws_restJson1DeleteElasticsearchDomainCommand = exports.serializeAws_restJson1CreateVpcEndpointCommand = exports.serializeAws_restJson1CreatePackageCommand = exports.serializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand = exports.serializeAws_restJson1CreateElasticsearchDomainCommand = exports.serializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = exports.serializeAws_restJson1AuthorizeVpcEndpointAccessCommand = exports.serializeAws_restJson1AssociatePackageCommand = exports.serializeAws_restJson1AddTagsCommand = exports.serializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand = void 0;
4
+ exports.deserializeAws_restJson1UpgradeElasticsearchDomainCommand = exports.deserializeAws_restJson1UpdateVpcEndpointCommand = exports.deserializeAws_restJson1UpdatePackageCommand = exports.deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = exports.deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1RevokeVpcEndpointAccessCommand = exports.deserializeAws_restJson1RemoveTagsCommand = exports.deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand = exports.deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand = exports.deserializeAws_restJson1ListVpcEndpointsForDomainCommand = exports.deserializeAws_restJson1ListVpcEndpointsCommand = exports.deserializeAws_restJson1ListVpcEndpointAccessCommand = exports.deserializeAws_restJson1ListTagsCommand = exports.deserializeAws_restJson1ListPackagesForDomainCommand = exports.deserializeAws_restJson1ListElasticsearchVersionsCommand = exports.deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = exports.deserializeAws_restJson1ListDomainsForPackageCommand = exports.deserializeAws_restJson1ListDomainNamesCommand = exports.deserializeAws_restJson1GetUpgradeStatusCommand = exports.deserializeAws_restJson1GetUpgradeHistoryCommand = exports.deserializeAws_restJson1GetPackageVersionHistoryCommand = exports.deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = exports.deserializeAws_restJson1DissociatePackageCommand = exports.deserializeAws_restJson1DescribeVpcEndpointsCommand = exports.deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = exports.deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommand = exports.deserializeAws_restJson1DescribePackagesCommand = exports.deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand = exports.deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommand = exports.deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = exports.deserializeAws_restJson1DescribeElasticsearchDomainsCommand = exports.deserializeAws_restJson1DescribeElasticsearchDomainConfigCommand = exports.deserializeAws_restJson1DescribeElasticsearchDomainCommand = exports.deserializeAws_restJson1DescribeDomainChangeProgressCommand = exports.deserializeAws_restJson1DescribeDomainAutoTunesCommand = exports.deserializeAws_restJson1DeleteVpcEndpointCommand = exports.deserializeAws_restJson1DeletePackageCommand = exports.deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand = exports.deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand = exports.deserializeAws_restJson1DeleteElasticsearchServiceRoleCommand = exports.deserializeAws_restJson1DeleteElasticsearchDomainCommand = exports.deserializeAws_restJson1CreateVpcEndpointCommand = exports.deserializeAws_restJson1CreatePackageCommand = exports.deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand = exports.deserializeAws_restJson1CreateElasticsearchDomainCommand = exports.deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand = exports.deserializeAws_restJson1AssociatePackageCommand = exports.deserializeAws_restJson1AddTagsCommand = exports.deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const ElasticsearchServiceServiceException_1 = require("../models/ElasticsearchServiceServiceException");
@@ -65,6 +65,29 @@ const serializeAws_restJson1AssociatePackageCommand = async (input, context) =>
65
65
  });
66
66
  };
67
67
  exports.serializeAws_restJson1AssociatePackageCommand = serializeAws_restJson1AssociatePackageCommand;
68
+ const serializeAws_restJson1AuthorizeVpcEndpointAccessCommand = async (input, context) => {
69
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
70
+ const headers = {
71
+ "content-type": "application/json",
72
+ };
73
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
74
+ "/2015-01-01/es/domain/{DomainName}/authorizeVpcEndpointAccess";
75
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
76
+ let body;
77
+ body = JSON.stringify({
78
+ ...(input.Account != null && { Account: input.Account }),
79
+ });
80
+ return new protocol_http_1.HttpRequest({
81
+ protocol,
82
+ hostname,
83
+ port,
84
+ method: "POST",
85
+ headers,
86
+ path: resolvedPath,
87
+ body,
88
+ });
89
+ };
90
+ exports.serializeAws_restJson1AuthorizeVpcEndpointAccessCommand = serializeAws_restJson1AuthorizeVpcEndpointAccessCommand;
68
91
  const serializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = async (input, context) => {
69
92
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
70
93
  const headers = {
@@ -196,6 +219,29 @@ const serializeAws_restJson1CreatePackageCommand = async (input, context) => {
196
219
  });
197
220
  };
198
221
  exports.serializeAws_restJson1CreatePackageCommand = serializeAws_restJson1CreatePackageCommand;
222
+ const serializeAws_restJson1CreateVpcEndpointCommand = async (input, context) => {
223
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
+ const headers = {
225
+ "content-type": "application/json",
226
+ };
227
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints";
228
+ let body;
229
+ body = JSON.stringify({
230
+ ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
231
+ ...(input.DomainArn != null && { DomainArn: input.DomainArn }),
232
+ ...(input.VpcOptions != null && { VpcOptions: serializeAws_restJson1VPCOptions(input.VpcOptions, context) }),
233
+ });
234
+ return new protocol_http_1.HttpRequest({
235
+ protocol,
236
+ hostname,
237
+ port,
238
+ method: "POST",
239
+ headers,
240
+ path: resolvedPath,
241
+ body,
242
+ });
243
+ };
244
+ exports.serializeAws_restJson1CreateVpcEndpointCommand = serializeAws_restJson1CreateVpcEndpointCommand;
199
245
  const serializeAws_restJson1DeleteElasticsearchDomainCommand = async (input, context) => {
200
246
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
201
247
  const headers = {};
@@ -285,6 +331,24 @@ const serializeAws_restJson1DeletePackageCommand = async (input, context) => {
285
331
  });
286
332
  };
287
333
  exports.serializeAws_restJson1DeletePackageCommand = serializeAws_restJson1DeletePackageCommand;
334
+ const serializeAws_restJson1DeleteVpcEndpointCommand = async (input, context) => {
335
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
336
+ const headers = {};
337
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
338
+ "/2015-01-01/es/vpcEndpoints/{VpcEndpointId}";
339
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VpcEndpointId", () => input.VpcEndpointId, "{VpcEndpointId}", false);
340
+ let body;
341
+ return new protocol_http_1.HttpRequest({
342
+ protocol,
343
+ hostname,
344
+ port,
345
+ method: "DELETE",
346
+ headers,
347
+ path: resolvedPath,
348
+ body,
349
+ });
350
+ };
351
+ exports.serializeAws_restJson1DeleteVpcEndpointCommand = serializeAws_restJson1DeleteVpcEndpointCommand;
288
352
  const serializeAws_restJson1DescribeDomainAutoTunesCommand = async (input, context) => {
289
353
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
290
354
  const headers = {
@@ -524,6 +588,29 @@ const serializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = asyn
524
588
  });
525
589
  };
526
590
  exports.serializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = serializeAws_restJson1DescribeReservedElasticsearchInstancesCommand;
591
+ const serializeAws_restJson1DescribeVpcEndpointsCommand = async (input, context) => {
592
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
593
+ const headers = {
594
+ "content-type": "application/json",
595
+ };
596
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints/describe";
597
+ let body;
598
+ body = JSON.stringify({
599
+ ...(input.VpcEndpointIds != null && {
600
+ VpcEndpointIds: serializeAws_restJson1VpcEndpointIdList(input.VpcEndpointIds, context),
601
+ }),
602
+ });
603
+ return new protocol_http_1.HttpRequest({
604
+ protocol,
605
+ hostname,
606
+ port,
607
+ method: "POST",
608
+ headers,
609
+ path: resolvedPath,
610
+ body,
611
+ });
612
+ };
613
+ exports.serializeAws_restJson1DescribeVpcEndpointsCommand = serializeAws_restJson1DescribeVpcEndpointsCommand;
527
614
  const serializeAws_restJson1DissociatePackageCommand = async (input, context) => {
528
615
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
529
616
  const headers = {};
@@ -755,6 +842,70 @@ const serializeAws_restJson1ListTagsCommand = async (input, context) => {
755
842
  });
756
843
  };
757
844
  exports.serializeAws_restJson1ListTagsCommand = serializeAws_restJson1ListTagsCommand;
845
+ const serializeAws_restJson1ListVpcEndpointAccessCommand = async (input, context) => {
846
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
847
+ const headers = {};
848
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
849
+ "/2015-01-01/es/domain/{DomainName}/listVpcEndpointAccess";
850
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
851
+ const query = map({
852
+ nextToken: [, input.NextToken],
853
+ });
854
+ let body;
855
+ return new protocol_http_1.HttpRequest({
856
+ protocol,
857
+ hostname,
858
+ port,
859
+ method: "GET",
860
+ headers,
861
+ path: resolvedPath,
862
+ query,
863
+ body,
864
+ });
865
+ };
866
+ exports.serializeAws_restJson1ListVpcEndpointAccessCommand = serializeAws_restJson1ListVpcEndpointAccessCommand;
867
+ const serializeAws_restJson1ListVpcEndpointsCommand = async (input, context) => {
868
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
869
+ const headers = {};
870
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints";
871
+ const query = map({
872
+ nextToken: [, input.NextToken],
873
+ });
874
+ let body;
875
+ return new protocol_http_1.HttpRequest({
876
+ protocol,
877
+ hostname,
878
+ port,
879
+ method: "GET",
880
+ headers,
881
+ path: resolvedPath,
882
+ query,
883
+ body,
884
+ });
885
+ };
886
+ exports.serializeAws_restJson1ListVpcEndpointsCommand = serializeAws_restJson1ListVpcEndpointsCommand;
887
+ const serializeAws_restJson1ListVpcEndpointsForDomainCommand = async (input, context) => {
888
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
889
+ const headers = {};
890
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
891
+ "/2015-01-01/es/domain/{DomainName}/vpcEndpoints";
892
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
893
+ const query = map({
894
+ nextToken: [, input.NextToken],
895
+ });
896
+ let body;
897
+ return new protocol_http_1.HttpRequest({
898
+ protocol,
899
+ hostname,
900
+ port,
901
+ method: "GET",
902
+ headers,
903
+ path: resolvedPath,
904
+ query,
905
+ body,
906
+ });
907
+ };
908
+ exports.serializeAws_restJson1ListVpcEndpointsForDomainCommand = serializeAws_restJson1ListVpcEndpointsForDomainCommand;
758
909
  const serializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand = async (input, context) => {
759
910
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
760
911
  const headers = {
@@ -821,6 +972,29 @@ const serializeAws_restJson1RemoveTagsCommand = async (input, context) => {
821
972
  });
822
973
  };
823
974
  exports.serializeAws_restJson1RemoveTagsCommand = serializeAws_restJson1RemoveTagsCommand;
975
+ const serializeAws_restJson1RevokeVpcEndpointAccessCommand = async (input, context) => {
976
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
977
+ const headers = {
978
+ "content-type": "application/json",
979
+ };
980
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
981
+ "/2015-01-01/es/domain/{DomainName}/revokeVpcEndpointAccess";
982
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
983
+ let body;
984
+ body = JSON.stringify({
985
+ ...(input.Account != null && { Account: input.Account }),
986
+ });
987
+ return new protocol_http_1.HttpRequest({
988
+ protocol,
989
+ hostname,
990
+ port,
991
+ method: "POST",
992
+ headers,
993
+ path: resolvedPath,
994
+ body,
995
+ });
996
+ };
997
+ exports.serializeAws_restJson1RevokeVpcEndpointAccessCommand = serializeAws_restJson1RevokeVpcEndpointAccessCommand;
824
998
  const serializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = async (input, context) => {
825
999
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
826
1000
  const headers = {
@@ -924,6 +1098,28 @@ const serializeAws_restJson1UpdatePackageCommand = async (input, context) => {
924
1098
  });
925
1099
  };
926
1100
  exports.serializeAws_restJson1UpdatePackageCommand = serializeAws_restJson1UpdatePackageCommand;
1101
+ const serializeAws_restJson1UpdateVpcEndpointCommand = async (input, context) => {
1102
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1103
+ const headers = {
1104
+ "content-type": "application/json",
1105
+ };
1106
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints/update";
1107
+ let body;
1108
+ body = JSON.stringify({
1109
+ ...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
1110
+ ...(input.VpcOptions != null && { VpcOptions: serializeAws_restJson1VPCOptions(input.VpcOptions, context) }),
1111
+ });
1112
+ return new protocol_http_1.HttpRequest({
1113
+ protocol,
1114
+ hostname,
1115
+ port,
1116
+ method: "POST",
1117
+ headers,
1118
+ path: resolvedPath,
1119
+ body,
1120
+ });
1121
+ };
1122
+ exports.serializeAws_restJson1UpdateVpcEndpointCommand = serializeAws_restJson1UpdateVpcEndpointCommand;
927
1123
  const serializeAws_restJson1UpgradeElasticsearchDomainCommand = async (input, context) => {
928
1124
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
929
1125
  const headers = {
@@ -1076,6 +1272,55 @@ const deserializeAws_restJson1AssociatePackageCommandError = async (output, cont
1076
1272
  });
1077
1273
  }
1078
1274
  };
1275
+ const deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand = async (output, context) => {
1276
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1277
+ return deserializeAws_restJson1AuthorizeVpcEndpointAccessCommandError(output, context);
1278
+ }
1279
+ const contents = map({
1280
+ $metadata: deserializeMetadata(output),
1281
+ });
1282
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1283
+ if (data.AuthorizedPrincipal != null) {
1284
+ contents.AuthorizedPrincipal = deserializeAws_restJson1AuthorizedPrincipal(data.AuthorizedPrincipal, context);
1285
+ }
1286
+ return contents;
1287
+ };
1288
+ exports.deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand = deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand;
1289
+ const deserializeAws_restJson1AuthorizeVpcEndpointAccessCommandError = async (output, context) => {
1290
+ const parsedOutput = {
1291
+ ...output,
1292
+ body: await parseErrorBody(output.body, context),
1293
+ };
1294
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1295
+ switch (errorCode) {
1296
+ case "BaseException":
1297
+ case "com.amazonaws.elasticsearchservice#BaseException":
1298
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1299
+ case "DisabledOperationException":
1300
+ case "com.amazonaws.elasticsearchservice#DisabledOperationException":
1301
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1302
+ case "InternalException":
1303
+ case "com.amazonaws.elasticsearchservice#InternalException":
1304
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1305
+ case "LimitExceededException":
1306
+ case "com.amazonaws.elasticsearchservice#LimitExceededException":
1307
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1308
+ case "ResourceNotFoundException":
1309
+ case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1310
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1311
+ case "ValidationException":
1312
+ case "com.amazonaws.elasticsearchservice#ValidationException":
1313
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1314
+ default:
1315
+ const parsedBody = parsedOutput.body;
1316
+ (0, smithy_client_1.throwDefaultError)({
1317
+ output,
1318
+ parsedBody,
1319
+ exceptionCtor: ElasticsearchServiceServiceException_1.ElasticsearchServiceServiceException,
1320
+ errorCode,
1321
+ });
1322
+ }
1323
+ };
1079
1324
  const deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = async (output, context) => {
1080
1325
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1081
1326
  return deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandError(output, context);
@@ -1278,6 +1523,55 @@ const deserializeAws_restJson1CreatePackageCommandError = async (output, context
1278
1523
  });
1279
1524
  }
1280
1525
  };
1526
+ const deserializeAws_restJson1CreateVpcEndpointCommand = async (output, context) => {
1527
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1528
+ return deserializeAws_restJson1CreateVpcEndpointCommandError(output, context);
1529
+ }
1530
+ const contents = map({
1531
+ $metadata: deserializeMetadata(output),
1532
+ });
1533
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1534
+ if (data.VpcEndpoint != null) {
1535
+ contents.VpcEndpoint = deserializeAws_restJson1VpcEndpoint(data.VpcEndpoint, context);
1536
+ }
1537
+ return contents;
1538
+ };
1539
+ exports.deserializeAws_restJson1CreateVpcEndpointCommand = deserializeAws_restJson1CreateVpcEndpointCommand;
1540
+ const deserializeAws_restJson1CreateVpcEndpointCommandError = async (output, context) => {
1541
+ const parsedOutput = {
1542
+ ...output,
1543
+ body: await parseErrorBody(output.body, context),
1544
+ };
1545
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1546
+ switch (errorCode) {
1547
+ case "BaseException":
1548
+ case "com.amazonaws.elasticsearchservice#BaseException":
1549
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1550
+ case "ConflictException":
1551
+ case "com.amazonaws.elasticsearchservice#ConflictException":
1552
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1553
+ case "DisabledOperationException":
1554
+ case "com.amazonaws.elasticsearchservice#DisabledOperationException":
1555
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1556
+ case "InternalException":
1557
+ case "com.amazonaws.elasticsearchservice#InternalException":
1558
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1559
+ case "LimitExceededException":
1560
+ case "com.amazonaws.elasticsearchservice#LimitExceededException":
1561
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1562
+ case "ValidationException":
1563
+ case "com.amazonaws.elasticsearchservice#ValidationException":
1564
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1565
+ default:
1566
+ const parsedBody = parsedOutput.body;
1567
+ (0, smithy_client_1.throwDefaultError)({
1568
+ output,
1569
+ parsedBody,
1570
+ exceptionCtor: ElasticsearchServiceServiceException_1.ElasticsearchServiceServiceException,
1571
+ errorCode,
1572
+ });
1573
+ }
1574
+ };
1281
1575
  const deserializeAws_restJson1DeleteElasticsearchDomainCommand = async (output, context) => {
1282
1576
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1283
1577
  return deserializeAws_restJson1DeleteElasticsearchDomainCommandError(output, context);
@@ -1481,6 +1775,49 @@ const deserializeAws_restJson1DeletePackageCommandError = async (output, context
1481
1775
  });
1482
1776
  }
1483
1777
  };
1778
+ const deserializeAws_restJson1DeleteVpcEndpointCommand = async (output, context) => {
1779
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1780
+ return deserializeAws_restJson1DeleteVpcEndpointCommandError(output, context);
1781
+ }
1782
+ const contents = map({
1783
+ $metadata: deserializeMetadata(output),
1784
+ });
1785
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1786
+ if (data.VpcEndpointSummary != null) {
1787
+ contents.VpcEndpointSummary = deserializeAws_restJson1VpcEndpointSummary(data.VpcEndpointSummary, context);
1788
+ }
1789
+ return contents;
1790
+ };
1791
+ exports.deserializeAws_restJson1DeleteVpcEndpointCommand = deserializeAws_restJson1DeleteVpcEndpointCommand;
1792
+ const deserializeAws_restJson1DeleteVpcEndpointCommandError = async (output, context) => {
1793
+ const parsedOutput = {
1794
+ ...output,
1795
+ body: await parseErrorBody(output.body, context),
1796
+ };
1797
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1798
+ switch (errorCode) {
1799
+ case "BaseException":
1800
+ case "com.amazonaws.elasticsearchservice#BaseException":
1801
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1802
+ case "DisabledOperationException":
1803
+ case "com.amazonaws.elasticsearchservice#DisabledOperationException":
1804
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1805
+ case "InternalException":
1806
+ case "com.amazonaws.elasticsearchservice#InternalException":
1807
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1808
+ case "ResourceNotFoundException":
1809
+ case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1810
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1811
+ default:
1812
+ const parsedBody = parsedOutput.body;
1813
+ (0, smithy_client_1.throwDefaultError)({
1814
+ output,
1815
+ parsedBody,
1816
+ exceptionCtor: ElasticsearchServiceServiceException_1.ElasticsearchServiceServiceException,
1817
+ errorCode,
1818
+ });
1819
+ }
1820
+ };
1484
1821
  const deserializeAws_restJson1DescribeDomainAutoTunesCommand = async (output, context) => {
1485
1822
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1486
1823
  return deserializeAws_restJson1DescribeDomainAutoTunesCommandError(output, context);
@@ -1966,6 +2303,52 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError
1966
2303
  });
1967
2304
  }
1968
2305
  };
2306
+ const deserializeAws_restJson1DescribeVpcEndpointsCommand = async (output, context) => {
2307
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2308
+ return deserializeAws_restJson1DescribeVpcEndpointsCommandError(output, context);
2309
+ }
2310
+ const contents = map({
2311
+ $metadata: deserializeMetadata(output),
2312
+ });
2313
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2314
+ if (data.VpcEndpointErrors != null) {
2315
+ contents.VpcEndpointErrors = deserializeAws_restJson1VpcEndpointErrorList(data.VpcEndpointErrors, context);
2316
+ }
2317
+ if (data.VpcEndpoints != null) {
2318
+ contents.VpcEndpoints = deserializeAws_restJson1VpcEndpoints(data.VpcEndpoints, context);
2319
+ }
2320
+ return contents;
2321
+ };
2322
+ exports.deserializeAws_restJson1DescribeVpcEndpointsCommand = deserializeAws_restJson1DescribeVpcEndpointsCommand;
2323
+ const deserializeAws_restJson1DescribeVpcEndpointsCommandError = async (output, context) => {
2324
+ const parsedOutput = {
2325
+ ...output,
2326
+ body: await parseErrorBody(output.body, context),
2327
+ };
2328
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2329
+ switch (errorCode) {
2330
+ case "BaseException":
2331
+ case "com.amazonaws.elasticsearchservice#BaseException":
2332
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2333
+ case "DisabledOperationException":
2334
+ case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2335
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2336
+ case "InternalException":
2337
+ case "com.amazonaws.elasticsearchservice#InternalException":
2338
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2339
+ case "ValidationException":
2340
+ case "com.amazonaws.elasticsearchservice#ValidationException":
2341
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2342
+ default:
2343
+ const parsedBody = parsedOutput.body;
2344
+ (0, smithy_client_1.throwDefaultError)({
2345
+ output,
2346
+ parsedBody,
2347
+ exceptionCtor: ElasticsearchServiceServiceException_1.ElasticsearchServiceServiceException,
2348
+ errorCode,
2349
+ });
2350
+ }
2351
+ };
1969
2352
  const deserializeAws_restJson1DissociatePackageCommand = async (output, context) => {
1970
2353
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1971
2354
  return deserializeAws_restJson1DissociatePackageCommandError(output, context);
@@ -2140,9 +2523,147 @@ const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, con
2140
2523
  case "BaseException":
2141
2524
  case "com.amazonaws.elasticsearchservice#BaseException":
2142
2525
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2143
- case "DisabledOperationException":
2144
- case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2145
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2526
+ case "DisabledOperationException":
2527
+ case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2528
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2529
+ case "InternalException":
2530
+ case "com.amazonaws.elasticsearchservice#InternalException":
2531
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2532
+ case "ResourceNotFoundException":
2533
+ case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2534
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2535
+ case "ValidationException":
2536
+ case "com.amazonaws.elasticsearchservice#ValidationException":
2537
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2538
+ default:
2539
+ const parsedBody = parsedOutput.body;
2540
+ (0, smithy_client_1.throwDefaultError)({
2541
+ output,
2542
+ parsedBody,
2543
+ exceptionCtor: ElasticsearchServiceServiceException_1.ElasticsearchServiceServiceException,
2544
+ errorCode,
2545
+ });
2546
+ }
2547
+ };
2548
+ const deserializeAws_restJson1GetUpgradeStatusCommand = async (output, context) => {
2549
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2550
+ return deserializeAws_restJson1GetUpgradeStatusCommandError(output, context);
2551
+ }
2552
+ const contents = map({
2553
+ $metadata: deserializeMetadata(output),
2554
+ });
2555
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2556
+ if (data.StepStatus != null) {
2557
+ contents.StepStatus = (0, smithy_client_1.expectString)(data.StepStatus);
2558
+ }
2559
+ if (data.UpgradeName != null) {
2560
+ contents.UpgradeName = (0, smithy_client_1.expectString)(data.UpgradeName);
2561
+ }
2562
+ if (data.UpgradeStep != null) {
2563
+ contents.UpgradeStep = (0, smithy_client_1.expectString)(data.UpgradeStep);
2564
+ }
2565
+ return contents;
2566
+ };
2567
+ exports.deserializeAws_restJson1GetUpgradeStatusCommand = deserializeAws_restJson1GetUpgradeStatusCommand;
2568
+ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, context) => {
2569
+ const parsedOutput = {
2570
+ ...output,
2571
+ body: await parseErrorBody(output.body, context),
2572
+ };
2573
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2574
+ switch (errorCode) {
2575
+ case "BaseException":
2576
+ case "com.amazonaws.elasticsearchservice#BaseException":
2577
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2578
+ case "DisabledOperationException":
2579
+ case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2580
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2581
+ case "InternalException":
2582
+ case "com.amazonaws.elasticsearchservice#InternalException":
2583
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2584
+ case "ResourceNotFoundException":
2585
+ case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2586
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2587
+ case "ValidationException":
2588
+ case "com.amazonaws.elasticsearchservice#ValidationException":
2589
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2590
+ default:
2591
+ const parsedBody = parsedOutput.body;
2592
+ (0, smithy_client_1.throwDefaultError)({
2593
+ output,
2594
+ parsedBody,
2595
+ exceptionCtor: ElasticsearchServiceServiceException_1.ElasticsearchServiceServiceException,
2596
+ errorCode,
2597
+ });
2598
+ }
2599
+ };
2600
+ const deserializeAws_restJson1ListDomainNamesCommand = async (output, context) => {
2601
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2602
+ return deserializeAws_restJson1ListDomainNamesCommandError(output, context);
2603
+ }
2604
+ const contents = map({
2605
+ $metadata: deserializeMetadata(output),
2606
+ });
2607
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2608
+ if (data.DomainNames != null) {
2609
+ contents.DomainNames = deserializeAws_restJson1DomainInfoList(data.DomainNames, context);
2610
+ }
2611
+ return contents;
2612
+ };
2613
+ exports.deserializeAws_restJson1ListDomainNamesCommand = deserializeAws_restJson1ListDomainNamesCommand;
2614
+ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, context) => {
2615
+ const parsedOutput = {
2616
+ ...output,
2617
+ body: await parseErrorBody(output.body, context),
2618
+ };
2619
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2620
+ switch (errorCode) {
2621
+ case "BaseException":
2622
+ case "com.amazonaws.elasticsearchservice#BaseException":
2623
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2624
+ case "ValidationException":
2625
+ case "com.amazonaws.elasticsearchservice#ValidationException":
2626
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2627
+ default:
2628
+ const parsedBody = parsedOutput.body;
2629
+ (0, smithy_client_1.throwDefaultError)({
2630
+ output,
2631
+ parsedBody,
2632
+ exceptionCtor: ElasticsearchServiceServiceException_1.ElasticsearchServiceServiceException,
2633
+ errorCode,
2634
+ });
2635
+ }
2636
+ };
2637
+ const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, context) => {
2638
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2639
+ return deserializeAws_restJson1ListDomainsForPackageCommandError(output, context);
2640
+ }
2641
+ const contents = map({
2642
+ $metadata: deserializeMetadata(output),
2643
+ });
2644
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2645
+ if (data.DomainPackageDetailsList != null) {
2646
+ contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2647
+ }
2648
+ if (data.NextToken != null) {
2649
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2650
+ }
2651
+ return contents;
2652
+ };
2653
+ exports.deserializeAws_restJson1ListDomainsForPackageCommand = deserializeAws_restJson1ListDomainsForPackageCommand;
2654
+ const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output, context) => {
2655
+ const parsedOutput = {
2656
+ ...output,
2657
+ body: await parseErrorBody(output.body, context),
2658
+ };
2659
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2660
+ switch (errorCode) {
2661
+ case "AccessDeniedException":
2662
+ case "com.amazonaws.elasticsearchservice#AccessDeniedException":
2663
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2664
+ case "BaseException":
2665
+ case "com.amazonaws.elasticsearchservice#BaseException":
2666
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2146
2667
  case "InternalException":
2147
2668
  case "com.amazonaws.elasticsearchservice#InternalException":
2148
2669
  throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
@@ -2162,27 +2683,24 @@ const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, con
2162
2683
  });
2163
2684
  }
2164
2685
  };
2165
- const deserializeAws_restJson1GetUpgradeStatusCommand = async (output, context) => {
2686
+ const deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = async (output, context) => {
2166
2687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2167
- return deserializeAws_restJson1GetUpgradeStatusCommandError(output, context);
2688
+ return deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError(output, context);
2168
2689
  }
2169
2690
  const contents = map({
2170
2691
  $metadata: deserializeMetadata(output),
2171
2692
  });
2172
2693
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2173
- if (data.StepStatus != null) {
2174
- contents.StepStatus = (0, smithy_client_1.expectString)(data.StepStatus);
2175
- }
2176
- if (data.UpgradeName != null) {
2177
- contents.UpgradeName = (0, smithy_client_1.expectString)(data.UpgradeName);
2694
+ if (data.ElasticsearchInstanceTypes != null) {
2695
+ contents.ElasticsearchInstanceTypes = deserializeAws_restJson1ElasticsearchInstanceTypeList(data.ElasticsearchInstanceTypes, context);
2178
2696
  }
2179
- if (data.UpgradeStep != null) {
2180
- contents.UpgradeStep = (0, smithy_client_1.expectString)(data.UpgradeStep);
2697
+ if (data.NextToken != null) {
2698
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2181
2699
  }
2182
2700
  return contents;
2183
2701
  };
2184
- exports.deserializeAws_restJson1GetUpgradeStatusCommand = deserializeAws_restJson1GetUpgradeStatusCommand;
2185
- const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, context) => {
2702
+ exports.deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = deserializeAws_restJson1ListElasticsearchInstanceTypesCommand;
2703
+ const deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = async (output, context) => {
2186
2704
  const parsedOutput = {
2187
2705
  ...output,
2188
2706
  body: await parseErrorBody(output.body, context),
@@ -2192,9 +2710,6 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
2192
2710
  case "BaseException":
2193
2711
  case "com.amazonaws.elasticsearchservice#BaseException":
2194
2712
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2195
- case "DisabledOperationException":
2196
- case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2197
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2198
2713
  case "InternalException":
2199
2714
  case "com.amazonaws.elasticsearchservice#InternalException":
2200
2715
  throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
@@ -2214,21 +2729,24 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
2214
2729
  });
2215
2730
  }
2216
2731
  };
2217
- const deserializeAws_restJson1ListDomainNamesCommand = async (output, context) => {
2732
+ const deserializeAws_restJson1ListElasticsearchVersionsCommand = async (output, context) => {
2218
2733
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2219
- return deserializeAws_restJson1ListDomainNamesCommandError(output, context);
2734
+ return deserializeAws_restJson1ListElasticsearchVersionsCommandError(output, context);
2220
2735
  }
2221
2736
  const contents = map({
2222
2737
  $metadata: deserializeMetadata(output),
2223
2738
  });
2224
2739
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2225
- if (data.DomainNames != null) {
2226
- contents.DomainNames = deserializeAws_restJson1DomainInfoList(data.DomainNames, context);
2740
+ if (data.ElasticsearchVersions != null) {
2741
+ contents.ElasticsearchVersions = deserializeAws_restJson1ElasticsearchVersionList(data.ElasticsearchVersions, context);
2742
+ }
2743
+ if (data.NextToken != null) {
2744
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2227
2745
  }
2228
2746
  return contents;
2229
2747
  };
2230
- exports.deserializeAws_restJson1ListDomainNamesCommand = deserializeAws_restJson1ListDomainNamesCommand;
2231
- const deserializeAws_restJson1ListDomainNamesCommandError = async (output, context) => {
2748
+ exports.deserializeAws_restJson1ListElasticsearchVersionsCommand = deserializeAws_restJson1ListElasticsearchVersionsCommand;
2749
+ const deserializeAws_restJson1ListElasticsearchVersionsCommandError = async (output, context) => {
2232
2750
  const parsedOutput = {
2233
2751
  ...output,
2234
2752
  body: await parseErrorBody(output.body, context),
@@ -2238,6 +2756,12 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
2238
2756
  case "BaseException":
2239
2757
  case "com.amazonaws.elasticsearchservice#BaseException":
2240
2758
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2759
+ case "InternalException":
2760
+ case "com.amazonaws.elasticsearchservice#InternalException":
2761
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2762
+ case "ResourceNotFoundException":
2763
+ case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2764
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2241
2765
  case "ValidationException":
2242
2766
  case "com.amazonaws.elasticsearchservice#ValidationException":
2243
2767
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
@@ -2251,9 +2775,9 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
2251
2775
  });
2252
2776
  }
2253
2777
  };
2254
- const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, context) => {
2778
+ const deserializeAws_restJson1ListPackagesForDomainCommand = async (output, context) => {
2255
2779
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2256
- return deserializeAws_restJson1ListDomainsForPackageCommandError(output, context);
2780
+ return deserializeAws_restJson1ListPackagesForDomainCommandError(output, context);
2257
2781
  }
2258
2782
  const contents = map({
2259
2783
  $metadata: deserializeMetadata(output),
@@ -2267,8 +2791,8 @@ const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, cont
2267
2791
  }
2268
2792
  return contents;
2269
2793
  };
2270
- exports.deserializeAws_restJson1ListDomainsForPackageCommand = deserializeAws_restJson1ListDomainsForPackageCommand;
2271
- const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output, context) => {
2794
+ exports.deserializeAws_restJson1ListPackagesForDomainCommand = deserializeAws_restJson1ListPackagesForDomainCommand;
2795
+ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output, context) => {
2272
2796
  const parsedOutput = {
2273
2797
  ...output,
2274
2798
  body: await parseErrorBody(output.body, context),
@@ -2300,24 +2824,21 @@ const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output,
2300
2824
  });
2301
2825
  }
2302
2826
  };
2303
- const deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = async (output, context) => {
2827
+ const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
2304
2828
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2305
- return deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError(output, context);
2829
+ return deserializeAws_restJson1ListTagsCommandError(output, context);
2306
2830
  }
2307
2831
  const contents = map({
2308
2832
  $metadata: deserializeMetadata(output),
2309
2833
  });
2310
2834
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2311
- if (data.ElasticsearchInstanceTypes != null) {
2312
- contents.ElasticsearchInstanceTypes = deserializeAws_restJson1ElasticsearchInstanceTypeList(data.ElasticsearchInstanceTypes, context);
2313
- }
2314
- if (data.NextToken != null) {
2315
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2835
+ if (data.TagList != null) {
2836
+ contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
2316
2837
  }
2317
2838
  return contents;
2318
2839
  };
2319
- exports.deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = deserializeAws_restJson1ListElasticsearchInstanceTypesCommand;
2320
- const deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = async (output, context) => {
2840
+ exports.deserializeAws_restJson1ListTagsCommand = deserializeAws_restJson1ListTagsCommand;
2841
+ const deserializeAws_restJson1ListTagsCommandError = async (output, context) => {
2321
2842
  const parsedOutput = {
2322
2843
  ...output,
2323
2844
  body: await parseErrorBody(output.body, context),
@@ -2346,24 +2867,24 @@ const deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = async
2346
2867
  });
2347
2868
  }
2348
2869
  };
2349
- const deserializeAws_restJson1ListElasticsearchVersionsCommand = async (output, context) => {
2870
+ const deserializeAws_restJson1ListVpcEndpointAccessCommand = async (output, context) => {
2350
2871
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2351
- return deserializeAws_restJson1ListElasticsearchVersionsCommandError(output, context);
2872
+ return deserializeAws_restJson1ListVpcEndpointAccessCommandError(output, context);
2352
2873
  }
2353
2874
  const contents = map({
2354
2875
  $metadata: deserializeMetadata(output),
2355
2876
  });
2356
2877
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2357
- if (data.ElasticsearchVersions != null) {
2358
- contents.ElasticsearchVersions = deserializeAws_restJson1ElasticsearchVersionList(data.ElasticsearchVersions, context);
2878
+ if (data.AuthorizedPrincipalList != null) {
2879
+ contents.AuthorizedPrincipalList = deserializeAws_restJson1AuthorizedPrincipalList(data.AuthorizedPrincipalList, context);
2359
2880
  }
2360
2881
  if (data.NextToken != null) {
2361
2882
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2362
2883
  }
2363
2884
  return contents;
2364
2885
  };
2365
- exports.deserializeAws_restJson1ListElasticsearchVersionsCommand = deserializeAws_restJson1ListElasticsearchVersionsCommand;
2366
- const deserializeAws_restJson1ListElasticsearchVersionsCommandError = async (output, context) => {
2886
+ exports.deserializeAws_restJson1ListVpcEndpointAccessCommand = deserializeAws_restJson1ListVpcEndpointAccessCommand;
2887
+ const deserializeAws_restJson1ListVpcEndpointAccessCommandError = async (output, context) => {
2367
2888
  const parsedOutput = {
2368
2889
  ...output,
2369
2890
  body: await parseErrorBody(output.body, context),
@@ -2373,15 +2894,15 @@ const deserializeAws_restJson1ListElasticsearchVersionsCommandError = async (out
2373
2894
  case "BaseException":
2374
2895
  case "com.amazonaws.elasticsearchservice#BaseException":
2375
2896
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2897
+ case "DisabledOperationException":
2898
+ case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2899
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2376
2900
  case "InternalException":
2377
2901
  case "com.amazonaws.elasticsearchservice#InternalException":
2378
2902
  throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2379
2903
  case "ResourceNotFoundException":
2380
2904
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2381
2905
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2382
- case "ValidationException":
2383
- case "com.amazonaws.elasticsearchservice#ValidationException":
2384
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2385
2906
  default:
2386
2907
  const parsedBody = parsedOutput.body;
2387
2908
  (0, smithy_client_1.throwDefaultError)({
@@ -2392,45 +2913,39 @@ const deserializeAws_restJson1ListElasticsearchVersionsCommandError = async (out
2392
2913
  });
2393
2914
  }
2394
2915
  };
2395
- const deserializeAws_restJson1ListPackagesForDomainCommand = async (output, context) => {
2916
+ const deserializeAws_restJson1ListVpcEndpointsCommand = async (output, context) => {
2396
2917
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2397
- return deserializeAws_restJson1ListPackagesForDomainCommandError(output, context);
2918
+ return deserializeAws_restJson1ListVpcEndpointsCommandError(output, context);
2398
2919
  }
2399
2920
  const contents = map({
2400
2921
  $metadata: deserializeMetadata(output),
2401
2922
  });
2402
2923
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2403
- if (data.DomainPackageDetailsList != null) {
2404
- contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2405
- }
2406
2924
  if (data.NextToken != null) {
2407
2925
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2408
2926
  }
2927
+ if (data.VpcEndpointSummaryList != null) {
2928
+ contents.VpcEndpointSummaryList = deserializeAws_restJson1VpcEndpointSummaryList(data.VpcEndpointSummaryList, context);
2929
+ }
2409
2930
  return contents;
2410
2931
  };
2411
- exports.deserializeAws_restJson1ListPackagesForDomainCommand = deserializeAws_restJson1ListPackagesForDomainCommand;
2412
- const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output, context) => {
2932
+ exports.deserializeAws_restJson1ListVpcEndpointsCommand = deserializeAws_restJson1ListVpcEndpointsCommand;
2933
+ const deserializeAws_restJson1ListVpcEndpointsCommandError = async (output, context) => {
2413
2934
  const parsedOutput = {
2414
2935
  ...output,
2415
2936
  body: await parseErrorBody(output.body, context),
2416
2937
  };
2417
2938
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2418
2939
  switch (errorCode) {
2419
- case "AccessDeniedException":
2420
- case "com.amazonaws.elasticsearchservice#AccessDeniedException":
2421
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2422
2940
  case "BaseException":
2423
2941
  case "com.amazonaws.elasticsearchservice#BaseException":
2424
2942
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2943
+ case "DisabledOperationException":
2944
+ case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2945
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2425
2946
  case "InternalException":
2426
2947
  case "com.amazonaws.elasticsearchservice#InternalException":
2427
2948
  throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2428
- case "ResourceNotFoundException":
2429
- case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2430
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2431
- case "ValidationException":
2432
- case "com.amazonaws.elasticsearchservice#ValidationException":
2433
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2434
2949
  default:
2435
2950
  const parsedBody = parsedOutput.body;
2436
2951
  (0, smithy_client_1.throwDefaultError)({
@@ -2441,21 +2956,24 @@ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output,
2441
2956
  });
2442
2957
  }
2443
2958
  };
2444
- const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
2959
+ const deserializeAws_restJson1ListVpcEndpointsForDomainCommand = async (output, context) => {
2445
2960
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2446
- return deserializeAws_restJson1ListTagsCommandError(output, context);
2961
+ return deserializeAws_restJson1ListVpcEndpointsForDomainCommandError(output, context);
2447
2962
  }
2448
2963
  const contents = map({
2449
2964
  $metadata: deserializeMetadata(output),
2450
2965
  });
2451
2966
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2452
- if (data.TagList != null) {
2453
- contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
2967
+ if (data.NextToken != null) {
2968
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2969
+ }
2970
+ if (data.VpcEndpointSummaryList != null) {
2971
+ contents.VpcEndpointSummaryList = deserializeAws_restJson1VpcEndpointSummaryList(data.VpcEndpointSummaryList, context);
2454
2972
  }
2455
2973
  return contents;
2456
2974
  };
2457
- exports.deserializeAws_restJson1ListTagsCommand = deserializeAws_restJson1ListTagsCommand;
2458
- const deserializeAws_restJson1ListTagsCommandError = async (output, context) => {
2975
+ exports.deserializeAws_restJson1ListVpcEndpointsForDomainCommand = deserializeAws_restJson1ListVpcEndpointsForDomainCommand;
2976
+ const deserializeAws_restJson1ListVpcEndpointsForDomainCommandError = async (output, context) => {
2459
2977
  const parsedOutput = {
2460
2978
  ...output,
2461
2979
  body: await parseErrorBody(output.body, context),
@@ -2465,15 +2983,15 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
2465
2983
  case "BaseException":
2466
2984
  case "com.amazonaws.elasticsearchservice#BaseException":
2467
2985
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2986
+ case "DisabledOperationException":
2987
+ case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2988
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2468
2989
  case "InternalException":
2469
2990
  case "com.amazonaws.elasticsearchservice#InternalException":
2470
2991
  throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2471
2992
  case "ResourceNotFoundException":
2472
2993
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2473
2994
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2474
- case "ValidationException":
2475
- case "com.amazonaws.elasticsearchservice#ValidationException":
2476
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2477
2995
  default:
2478
2996
  const parsedBody = parsedOutput.body;
2479
2997
  (0, smithy_client_1.throwDefaultError)({
@@ -2610,6 +3128,49 @@ const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) =
2610
3128
  });
2611
3129
  }
2612
3130
  };
3131
+ const deserializeAws_restJson1RevokeVpcEndpointAccessCommand = async (output, context) => {
3132
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3133
+ return deserializeAws_restJson1RevokeVpcEndpointAccessCommandError(output, context);
3134
+ }
3135
+ const contents = map({
3136
+ $metadata: deserializeMetadata(output),
3137
+ });
3138
+ await collectBody(output.body, context);
3139
+ return contents;
3140
+ };
3141
+ exports.deserializeAws_restJson1RevokeVpcEndpointAccessCommand = deserializeAws_restJson1RevokeVpcEndpointAccessCommand;
3142
+ const deserializeAws_restJson1RevokeVpcEndpointAccessCommandError = async (output, context) => {
3143
+ const parsedOutput = {
3144
+ ...output,
3145
+ body: await parseErrorBody(output.body, context),
3146
+ };
3147
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3148
+ switch (errorCode) {
3149
+ case "BaseException":
3150
+ case "com.amazonaws.elasticsearchservice#BaseException":
3151
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
3152
+ case "DisabledOperationException":
3153
+ case "com.amazonaws.elasticsearchservice#DisabledOperationException":
3154
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
3155
+ case "InternalException":
3156
+ case "com.amazonaws.elasticsearchservice#InternalException":
3157
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3158
+ case "ResourceNotFoundException":
3159
+ case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
3160
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3161
+ case "ValidationException":
3162
+ case "com.amazonaws.elasticsearchservice#ValidationException":
3163
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3164
+ default:
3165
+ const parsedBody = parsedOutput.body;
3166
+ (0, smithy_client_1.throwDefaultError)({
3167
+ output,
3168
+ parsedBody,
3169
+ exceptionCtor: ElasticsearchServiceServiceException_1.ElasticsearchServiceServiceException,
3170
+ errorCode,
3171
+ });
3172
+ }
3173
+ };
2613
3174
  const deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = async (output, context) => {
2614
3175
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2615
3176
  return deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandError(output, context);
@@ -2754,6 +3315,55 @@ const deserializeAws_restJson1UpdatePackageCommandError = async (output, context
2754
3315
  });
2755
3316
  }
2756
3317
  };
3318
+ const deserializeAws_restJson1UpdateVpcEndpointCommand = async (output, context) => {
3319
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3320
+ return deserializeAws_restJson1UpdateVpcEndpointCommandError(output, context);
3321
+ }
3322
+ const contents = map({
3323
+ $metadata: deserializeMetadata(output),
3324
+ });
3325
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3326
+ if (data.VpcEndpoint != null) {
3327
+ contents.VpcEndpoint = deserializeAws_restJson1VpcEndpoint(data.VpcEndpoint, context);
3328
+ }
3329
+ return contents;
3330
+ };
3331
+ exports.deserializeAws_restJson1UpdateVpcEndpointCommand = deserializeAws_restJson1UpdateVpcEndpointCommand;
3332
+ const deserializeAws_restJson1UpdateVpcEndpointCommandError = async (output, context) => {
3333
+ const parsedOutput = {
3334
+ ...output,
3335
+ body: await parseErrorBody(output.body, context),
3336
+ };
3337
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3338
+ switch (errorCode) {
3339
+ case "BaseException":
3340
+ case "com.amazonaws.elasticsearchservice#BaseException":
3341
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
3342
+ case "ConflictException":
3343
+ case "com.amazonaws.elasticsearchservice#ConflictException":
3344
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3345
+ case "DisabledOperationException":
3346
+ case "com.amazonaws.elasticsearchservice#DisabledOperationException":
3347
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
3348
+ case "InternalException":
3349
+ case "com.amazonaws.elasticsearchservice#InternalException":
3350
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3351
+ case "ResourceNotFoundException":
3352
+ case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
3353
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3354
+ case "ValidationException":
3355
+ case "com.amazonaws.elasticsearchservice#ValidationException":
3356
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3357
+ default:
3358
+ const parsedBody = parsedOutput.body;
3359
+ (0, smithy_client_1.throwDefaultError)({
3360
+ output,
3361
+ parsedBody,
3362
+ exceptionCtor: ElasticsearchServiceServiceException_1.ElasticsearchServiceServiceException,
3363
+ errorCode,
3364
+ });
3365
+ }
3366
+ };
2757
3367
  const deserializeAws_restJson1UpgradeElasticsearchDomainCommand = async (output, context) => {
2758
3368
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2759
3369
  return deserializeAws_restJson1UpgradeElasticsearchDomainCommandError(output, context);
@@ -3199,6 +3809,13 @@ const serializeAws_restJson1ValueStringList = (input, context) => {
3199
3809
  return entry;
3200
3810
  });
3201
3811
  };
3812
+ const serializeAws_restJson1VpcEndpointIdList = (input, context) => {
3813
+ return input
3814
+ .filter((e) => e != null)
3815
+ .map((entry) => {
3816
+ return entry;
3817
+ });
3818
+ };
3202
3819
  const serializeAws_restJson1VPCOptions = (input, context) => {
3203
3820
  return {
3204
3821
  ...(input.SecurityGroupIds != null && {
@@ -3269,6 +3886,23 @@ const deserializeAws_restJson1AdvancedSecurityOptionsStatus = (output, context)
3269
3886
  Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
3270
3887
  };
3271
3888
  };
3889
+ const deserializeAws_restJson1AuthorizedPrincipal = (output, context) => {
3890
+ return {
3891
+ Principal: (0, smithy_client_1.expectString)(output.Principal),
3892
+ PrincipalType: (0, smithy_client_1.expectString)(output.PrincipalType),
3893
+ };
3894
+ };
3895
+ const deserializeAws_restJson1AuthorizedPrincipalList = (output, context) => {
3896
+ const retVal = (output || [])
3897
+ .filter((e) => e != null)
3898
+ .map((entry) => {
3899
+ if (entry === null) {
3900
+ return null;
3901
+ }
3902
+ return deserializeAws_restJson1AuthorizedPrincipal(entry, context);
3903
+ });
3904
+ return retVal;
3905
+ };
3272
3906
  const deserializeAws_restJson1AutoTune = (output, context) => {
3273
3907
  return {
3274
3908
  AutoTuneDetails: output.AutoTuneDetails != null
@@ -4163,6 +4797,64 @@ const deserializeAws_restJson1VPCDerivedInfoStatus = (output, context) => {
4163
4797
  Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4164
4798
  };
4165
4799
  };
4800
+ const deserializeAws_restJson1VpcEndpoint = (output, context) => {
4801
+ return {
4802
+ DomainArn: (0, smithy_client_1.expectString)(output.DomainArn),
4803
+ Endpoint: (0, smithy_client_1.expectString)(output.Endpoint),
4804
+ Status: (0, smithy_client_1.expectString)(output.Status),
4805
+ VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
4806
+ VpcEndpointOwner: (0, smithy_client_1.expectString)(output.VpcEndpointOwner),
4807
+ VpcOptions: output.VpcOptions != null ? deserializeAws_restJson1VPCDerivedInfo(output.VpcOptions, context) : undefined,
4808
+ };
4809
+ };
4810
+ const deserializeAws_restJson1VpcEndpointError = (output, context) => {
4811
+ return {
4812
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4813
+ ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4814
+ VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
4815
+ };
4816
+ };
4817
+ const deserializeAws_restJson1VpcEndpointErrorList = (output, context) => {
4818
+ const retVal = (output || [])
4819
+ .filter((e) => e != null)
4820
+ .map((entry) => {
4821
+ if (entry === null) {
4822
+ return null;
4823
+ }
4824
+ return deserializeAws_restJson1VpcEndpointError(entry, context);
4825
+ });
4826
+ return retVal;
4827
+ };
4828
+ const deserializeAws_restJson1VpcEndpoints = (output, context) => {
4829
+ const retVal = (output || [])
4830
+ .filter((e) => e != null)
4831
+ .map((entry) => {
4832
+ if (entry === null) {
4833
+ return null;
4834
+ }
4835
+ return deserializeAws_restJson1VpcEndpoint(entry, context);
4836
+ });
4837
+ return retVal;
4838
+ };
4839
+ const deserializeAws_restJson1VpcEndpointSummary = (output, context) => {
4840
+ return {
4841
+ DomainArn: (0, smithy_client_1.expectString)(output.DomainArn),
4842
+ Status: (0, smithy_client_1.expectString)(output.Status),
4843
+ VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
4844
+ VpcEndpointOwner: (0, smithy_client_1.expectString)(output.VpcEndpointOwner),
4845
+ };
4846
+ };
4847
+ const deserializeAws_restJson1VpcEndpointSummaryList = (output, context) => {
4848
+ const retVal = (output || [])
4849
+ .filter((e) => e != null)
4850
+ .map((entry) => {
4851
+ if (entry === null) {
4852
+ return null;
4853
+ }
4854
+ return deserializeAws_restJson1VpcEndpointSummary(entry, context);
4855
+ });
4856
+ return retVal;
4857
+ };
4166
4858
  const deserializeAws_restJson1ZoneAwarenessConfig = (output, context) => {
4167
4859
  return {
4168
4860
  AvailabilityZoneCount: (0, smithy_client_1.expectInt32)(output.AvailabilityZoneCount),