@aws-sdk/client-opensearch 3.204.0 → 3.206.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 (96) hide show
  1. package/README.md +9 -12
  2. package/dist-cjs/OpenSearch.js +135 -0
  3. package/dist-cjs/commands/AuthorizeVpcEndpointAccessCommand.js +46 -0
  4. package/dist-cjs/commands/CreateVpcEndpointCommand.js +46 -0
  5. package/dist-cjs/commands/DeleteVpcEndpointCommand.js +46 -0
  6. package/dist-cjs/commands/DescribeVpcEndpointsCommand.js +46 -0
  7. package/dist-cjs/commands/ListVpcEndpointAccessCommand.js +46 -0
  8. package/dist-cjs/commands/ListVpcEndpointsCommand.js +46 -0
  9. package/dist-cjs/commands/ListVpcEndpointsForDomainCommand.js +46 -0
  10. package/dist-cjs/commands/RevokeVpcEndpointAccessCommand.js +46 -0
  11. package/dist-cjs/commands/UpdateVpcEndpointCommand.js +46 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/models/models_0.js +113 -4
  14. package/dist-cjs/protocols/Aws_restJson1.js +761 -67
  15. package/dist-es/OpenSearch.js +135 -0
  16. package/dist-es/commands/AuthorizeVpcEndpointAccessCommand.js +42 -0
  17. package/dist-es/commands/CreateVpcEndpointCommand.js +42 -0
  18. package/dist-es/commands/DeleteVpcEndpointCommand.js +42 -0
  19. package/dist-es/commands/DescribeVpcEndpointsCommand.js +42 -0
  20. package/dist-es/commands/ListVpcEndpointAccessCommand.js +42 -0
  21. package/dist-es/commands/ListVpcEndpointsCommand.js +42 -0
  22. package/dist-es/commands/ListVpcEndpointsForDomainCommand.js +42 -0
  23. package/dist-es/commands/RevokeVpcEndpointAccessCommand.js +42 -0
  24. package/dist-es/commands/UpdateVpcEndpointCommand.js +42 -0
  25. package/dist-es/commands/index.js +9 -0
  26. package/dist-es/models/models_0.js +86 -0
  27. package/dist-es/protocols/Aws_restJson1.js +744 -68
  28. package/dist-types/OpenSearch.d.ts +172 -91
  29. package/dist-types/OpenSearchClient.d.ts +21 -14
  30. package/dist-types/commands/AcceptInboundConnectionCommand.d.ts +3 -1
  31. package/dist-types/commands/AddTagsCommand.d.ts +3 -5
  32. package/dist-types/commands/AssociatePackageCommand.d.ts +3 -1
  33. package/dist-types/commands/AuthorizeVpcEndpointAccessCommand.d.ts +38 -0
  34. package/dist-types/commands/CancelServiceSoftwareUpdateCommand.d.ts +3 -3
  35. package/dist-types/commands/CreateDomainCommand.d.ts +1 -4
  36. package/dist-types/commands/CreateOutboundConnectionCommand.d.ts +3 -1
  37. package/dist-types/commands/CreatePackageCommand.d.ts +2 -1
  38. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +37 -0
  39. package/dist-types/commands/DeleteDomainCommand.d.ts +2 -3
  40. package/dist-types/commands/DeleteInboundConnectionCommand.d.ts +3 -1
  41. package/dist-types/commands/DeleteOutboundConnectionCommand.d.ts +3 -1
  42. package/dist-types/commands/DeletePackageCommand.d.ts +2 -1
  43. package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +37 -0
  44. package/dist-types/commands/DescribeDomainAutoTunesCommand.d.ts +3 -3
  45. package/dist-types/commands/DescribeDomainChangeProgressCommand.d.ts +2 -2
  46. package/dist-types/commands/DescribeDomainCommand.d.ts +2 -3
  47. package/dist-types/commands/DescribeDomainConfigCommand.d.ts +1 -3
  48. package/dist-types/commands/DescribeDomainsCommand.d.ts +2 -3
  49. package/dist-types/commands/DescribeInboundConnectionsCommand.d.ts +3 -1
  50. package/dist-types/commands/DescribeInstanceTypeLimitsCommand.d.ts +2 -8
  51. package/dist-types/commands/DescribeOutboundConnectionsCommand.d.ts +3 -1
  52. package/dist-types/commands/DescribePackagesCommand.d.ts +2 -3
  53. package/dist-types/commands/DescribeReservedInstanceOfferingsCommand.d.ts +2 -1
  54. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +3 -1
  55. package/dist-types/commands/DescribeVpcEndpointsCommand.d.ts +37 -0
  56. package/dist-types/commands/DissociatePackageCommand.d.ts +4 -1
  57. package/dist-types/commands/GetCompatibleVersionsCommand.d.ts +2 -8
  58. package/dist-types/commands/GetPackageVersionHistoryCommand.d.ts +3 -1
  59. package/dist-types/commands/GetUpgradeHistoryCommand.d.ts +2 -1
  60. package/dist-types/commands/GetUpgradeStatusCommand.d.ts +2 -2
  61. package/dist-types/commands/ListDomainNamesCommand.d.ts +2 -1
  62. package/dist-types/commands/ListDomainsForPackageCommand.d.ts +3 -1
  63. package/dist-types/commands/ListInstanceTypeDetailsCommand.d.ts +18 -0
  64. package/dist-types/commands/ListPackagesForDomainCommand.d.ts +3 -1
  65. package/dist-types/commands/ListTagsCommand.d.ts +2 -1
  66. package/dist-types/commands/ListVersionsCommand.d.ts +2 -1
  67. package/dist-types/commands/ListVpcEndpointAccessCommand.d.ts +38 -0
  68. package/dist-types/commands/ListVpcEndpointsCommand.d.ts +37 -0
  69. package/dist-types/commands/ListVpcEndpointsForDomainCommand.d.ts +38 -0
  70. package/dist-types/commands/PurchaseReservedInstanceOfferingCommand.d.ts +1 -1
  71. package/dist-types/commands/RejectInboundConnectionCommand.d.ts +2 -1
  72. package/dist-types/commands/RemoveTagsCommand.d.ts +2 -1
  73. package/dist-types/commands/RevokeVpcEndpointAccessCommand.d.ts +38 -0
  74. package/dist-types/commands/StartServiceSoftwareUpdateCommand.d.ts +3 -1
  75. package/dist-types/commands/UpdateDomainConfigCommand.d.ts +1 -3
  76. package/dist-types/commands/UpdatePackageCommand.d.ts +2 -1
  77. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +37 -0
  78. package/dist-types/commands/UpgradeDomainCommand.d.ts +2 -2
  79. package/dist-types/commands/index.d.ts +9 -0
  80. package/dist-types/models/models_0.d.ts +1526 -1604
  81. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  82. package/dist-types/ts3.4/OpenSearch.d.ts +153 -0
  83. package/dist-types/ts3.4/OpenSearchClient.d.ts +54 -0
  84. package/dist-types/ts3.4/commands/AuthorizeVpcEndpointAccessCommand.d.ts +41 -0
  85. package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +38 -0
  86. package/dist-types/ts3.4/commands/DeleteVpcEndpointCommand.d.ts +38 -0
  87. package/dist-types/ts3.4/commands/DescribeVpcEndpointsCommand.d.ts +41 -0
  88. package/dist-types/ts3.4/commands/ListVpcEndpointAccessCommand.d.ts +41 -0
  89. package/dist-types/ts3.4/commands/ListVpcEndpointsCommand.d.ts +37 -0
  90. package/dist-types/ts3.4/commands/ListVpcEndpointsForDomainCommand.d.ts +41 -0
  91. package/dist-types/ts3.4/commands/RevokeVpcEndpointAccessCommand.d.ts +41 -0
  92. package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +38 -0
  93. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  94. package/dist-types/ts3.4/models/models_0.d.ts +167 -0
  95. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  96. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1DeleteOutboundConnectionCommand = exports.deserializeAws_restJson1DeleteInboundConnectionCommand = exports.deserializeAws_restJson1DeleteDomainCommand = exports.deserializeAws_restJson1CreatePackageCommand = exports.deserializeAws_restJson1CreateOutboundConnectionCommand = exports.deserializeAws_restJson1CreateDomainCommand = exports.deserializeAws_restJson1CancelServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1AssociatePackageCommand = exports.deserializeAws_restJson1AddTagsCommand = exports.deserializeAws_restJson1AcceptInboundConnectionCommand = exports.serializeAws_restJson1UpgradeDomainCommand = exports.serializeAws_restJson1UpdatePackageCommand = exports.serializeAws_restJson1UpdateDomainConfigCommand = exports.serializeAws_restJson1StartServiceSoftwareUpdateCommand = exports.serializeAws_restJson1RemoveTagsCommand = exports.serializeAws_restJson1RejectInboundConnectionCommand = exports.serializeAws_restJson1PurchaseReservedInstanceOfferingCommand = exports.serializeAws_restJson1ListVersionsCommand = exports.serializeAws_restJson1ListTagsCommand = exports.serializeAws_restJson1ListPackagesForDomainCommand = exports.serializeAws_restJson1ListInstanceTypeDetailsCommand = exports.serializeAws_restJson1ListDomainsForPackageCommand = exports.serializeAws_restJson1ListDomainNamesCommand = exports.serializeAws_restJson1GetUpgradeStatusCommand = exports.serializeAws_restJson1GetUpgradeHistoryCommand = exports.serializeAws_restJson1GetPackageVersionHistoryCommand = exports.serializeAws_restJson1GetCompatibleVersionsCommand = exports.serializeAws_restJson1DissociatePackageCommand = exports.serializeAws_restJson1DescribeReservedInstancesCommand = exports.serializeAws_restJson1DescribeReservedInstanceOfferingsCommand = exports.serializeAws_restJson1DescribePackagesCommand = exports.serializeAws_restJson1DescribeOutboundConnectionsCommand = exports.serializeAws_restJson1DescribeInstanceTypeLimitsCommand = exports.serializeAws_restJson1DescribeInboundConnectionsCommand = exports.serializeAws_restJson1DescribeDomainsCommand = exports.serializeAws_restJson1DescribeDomainConfigCommand = exports.serializeAws_restJson1DescribeDomainChangeProgressCommand = exports.serializeAws_restJson1DescribeDomainAutoTunesCommand = exports.serializeAws_restJson1DescribeDomainCommand = exports.serializeAws_restJson1DeletePackageCommand = exports.serializeAws_restJson1DeleteOutboundConnectionCommand = exports.serializeAws_restJson1DeleteInboundConnectionCommand = exports.serializeAws_restJson1DeleteDomainCommand = exports.serializeAws_restJson1CreatePackageCommand = exports.serializeAws_restJson1CreateOutboundConnectionCommand = exports.serializeAws_restJson1CreateDomainCommand = exports.serializeAws_restJson1CancelServiceSoftwareUpdateCommand = exports.serializeAws_restJson1AssociatePackageCommand = exports.serializeAws_restJson1AddTagsCommand = exports.serializeAws_restJson1AcceptInboundConnectionCommand = void 0;
