@aws-sdk/client-elasticsearch-service 3.185.0 → 3.188.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 (65) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/ElasticsearchService.js +166 -173
  3. package/dist-es/ElasticsearchServiceClient.js +22 -28
  4. package/dist-es/commands/AcceptInboundCrossClusterSearchConnectionCommand.js +21 -28
  5. package/dist-es/commands/AddTagsCommand.js +22 -29
  6. package/dist-es/commands/AssociatePackageCommand.js +21 -28
  7. package/dist-es/commands/CancelElasticsearchServiceSoftwareUpdateCommand.js +21 -28
  8. package/dist-es/commands/CreateElasticsearchDomainCommand.js +21 -28
  9. package/dist-es/commands/CreateOutboundCrossClusterSearchConnectionCommand.js +21 -28
  10. package/dist-es/commands/CreatePackageCommand.js +21 -28
  11. package/dist-es/commands/DeleteElasticsearchDomainCommand.js +21 -28
  12. package/dist-es/commands/DeleteElasticsearchServiceRoleCommand.js +23 -30
  13. package/dist-es/commands/DeleteInboundCrossClusterSearchConnectionCommand.js +21 -28
  14. package/dist-es/commands/DeleteOutboundCrossClusterSearchConnectionCommand.js +21 -28
  15. package/dist-es/commands/DeletePackageCommand.js +21 -28
  16. package/dist-es/commands/DescribeDomainAutoTunesCommand.js +21 -28
  17. package/dist-es/commands/DescribeDomainChangeProgressCommand.js +21 -28
  18. package/dist-es/commands/DescribeElasticsearchDomainCommand.js +21 -28
  19. package/dist-es/commands/DescribeElasticsearchDomainConfigCommand.js +21 -28
  20. package/dist-es/commands/DescribeElasticsearchDomainsCommand.js +21 -28
  21. package/dist-es/commands/DescribeElasticsearchInstanceTypeLimitsCommand.js +21 -28
  22. package/dist-es/commands/DescribeInboundCrossClusterSearchConnectionsCommand.js +21 -28
  23. package/dist-es/commands/DescribeOutboundCrossClusterSearchConnectionsCommand.js +21 -28
  24. package/dist-es/commands/DescribePackagesCommand.js +21 -28
  25. package/dist-es/commands/DescribeReservedElasticsearchInstanceOfferingsCommand.js +21 -28
  26. package/dist-es/commands/DescribeReservedElasticsearchInstancesCommand.js +21 -28
  27. package/dist-es/commands/DissociatePackageCommand.js +21 -28
  28. package/dist-es/commands/GetCompatibleElasticsearchVersionsCommand.js +21 -28
  29. package/dist-es/commands/GetPackageVersionHistoryCommand.js +21 -28
  30. package/dist-es/commands/GetUpgradeHistoryCommand.js +21 -28
  31. package/dist-es/commands/GetUpgradeStatusCommand.js +21 -28
  32. package/dist-es/commands/ListDomainNamesCommand.js +21 -28
  33. package/dist-es/commands/ListDomainsForPackageCommand.js +21 -28
  34. package/dist-es/commands/ListElasticsearchInstanceTypesCommand.js +21 -28
  35. package/dist-es/commands/ListElasticsearchVersionsCommand.js +21 -28
  36. package/dist-es/commands/ListPackagesForDomainCommand.js +21 -28
  37. package/dist-es/commands/ListTagsCommand.js +21 -28
  38. package/dist-es/commands/PurchaseReservedElasticsearchInstanceOfferingCommand.js +21 -28
  39. package/dist-es/commands/RejectInboundCrossClusterSearchConnectionCommand.js +21 -28
  40. package/dist-es/commands/RemoveTagsCommand.js +22 -29
  41. package/dist-es/commands/StartElasticsearchServiceSoftwareUpdateCommand.js +21 -28
  42. package/dist-es/commands/UpdateElasticsearchDomainConfigCommand.js +21 -28
  43. package/dist-es/commands/UpdatePackageCommand.js +21 -28
  44. package/dist-es/commands/UpgradeElasticsearchDomainCommand.js +21 -28
  45. package/dist-es/endpoints.js +8 -8
  46. package/dist-es/models/ElasticsearchServiceServiceException.js +5 -10
  47. package/dist-es/models/models_0.js +591 -279
  48. package/dist-es/pagination/DescribeDomainAutoTunesPaginator.js +25 -68
  49. package/dist-es/pagination/DescribeInboundCrossClusterSearchConnectionsPaginator.js +25 -68
  50. package/dist-es/pagination/DescribeOutboundCrossClusterSearchConnectionsPaginator.js +25 -68
  51. package/dist-es/pagination/DescribePackagesPaginator.js +25 -68
  52. package/dist-es/pagination/DescribeReservedElasticsearchInstanceOfferingsPaginator.js +25 -68
  53. package/dist-es/pagination/DescribeReservedElasticsearchInstancesPaginator.js +25 -68
  54. package/dist-es/pagination/GetPackageVersionHistoryPaginator.js +25 -68
  55. package/dist-es/pagination/GetUpgradeHistoryPaginator.js +25 -68
  56. package/dist-es/pagination/ListDomainsForPackagePaginator.js +25 -68
  57. package/dist-es/pagination/ListElasticsearchInstanceTypesPaginator.js +25 -68
  58. package/dist-es/pagination/ListElasticsearchVersionsPaginator.js +25 -68
  59. package/dist-es/pagination/ListPackagesForDomainPaginator.js +25 -68
  60. package/dist-es/protocols/Aws_restJson1.js +3228 -4382
  61. package/dist-es/runtimeConfig.browser.js +26 -12
  62. package/dist-es/runtimeConfig.js +30 -12
  63. package/dist-es/runtimeConfig.native.js +8 -5
  64. package/dist-es/runtimeConfig.shared.js +8 -11
  65. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var ElasticsearchServiceClient = (function (_super) {
13
- __extends(ElasticsearchServiceClient, _super);
14
- function ElasticsearchServiceClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class ElasticsearchServiceClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- ElasticsearchServiceClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return ElasticsearchServiceClient;
38
- }(__Client));
39
- export { ElasticsearchServiceClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { AcceptInboundCrossClusterSearchConnectionRequestFilterSensitiveLog, AcceptInboundCrossClusterSearchConnectionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand, serializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand, } from "../protocols/Aws_restJson1";
6
- var AcceptInboundCrossClusterSearchConnectionCommand = (function (_super) {
7
- __extends(AcceptInboundCrossClusterSearchConnectionCommand, _super);
8
- function AcceptInboundCrossClusterSearchConnectionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AcceptInboundCrossClusterSearchConnectionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AcceptInboundCrossClusterSearchConnectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ElasticsearchServiceClient";
18
- var commandName = "AcceptInboundCrossClusterSearchConnectionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ElasticsearchServiceClient";
15
+ const commandName = "AcceptInboundCrossClusterSearchConnectionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AcceptInboundCrossClusterSearchConnectionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AcceptInboundCrossClusterSearchConnectionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AcceptInboundCrossClusterSearchConnectionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand(input, context);
33
- };
34
- AcceptInboundCrossClusterSearchConnectionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand(output, context);
36
- };
37
- return AcceptInboundCrossClusterSearchConnectionCommand;
38
- }($Command));
39
- export { AcceptInboundCrossClusterSearchConnectionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { AddTagsRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AddTagsCommand, serializeAws_restJson1AddTagsCommand, } from "../protocols/Aws_restJson1";
6
- var AddTagsCommand = (function (_super) {
7
- __extends(AddTagsCommand, _super);
8
- function AddTagsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AddTagsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AddTagsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ElasticsearchServiceClient";
18
- var commandName = "AddTagsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ElasticsearchServiceClient";
15
+ const commandName = "AddTagsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AddTagsRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AddTagsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1AddTagsCommand(input, context);
33
- };
34
- AddTagsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AddTagsCommand(output, context);
36
- };
37
- return AddTagsCommand;
38
- }($Command));
39
- export { AddTagsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { AssociatePackageRequestFilterSensitiveLog, AssociatePackageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AssociatePackageCommand, serializeAws_restJson1AssociatePackageCommand, } from "../protocols/Aws_restJson1";
6
- var AssociatePackageCommand = (function (_super) {
7
- __extends(AssociatePackageCommand, _super);
8
- function AssociatePackageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AssociatePackageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AssociatePackageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ElasticsearchServiceClient";
18
- var commandName = "AssociatePackageCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ElasticsearchServiceClient";
15
+ const commandName = "AssociatePackageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AssociatePackageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AssociatePackageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AssociatePackageCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1AssociatePackageCommand(input, context);
33
- };
34
- AssociatePackageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AssociatePackageCommand(output, context);
36
- };
37
- return AssociatePackageCommand;
38
- }($Command));
39
- export { AssociatePackageCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CancelElasticsearchServiceSoftwareUpdateRequestFilterSensitiveLog, CancelElasticsearchServiceSoftwareUpdateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand, serializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand, } from "../protocols/Aws_restJson1";
6
- var CancelElasticsearchServiceSoftwareUpdateCommand = (function (_super) {
7
- __extends(CancelElasticsearchServiceSoftwareUpdateCommand, _super);
8
- function CancelElasticsearchServiceSoftwareUpdateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CancelElasticsearchServiceSoftwareUpdateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CancelElasticsearchServiceSoftwareUpdateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ElasticsearchServiceClient";
18
- var commandName = "CancelElasticsearchServiceSoftwareUpdateCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ElasticsearchServiceClient";
15
+ const commandName = "CancelElasticsearchServiceSoftwareUpdateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CancelElasticsearchServiceSoftwareUpdateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CancelElasticsearchServiceSoftwareUpdateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CancelElasticsearchServiceSoftwareUpdateCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand(input, context);
33
- };
34
- CancelElasticsearchServiceSoftwareUpdateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand(output, context);
36
- };
37
- return CancelElasticsearchServiceSoftwareUpdateCommand;
38
- }($Command));
39
- export { CancelElasticsearchServiceSoftwareUpdateCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateElasticsearchDomainRequestFilterSensitiveLog, CreateElasticsearchDomainResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateElasticsearchDomainCommand, serializeAws_restJson1CreateElasticsearchDomainCommand, } from "../protocols/Aws_restJson1";
6
- var CreateElasticsearchDomainCommand = (function (_super) {
7
- __extends(CreateElasticsearchDomainCommand, _super);
8
- function CreateElasticsearchDomainCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateElasticsearchDomainCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateElasticsearchDomainCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ElasticsearchServiceClient";
18
- var commandName = "CreateElasticsearchDomainCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ElasticsearchServiceClient";
15
+ const commandName = "CreateElasticsearchDomainCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateElasticsearchDomainRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateElasticsearchDomainResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateElasticsearchDomainCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateElasticsearchDomainCommand(input, context);
33
- };
34
- CreateElasticsearchDomainCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateElasticsearchDomainCommand(output, context);
36
- };
37
- return CreateElasticsearchDomainCommand;
38
- }($Command));
39
- export { CreateElasticsearchDomainCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateOutboundCrossClusterSearchConnectionRequestFilterSensitiveLog, CreateOutboundCrossClusterSearchConnectionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand, serializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand, } from "../protocols/Aws_restJson1";
6
- var CreateOutboundCrossClusterSearchConnectionCommand = (function (_super) {
7
- __extends(CreateOutboundCrossClusterSearchConnectionCommand, _super);
8
- function CreateOutboundCrossClusterSearchConnectionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateOutboundCrossClusterSearchConnectionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateOutboundCrossClusterSearchConnectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ElasticsearchServiceClient";
18
- var commandName = "CreateOutboundCrossClusterSearchConnectionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ElasticsearchServiceClient";
15
+ const commandName = "CreateOutboundCrossClusterSearchConnectionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateOutboundCrossClusterSearchConnectionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateOutboundCrossClusterSearchConnectionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateOutboundCrossClusterSearchConnectionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand(input, context);
33
- };
34
- CreateOutboundCrossClusterSearchConnectionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand(output, context);
36
- };
37
- return CreateOutboundCrossClusterSearchConnectionCommand;
38
- }($Command));
39
- export { CreateOutboundCrossClusterSearchConnectionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreatePackageRequestFilterSensitiveLog, CreatePackageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreatePackageCommand, serializeAws_restJson1CreatePackageCommand, } from "../protocols/Aws_restJson1";
6
- var CreatePackageCommand = (function (_super) {
7
- __extends(CreatePackageCommand, _super);
8
- function CreatePackageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreatePackageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreatePackageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ElasticsearchServiceClient";
18
- var commandName = "CreatePackageCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ElasticsearchServiceClient";
15
+ const commandName = "CreatePackageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreatePackageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreatePackageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreatePackageCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreatePackageCommand(input, context);
33
- };
34
- CreatePackageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreatePackageCommand(output, context);
36
- };
37
- return CreatePackageCommand;
38
- }($Command));
39
- export { CreatePackageCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteElasticsearchDomainRequestFilterSensitiveLog, DeleteElasticsearchDomainResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteElasticsearchDomainCommand, serializeAws_restJson1DeleteElasticsearchDomainCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteElasticsearchDomainCommand = (function (_super) {
7
- __extends(DeleteElasticsearchDomainCommand, _super);
8
- function DeleteElasticsearchDomainCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteElasticsearchDomainCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteElasticsearchDomainCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ElasticsearchServiceClient";
18
- var commandName = "DeleteElasticsearchDomainCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ElasticsearchServiceClient";
15
+ const commandName = "DeleteElasticsearchDomainCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteElasticsearchDomainRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteElasticsearchDomainResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteElasticsearchDomainCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteElasticsearchDomainCommand(input, context);
33
- };
34
- DeleteElasticsearchDomainCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteElasticsearchDomainCommand(output, context);
36
- };
37
- return DeleteElasticsearchDomainCommand;
38
- }($Command));
39
- export { DeleteElasticsearchDomainCommand };
31
+ }
32
+ }
@@ -1,38 +1,31 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { deserializeAws_restJson1DeleteElasticsearchServiceRoleCommand, serializeAws_restJson1DeleteElasticsearchServiceRoleCommand, } from "../protocols/Aws_restJson1";
5
- var DeleteElasticsearchServiceRoleCommand = (function (_super) {
6
- __extends(DeleteElasticsearchServiceRoleCommand, _super);
7
- function DeleteElasticsearchServiceRoleCommand(input) {
8
- var _this = _super.call(this) || this;
9
- _this.input = input;
10
- return _this;
4
+ export class DeleteElasticsearchServiceRoleCommand extends $Command {
5
+ constructor(input) {
6
+ super();
7
+ this.input = input;
11
8
  }
12
- DeleteElasticsearchServiceRoleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9
+ resolveMiddleware(clientStack, configuration, options) {
13
10
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
14
- var stack = clientStack.concat(this.middlewareStack);
15
- var logger = configuration.logger;
16
- var clientName = "ElasticsearchServiceClient";
17
- var commandName = "DeleteElasticsearchServiceRoleCommand";
18
- var handlerExecutionContext = {
19
- logger: logger,
20
- clientName: clientName,
21
- commandName: commandName,
22
- inputFilterSensitiveLog: function (input) { return input; },
23
- outputFilterSensitiveLog: function (output) { return output; },
11
+ const stack = clientStack.concat(this.middlewareStack);
12
+ const { logger } = configuration;
13
+ const clientName = "ElasticsearchServiceClient";
14
+ const commandName = "DeleteElasticsearchServiceRoleCommand";
15
+ const handlerExecutionContext = {
16
+ logger,
17
+ clientName,
18
+ commandName,
19
+ inputFilterSensitiveLog: (input) => input,
20
+ outputFilterSensitiveLog: (output) => output,
24
21
  };
25
- var requestHandler = configuration.requestHandler;
26
- return stack.resolve(function (request) {
27
- return requestHandler.handle(request.request, options || {});
28
- }, handlerExecutionContext);
29
- };
30
- DeleteElasticsearchServiceRoleCommand.prototype.serialize = function (input, context) {
22
+ const { requestHandler } = configuration;
23
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
24
+ }
25
+ serialize(input, context) {
31
26
  return serializeAws_restJson1DeleteElasticsearchServiceRoleCommand(input, context);
32
- };
33
- DeleteElasticsearchServiceRoleCommand.prototype.deserialize = function (output, context) {
27
+ }
28
+ deserialize(output, context) {
34
29
  return deserializeAws_restJson1DeleteElasticsearchServiceRoleCommand(output, context);
35
- };
36
- return DeleteElasticsearchServiceRoleCommand;
37
- }($Command));
38
- export { DeleteElasticsearchServiceRoleCommand };
30
+ }
31
+ }