@aws-sdk/client-elasticsearch-service 3.204.0 → 3.208.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist-cjs/ElasticsearchService.js +135 -0
  2. package/dist-cjs/commands/AuthorizeVpcEndpointAccessCommand.js +46 -0
  3. package/dist-cjs/commands/CreateVpcEndpointCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteVpcEndpointCommand.js +46 -0
  5. package/dist-cjs/commands/DescribeVpcEndpointsCommand.js +46 -0
  6. package/dist-cjs/commands/ListVpcEndpointAccessCommand.js +46 -0
  7. package/dist-cjs/commands/ListVpcEndpointsCommand.js +46 -0
  8. package/dist-cjs/commands/ListVpcEndpointsForDomainCommand.js +46 -0
  9. package/dist-cjs/commands/RevokeVpcEndpointAccessCommand.js +46 -0
  10. package/dist-cjs/commands/UpdateVpcEndpointCommand.js +46 -0
  11. package/dist-cjs/commands/index.js +9 -0
  12. package/dist-cjs/models/models_0.js +249 -4
  13. package/dist-cjs/protocols/Aws_restJson1.js +764 -72
  14. package/dist-es/ElasticsearchService.js +135 -0
  15. package/dist-es/commands/AuthorizeVpcEndpointAccessCommand.js +42 -0
  16. package/dist-es/commands/CreateVpcEndpointCommand.js +42 -0
  17. package/dist-es/commands/DeleteVpcEndpointCommand.js +42 -0
  18. package/dist-es/commands/DescribeVpcEndpointsCommand.js +42 -0
  19. package/dist-es/commands/ListVpcEndpointAccessCommand.js +42 -0
  20. package/dist-es/commands/ListVpcEndpointsCommand.js +42 -0
  21. package/dist-es/commands/ListVpcEndpointsForDomainCommand.js +42 -0
  22. package/dist-es/commands/RevokeVpcEndpointAccessCommand.js +42 -0
  23. package/dist-es/commands/UpdateVpcEndpointCommand.js +42 -0
  24. package/dist-es/commands/index.js +9 -0
  25. package/dist-es/models/models_0.js +222 -0
  26. package/dist-es/protocols/Aws_restJson1.js +741 -67
  27. package/dist-types/ElasticsearchService.d.ts +65 -0
  28. package/dist-types/ElasticsearchServiceClient.d.ts +11 -2
  29. package/dist-types/commands/AuthorizeVpcEndpointAccessCommand.d.ts +37 -0
  30. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +37 -0
  31. package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +37 -0
  32. package/dist-types/commands/DescribeVpcEndpointsCommand.d.ts +37 -0
  33. package/dist-types/commands/ListVpcEndpointAccessCommand.d.ts +38 -0
  34. package/dist-types/commands/ListVpcEndpointsCommand.d.ts +37 -0
  35. package/dist-types/commands/ListVpcEndpointsForDomainCommand.d.ts +37 -0
  36. package/dist-types/commands/RevokeVpcEndpointAccessCommand.d.ts +38 -0
  37. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +37 -0
  38. package/dist-types/commands/index.d.ts +9 -0
  39. package/dist-types/models/models_0.d.ts +523 -12
  40. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  41. package/dist-types/ts3.4/ElasticsearchService.d.ts +153 -0
  42. package/dist-types/ts3.4/ElasticsearchServiceClient.d.ts +54 -0
  43. package/dist-types/ts3.4/commands/AuthorizeVpcEndpointAccessCommand.d.ts +41 -0
  44. package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +38 -0
  45. package/dist-types/ts3.4/commands/DeleteVpcEndpointCommand.d.ts +38 -0
  46. package/dist-types/ts3.4/commands/DescribeVpcEndpointsCommand.d.ts +41 -0
  47. package/dist-types/ts3.4/commands/ListVpcEndpointAccessCommand.d.ts +41 -0
  48. package/dist-types/ts3.4/commands/ListVpcEndpointsCommand.d.ts +37 -0
  49. package/dist-types/ts3.4/commands/ListVpcEndpointsForDomainCommand.d.ts +41 -0
  50. package/dist-types/ts3.4/commands/RevokeVpcEndpointAccessCommand.d.ts +41 -0
  51. package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +38 -0
  52. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +291 -104
  54. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  55. package/package.json +35 -35