4
- exports.deserializeAws_restJson1UpgradeDomainCommand = exports.deserializeAws_restJson1UpdatePackageCommand = exports.deserializeAws_restJson1UpdateDomainConfigCommand = exports.deserializeAws_restJson1StartServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1RemoveTagsCommand = exports.deserializeAws_restJson1RejectInboundConnectionCommand = exports.deserializeAws_restJson1PurchaseReservedInstanceOfferingCommand = exports.deserializeAws_restJson1ListVersionsCommand = exports.deserializeAws_restJson1ListTagsCommand = exports.deserializeAws_restJson1ListPackagesForDomainCommand = exports.deserializeAws_restJson1ListInstanceTypeDetailsCommand = exports.deserializeAws_restJson1ListDomainsForPackageCommand = exports.deserializeAws_restJson1ListDomainNamesCommand = exports.deserializeAws_restJson1GetUpgradeStatusCommand = exports.deserializeAws_restJson1GetUpgradeHistoryCommand = exports.deserializeAws_restJson1GetPackageVersionHistoryCommand = exports.deserializeAws_restJson1GetCompatibleVersionsCommand = exports.deserializeAws_restJson1DissociatePackageCommand = exports.deserializeAws_restJson1DescribeReservedInstancesCommand = exports.deserializeAws_restJson1DescribeReservedInstanceOfferingsCommand = exports.deserializeAws_restJson1DescribePackagesCommand = exports.deserializeAws_restJson1DescribeOutboundConnectionsCommand = exports.deserializeAws_restJson1DescribeInstanceTypeLimitsCommand = exports.deserializeAws_restJson1DescribeInboundConnectionsCommand = exports.deserializeAws_restJson1DescribeDomainsCommand = exports.deserializeAws_restJson1DescribeDomainConfigCommand = exports.deserializeAws_restJson1DescribeDomainChangeProgressCommand = exports.deserializeAws_restJson1DescribeDomainAutoTunesCommand = exports.deserializeAws_restJson1DescribeDomainCommand = exports.deserializeAws_restJson1DeletePackageCommand = void 0;
3
+ exports.deserializeAws_restJson1AcceptInboundConnectionCommand = exports.serializeAws_restJson1UpgradeDomainCommand = exports.serializeAws_restJson1UpdateVpcEndpointCommand = exports.serializeAws_restJson1UpdatePackageCommand = exports.serializeAws_restJson1UpdateDomainConfigCommand = exports.serializeAws_restJson1StartServiceSoftwareUpdateCommand = exports.serializeAws_restJson1RevokeVpcEndpointAccessCommand = exports.serializeAws_restJson1RemoveTagsCommand = exports.serializeAws_restJson1RejectInboundConnectionCommand = exports.serializeAws_restJson1PurchaseReservedInstanceOfferingCommand = exports.serializeAws_restJson1ListVpcEndpointsForDomainCommand = exports.serializeAws_restJson1ListVpcEndpointsCommand = exports.serializeAws_restJson1ListVpcEndpointAccessCommand = exports.serializeAws_restJson1ListVersionsCommand = exports.serializeAws_restJson1ListTagsCommand = exports.serializeAws_restJson1ListPackagesForDomainCommand = exports.serializeAws_restJson1ListInstanceTypeDetailsCommand = exports.serializeAws_restJson1ListDomainsForPackageCommand = exports.serializeAws_restJson1ListDomainNamesCommand = exports.serializeAws_restJson1GetUpgradeStatusCommand = exports.serializeAws_restJson1GetUpgradeHistoryCommand = exports.serializeAws_restJson1GetPackageVersionHistoryCommand = exports.serializeAws_restJson1GetCompatibleVersionsCommand = exports.serializeAws_restJson1DissociatePackageCommand = exports.serializeAws_restJson1DescribeVpcEndpointsCommand = exports.serializeAws_restJson1DescribeReservedInstancesCommand = exports.serializeAws_restJson1DescribeReservedInstanceOfferingsCommand = exports.serializeAws_restJson1DescribePackagesCommand = exports.serializeAws_restJson1DescribeOutboundConnectionsCommand = exports.serializeAws_restJson1DescribeInstanceTypeLimitsCommand = exports.serializeAws_restJson1DescribeInboundConnectionsCommand = exports.serializeAws_restJson1DescribeDomainsCommand = exports.serializeAws_restJson1DescribeDomainConfigCommand = exports.serializeAws_restJson1DescribeDomainChangeProgressCommand = exports.serializeAws_restJson1DescribeDomainAutoTunesCommand = exports.serializeAws_restJson1DescribeDomainCommand = exports.serializeAws_restJson1DeleteVpcEndpointCommand = exports.serializeAws_restJson1DeletePackageCommand = exports.serializeAws_restJson1DeleteOutboundConnectionCommand = exports.serializeAws_restJson1DeleteInboundConnectionCommand = exports.serializeAws_restJson1DeleteDomainCommand = exports.serializeAws_restJson1CreateVpcEndpointCommand = exports.serializeAws_restJson1CreatePackageCommand = exports.serializeAws_restJson1CreateOutboundConnectionCommand = exports.serializeAws_restJson1CreateDomainCommand = exports.serializeAws_restJson1CancelServiceSoftwareUpdateCommand = exports.serializeAws_restJson1AuthorizeVpcEndpointAccessCommand = exports.serializeAws_restJson1AssociatePackageCommand = exports.serializeAws_restJson1AddTagsCommand = exports.serializeAws_restJson1AcceptInboundConnectionCommand = void 0;
4
+ exports.deserializeAws_restJson1UpgradeDomainCommand = exports.deserializeAws_restJson1UpdateVpcEndpointCommand = exports.deserializeAws_restJson1UpdatePackageCommand = exports.deserializeAws_restJson1UpdateDomainConfigCommand = exports.deserializeAws_restJson1StartServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1RevokeVpcEndpointAccessCommand = exports.deserializeAws_restJson1RemoveTagsCommand = exports.deserializeAws_restJson1RejectInboundConnectionCommand = exports.deserializeAws_restJson1PurchaseReservedInstanceOfferingCommand = exports.deserializeAws_restJson1ListVpcEndpointsForDomainCommand = exports.deserializeAws_restJson1ListVpcEndpointsCommand = exports.deserializeAws_restJson1ListVpcEndpointAccessCommand = exports.deserializeAws_restJson1ListVersionsCommand = exports.deserializeAws_restJson1ListTagsCommand = exports.deserializeAws_restJson1ListPackagesForDomainCommand = exports.deserializeAws_restJson1ListInstanceTypeDetailsCommand = exports.deserializeAws_restJson1ListDomainsForPackageCommand = exports.deserializeAws_restJson1ListDomainNamesCommand = exports.deserializeAws_restJson1GetUpgradeStatusCommand = exports.deserializeAws_restJson1GetUpgradeHistoryCommand = exports.deserializeAws_restJson1GetPackageVersionHistoryCommand = exports.deserializeAws_restJson1GetCompatibleVersionsCommand = exports.deserializeAws_restJson1DissociatePackageCommand = exports.deserializeAws_restJson1DescribeVpcEndpointsCommand = exports.deserializeAws_restJson1DescribeReservedInstancesCommand = exports.deserializeAws_restJson1DescribeReservedInstanceOfferingsCommand = exports.deserializeAws_restJson1DescribePackagesCommand = exports.deserializeAws_restJson1DescribeOutboundConnectionsCommand = exports.deserializeAws_restJson1DescribeInstanceTypeLimitsCommand = exports.deserializeAws_restJson1DescribeInboundConnectionsCommand = exports.deserializeAws_restJson1DescribeDomainsCommand = exports.deserializeAws_restJson1DescribeDomainConfigCommand = exports.deserializeAws_restJson1DescribeDomainChangeProgressCommand = exports.deserializeAws_restJson1DescribeDomainAutoTunesCommand = exports.deserializeAws_restJson1DescribeDomainCommand = exports.deserializeAws_restJson1DeleteVpcEndpointCommand = exports.deserializeAws_restJson1DeletePackageCommand = exports.deserializeAws_restJson1DeleteOutboundConnectionCommand = exports.deserializeAws_restJson1DeleteInboundConnectionCommand = exports.deserializeAws_restJson1DeleteDomainCommand = exports.deserializeAws_restJson1CreateVpcEndpointCommand = exports.deserializeAws_restJson1CreatePackageCommand = exports.deserializeAws_restJson1CreateOutboundConnectionCommand = exports.deserializeAws_restJson1CreateDomainCommand = exports.deserializeAws_restJson1CancelServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand = exports.deserializeAws_restJson1AssociatePackageCommand = exports.deserializeAws_restJson1AddTagsCommand = 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 models_0_1 = require("../models/models_0");
@@ -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
+ "/2021-01-01/opensearch/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_restJson1CancelServiceSoftwareUpdateCommand = async (input, context) => {
69
92
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
70
93
  const headers = {
@@ -197,6 +220,29 @@ const serializeAws_restJson1CreatePackageCommand = async (input, context) => {
197
220
  });
