@aws-sdk/client-opensearch 3.202.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 (109) 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-cjs/runtimeConfig.browser.js +0 -3
  16. package/dist-cjs/runtimeConfig.js +0 -3
  17. package/dist-cjs/runtimeConfig.shared.js +3 -0
  18. package/dist-es/OpenSearch.js +135 -0
  19. package/dist-es/commands/AuthorizeVpcEndpointAccessCommand.js +42 -0
  20. package/dist-es/commands/CreateVpcEndpointCommand.js +42 -0
  21. package/dist-es/commands/DeleteVpcEndpointCommand.js +42 -0
  22. package/dist-es/commands/DescribeVpcEndpointsCommand.js +42 -0
  23. package/dist-es/commands/ListVpcEndpointAccessCommand.js +42 -0
  24. package/dist-es/commands/ListVpcEndpointsCommand.js +42 -0
  25. package/dist-es/commands/ListVpcEndpointsForDomainCommand.js +42 -0
  26. package/dist-es/commands/RevokeVpcEndpointAccessCommand.js +42 -0
  27. package/dist-es/commands/UpdateVpcEndpointCommand.js +42 -0
  28. package/dist-es/commands/index.js +9 -0
  29. package/dist-es/models/models_0.js +86 -0
  30. package/dist-es/protocols/Aws_restJson1.js +744 -68
  31. package/dist-es/runtimeConfig.browser.js +0 -3
  32. package/dist-es/runtimeConfig.js +0 -3
  33. package/dist-es/runtimeConfig.shared.js +3 -0
  34. package/dist-types/OpenSearch.d.ts +172 -91
  35. package/dist-types/OpenSearchClient.d.ts +21 -14
  36. package/dist-types/commands/AcceptInboundConnectionCommand.d.ts +3 -1
  37. package/dist-types/commands/AddTagsCommand.d.ts +3 -5
  38. package/dist-types/commands/AssociatePackageCommand.d.ts +3 -1
  39. package/dist-types/commands/AuthorizeVpcEndpointAccessCommand.d.ts +38 -0
  40. package/dist-types/commands/CancelServiceSoftwareUpdateCommand.d.ts +3 -3
  41. package/dist-types/commands/CreateDomainCommand.d.ts +1 -4
  42. package/dist-types/commands/CreateOutboundConnectionCommand.d.ts +3 -1
  43. package/dist-types/commands/CreatePackageCommand.d.ts +2 -1
  44. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +37 -0
  45. package/dist-types/commands/DeleteDomainCommand.d.ts +2 -3
  46. package/dist-types/commands/DeleteInboundConnectionCommand.d.ts +3 -1
  47. package/dist-types/commands/DeleteOutboundConnectionCommand.d.ts +3 -1
  48. package/dist-types/commands/DeletePackageCommand.d.ts +2 -1
  49. package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +37 -0
  50. package/dist-types/commands/DescribeDomainAutoTunesCommand.d.ts +3 -3
  51. package/dist-types/commands/DescribeDomainChangeProgressCommand.d.ts +2 -2
  52. package/dist-types/commands/DescribeDomainCommand.d.ts +2 -3
  53. package/dist-types/commands/DescribeDomainConfigCommand.d.ts +1 -3
  54. package/dist-types/commands/DescribeDomainsCommand.d.ts +2 -3
  55. package/dist-types/commands/DescribeInboundConnectionsCommand.d.ts +3 -1
  56. package/dist-types/commands/DescribeInstanceTypeLimitsCommand.d.ts +2 -8
  57. package/dist-types/commands/DescribeOutboundConnectionsCommand.d.ts +3 -1
  58. package/dist-types/commands/DescribePackagesCommand.d.ts +2 -3
  59. package/dist-types/commands/DescribeReservedInstanceOfferingsCommand.d.ts +2 -1
  60. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +3 -1
  61. package/dist-types/commands/DescribeVpcEndpointsCommand.d.ts +37 -0
  62. package/dist-types/commands/DissociatePackageCommand.d.ts +4 -1
  63. package/dist-types/commands/GetCompatibleVersionsCommand.d.ts +2 -8
  64. package/dist-types/commands/GetPackageVersionHistoryCommand.d.ts +3 -1
  65. package/dist-types/commands/GetUpgradeHistoryCommand.d.ts +2 -1
  66. package/dist-types/commands/GetUpgradeStatusCommand.d.ts +2 -2
  67. package/dist-types/commands/ListDomainNamesCommand.d.ts +2 -1
  68. package/dist-types/commands/ListDomainsForPackageCommand.d.ts +3 -1
  69. package/dist-types/commands/ListInstanceTypeDetailsCommand.d.ts +18 -0
  70. package/dist-types/commands/ListPackagesForDomainCommand.d.ts +3 -1
  71. package/dist-types/commands/ListTagsCommand.d.ts +2 -1
  72. package/dist-types/commands/ListVersionsCommand.d.ts +2 -1
  73. package/dist-types/commands/ListVpcEndpointAccessCommand.d.ts +38 -0
  74. package/dist-types/commands/ListVpcEndpointsCommand.d.ts +37 -0
  75. package/dist-types/commands/ListVpcEndpointsForDomainCommand.d.ts +38 -0
  76. package/dist-types/commands/PurchaseReservedInstanceOfferingCommand.d.ts +1 -1
  77. package/dist-types/commands/RejectInboundConnectionCommand.d.ts +2 -1
  78. package/dist-types/commands/RemoveTagsCommand.d.ts +2 -1
  79. package/dist-types/commands/RevokeVpcEndpointAccessCommand.d.ts +38 -0
  80. package/dist-types/commands/StartServiceSoftwareUpdateCommand.d.ts +3 -1
  81. package/dist-types/commands/UpdateDomainConfigCommand.d.ts +1 -3
  82. package/dist-types/commands/UpdatePackageCommand.d.ts +2 -1
  83. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +37 -0
  84. package/dist-types/commands/UpgradeDomainCommand.d.ts +2 -2
  85. package/dist-types/commands/index.d.ts +9 -0
  86. package/dist-types/models/models_0.d.ts +1526 -1604
  87. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  88. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  89. package/dist-types/runtimeConfig.d.ts +2 -2
  90. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  91. package/dist-types/ts3.4/OpenSearch.d.ts +153 -0
  92. package/dist-types/ts3.4/OpenSearchClient.d.ts +54 -0
  93. package/dist-types/ts3.4/commands/AuthorizeVpcEndpointAccessCommand.d.ts +41 -0
  94. package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +38 -0
  95. package/dist-types/ts3.4/commands/DeleteVpcEndpointCommand.d.ts +38 -0
  96. package/dist-types/ts3.4/commands/DescribeVpcEndpointsCommand.d.ts +41 -0
  97. package/dist-types/ts3.4/commands/ListVpcEndpointAccessCommand.d.ts +41 -0
  98. package/dist-types/ts3.4/commands/ListVpcEndpointsCommand.d.ts +37 -0
  99. package/dist-types/ts3.4/commands/ListVpcEndpointsForDomainCommand.d.ts +41 -0
  100. package/dist-types/ts3.4/commands/RevokeVpcEndpointAccessCommand.d.ts +41 -0
  101. package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +38 -0
  102. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  103. package/dist-types/ts3.4/models/models_0.d.ts +167 -0
  104. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  105. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  106. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  107. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  108. package/package.json +5 -4
  109. package/CHANGELOG.md +0 -857