@@ -1,15 +1,18 @@
1
1
  import { AcceptInboundCrossClusterSearchConnectionCommand, } from "./commands/AcceptInboundCrossClusterSearchConnectionCommand";
2
2
  import { AddTagsCommand } from "./commands/AddTagsCommand";
3
3
  import { AssociatePackageCommand, } from "./commands/AssociatePackageCommand";
4
+ import { AuthorizeVpcEndpointAccessCommand, } from "./commands/AuthorizeVpcEndpointAccessCommand";
4
5
  import { CancelElasticsearchServiceSoftwareUpdateCommand, } from "./commands/CancelElasticsearchServiceSoftwareUpdateCommand";
5
6
  import { CreateElasticsearchDomainCommand, } from "./commands/CreateElasticsearchDomainCommand";
6
7
  import { CreateOutboundCrossClusterSearchConnectionCommand, } from "./commands/CreateOutboundCrossClusterSearchConnectionCommand";
7
8
  import { CreatePackageCommand, } from "./commands/CreatePackageCommand";
9
+ import { CreateVpcEndpointCommand, } from "./commands/CreateVpcEndpointCommand";
8
10
  import { DeleteElasticsearchDomainCommand, } from "./commands/DeleteElasticsearchDomainCommand";
9
11
  import { DeleteElasticsearchServiceRoleCommand, } from "./commands/DeleteElasticsearchServiceRoleCommand";
10
12
  import { DeleteInboundCrossClusterSearchConnectionCommand, } from "./commands/DeleteInboundCrossClusterSearchConnectionCommand";
11
13
  import { DeleteOutboundCrossClusterSearchConnectionCommand, } from "./commands/DeleteOutboundCrossClusterSearchConnectionCommand";
12
14
  import { DeletePackageCommand, } from "./commands/DeletePackageCommand";
15
+ import { DeleteVpcEndpointCommand, } from "./commands/DeleteVpcEndpointCommand";
13
16
  import { DescribeDomainAutoTunesCommand, } from "./commands/DescribeDomainAutoTunesCommand";
14
17
  import { DescribeDomainChangeProgressCommand, } from "./commands/DescribeDomainChangeProgressCommand";
15
18
  import { DescribeElasticsearchDomainCommand, } from "./commands/DescribeElasticsearchDomainCommand";
@@ -21,6 +24,7 @@ import { DescribeOutboundCrossClusterSearchConnectionsCommand, } from "./command
21
24
  import { DescribePackagesCommand, } from "./commands/DescribePackagesCommand";
22
25
  import { DescribeReservedElasticsearchInstanceOfferingsCommand, } from "./commands/DescribeReservedElasticsearchInstanceOfferingsCommand";
23
26
  import { DescribeReservedElasticsearchInstancesCommand, } from "./commands/DescribeReservedElasticsearchInstancesCommand";
27
+ import { DescribeVpcEndpointsCommand, } from "./commands/DescribeVpcEndpointsCommand";
24
28
  import { DissociatePackageCommand, } from "./commands/DissociatePackageCommand";
25
29
  import { GetCompatibleElasticsearchVersionsCommand, } from "./commands/GetCompatibleElasticsearchVersionsCommand";
26
30
  import { GetPackageVersionHistoryCommand, } from "./commands/GetPackageVersionHistoryCommand";
@@ -32,12 +36,17 @@ import { ListElasticsearchInstanceTypesCommand, } from "./commands/ListElasticse
32
36
  import { ListElasticsearchVersionsCommand, } from "./commands/ListElasticsearchVersionsCommand";
33
37
  import { ListPackagesForDomainCommand, } from "./commands/ListPackagesForDomainCommand";
34
38
  import { ListTagsCommand } from "./commands/ListTagsCommand";
39
+ import { ListVpcEndpointAccessCommand, } from "./commands/ListVpcEndpointAccessCommand";
40
+ import { ListVpcEndpointsCommand, } from "./commands/ListVpcEndpointsCommand";
41
+ import { ListVpcEndpointsForDomainCommand, } from "./commands/ListVpcEndpointsForDomainCommand";
35
42
  import { PurchaseReservedElasticsearchInstanceOfferingCommand, } from "./commands/PurchaseReservedElasticsearchInstanceOfferingCommand";