198
221
  };
199
222
  exports.serializeAws_restJson1CreatePackageCommand = serializeAws_restJson1CreatePackageCommand;
223
+ const serializeAws_restJson1CreateVpcEndpointCommand = async (input, context) => {
224
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
+ const headers = {
226
+ "content-type": "application/json",
227
+ };
228
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/vpcEndpoints";
229
+ let body;
230
+ body = JSON.stringify({
231
+ ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
232
+ ...(input.DomainArn != null && { DomainArn: input.DomainArn }),
233
+ ...(input.VpcOptions != null && { VpcOptions: serializeAws_restJson1VPCOptions(input.VpcOptions, context) }),
234
+ });
235
+ return new protocol_http_1.HttpRequest({
236
+ protocol,
237
+ hostname,
238
+ port,
239
+ method: "POST",
240
+ headers,
241
+ path: resolvedPath,
242
+ body,
243
+ });
244
+ };
245
+ exports.serializeAws_restJson1CreateVpcEndpointCommand = serializeAws_restJson1CreateVpcEndpointCommand;
200
246
  const serializeAws_restJson1DeleteDomainCommand = async (input, context) => {
201
247
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
202
248
  const headers = {};
@@ -268,6 +314,24 @@ const serializeAws_restJson1DeletePackageCommand = async (input, context) => {
268
314
  });
269
315
  };
270
316
  exports.serializeAws_restJson1DeletePackageCommand = serializeAws_restJson1DeletePackageCommand;
317
+ const serializeAws_restJson1DeleteVpcEndpointCommand = async (input, context) => {
318
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
319
+ const headers = {};
320
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
321
+ "/2021-01-01/opensearch/vpcEndpoints/{VpcEndpointId}";
322
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VpcEndpointId", () => input.VpcEndpointId, "{VpcEndpointId}", false);
323
+ let body;
324
+ return new protocol_http_1.HttpRequest({
325
+ protocol,
326
+ hostname,
327
+ port,
328
+ method: "DELETE",
329
+ headers,
330
+ path: resolvedPath,
331
+ body,
332
+ });
333
+ };
334
+ exports.serializeAws_restJson1DeleteVpcEndpointCommand = serializeAws_restJson1DeleteVpcEndpointCommand;
271
335
  const serializeAws_restJson1DescribeDomainCommand = async (input, context) => {
272
336
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
273
337
  const headers = {};
@@ -510,6 +574,30 @@ const serializeAws_restJson1DescribeReservedInstancesCommand = async (input, con
510
574
  });
511
575
  };
512
576
  exports.serializeAws_restJson1DescribeReservedInstancesCommand = serializeAws_restJson1DescribeReservedInstancesCommand;
577
+ const serializeAws_restJson1DescribeVpcEndpointsCommand = async (input, context) => {
578
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
579
+ const headers = {
580
+ "content-type": "application/json",
581
+ };
582
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
583
+ "/2021-01-01/opensearch/vpcEndpoints/describe";
584
+ let body;
585
+ body = JSON.stringify({
586
+ ...(input.VpcEndpointIds != null && {
587
+ VpcEndpointIds: serializeAws_restJson1VpcEndpointIdList(input.VpcEndpointIds, context),
588
+ }),
589
+ });
590
+ return new protocol_http_1.HttpRequest({
591
+ protocol,
592
+ hostname,
593
+ port,
594
+ method: "POST",
595
+ headers,
596
+ path: resolvedPath,
597
+ body,
598
+ });
599
+ };
600
+ exports.serializeAws_restJson1DescribeVpcEndpointsCommand = serializeAws_restJson1DescribeVpcEndpointsCommand;
513
601
  const serializeAws_restJson1DissociatePackageCommand = async (input, context) => {
514
602
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
515
603
  const headers = {};
@@ -741,6 +829,70 @@ const serializeAws_restJson1ListVersionsCommand = async (input, context) => {
741
829
  });
742
830
  };
743
831
  exports.serializeAws_restJson1ListVersionsCommand = serializeAws_restJson1ListVersionsCommand;
832
+ const serializeAws_restJson1ListVpcEndpointAccessCommand = async (input, context) => {
833
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
834
+ const headers = {};
835
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
836
+ "/2021-01-01/opensearch/domain/{DomainName}/listVpcEndpointAccess";
837
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
838
+ const query = map({
839
+ nextToken: [, input.NextToken],
840
+ });
841
+ let body;
842
+ return new protocol_http_1.HttpRequest({
843
+ protocol,
844
+ hostname,
845
+ port,
846
+ method: "GET",
847
+ headers,
848
+ path: resolvedPath,
849
+ query,
850
+ body,
851
+ });
852
+ };
853
+ exports.serializeAws_restJson1ListVpcEndpointAccessCommand = serializeAws_restJson1ListVpcEndpointAccessCommand;
854
+ const serializeAws_restJson1ListVpcEndpointsCommand = async (input, context) => {
855
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
856
+ const headers = {};
857
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/vpcEndpoints";
858
+ const query = map({
859
+ nextToken: [, input.NextToken],
860
+ });
861
+ let body;
862
+ return new protocol_http_1.HttpRequest({
863
+ protocol,
864
+ hostname,
865
+ port,
866
+ method: "GET",
867
+ headers,
868
+ path: resolvedPath,
869
+ query,
870
+ body,
871
+ });
872
+ };
873
+ exports.serializeAws_restJson1ListVpcEndpointsCommand = serializeAws_restJson1ListVpcEndpointsCommand;
874
+ const serializeAws_restJson1ListVpcEndpointsForDomainCommand = async (input, context) => {
875
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
876
+ const headers = {};
877
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
878
+ "/2021-01-01/opensearch/domain/{DomainName}/vpcEndpoints";
879
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
880
+ const query = map({
881
+ nextToken: [, input.NextToken],
882
+ });
883
+ let body;
884
+ return new protocol_http_1.HttpRequest({
885
+ protocol,
886
+ hostname,
887
+ port,
888
+ method: "GET",
889
+ headers,
890
+ path: resolvedPath,
891
+ query,
892
+ body,
893
+ });
894
+ };
895
+ exports.serializeAws_restJson1ListVpcEndpointsForDomainCommand = serializeAws_restJson1ListVpcEndpointsForDomainCommand;
744
896
  const serializeAws_restJson1PurchaseReservedInstanceOfferingCommand = async (input, context) => {
745
897
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
746
898
  const headers = {
@@ -805,6 +957,29 @@ const serializeAws_restJson1RemoveTagsCommand = async (input, context) => {
805
957
  });
806
958
  };