@@ -8,7 +8,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
8
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
10
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
- const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
12
11
  const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
@@ -24,8 +23,6 @@ const getRuntimeConfig = (config) => {
24
23
  ...config,
25
24
  runtime: "browser",
26
25
  defaultsMode,
27
- base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
- base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
26
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
27
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
28
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -10,7 +10,6 @@ const hash_node_1 = require("@aws-sdk/hash-node");
10
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
11
  const node_config_provider_1 = require("@aws-sdk/node-config-provider");
12
12
  const node_http_handler_1 = require("@aws-sdk/node-http-handler");
13
- const util_base64_node_1 = require("@aws-sdk/util-base64-node");
14
13
  const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
14
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
15
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
@@ -28,8 +27,6 @@ const getRuntimeConfig = (config) => {
28
27
  ...config,
29
28
  runtime: "node",
30
29
  defaultsMode,
31
- base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
- base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
30
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
31
  credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
32
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -2,9 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
+ const util_base64_1 = require("@aws-sdk/util-base64");
5
6
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
7
  const getRuntimeConfig = (config) => ({
7
8
  apiVersion: "2021-01-01",
9
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
10
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
8
11
  disableHostPrefix: config?.disableHostPrefix ?? false,
9
12
  endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
13
  logger: config?.logger ?? {},
@@ -1,14 +1,17 @@
1
1
  import { AcceptInboundConnectionCommand, } from "./commands/AcceptInboundConnectionCommand";
2
2
  import { AddTagsCommand } from "./commands/AddTagsCommand";
3
3
  import { AssociatePackageCommand, } from "./commands/AssociatePackageCommand";
4
+ import { AuthorizeVpcEndpointAccessCommand, } from "./commands/AuthorizeVpcEndpointAccessCommand";
4
5
  import { CancelServiceSoftwareUpdateCommand, } from "./commands/CancelServiceSoftwareUpdateCommand";
5
6
  import { CreateDomainCommand, } from "./commands/CreateDomainCommand";
6
7
  import { CreateOutboundConnectionCommand, } from "./commands/CreateOutboundConnectionCommand";
7
8
  import { CreatePackageCommand, } from "./commands/CreatePackageCommand";
9
+ import { CreateVpcEndpointCommand, } from "./commands/CreateVpcEndpointCommand";
8
10
  import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
9
11
  import { DeleteInboundConnectionCommand, } from "./commands/DeleteInboundConnectionCommand";
10
12
  import { DeleteOutboundConnectionCommand, } from "./commands/DeleteOutboundConnectionCommand";
11
13
  import { DeletePackageCommand, } from "./commands/DeletePackageCommand";
14
+ import { DeleteVpcEndpointCommand, } from "./commands/DeleteVpcEndpointCommand";
12
15
  import { DescribeDomainAutoTunesCommand, } from "./commands/DescribeDomainAutoTunesCommand";
13
16
  import { DescribeDomainChangeProgressCommand, } from "./commands/DescribeDomainChangeProgressCommand";
14
17
  import { DescribeDomainCommand, } from "./commands/DescribeDomainCommand";
@@ -20,6 +23,7 @@ import { DescribeOutboundConnectionsCommand, } from "./commands/DescribeOutbound
20
23
  import { DescribePackagesCommand, } from "./commands/DescribePackagesCommand";
21
24
  import { DescribeReservedInstanceOfferingsCommand, } from "./commands/DescribeReservedInstanceOfferingsCommand";
22
25
  import { DescribeReservedInstancesCommand, } from "./commands/DescribeReservedInstancesCommand";
26
+ import { DescribeVpcEndpointsCommand, } from "./commands/DescribeVpcEndpointsCommand";
23
27
  import { DissociatePackageCommand, } from "./commands/DissociatePackageCommand";
24
28
  import { GetCompatibleVersionsCommand, } from "./commands/GetCompatibleVersionsCommand";
25
29
  import { GetPackageVersionHistoryCommand, } from "./commands/GetPackageVersionHistoryCommand";
@@ -31,12 +35,17 @@ import { ListInstanceTypeDetailsCommand, } from "./commands/ListInstanceTypeDeta
31
35
  import { ListPackagesForDomainCommand, } from "./commands/ListPackagesForDomainCommand";
32
36
  import { ListTagsCommand } from "./commands/ListTagsCommand";
33
37
  import { ListVersionsCommand, } from "./commands/ListVersionsCommand";
38
+ import { ListVpcEndpointAccessCommand, } from "./commands/ListVpcEndpointAccessCommand";
39
+ import { ListVpcEndpointsCommand, } from "./commands/ListVpcEndpointsCommand";
40
+ import { ListVpcEndpointsForDomainCommand, } from "./commands/ListVpcEndpointsForDomainCommand";
34
41
  import { PurchaseReservedInstanceOfferingCommand, } from "./commands/PurchaseReservedInstanceOfferingCommand";
35
42
  import { RejectInboundConnectionCommand, } from "./commands/RejectInboundConnectionCommand";
36
43
  import { RemoveTagsCommand } from "./commands/RemoveTagsCommand";
44
+ import { RevokeVpcEndpointAccessCommand, } from "./commands/RevokeVpcEndpointAccessCommand";
37
45
  import { StartServiceSoftwareUpdateCommand, } from "./commands/StartServiceSoftwareUpdateCommand";
38
46
  import { UpdateDomainConfigCommand, } from "./commands/UpdateDomainConfigCommand";
39
47
  import { UpdatePackageCommand, } from "./commands/UpdatePackageCommand";
48
+ import { UpdateVpcEndpointCommand, } from "./commands/UpdateVpcEndpointCommand";
40
49
  import { UpgradeDomainCommand, } from "./commands/UpgradeDomainCommand";
41
50
  import { OpenSearchClient } from "./OpenSearchClient";
42
51
  export class OpenSearch extends OpenSearchClient {
@@ -82,6 +91,20 @@ export class OpenSearch extends OpenSearchClient {
82
91
  return this.send(command, optionsOrCb);
83
92
  }
84
93
  }
94
+ authorizeVpcEndpointAccess(args, optionsOrCb, cb) {
95
+ const command = new AuthorizeVpcEndpointAccessCommand(args);
96
+ if (typeof optionsOrCb === "function") {
97
+ this.send(command, optionsOrCb);
98
+ }
99
+ else if (typeof cb === "function") {
100
+ if (typeof optionsOrCb !== "object")
101
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
+ this.send(command, optionsOrCb || {}, cb);
103
+ }
104
+ else {
105
+ return this.send(command, optionsOrCb);
106
+ }
107
+ }
85
108
  cancelServiceSoftwareUpdate(args, optionsOrCb, cb) {
86
109
  const command = new CancelServiceSoftwareUpdateCommand(args);
87
110
  if (typeof optionsOrCb === "function") {
@@ -138,6 +161,20 @@ export class OpenSearch extends OpenSearchClient {
138
161
  return this.send(command, optionsOrCb);
139
162
  }
140
163
  }
164
+ createVpcEndpoint(args, optionsOrCb, cb) {
165
+ const command = new CreateVpcEndpointCommand(args);
166
+ if (typeof optionsOrCb === "function") {
167
+ this.send(command, optionsOrCb);
168
+ }
169
+ else if (typeof cb === "function") {
170
+ if (typeof optionsOrCb !== "object")
171
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
+ this.send(command, optionsOrCb || {}, cb);
173
+ }
174
+ else {
175
+ return this.send(command, optionsOrCb);
176
+ }
177
+ }
141
178
  deleteDomain(args, optionsOrCb, cb) {
142
179
  const command = new DeleteDomainCommand(args);
143
180
  if (typeof optionsOrCb === "function") {
@@ -194,6 +231,20 @@ export class OpenSearch extends OpenSearchClient {
194
231
  return this.send(command, optionsOrCb);
195
232
  }
196
233
  }
234
+ deleteVpcEndpoint(args, optionsOrCb, cb) {
235
+ const command = new DeleteVpcEndpointCommand(args);
236
+ if (typeof optionsOrCb === "function") {
237
+ this.send(command, optionsOrCb);
238
+ }
239
+ else if (typeof cb === "function") {
240
+ if (typeof optionsOrCb !== "object")
241
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
+ this.send(command, optionsOrCb || {}, cb);
243
+ }
244
+ else {
245
+ return this.send(command, optionsOrCb);
246
+ }
247
+ }
197
248
  describeDomain(args, optionsOrCb, cb) {
198
249
  const command = new DescribeDomainCommand(args);
199
250
  if (typeof optionsOrCb === "function") {
@@ -348,6 +399,20 @@ export class OpenSearch extends OpenSearchClient {
348
399
  return this.send(command, optionsOrCb);
349
400
  }
350
401
  }
402
+ describeVpcEndpoints(args, optionsOrCb, cb) {
403
+ const command = new DescribeVpcEndpointsCommand(args);
404
+ if (typeof optionsOrCb === "function") {
405
+ this.send(command, optionsOrCb);
406
+ }
407
+ else if (typeof cb === "function") {
408
+ if (typeof optionsOrCb !== "object")
409
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
410
+ this.send(command, optionsOrCb || {}, cb);
411
+ }
412
+ else {
413
+ return this.send(command, optionsOrCb);
414
+ }
415
+ }
351
416
  dissociatePackage(args, optionsOrCb, cb) {
352
417
  const command = new DissociatePackageCommand(args);
353
418
  if (typeof optionsOrCb === "function") {
@@ -502,6 +567,48 @@ export class OpenSearch extends OpenSearchClient {
502
567
  return this.send(command, optionsOrCb);
503
568
  }
504
569
  }
570
+ listVpcEndpointAccess(args, optionsOrCb, cb) {
571
+ const command = new ListVpcEndpointAccessCommand(args);
572
+ if (typeof optionsOrCb === "function") {
573
+ this.send(command, optionsOrCb);
574
+ }
575
+ else if (typeof cb === "function") {
576
+ if (typeof optionsOrCb !== "object")
577
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
578
+ this.send(command, optionsOrCb || {}, cb);
579
+ }
580
+ else {
581
+ return this.send(command, optionsOrCb);
582
+ }
583
+ }
584
+ listVpcEndpoints(args, optionsOrCb, cb) {
585
+ const command = new ListVpcEndpointsCommand(args);
586
+ if (typeof optionsOrCb === "function") {
587
+ this.send(command, optionsOrCb);
588
+ }
589
+ else if (typeof cb === "function") {
590
+ if (typeof optionsOrCb !== "object")
591
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
592
+ this.send(command, optionsOrCb || {}, cb);
593
+ }
594
+ else {
595
+ return this.send(command, optionsOrCb);
596
+ }
597
+ }
598
+ listVpcEndpointsForDomain(args, optionsOrCb, cb) {
599
+ const command = new ListVpcEndpointsForDomainCommand(args);
600
+ if (typeof optionsOrCb === "function") {
601
+ this.send(command, optionsOrCb);
602
+ }
603
+ else if (typeof cb === "function") {
604
+ if (typeof optionsOrCb !== "object")
605
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
606
+ this.send(command, optionsOrCb || {}, cb);
607
+ }
608
+ else {
609
+ return this.send(command, optionsOrCb);
610
+ }
611
+ }
505
612
  purchaseReservedInstanceOffering(args, optionsOrCb, cb) {
506
613
  const command = new PurchaseReservedInstanceOfferingCommand(args);
507
614
  if (typeof optionsOrCb === "function") {
@@ -544,6 +651,20 @@ export class OpenSearch extends OpenSearchClient {
544
651
  return this.send(command, optionsOrCb);
545
652
  }
546
653
  }
654
+ revokeVpcEndpointAccess(args, optionsOrCb, cb) {
655
+ const command = new RevokeVpcEndpointAccessCommand(args);
656
+ if (typeof optionsOrCb === "function") {
657
+ this.send(command, optionsOrCb);
658
+ }
659
+ else if (typeof cb === "function") {
660
+ if (typeof optionsOrCb !== "object")
661
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
662
+ this.send(command, optionsOrCb || {}, cb);
663
+ }
664
+ else {
665
+ return this.send(command, optionsOrCb);
666
+ }
667
+ }
547
668
  startServiceSoftwareUpdate(args, optionsOrCb, cb) {
548
669
  const command = new StartServiceSoftwareUpdateCommand(args);
549
670
  if (typeof optionsOrCb === "function") {
@@ -586,6 +707,20 @@ export class OpenSearch extends OpenSearchClient {
586
707
  return this.send(command, optionsOrCb);
587
708
  }
588
709
  }
710
+ updateVpcEndpoint(args, optionsOrCb, cb) {
711
+ const command = new UpdateVpcEndpointCommand(args);
712
+ if (typeof optionsOrCb === "function") {
713
+ this.send(command, optionsOrCb);
714
+ }
715
+ else if (typeof cb === "function") {
716
+ if (typeof optionsOrCb !== "object")
717
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
718
+ this.send(command, optionsOrCb || {}, cb);
719
+ }
720
+ else {
721
+ return this.send(command, optionsOrCb);
722
+ }
723
+ }
589
724
  upgradeDomain(args, optionsOrCb, cb) {
590
725
  const command = new UpgradeDomainCommand(args);
591
726
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { AuthorizeVpcEndpointAccessRequestFilterSensitiveLog, AuthorizeVpcEndpointAccessResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand, serializeAws_restJson1AuthorizeVpcEndpointAccessCommand, } from "../protocols/Aws_restJson1";
6
+ export class AuthorizeVpcEndpointAccessCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, AuthorizeVpcEndpointAccessCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OpenSearchClient";
25
+ const commandName = "AuthorizeVpcEndpointAccessCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: AuthorizeVpcEndpointAccessRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: AuthorizeVpcEndpointAccessResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1AuthorizeVpcEndpointAccessCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateVpcEndpointRequestFilterSensitiveLog, CreateVpcEndpointResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateVpcEndpointCommand, serializeAws_restJson1CreateVpcEndpointCommand, } from "../protocols/Aws_restJson1";
6
+ export class CreateVpcEndpointCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateVpcEndpointCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OpenSearchClient";
25
+ const commandName = "CreateVpcEndpointCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: CreateVpcEndpointRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: CreateVpcEndpointResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1CreateVpcEndpointCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1CreateVpcEndpointCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteVpcEndpointRequestFilterSensitiveLog, DeleteVpcEndpointResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteVpcEndpointCommand, serializeAws_restJson1DeleteVpcEndpointCommand, } from "../protocols/Aws_restJson1";
6
+ export class DeleteVpcEndpointCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteVpcEndpointCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OpenSearchClient";
25
+ const commandName = "DeleteVpcEndpointCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DeleteVpcEndpointRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DeleteVpcEndpointResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1DeleteVpcEndpointCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1DeleteVpcEndpointCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeVpcEndpointsRequestFilterSensitiveLog, DescribeVpcEndpointsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeVpcEndpointsCommand, serializeAws_restJson1DescribeVpcEndpointsCommand, } from "../protocols/Aws_restJson1";
6
+ export class DescribeVpcEndpointsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeVpcEndpointsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OpenSearchClient";
25
+ const commandName = "DescribeVpcEndpointsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DescribeVpcEndpointsRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DescribeVpcEndpointsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1DescribeVpcEndpointsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1DescribeVpcEndpointsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListVpcEndpointAccessRequestFilterSensitiveLog, ListVpcEndpointAccessResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListVpcEndpointAccessCommand, serializeAws_restJson1ListVpcEndpointAccessCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListVpcEndpointAccessCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListVpcEndpointAccessCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OpenSearchClient";
25
+ const commandName = "ListVpcEndpointAccessCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListVpcEndpointAccessRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListVpcEndpointAccessResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListVpcEndpointAccessCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListVpcEndpointAccessCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListVpcEndpointsRequestFilterSensitiveLog, ListVpcEndpointsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListVpcEndpointsCommand, serializeAws_restJson1ListVpcEndpointsCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListVpcEndpointsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListVpcEndpointsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OpenSearchClient";
25
+ const commandName = "ListVpcEndpointsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListVpcEndpointsRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListVpcEndpointsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListVpcEndpointsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListVpcEndpointsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListVpcEndpointsForDomainRequestFilterSensitiveLog, ListVpcEndpointsForDomainResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListVpcEndpointsForDomainCommand, serializeAws_restJson1ListVpcEndpointsForDomainCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListVpcEndpointsForDomainCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListVpcEndpointsForDomainCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OpenSearchClient";
25
+ const commandName = "ListVpcEndpointsForDomainCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListVpcEndpointsForDomainRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListVpcEndpointsForDomainResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListVpcEndpointsForDomainCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListVpcEndpointsForDomainCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { RevokeVpcEndpointAccessRequestFilterSensitiveLog, RevokeVpcEndpointAccessResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1RevokeVpcEndpointAccessCommand, serializeAws_restJson1RevokeVpcEndpointAccessCommand, } from "../protocols/Aws_restJson1";
6
+ export class RevokeVpcEndpointAccessCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, RevokeVpcEndpointAccessCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OpenSearchClient";
25
+ const commandName = "RevokeVpcEndpointAccessCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: RevokeVpcEndpointAccessRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: RevokeVpcEndpointAccessResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1RevokeVpcEndpointAccessCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1RevokeVpcEndpointAccessCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateVpcEndpointRequestFilterSensitiveLog, UpdateVpcEndpointResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateVpcEndpointCommand, serializeAws_restJson1UpdateVpcEndpointCommand, } from "../protocols/Aws_restJson1";
6
+ export class UpdateVpcEndpointCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateVpcEndpointCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OpenSearchClient";
25
+ const commandName = "UpdateVpcEndpointCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateVpcEndpointRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdateVpcEndpointResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1UpdateVpcEndpointCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1UpdateVpcEndpointCommand(output, context);
41
+ }
42
+ }