36
43
  import { RejectInboundCrossClusterSearchConnectionCommand, } from "./commands/RejectInboundCrossClusterSearchConnectionCommand";
37
44
  import { RemoveTagsCommand } from "./commands/RemoveTagsCommand";
45
+ import { RevokeVpcEndpointAccessCommand, } from "./commands/RevokeVpcEndpointAccessCommand";
38
46
  import { StartElasticsearchServiceSoftwareUpdateCommand, } from "./commands/StartElasticsearchServiceSoftwareUpdateCommand";
39
47
  import { UpdateElasticsearchDomainConfigCommand, } from "./commands/UpdateElasticsearchDomainConfigCommand";
40
48
  import { UpdatePackageCommand, } from "./commands/UpdatePackageCommand";
49
+ import { UpdateVpcEndpointCommand, } from "./commands/UpdateVpcEndpointCommand";
41
50
  import { UpgradeElasticsearchDomainCommand, } from "./commands/UpgradeElasticsearchDomainCommand";
42
51
  import { ElasticsearchServiceClient } from "./ElasticsearchServiceClient";
43
52
  export class ElasticsearchService extends ElasticsearchServiceClient {
@@ -83,6 +92,20 @@ export class ElasticsearchService extends ElasticsearchServiceClient {
83
92
  return this.send(command, optionsOrCb);
84
93
  }
85
94
  }