807
959
  exports.serializeAws_restJson1RemoveTagsCommand = serializeAws_restJson1RemoveTagsCommand;
960
+ const serializeAws_restJson1RevokeVpcEndpointAccessCommand = async (input, context) => {
961
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
962
+ const headers = {
963
+ "content-type": "application/json",
964
+ };
965
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
966
+ "/2021-01-01/opensearch/domain/{DomainName}/revokeVpcEndpointAccess";
967
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
968
+ let body;
969
+ body = JSON.stringify({
970
+ ...(input.Account != null && { Account: input.Account }),
971
+ });
972
+ return new protocol_http_1.HttpRequest({
973
+ protocol,
974
+ hostname,
975
+ port,
976
+ method: "POST",
977
+ headers,
978
+ path: resolvedPath,
979
+ body,
980
+ });
981
+ };
982
+ exports.serializeAws_restJson1RevokeVpcEndpointAccessCommand = serializeAws_restJson1RevokeVpcEndpointAccessCommand;
808
983
  const serializeAws_restJson1StartServiceSoftwareUpdateCommand = async (input, context) => {
809
984
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
810
985
  const headers = {
@@ -909,6 +1084,29 @@ const serializeAws_restJson1UpdatePackageCommand = async (input, context) => {
909
1084
  });
910
1085
  };
911
1086
  exports.serializeAws_restJson1UpdatePackageCommand = serializeAws_restJson1UpdatePackageCommand;
1087
+ const serializeAws_restJson1UpdateVpcEndpointCommand = async (input, context) => {
1088
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1089
+ const headers = {
1090
+ "content-type": "application/json",
1091
+ };
1092
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1093
+ "/2021-01-01/opensearch/vpcEndpoints/update";
1094
+ let body;
1095
+ body = JSON.stringify({
1096
+ ...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
1097
+ ...(input.VpcOptions != null && { VpcOptions: serializeAws_restJson1VPCOptions(input.VpcOptions, context) }),
1098
+ });
1099
+ return new protocol_http_1.HttpRequest({
1100
+ protocol,
1101
+ hostname,
1102
+ port,
1103
+ method: "POST",
1104
+ headers,
1105
+ path: resolvedPath,
1106
+ body,
1107
+ });
1108
+ };
1109
+ exports.serializeAws_restJson1UpdateVpcEndpointCommand = serializeAws_restJson1UpdateVpcEndpointCommand;
912
1110
  const serializeAws_restJson1UpgradeDomainCommand = async (input, context) => {
913
1111
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
914
1112
  const headers = {
@@ -1064,6 +1262,55 @@ const deserializeAws_restJson1AssociatePackageCommandError = async (output, cont
1064
1262
  });
1065
1263
  }
1066
1264
  };
1265
+ const deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand = async (output, context) => {
1266
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1267
+ return deserializeAws_restJson1AuthorizeVpcEndpointAccessCommandError(output, context);
1268
+ }
1269
+ const contents = map({
1270
+ $metadata: deserializeMetadata(output),
1271
+ });
1272
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1273
+ if (data.AuthorizedPrincipal != null) {
1274
+ contents.AuthorizedPrincipal = deserializeAws_restJson1AuthorizedPrincipal(data.AuthorizedPrincipal, context);
1275
+ }
1276
+ return contents;
1277
+ };
1278
+ exports.deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand = deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand;
1279
+ const deserializeAws_restJson1AuthorizeVpcEndpointAccessCommandError = async (output, context) => {
1280
+ const parsedOutput = {
1281
+ ...output,
1282
+ body: await parseErrorBody(output.body, context),
1283
+ };
1284
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1285
+ switch (errorCode) {
1286
+ case "BaseException":
1287
+ case "com.amazonaws.opensearch#BaseException":
1288
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1289
+ case "DisabledOperationException":
1290
+ case "com.amazonaws.opensearch#DisabledOperationException":
1291
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1292
+ case "InternalException":
1293
+ case "com.amazonaws.opensearch#InternalException":
1294
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1295
+ case "LimitExceededException":
1296
+ case "com.amazonaws.opensearch#LimitExceededException":
1297
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1298
+ case "ResourceNotFoundException":
1299
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
1300
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1301
+ case "ValidationException":
1302
+ case "com.amazonaws.opensearch#ValidationException":
1303
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1304
+ default:
1305
+ const parsedBody = parsedOutput.body;
1306
+ (0, smithy_client_1.throwDefaultError)({
1307
+ output,
1308
+ parsedBody,
1309
+ exceptionCtor: OpenSearchServiceException_1.OpenSearchServiceException,
1310
+ errorCode,
1311
+ });
1312
+ }
1313
+ };
1067
1314
  const deserializeAws_restJson1CancelServiceSoftwareUpdateCommand = async (output, context) => {
1068
1315
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1069
1316
  return deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError(output, context);
@@ -1266,6 +1513,55 @@ const deserializeAws_restJson1CreatePackageCommandError = async (output, context
1266
1513
  });
1267
1514
  }
1268
1515
  };
1516
+ const deserializeAws_restJson1CreateVpcEndpointCommand = async (output, context) => {
1517
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1518
+ return deserializeAws_restJson1CreateVpcEndpointCommandError(output, context);
1519
+ }
1520
+ const contents = map({
1521
+ $metadata: deserializeMetadata(output),
1522
+ });
1523
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1524
+ if (data.VpcEndpoint != null) {
1525
+ contents.VpcEndpoint = deserializeAws_restJson1VpcEndpoint(data.VpcEndpoint, context);
1526
+ }
1527
+ return contents;
1528
+ };
1529
+ exports.deserializeAws_restJson1CreateVpcEndpointCommand = deserializeAws_restJson1CreateVpcEndpointCommand;
1530
+ const deserializeAws_restJson1CreateVpcEndpointCommandError = async (output, context) => {
1531
+ const parsedOutput = {
1532
+ ...output,
1533
+ body: await parseErrorBody(output.body, context),
1534
+ };
1535
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1536
+ switch (errorCode) {
1537
+ case "BaseException":
1538
+ case "com.amazonaws.opensearch#BaseException":
1539
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1540
+ case "ConflictException":
1541
+ case "com.amazonaws.opensearch#ConflictException":
1542
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1543
+ case "DisabledOperationException":
1544
+ case "com.amazonaws.opensearch#DisabledOperationException":
1545
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1546
+ case "InternalException":
1547
+ case "com.amazonaws.opensearch#InternalException":
1548
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1549
+ case "LimitExceededException":
1550
+ case "com.amazonaws.opensearch#LimitExceededException":
1551
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1552
+ case "ValidationException":
1553
+ case "com.amazonaws.opensearch#ValidationException":
1554
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1555
+ default:
1556
+ const parsedBody = parsedOutput.body;
1557
+ (0, smithy_client_1.throwDefaultError)({
1558
+ output,
1559
+ parsedBody,
1560
+ exceptionCtor: OpenSearchServiceException_1.OpenSearchServiceException,
1561
+ errorCode,
1562
+ });
1563
+ }
1564
+ };
1269
1565
  const deserializeAws_restJson1DeleteDomainCommand = async (output, context) => {
1270
1566
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1271
1567
  return deserializeAws_restJson1DeleteDomainCommandError(output, context);
@@ -1432,6 +1728,49 @@ const deserializeAws_restJson1DeletePackageCommandError = async (output, context
1432
1728
  });
1433
1729
  }
1434
1730
  };
1731
+ const deserializeAws_restJson1DeleteVpcEndpointCommand = async (output, context) => {
1732
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1733
+ return deserializeAws_restJson1DeleteVpcEndpointCommandError(output, context);
1734
+ }
1735
+ const contents = map({
1736
+ $metadata: deserializeMetadata(output),
1737
+ });
1738
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1739
+ if (data.VpcEndpointSummary != null) {
1740
+ contents.VpcEndpointSummary = deserializeAws_restJson1VpcEndpointSummary(data.VpcEndpointSummary, context);
1741
+ }
1742
+ return contents;
1743
+ };
1744
+ exports.deserializeAws_restJson1DeleteVpcEndpointCommand = deserializeAws_restJson1DeleteVpcEndpointCommand;
1745
+ const deserializeAws_restJson1DeleteVpcEndpointCommandError = async (output, context) => {
1746
+ const parsedOutput = {
1747
+ ...output,
1748
+ body: await parseErrorBody(output.body, context),
1749
+ };
1750
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1751
+ switch (errorCode) {
1752
+ case "BaseException":
1753
+ case "com.amazonaws.opensearch#BaseException":
1754
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1755
+ case "DisabledOperationException":
1756
+ case "com.amazonaws.opensearch#DisabledOperationException":
1757
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1758
+ case "InternalException":
1759
+ case "com.amazonaws.opensearch#InternalException":
1760
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1761
+ case "ResourceNotFoundException":
1762
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
1763
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1764
+ default:
1765
+ const parsedBody = parsedOutput.body;
1766
+ (0, smithy_client_1.throwDefaultError)({
1767
+ output,
1768
+ parsedBody,
1769
+ exceptionCtor: OpenSearchServiceException_1.OpenSearchServiceException,
1770
+ errorCode,
1771
+ });
1772
+ }
1773
+ };
1435
1774
  const deserializeAws_restJson1DescribeDomainCommand = async (output, context) => {
1436
1775
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1437
1776
  return deserializeAws_restJson1DescribeDomainCommandError(output, context);
@@ -1917,6 +2256,52 @@ const deserializeAws_restJson1DescribeReservedInstancesCommandError = async (out
1917
2256
  });
1918
2257
  }
1919
2258
  };
2259
+ const deserializeAws_restJson1DescribeVpcEndpointsCommand = async (output, context) => {
2260
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2261
+ return deserializeAws_restJson1DescribeVpcEndpointsCommandError(output, context);
2262
+ }
2263
+ const contents = map({
2264
+ $metadata: deserializeMetadata(output),
2265
+ });
2266
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2267
+ if (data.VpcEndpointErrors != null) {
2268
+ contents.VpcEndpointErrors = deserializeAws_restJson1VpcEndpointErrorList(data.VpcEndpointErrors, context);
2269
+ }
2270
+ if (data.VpcEndpoints != null) {
2271
+ contents.VpcEndpoints = deserializeAws_restJson1VpcEndpoints(data.VpcEndpoints, context);
2272
+ }
2273
+ return contents;
2274
+ };
2275
+ exports.deserializeAws_restJson1DescribeVpcEndpointsCommand = deserializeAws_restJson1DescribeVpcEndpointsCommand;
2276
+ const deserializeAws_restJson1DescribeVpcEndpointsCommandError = async (output, context) => {
2277
+ const parsedOutput = {
2278
+ ...output,
2279
+ body: await parseErrorBody(output.body, context),
2280
+ };
2281
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2282
+ switch (errorCode) {
2283
+ case "BaseException":
2284
+ case "com.amazonaws.opensearch#BaseException":
2285
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2286
+ case "DisabledOperationException":
2287
+ case "com.amazonaws.opensearch#DisabledOperationException":
2288
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2289
+ case "InternalException":
2290
+ case "com.amazonaws.opensearch#InternalException":
2291
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2292
+ case "ValidationException":
2293
+ case "com.amazonaws.opensearch#ValidationException":
2294
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2295
+ default:
2296
+ const parsedBody = parsedOutput.body;
2297
+ (0, smithy_client_1.throwDefaultError)({
2298
+ output,
2299
+ parsedBody,
2300
+ exceptionCtor: OpenSearchServiceException_1.OpenSearchServiceException,
2301
+ errorCode,
2302
+ });
2303
+ }
2304
+ };
1920
2305
  const deserializeAws_restJson1DissociatePackageCommand = async (output, context) => {
1921
2306
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1922
2307
  return deserializeAws_restJson1DissociatePackageCommandError(output, context);
@@ -2127,13 +2512,148 @@ const deserializeAws_restJson1GetUpgradeStatusCommand = async (output, context)
2127
2512
  if (data.UpgradeName != null) {
2128
2513
  contents.UpgradeName = (0, smithy_client_1.expectString)(data.UpgradeName);
2129
2514
  }
2130
- if (data.UpgradeStep != null) {
2131
- contents.UpgradeStep = (0, smithy_client_1.expectString)(data.UpgradeStep);
2515
+ if (data.UpgradeStep != null) {
2516
+ contents.UpgradeStep = (0, smithy_client_1.expectString)(data.UpgradeStep);
2517
+ }
2518
+ return contents;
2519
+ };
2520
+ exports.deserializeAws_restJson1GetUpgradeStatusCommand = deserializeAws_restJson1GetUpgradeStatusCommand;
2521
+ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, context) => {
2522
+ const parsedOutput = {
2523
+ ...output,
2524
+ body: await parseErrorBody(output.body, context),
2525
+ };
2526
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2527
+ switch (errorCode) {
2528
+ case "BaseException":
2529
+ case "com.amazonaws.opensearch#BaseException":
2530
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2531
+ case "DisabledOperationException":
2532
+ case "com.amazonaws.opensearch#DisabledOperationException":
2533
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2534
+ case "InternalException":
2535
+ case "com.amazonaws.opensearch#InternalException":
2536
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2537
+ case "ResourceNotFoundException":
2538
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
2539
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2540
+ case "ValidationException":
2541
+ case "com.amazonaws.opensearch#ValidationException":
2542
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2543
+ default:
2544
+ const parsedBody = parsedOutput.body;
2545
+ (0, smithy_client_1.throwDefaultError)({
2546
+ output,
2547
+ parsedBody,
2548
+ exceptionCtor: OpenSearchServiceException_1.OpenSearchServiceException,
2549
+ errorCode,
2550
+ });
2551
+ }
2552
+ };
2553
+ const deserializeAws_restJson1ListDomainNamesCommand = async (output, context) => {
2554
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2555
+ return deserializeAws_restJson1ListDomainNamesCommandError(output, context);
2556
+ }
2557
+ const contents = map({
2558
+ $metadata: deserializeMetadata(output),
2559
+ });
2560
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2561
+ if (data.DomainNames != null) {
2562
+ contents.DomainNames = deserializeAws_restJson1DomainInfoList(data.DomainNames, context);
2563
+ }
2564
+ return contents;
2565
+ };
2566
+ exports.deserializeAws_restJson1ListDomainNamesCommand = deserializeAws_restJson1ListDomainNamesCommand;
2567
+ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, context) => {
2568
+ const parsedOutput = {
2569
+ ...output,
2570
+ body: await parseErrorBody(output.body, context),
2571
+ };
2572
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2573
+ switch (errorCode) {
2574
+ case "BaseException":
2575
+ case "com.amazonaws.opensearch#BaseException":
2576
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2577
+ case "ValidationException":
2578
+ case "com.amazonaws.opensearch#ValidationException":
2579
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2580
+ default:
2581
+ const parsedBody = parsedOutput.body;
2582
+ (0, smithy_client_1.throwDefaultError)({
2583
+ output,
2584
+ parsedBody,
2585
+ exceptionCtor: OpenSearchServiceException_1.OpenSearchServiceException,
2586
+ errorCode,
2587
+ });
2588
+ }
2589
+ };
2590
+ const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, context) => {
2591
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2592
+ return deserializeAws_restJson1ListDomainsForPackageCommandError(output, context);
2593
+ }
2594
+ const contents = map({
2595
+ $metadata: deserializeMetadata(output),
2596
+ });
2597
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2598
+ if (data.DomainPackageDetailsList != null) {
2599
+ contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2600
+ }
2601
+ if (data.NextToken != null) {
2602
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2603
+ }
2604
+ return contents;
2605
+ };
2606
+ exports.deserializeAws_restJson1ListDomainsForPackageCommand = deserializeAws_restJson1ListDomainsForPackageCommand;
2607
+ const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output, context) => {
2608
+ const parsedOutput = {
2609
+ ...output,
2610
+ body: await parseErrorBody(output.body, context),
2611
+ };
2612
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2613
+ switch (errorCode) {
2614
+ case "AccessDeniedException":
2615
+ case "com.amazonaws.opensearch#AccessDeniedException":
2616
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2617
+ case "BaseException":
2618
+ case "com.amazonaws.opensearch#BaseException":
2619
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2620
+ case "InternalException":
2621
+ case "com.amazonaws.opensearch#InternalException":
2622
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2623
+ case "ResourceNotFoundException":
2624
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
2625
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2626
+ case "ValidationException":
2627
+ case "com.amazonaws.opensearch#ValidationException":
2628
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2629
+ default:
2630
+ const parsedBody = parsedOutput.body;
2631
+ (0, smithy_client_1.throwDefaultError)({
2632
+ output,
2633
+ parsedBody,
2634
+ exceptionCtor: OpenSearchServiceException_1.OpenSearchServiceException,
2635
+ errorCode,
2636
+ });
2637
+ }
2638
+ };
2639
+ const deserializeAws_restJson1ListInstanceTypeDetailsCommand = async (output, context) => {
2640
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2641
+ return deserializeAws_restJson1ListInstanceTypeDetailsCommandError(output, context);
2642
+ }
2643
+ const contents = map({
2644
+ $metadata: deserializeMetadata(output),
2645
+ });
2646
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2647
+ if (data.InstanceTypeDetails != null) {
2648
+ contents.InstanceTypeDetails = deserializeAws_restJson1InstanceTypeDetailsList(data.InstanceTypeDetails, context);
2649
+ }
2650
+ if (data.NextToken != null) {
2651
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2132
2652
  }