95
+ authorizeVpcEndpointAccess(args, optionsOrCb, cb) {
96
+ const command = new AuthorizeVpcEndpointAccessCommand(args);
97
+ if (typeof optionsOrCb === "function") {
98
+ this.send(command, optionsOrCb);
99
+ }
100
+ else if (typeof cb === "function") {
101
+ if (typeof optionsOrCb !== "object")
102
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
103
+ this.send(command, optionsOrCb || {}, cb);
104
+ }
105
+ else {
106
+ return this.send(command, optionsOrCb);
107
+ }
108
+ }
86
109
  cancelElasticsearchServiceSoftwareUpdate(args, optionsOrCb, cb) {
87
110
  const command = new CancelElasticsearchServiceSoftwareUpdateCommand(args);
88
111
  if (typeof optionsOrCb === "function") {
@@ -139,6 +162,20 @@ export class ElasticsearchService extends ElasticsearchServiceClient {
139
162
  return this.send(command, optionsOrCb);
140
163
  }
141
164
  }
165
+ createVpcEndpoint(args, optionsOrCb, cb) {
166
+ const command = new CreateVpcEndpointCommand(args);
167
+ if (typeof optionsOrCb === "function") {
168
+ this.send(command, optionsOrCb);
169
+ }
170
+ else if (typeof cb === "function") {
171
+ if (typeof optionsOrCb !== "object")
172
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
+ this.send(command, optionsOrCb || {}, cb);
174
+ }
175
+ else {
176
+ return this.send(command, optionsOrCb);
177
+ }
178
+ }
142
179
  deleteElasticsearchDomain(args, optionsOrCb, cb) {
143
180
  const command = new DeleteElasticsearchDomainCommand(args);
144
181
  if (typeof optionsOrCb === "function") {
@@ -209,6 +246,20 @@ export class ElasticsearchService extends ElasticsearchServiceClient {
209
246
  return this.send(command, optionsOrCb);
210
247
  }
211
248
  }
249
+ deleteVpcEndpoint(args, optionsOrCb, cb) {
250
+ const command = new DeleteVpcEndpointCommand(args);
251
+ if (typeof optionsOrCb === "function") {
252
+ this.send(command, optionsOrCb);
253
+ }
254
+ else if (typeof cb === "function") {
255
+ if (typeof optionsOrCb !== "object")
256
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
257
+ this.send(command, optionsOrCb || {}, cb);
258
+ }
259
+ else {
260
+ return this.send(command, optionsOrCb);
261
+ }
262
+ }
212
263
  describeDomainAutoTunes(args, optionsOrCb, cb) {
213
264
  const command = new DescribeDomainAutoTunesCommand(args);
214
265
  if (typeof optionsOrCb === "function") {
@@ -363,6 +414,20 @@ export class ElasticsearchService extends ElasticsearchServiceClient {
363
414
  return this.send(command, optionsOrCb);
364
415
  }
365
416
  }
417
+ describeVpcEndpoints(args, optionsOrCb, cb) {
418
+ const command = new DescribeVpcEndpointsCommand(args);
419
+ if (typeof optionsOrCb === "function") {
420
+ this.send(command, optionsOrCb);
421
+ }
422
+ else if (typeof cb === "function") {
423
+ if (typeof optionsOrCb !== "object")
424
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
425
+ this.send(command, optionsOrCb || {}, cb);
426
+ }
427
+ else {
428
+ return this.send(command, optionsOrCb);
429
+ }
430
+ }
366
431
  dissociatePackage(args, optionsOrCb, cb) {
367
432
  const command = new DissociatePackageCommand(args);
368
433
  if (typeof optionsOrCb === "function") {
@@ -517,6 +582,48 @@ export class ElasticsearchService extends ElasticsearchServiceClient {
517
582
  return this.send(command, optionsOrCb);
518
583
  }
519
584
  }
585
+ listVpcEndpointAccess(args, optionsOrCb, cb) {
586
+ const command = new ListVpcEndpointAccessCommand(args);
587
+ if (typeof optionsOrCb === "function") {
588
+ this.send(command, optionsOrCb);
589
+ }
590
+ else if (typeof cb === "function") {
591
+ if (typeof optionsOrCb !== "object")
592
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
593
+ this.send(command, optionsOrCb || {}, cb);
594
+ }
595
+ else {
596
+ return this.send(command, optionsOrCb);
597
+ }
598
+ }
599
+ listVpcEndpoints(args, optionsOrCb, cb) {
600
+ const command = new ListVpcEndpointsCommand(args);
601
+ if (typeof optionsOrCb === "function") {
602
+ this.send(command, optionsOrCb);
603
+ }
604
+ else if (typeof cb === "function") {
605
+ if (typeof optionsOrCb !== "object")
606
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
607
+ this.send(command, optionsOrCb || {}, cb);
608
+ }
609
+ else {
610
+ return this.send(command, optionsOrCb);
611
+ }
612
+ }
613
+ listVpcEndpointsForDomain(args, optionsOrCb, cb) {
614
+ const command = new ListVpcEndpointsForDomainCommand(args);
615
+ if (typeof optionsOrCb === "function") {
616
+ this.send(command, optionsOrCb);
617
+ }
618
+ else if (typeof cb === "function") {
619
+ if (typeof optionsOrCb !== "object")
620
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
621
+ this.send(command, optionsOrCb || {}, cb);
622
+ }
623
+ else {
624
+ return this.send(command, optionsOrCb);
625
+ }
626
+ }
520
627
  purchaseReservedElasticsearchInstanceOffering(args, optionsOrCb, cb) {
521
628
  const command = new PurchaseReservedElasticsearchInstanceOfferingCommand(args);
522
629
  if (typeof optionsOrCb === "function") {
@@ -559,6 +666,20 @@ export class ElasticsearchService extends ElasticsearchServiceClient {
559
666
  return this.send(command, optionsOrCb);
560
667
  }
561
668
  }
669
+ revokeVpcEndpointAccess(args, optionsOrCb, cb) {
670
+ const command = new RevokeVpcEndpointAccessCommand(args);
671
+ if (typeof optionsOrCb === "function") {
672
+ this.send(command, optionsOrCb);
673
+ }
674
+ else if (typeof cb === "function") {
675
+ if (typeof optionsOrCb !== "object")
676
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
677
+ this.send(command, optionsOrCb || {}, cb);
678
+ }
679
+ else {
680
+ return this.send(command, optionsOrCb);
681
+ }
682
+ }
562
683
  startElasticsearchServiceSoftwareUpdate(args, optionsOrCb, cb) {
563
684
  const command = new StartElasticsearchServiceSoftwareUpdateCommand(args);
564
685
  if (typeof optionsOrCb === "function") {
@@ -601,6 +722,20 @@ export class ElasticsearchService extends ElasticsearchServiceClient {
601
722
  return this.send(command, optionsOrCb);
602
723
  }
603
724
  }
725
+ updateVpcEndpoint(args, optionsOrCb, cb) {
726
+ const command = new UpdateVpcEndpointCommand(args);
727
+ if (typeof optionsOrCb === "function") {
728
+ this.send(command, optionsOrCb);
729
+ }
730
+ else if (typeof cb === "function") {
731
+ if (typeof optionsOrCb !== "object")
732
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
733
+ this.send(command, optionsOrCb || {}, cb);
734
+ }
735
+ else {
736
+ return this.send(command, optionsOrCb);
737
+ }
738
+ }
604
739
  upgradeElasticsearchDomain(args, optionsOrCb, cb) {
605
740
  const command = new UpgradeElasticsearchDomainCommand(args);
606
741
  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 = "ElasticsearchServiceClient";
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 = "ElasticsearchServiceClient";
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 = "ElasticsearchServiceClient";
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 = "ElasticsearchServiceClient";
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 = "ElasticsearchServiceClient";
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 = "ElasticsearchServiceClient";
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 = "ElasticsearchServiceClient";
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 = "ElasticsearchServiceClient";
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 = "ElasticsearchServiceClient";
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
+ }
@@ -1,15 +1,18 @@
1
1
  export * from "./AcceptInboundCrossClusterSearchConnectionCommand";
2
2
  export * from "./AddTagsCommand";
3
3
  export * from "./AssociatePackageCommand";
4
+ export * from "./AuthorizeVpcEndpointAccessCommand";
4
5
  export * from "./CancelElasticsearchServiceSoftwareUpdateCommand";
5
6
  export * from "./CreateElasticsearchDomainCommand";
6
7
  export * from "./CreateOutboundCrossClusterSearchConnectionCommand";
7
8
  export * from "./CreatePackageCommand";
9
+ export * from "./CreateVpcEndpointCommand";
8
10
  export * from "./DeleteElasticsearchDomainCommand";
9
11
  export * from "./DeleteElasticsearchServiceRoleCommand";
10
12
  export * from "./DeleteInboundCrossClusterSearchConnectionCommand";
11
13
  export * from "./DeleteOutboundCrossClusterSearchConnectionCommand";
12
14
  export * from "./DeletePackageCommand";
15
+ export * from "./DeleteVpcEndpointCommand";
13
16
  export * from "./DescribeDomainAutoTunesCommand";
14
17
  export * from "./DescribeDomainChangeProgressCommand";
15
18
  export * from "./DescribeElasticsearchDomainCommand";
@@ -21,6 +24,7 @@ export * from "./DescribeOutboundCrossClusterSearchConnectionsCommand";
21
24
  export * from "./DescribePackagesCommand";
22
25
  export * from "./DescribeReservedElasticsearchInstanceOfferingsCommand";
23
26
  export * from "./DescribeReservedElasticsearchInstancesCommand";
27
+ export * from "./DescribeVpcEndpointsCommand";
24
28
  export * from "./DissociatePackageCommand";
25
29
  export * from "./GetCompatibleElasticsearchVersionsCommand";
26
30
  export * from "./GetPackageVersionHistoryCommand";
@@ -32,10 +36,15 @@ export * from "./ListElasticsearchInstanceTypesCommand";
32
36
  export * from "./ListElasticsearchVersionsCommand";
33
37
  export * from "./ListPackagesForDomainCommand";
34
38
  export * from "./ListTagsCommand";
39
+ export * from "./ListVpcEndpointAccessCommand";
40
+ export * from "./ListVpcEndpointsCommand";
41
+ export * from "./ListVpcEndpointsForDomainCommand";
35
42
  export * from "./PurchaseReservedElasticsearchInstanceOfferingCommand";
36
43
  export * from "./RejectInboundCrossClusterSearchConnectionCommand";
37
44
  export * from "./RemoveTagsCommand";
45
+ export * from "./RevokeVpcEndpointAccessCommand";
38
46
  export * from "./StartElasticsearchServiceSoftwareUpdateCommand";
39
47
  export * from "./UpdateElasticsearchDomainConfigCommand";
40
48
  export * from "./UpdatePackageCommand";
49
+ export * from "./UpdateVpcEndpointCommand";
41
50
  export * from "./UpgradeElasticsearchDomainCommand";