2133
2653
  return contents;
2134
2654
  };
2135
- exports.deserializeAws_restJson1GetUpgradeStatusCommand = deserializeAws_restJson1GetUpgradeStatusCommand;
2136
- const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, context) => {
2655
+ exports.deserializeAws_restJson1ListInstanceTypeDetailsCommand = deserializeAws_restJson1ListInstanceTypeDetailsCommand;
2656
+ const deserializeAws_restJson1ListInstanceTypeDetailsCommandError = async (output, context) => {
2137
2657
  const parsedOutput = {
2138
2658
  ...output,
2139
2659
  body: await parseErrorBody(output.body, context),
@@ -2143,9 +2663,6 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
2143
2663
  case "BaseException":
2144
2664
  case "com.amazonaws.opensearch#BaseException":
2145
2665
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2146
- case "DisabledOperationException":
2147
- case "com.amazonaws.opensearch#DisabledOperationException":
2148
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2149
2666
  case "InternalException":
2150
2667
  case "com.amazonaws.opensearch#InternalException":
2151
2668
  throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
@@ -2165,30 +2682,42 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
2165
2682
  });
2166
2683
  }
2167
2684
  };
2168
- const deserializeAws_restJson1ListDomainNamesCommand = async (output, context) => {
2685
+ const deserializeAws_restJson1ListPackagesForDomainCommand = async (output, context) => {
2169
2686
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2170
- return deserializeAws_restJson1ListDomainNamesCommandError(output, context);
2687
+ return deserializeAws_restJson1ListPackagesForDomainCommandError(output, context);
2171
2688
  }
2172
2689
  const contents = map({
2173
2690
  $metadata: deserializeMetadata(output),
2174
2691
  });
2175
2692
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2176
- if (data.DomainNames != null) {
2177
- contents.DomainNames = deserializeAws_restJson1DomainInfoList(data.DomainNames, context);
2693
+ if (data.DomainPackageDetailsList != null) {
2694
+ contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2695
+ }
2696
+ if (data.NextToken != null) {
2697
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2178
2698
  }
2179
2699
  return contents;
2180
2700
  };
2181
- exports.deserializeAws_restJson1ListDomainNamesCommand = deserializeAws_restJson1ListDomainNamesCommand;
2182
- const deserializeAws_restJson1ListDomainNamesCommandError = async (output, context) => {
2701
+ exports.deserializeAws_restJson1ListPackagesForDomainCommand = deserializeAws_restJson1ListPackagesForDomainCommand;
2702
+ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output, context) => {
2183
2703
  const parsedOutput = {
2184
2704
  ...output,
2185
2705
  body: await parseErrorBody(output.body, context),
2186
2706
  };
2187
2707
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2188
2708
  switch (errorCode) {
2709
+ case "AccessDeniedException":
2710
+ case "com.amazonaws.opensearch#AccessDeniedException":
2711
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2189
2712
  case "BaseException":
2190
2713
  case "com.amazonaws.opensearch#BaseException":
2191
2714
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2715
+ case "InternalException":
2716
+ case "com.amazonaws.opensearch#InternalException":
2717
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2718
+ case "ResourceNotFoundException":
2719
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
2720
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2192
2721
  case "ValidationException":
2193
2722
  case "com.amazonaws.opensearch#ValidationException":
2194
2723
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
@@ -2202,33 +2731,27 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
2202
2731
  });
2203
2732
  }
2204
2733
  };
2205
- const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, context) => {
2734
+ const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
2206
2735
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2207
- return deserializeAws_restJson1ListDomainsForPackageCommandError(output, context);
2736
+ return deserializeAws_restJson1ListTagsCommandError(output, context);
2208
2737
  }
2209
2738
  const contents = map({
2210
2739
  $metadata: deserializeMetadata(output),
2211
2740
  });
2212
2741
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2213
- if (data.DomainPackageDetailsList != null) {
2214
- contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2215
- }
2216
- if (data.NextToken != null) {
2217
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2742
+ if (data.TagList != null) {
2743
+ contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
2218
2744
  }
2219
2745
  return contents;
2220
2746
  };
2221
- exports.deserializeAws_restJson1ListDomainsForPackageCommand = deserializeAws_restJson1ListDomainsForPackageCommand;
2222
- const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output, context) => {
2747
+ exports.deserializeAws_restJson1ListTagsCommand = deserializeAws_restJson1ListTagsCommand;
2748
+ const deserializeAws_restJson1ListTagsCommandError = async (output, context) => {
2223
2749
  const parsedOutput = {
2224
2750
  ...output,
2225
2751
  body: await parseErrorBody(output.body, context),
2226
2752
  };
2227
2753
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2228
2754
  switch (errorCode) {
2229
- case "AccessDeniedException":
2230
- case "com.amazonaws.opensearch#AccessDeniedException":
2231
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2232
2755
  case "BaseException":
2233
2756
  case "com.amazonaws.opensearch#BaseException":
2234
2757
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
@@ -2251,24 +2774,24 @@ const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output,
2251
2774
  });
2252
2775
  }
2253
2776
  };
2254
- const deserializeAws_restJson1ListInstanceTypeDetailsCommand = async (output, context) => {
2777
+ const deserializeAws_restJson1ListVersionsCommand = async (output, context) => {
2255
2778
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2256
- return deserializeAws_restJson1ListInstanceTypeDetailsCommandError(output, context);
2779
+ return deserializeAws_restJson1ListVersionsCommandError(output, context);
2257
2780
  }
2258
2781
  const contents = map({
2259
2782
  $metadata: deserializeMetadata(output),
2260
2783
  });
2261
2784
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2262
- if (data.InstanceTypeDetails != null) {
2263
- contents.InstanceTypeDetails = deserializeAws_restJson1InstanceTypeDetailsList(data.InstanceTypeDetails, context);
2264
- }
2265
2785
  if (data.NextToken != null) {
2266
2786
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2267
2787
  }
2788
+ if (data.Versions != null) {
2789
+ contents.Versions = deserializeAws_restJson1VersionList(data.Versions, context);
2790
+ }
2268
2791
  return contents;
2269
2792
  };
2270
- exports.deserializeAws_restJson1ListInstanceTypeDetailsCommand = deserializeAws_restJson1ListInstanceTypeDetailsCommand;
2271
- const deserializeAws_restJson1ListInstanceTypeDetailsCommandError = async (output, context) => {
2793
+ exports.deserializeAws_restJson1ListVersionsCommand = deserializeAws_restJson1ListVersionsCommand;
2794
+ const deserializeAws_restJson1ListVersionsCommandError = async (output, context) => {
2272
2795
  const parsedOutput = {
2273
2796
  ...output,
2274
2797
  body: await parseErrorBody(output.body, context),
@@ -2297,45 +2820,42 @@ const deserializeAws_restJson1ListInstanceTypeDetailsCommandError = async (outpu
2297
2820
  });
2298
2821
  }
2299
2822
  };
2300
- const deserializeAws_restJson1ListPackagesForDomainCommand = async (output, context) => {
2823
+ const deserializeAws_restJson1ListVpcEndpointAccessCommand = async (output, context) => {
2301
2824
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2302
- return deserializeAws_restJson1ListPackagesForDomainCommandError(output, context);
2825
+ return deserializeAws_restJson1ListVpcEndpointAccessCommandError(output, context);
2303
2826
  }
2304
2827
  const contents = map({
2305
2828
  $metadata: deserializeMetadata(output),
2306
2829
  });
2307
2830
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2308
- if (data.DomainPackageDetailsList != null) {
2309
- contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2831
+ if (data.AuthorizedPrincipalList != null) {
2832
+ contents.AuthorizedPrincipalList = deserializeAws_restJson1AuthorizedPrincipalList(data.AuthorizedPrincipalList, context);
2310
2833
  }
2311
2834
  if (data.NextToken != null) {
2312
2835
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2313
2836
  }
2314
2837
  return contents;
2315
2838
  };
2316
- exports.deserializeAws_restJson1ListPackagesForDomainCommand = deserializeAws_restJson1ListPackagesForDomainCommand;
2317
- const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output, context) => {
2839
+ exports.deserializeAws_restJson1ListVpcEndpointAccessCommand = deserializeAws_restJson1ListVpcEndpointAccessCommand;
2840
+ const deserializeAws_restJson1ListVpcEndpointAccessCommandError = async (output, context) => {
2318
2841
  const parsedOutput = {
2319
2842
  ...output,
2320
2843
  body: await parseErrorBody(output.body, context),
2321
2844
  };
2322
2845
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2323
2846
  switch (errorCode) {
2324
- case "AccessDeniedException":
2325
- case "com.amazonaws.opensearch#AccessDeniedException":
2326
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2327
2847
  case "BaseException":
2328
2848
  case "com.amazonaws.opensearch#BaseException":
2329
2849
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2850
+ case "DisabledOperationException":
2851
+ case "com.amazonaws.opensearch#DisabledOperationException":
2852
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2330
2853
  case "InternalException":
2331
2854
  case "com.amazonaws.opensearch#InternalException":
2332
2855
  throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2333
2856
  case "ResourceNotFoundException":
2334
2857
  case "com.amazonaws.opensearch#ResourceNotFoundException":
2335
2858
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2336
- case "ValidationException":
2337
- case "com.amazonaws.opensearch#ValidationException":
2338
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2339
2859
  default:
2340
2860
  const parsedBody = parsedOutput.body;
2341
2861
  (0, smithy_client_1.throwDefaultError)({
@@ -2346,21 +2866,24 @@ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output,
2346
2866
  });
2347
2867
  }
2348
2868
  };
2349
- const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
2869
+ const deserializeAws_restJson1ListVpcEndpointsCommand = async (output, context) => {
2350
2870
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2351
- return deserializeAws_restJson1ListTagsCommandError(output, context);
2871
+ return deserializeAws_restJson1ListVpcEndpointsCommandError(output, context);
2352
2872
  }
2353
2873
  const contents = map({
2354
2874
  $metadata: deserializeMetadata(output),
2355
2875
  });
2356
2876
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2357
- if (data.TagList != null) {
2358
- contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
2877
+ if (data.NextToken != null) {
2878
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2879
+ }
2880
+ if (data.VpcEndpointSummaryList != null) {
2881
+ contents.VpcEndpointSummaryList = deserializeAws_restJson1VpcEndpointSummaryList(data.VpcEndpointSummaryList, context);
2359
2882
  }
2360
2883
  return contents;
2361
2884
  };
2362
- exports.deserializeAws_restJson1ListTagsCommand = deserializeAws_restJson1ListTagsCommand;
2363
- const deserializeAws_restJson1ListTagsCommandError = async (output, context) => {
2885
+ exports.deserializeAws_restJson1ListVpcEndpointsCommand = deserializeAws_restJson1ListVpcEndpointsCommand;
2886
+ const deserializeAws_restJson1ListVpcEndpointsCommandError = async (output, context) => {
2364
2887
  const parsedOutput = {
2365
2888
  ...output,
2366
2889
  body: await parseErrorBody(output.body, context),
@@ -2370,15 +2893,12 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
2370
2893
  case "BaseException":
2371
2894
  case "com.amazonaws.opensearch#BaseException":
2372
2895
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2896
+ case "DisabledOperationException":
2897
+ case "com.amazonaws.opensearch#DisabledOperationException":
2898
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2373
2899
  case "InternalException":
2374
2900
  case "com.amazonaws.opensearch#InternalException":
2375
2901
  throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2376
- case "ResourceNotFoundException":
2377
- case "com.amazonaws.opensearch#ResourceNotFoundException":
2378
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2379
- case "ValidationException":
2380
- case "com.amazonaws.opensearch#ValidationException":
2381
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2382
2902
  default:
2383
2903
  const parsedBody = parsedOutput.body;
2384
2904
  (0, smithy_client_1.throwDefaultError)({
@@ -2389,9 +2909,9 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
2389
2909
  });
2390
2910
  }
2391
2911
  };
2392
- const deserializeAws_restJson1ListVersionsCommand = async (output, context) => {
2912
+ const deserializeAws_restJson1ListVpcEndpointsForDomainCommand = async (output, context) => {
2393
2913
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2394
- return deserializeAws_restJson1ListVersionsCommandError(output, context);
2914
+ return deserializeAws_restJson1ListVpcEndpointsForDomainCommandError(output, context);
2395
2915
  }
2396
2916
  const contents = map({
2397
2917
  $metadata: deserializeMetadata(output),
@@ -2400,13 +2920,13 @@ const deserializeAws_restJson1ListVersionsCommand = async (output, context) => {
2400
2920
  if (data.NextToken != null) {
2401
2921
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2402
2922
  }
2403
- if (data.Versions != null) {
2404
- contents.Versions = deserializeAws_restJson1VersionList(data.Versions, context);
2923
+ if (data.VpcEndpointSummaryList != null) {
2924
+ contents.VpcEndpointSummaryList = deserializeAws_restJson1VpcEndpointSummaryList(data.VpcEndpointSummaryList, context);
2405
2925
  }
2406
2926
  return contents;
2407
2927
  };
2408
- exports.deserializeAws_restJson1ListVersionsCommand = deserializeAws_restJson1ListVersionsCommand;
2409
- const deserializeAws_restJson1ListVersionsCommandError = async (output, context) => {
2928
+ exports.deserializeAws_restJson1ListVpcEndpointsForDomainCommand = deserializeAws_restJson1ListVpcEndpointsForDomainCommand;
2929
+ const deserializeAws_restJson1ListVpcEndpointsForDomainCommandError = async (output, context) => {
2410
2930
  const parsedOutput = {
2411
2931
  ...output,
2412
2932
  body: await parseErrorBody(output.body, context),
@@ -2416,15 +2936,15 @@ const deserializeAws_restJson1ListVersionsCommandError = async (output, context)
2416
2936
  case "BaseException":
2417
2937
  case "com.amazonaws.opensearch#BaseException":
2418
2938
  throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2939
+ case "DisabledOperationException":
2940
+ case "com.amazonaws.opensearch#DisabledOperationException":
2941
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2419
2942
  case "InternalException":
2420
2943
  case "com.amazonaws.opensearch#InternalException":
2421
2944
  throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2422
2945
  case "ResourceNotFoundException":
2423
2946
  case "com.amazonaws.opensearch#ResourceNotFoundException":
2424
2947
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2425
- case "ValidationException":
2426
- case "com.amazonaws.opensearch#ValidationException":
2427
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2428
2948
  default:
2429
2949
  const parsedBody = parsedOutput.body;
2430
2950
  (0, smithy_client_1.throwDefaultError)({
@@ -2561,6 +3081,49 @@ const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) =
2561
3081
  });
2562
3082
  }
2563
3083
  };
3084
+ const deserializeAws_restJson1RevokeVpcEndpointAccessCommand = async (output, context) => {
3085
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3086
+ return deserializeAws_restJson1RevokeVpcEndpointAccessCommandError(output, context);
3087
+ }
3088
+ const contents = map({
3089
+ $metadata: deserializeMetadata(output),
3090
+ });
3091
+ await collectBody(output.body, context);
3092
+ return contents;
3093
+ };
3094
+ exports.deserializeAws_restJson1RevokeVpcEndpointAccessCommand = deserializeAws_restJson1RevokeVpcEndpointAccessCommand;
3095
+ const deserializeAws_restJson1RevokeVpcEndpointAccessCommandError = async (output, context) => {
3096
+ const parsedOutput = {
3097
+ ...output,
3098
+ body: await parseErrorBody(output.body, context),
3099
+ };
3100
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3101
+ switch (errorCode) {
3102
+ case "BaseException":
3103
+ case "com.amazonaws.opensearch#BaseException":
3104
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
3105
+ case "DisabledOperationException":
3106
+ case "com.amazonaws.opensearch#DisabledOperationException":
3107
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
3108
+ case "InternalException":
3109
+ case "com.amazonaws.opensearch#InternalException":
3110
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3111
+ case "ResourceNotFoundException":
3112
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
3113
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3114
+ case "ValidationException":
3115
+ case "com.amazonaws.opensearch#ValidationException":
3116
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3117
+ default:
3118
+ const parsedBody = parsedOutput.body;
3119
+ (0, smithy_client_1.throwDefaultError)({
3120
+ output,
3121
+ parsedBody,
3122
+ exceptionCtor: OpenSearchServiceException_1.OpenSearchServiceException,
3123
+ errorCode,
3124
+ });
3125
+ }
3126
+ };
2564
3127
  const deserializeAws_restJson1StartServiceSoftwareUpdateCommand = async (output, context) => {
2565
3128
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2566
3129
  return deserializeAws_restJson1StartServiceSoftwareUpdateCommandError(output, context);
@@ -2705,6 +3268,55 @@ const deserializeAws_restJson1UpdatePackageCommandError = async (output, context
2705
3268
  });
2706
3269
  }
2707
3270
  };
3271
+ const deserializeAws_restJson1UpdateVpcEndpointCommand = async (output, context) => {
3272
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3273
+ return deserializeAws_restJson1UpdateVpcEndpointCommandError(output, context);
3274
+ }
3275
+ const contents = map({
3276
+ $metadata: deserializeMetadata(output),
3277
+ });
3278
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3279
+ if (data.VpcEndpoint != null) {
3280
+ contents.VpcEndpoint = deserializeAws_restJson1VpcEndpoint(data.VpcEndpoint, context);
3281
+ }
3282
+ return contents;
3283
+ };
3284
+ exports.deserializeAws_restJson1UpdateVpcEndpointCommand = deserializeAws_restJson1UpdateVpcEndpointCommand;
3285
+ const deserializeAws_restJson1UpdateVpcEndpointCommandError = async (output, context) => {
3286
+ const parsedOutput = {
3287
+ ...output,
3288
+ body: await parseErrorBody(output.body, context),
3289
+ };
3290
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3291
+ switch (errorCode) {
3292
+ case "BaseException":
3293
+ case "com.amazonaws.opensearch#BaseException":
3294
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
3295
+ case "ConflictException":
3296
+ case "com.amazonaws.opensearch#ConflictException":
3297
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3298
+ case "DisabledOperationException":
3299
+ case "com.amazonaws.opensearch#DisabledOperationException":
3300
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
3301
+ case "InternalException":
3302
+ case "com.amazonaws.opensearch#InternalException":
3303
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3304
+ case "ResourceNotFoundException":
3305
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
3306
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3307
+ case "ValidationException":
3308
+ case "com.amazonaws.opensearch#ValidationException":
3309
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3310
+ default:
3311
+ const parsedBody = parsedOutput.body;
3312
+ (0, smithy_client_1.throwDefaultError)({
3313
+ output,
3314
+ parsedBody,
3315
+ exceptionCtor: OpenSearchServiceException_1.OpenSearchServiceException,
3316
+ errorCode,
3317
+ });
3318
+ }
3319
+ };
2708
3320
  const deserializeAws_restJson1UpgradeDomainCommand = async (output, context) => {
2709
3321
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2710
3322
  return deserializeAws_restJson1UpgradeDomainCommandError(output, context);
@@ -3163,6 +3775,13 @@ const serializeAws_restJson1ValueStringList = (input, context) => {
3163
3775
  return entry;
3164
3776
  });
3165
3777
  };
3778
+ const serializeAws_restJson1VpcEndpointIdList = (input, context) => {
3779
+ return input
3780
+ .filter((e) => e != null)
3781
+ .map((entry) => {
3782
+ return entry;
3783
+ });
3784
+ };
3166
3785
  const serializeAws_restJson1VPCOptions = (input, context) => {
3167
3786
  return {
3168
3787
  ...(input.SecurityGroupIds != null && {
@@ -3233,6 +3852,23 @@ const deserializeAws_restJson1AdvancedSecurityOptionsStatus = (output, context)
3233
3852
  Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
3234
3853
  };
3235
3854
  };
3855
+ const deserializeAws_restJson1AuthorizedPrincipal = (output, context) => {
3856
+ return {
3857
+ Principal: (0, smithy_client_1.expectString)(output.Principal),
3858
+ PrincipalType: (0, smithy_client_1.expectString)(output.PrincipalType),
3859
+ };
3860
+ };
3861
+ const deserializeAws_restJson1AuthorizedPrincipalList = (output, context) => {
3862
+ const retVal = (output || [])
3863
+ .filter((e) => e != null)
3864
+ .map((entry) => {
3865
+ if (entry === null) {
3866
+ return null;
3867
+ }
3868
+ return deserializeAws_restJson1AuthorizedPrincipal(entry, context);
3869
+ });
3870
+ return retVal;
3871
+ };
3236
3872
  const deserializeAws_restJson1AutoTune = (output, context) => {
3237
3873
  return {
3238
3874
  AutoTuneDetails: output.AutoTuneDetails != null
@@ -4151,6 +4787,64 @@ const deserializeAws_restJson1VPCDerivedInfoStatus = (output, context) => {
4151
4787
  Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4152
4788
  };
4153
4789
  };
4790
+ const deserializeAws_restJson1VpcEndpoint = (output, context) => {
4791
+ return {
4792
+ DomainArn: (0, smithy_client_1.expectString)(output.DomainArn),
4793
+ Endpoint: (0, smithy_client_1.expectString)(output.Endpoint),
4794
+ Status: (0, smithy_client_1.expectString)(output.Status),
4795
+ VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
4796
+ VpcEndpointOwner: (0, smithy_client_1.expectString)(output.VpcEndpointOwner),
4797
+ VpcOptions: output.VpcOptions != null ? deserializeAws_restJson1VPCDerivedInfo(output.VpcOptions, context) : undefined,
4798
+ };
4799
+ };
4800
+ const deserializeAws_restJson1VpcEndpointError = (output, context) => {
4801
+ return {
4802
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4803
+ ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4804
+ VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
4805
+ };
4806
+ };
4807
+ const deserializeAws_restJson1VpcEndpointErrorList = (output, context) => {
4808
+ const retVal = (output || [])
4809
+ .filter((e) => e != null)
4810
+ .map((entry) => {
4811
+ if (entry === null) {
4812
+ return null;
4813
+ }
4814
+ return deserializeAws_restJson1VpcEndpointError(entry, context);
4815
+ });
4816
+ return retVal;
4817
+ };
4818
+ const deserializeAws_restJson1VpcEndpoints = (output, context) => {
4819
+ const retVal = (output || [])
4820
+ .filter((e) => e != null)
4821
+ .map((entry) => {
4822
+ if (entry === null) {
4823
+ return null;
4824
+ }
4825
+ return deserializeAws_restJson1VpcEndpoint(entry, context);
4826
+ });
4827
+ return retVal;
4828
+ };
4829
+ const deserializeAws_restJson1VpcEndpointSummary = (output, context) => {
4830
+ return {
4831
+ DomainArn: (0, smithy_client_1.expectString)(output.DomainArn),
4832
+ Status: (0, smithy_client_1.expectString)(output.Status),
4833
+ VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
4834
+ VpcEndpointOwner: (0, smithy_client_1.expectString)(output.VpcEndpointOwner),
4835
+ };
4836
+ };
4837
+ const deserializeAws_restJson1VpcEndpointSummaryList = (output, context) => {
4838
+ const retVal = (output || [])
4839
+ .filter((e) => e != null)
4840
+ .map((entry) => {
4841
+ if (entry === null) {
4842
+ return null;
4843
+ }
4844
+ return deserializeAws_restJson1VpcEndpointSummary(entry, context);
4845
+ });
4846
+ return retVal;
4847
+ };
4154
4848
  const deserializeAws_restJson1ZoneAwarenessConfig = (output, context) => {
4155
4849
  return {
4156
4850
  AvailabilityZoneCount: (0, smithy_client_1.expectInt32)(output.AvailabilityZoneCount),