@aws-sdk/client-opensearch 3.186.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 (64) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/OpenSearch.js +162 -169
  3. package/dist-es/OpenSearchClient.js +22 -28
  4. package/dist-es/commands/AcceptInboundConnectionCommand.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/CancelServiceSoftwareUpdateCommand.js +21 -28
  8. package/dist-es/commands/CreateDomainCommand.js +21 -28
  9. package/dist-es/commands/CreateOutboundConnectionCommand.js +21 -28
  10. package/dist-es/commands/CreatePackageCommand.js +21 -28
  11. package/dist-es/commands/DeleteDomainCommand.js +21 -28
  12. package/dist-es/commands/DeleteInboundConnectionCommand.js +21 -28
  13. package/dist-es/commands/DeleteOutboundConnectionCommand.js +21 -28
  14. package/dist-es/commands/DeletePackageCommand.js +21 -28
  15. package/dist-es/commands/DescribeDomainAutoTunesCommand.js +21 -28
  16. package/dist-es/commands/DescribeDomainChangeProgressCommand.js +21 -28
  17. package/dist-es/commands/DescribeDomainCommand.js +21 -28
  18. package/dist-es/commands/DescribeDomainConfigCommand.js +21 -28
  19. package/dist-es/commands/DescribeDomainsCommand.js +21 -28
  20. package/dist-es/commands/DescribeInboundConnectionsCommand.js +21 -28
  21. package/dist-es/commands/DescribeInstanceTypeLimitsCommand.js +21 -28
  22. package/dist-es/commands/DescribeOutboundConnectionsCommand.js +21 -28
  23. package/dist-es/commands/DescribePackagesCommand.js +21 -28
  24. package/dist-es/commands/DescribeReservedInstanceOfferingsCommand.js +21 -28
  25. package/dist-es/commands/DescribeReservedInstancesCommand.js +21 -28
  26. package/dist-es/commands/DissociatePackageCommand.js +21 -28
  27. package/dist-es/commands/GetCompatibleVersionsCommand.js +21 -28
  28. package/dist-es/commands/GetPackageVersionHistoryCommand.js +21 -28
  29. package/dist-es/commands/GetUpgradeHistoryCommand.js +21 -28
  30. package/dist-es/commands/GetUpgradeStatusCommand.js +21 -28
  31. package/dist-es/commands/ListDomainNamesCommand.js +21 -28
  32. package/dist-es/commands/ListDomainsForPackageCommand.js +21 -28
  33. package/dist-es/commands/ListInstanceTypeDetailsCommand.js +21 -28
  34. package/dist-es/commands/ListPackagesForDomainCommand.js +21 -28
  35. package/dist-es/commands/ListTagsCommand.js +21 -28
  36. package/dist-es/commands/ListVersionsCommand.js +21 -28
  37. package/dist-es/commands/PurchaseReservedInstanceOfferingCommand.js +21 -28
  38. package/dist-es/commands/RejectInboundConnectionCommand.js +21 -28
  39. package/dist-es/commands/RemoveTagsCommand.js +22 -29
  40. package/dist-es/commands/StartServiceSoftwareUpdateCommand.js +21 -28
  41. package/dist-es/commands/UpdateDomainConfigCommand.js +21 -28
  42. package/dist-es/commands/UpdatePackageCommand.js +21 -28
  43. package/dist-es/commands/UpgradeDomainCommand.js +21 -28
  44. package/dist-es/endpoints.js +8 -8
  45. package/dist-es/models/OpenSearchServiceException.js +5 -10
  46. package/dist-es/models/models_0.js +597 -281
  47. package/dist-es/pagination/DescribeDomainAutoTunesPaginator.js +25 -68
  48. package/dist-es/pagination/DescribeInboundConnectionsPaginator.js +25 -68
  49. package/dist-es/pagination/DescribeOutboundConnectionsPaginator.js +25 -68
  50. package/dist-es/pagination/DescribePackagesPaginator.js +25 -68
  51. package/dist-es/pagination/DescribeReservedInstanceOfferingsPaginator.js +25 -68
  52. package/dist-es/pagination/DescribeReservedInstancesPaginator.js +25 -68
  53. package/dist-es/pagination/GetPackageVersionHistoryPaginator.js +25 -68
  54. package/dist-es/pagination/GetUpgradeHistoryPaginator.js +25 -68
  55. package/dist-es/pagination/ListDomainsForPackagePaginator.js +25 -68
  56. package/dist-es/pagination/ListInstanceTypeDetailsPaginator.js +25 -68
  57. package/dist-es/pagination/ListPackagesForDomainPaginator.js +25 -68
  58. package/dist-es/pagination/ListVersionsPaginator.js +25 -68
  59. package/dist-es/protocols/Aws_restJson1.js +3200 -4322
  60. package/dist-es/runtimeConfig.browser.js +26 -12
  61. package/dist-es/runtimeConfig.js +30 -12
  62. package/dist-es/runtimeConfig.native.js +8 -5
  63. package/dist-es/runtimeConfig.shared.js +8 -11
  64. package/package.json +33 -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 { DeleteOutboundConnectionRequestFilterSensitiveLog, DeleteOutboundConnectionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteOutboundConnectionCommand, serializeAws_restJson1DeleteOutboundConnectionCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteOutboundConnectionCommand = (function (_super) {
7
- __extends(DeleteOutboundConnectionCommand, _super);
8
- function DeleteOutboundConnectionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteOutboundConnectionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteOutboundConnectionCommand.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 = "OpenSearchClient";
18
- var commandName = "DeleteOutboundConnectionCommand";
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 = "OpenSearchClient";
15
+ const commandName = "DeleteOutboundConnectionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteOutboundConnectionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteOutboundConnectionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteOutboundConnectionCommand.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_restJson1DeleteOutboundConnectionCommand(input, context);
33
- };
34
- DeleteOutboundConnectionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteOutboundConnectionCommand(output, context);
36
- };
37
- return DeleteOutboundConnectionCommand;
38
- }($Command));
39
- export { DeleteOutboundConnectionCommand };
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 { DeletePackageRequestFilterSensitiveLog, DeletePackageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeletePackageCommand, serializeAws_restJson1DeletePackageCommand, } from "../protocols/Aws_restJson1";
6
- var DeletePackageCommand = (function (_super) {
7
- __extends(DeletePackageCommand, _super);
8
- function DeletePackageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeletePackageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeletePackageCommand.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 = "OpenSearchClient";
18
- var commandName = "DeletePackageCommand";
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 = "OpenSearchClient";
15
+ const commandName = "DeletePackageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeletePackageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeletePackageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeletePackageCommand.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_restJson1DeletePackageCommand(input, context);
33
- };
34
- DeletePackageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeletePackageCommand(output, context);
36
- };
37
- return DeletePackageCommand;
38
- }($Command));
39
- export { DeletePackageCommand };
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 { DescribeDomainAutoTunesRequestFilterSensitiveLog, DescribeDomainAutoTunesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeDomainAutoTunesCommand, serializeAws_restJson1DescribeDomainAutoTunesCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeDomainAutoTunesCommand = (function (_super) {
7
- __extends(DescribeDomainAutoTunesCommand, _super);
8
- function DescribeDomainAutoTunesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeDomainAutoTunesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeDomainAutoTunesCommand.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 = "OpenSearchClient";
18
- var commandName = "DescribeDomainAutoTunesCommand";
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 = "OpenSearchClient";
15
+ const commandName = "DescribeDomainAutoTunesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeDomainAutoTunesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeDomainAutoTunesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeDomainAutoTunesCommand.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_restJson1DescribeDomainAutoTunesCommand(input, context);
33
- };
34
- DescribeDomainAutoTunesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeDomainAutoTunesCommand(output, context);
36
- };
37
- return DescribeDomainAutoTunesCommand;
38
- }($Command));
39
- export { DescribeDomainAutoTunesCommand };
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 { DescribeDomainChangeProgressRequestFilterSensitiveLog, DescribeDomainChangeProgressResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeDomainChangeProgressCommand, serializeAws_restJson1DescribeDomainChangeProgressCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeDomainChangeProgressCommand = (function (_super) {
7
- __extends(DescribeDomainChangeProgressCommand, _super);
8
- function DescribeDomainChangeProgressCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeDomainChangeProgressCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeDomainChangeProgressCommand.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 = "OpenSearchClient";
18
- var commandName = "DescribeDomainChangeProgressCommand";
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 = "OpenSearchClient";
15
+ const commandName = "DescribeDomainChangeProgressCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeDomainChangeProgressRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeDomainChangeProgressResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeDomainChangeProgressCommand.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_restJson1DescribeDomainChangeProgressCommand(input, context);
33
- };
34
- DescribeDomainChangeProgressCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeDomainChangeProgressCommand(output, context);
36
- };
37
- return DescribeDomainChangeProgressCommand;
38
- }($Command));
39
- export { DescribeDomainChangeProgressCommand };
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 { DescribeDomainRequestFilterSensitiveLog, DescribeDomainResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeDomainCommand, serializeAws_restJson1DescribeDomainCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeDomainCommand = (function (_super) {
7
- __extends(DescribeDomainCommand, _super);
8
- function DescribeDomainCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeDomainCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeDomainCommand.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 = "OpenSearchClient";
18
- var commandName = "DescribeDomainCommand";
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 = "OpenSearchClient";
15
+ const commandName = "DescribeDomainCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeDomainRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeDomainResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeDomainCommand.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_restJson1DescribeDomainCommand(input, context);
33
- };
34
- DescribeDomainCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeDomainCommand(output, context);
36
- };
37
- return DescribeDomainCommand;
38
- }($Command));
39
- export { DescribeDomainCommand };
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 { DescribeDomainConfigRequestFilterSensitiveLog, DescribeDomainConfigResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeDomainConfigCommand, serializeAws_restJson1DescribeDomainConfigCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeDomainConfigCommand = (function (_super) {
7
- __extends(DescribeDomainConfigCommand, _super);
8
- function DescribeDomainConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeDomainConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeDomainConfigCommand.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 = "OpenSearchClient";
18
- var commandName = "DescribeDomainConfigCommand";
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 = "OpenSearchClient";
15
+ const commandName = "DescribeDomainConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeDomainConfigRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeDomainConfigResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeDomainConfigCommand.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_restJson1DescribeDomainConfigCommand(input, context);
33
- };
34
- DescribeDomainConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeDomainConfigCommand(output, context);
36
- };
37
- return DescribeDomainConfigCommand;
38
- }($Command));
39
- export { DescribeDomainConfigCommand };
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 { DescribeDomainsRequestFilterSensitiveLog, DescribeDomainsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeDomainsCommand, serializeAws_restJson1DescribeDomainsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeDomainsCommand = (function (_super) {
7
- __extends(DescribeDomainsCommand, _super);
8
- function DescribeDomainsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeDomainsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeDomainsCommand.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 = "OpenSearchClient";
18
- var commandName = "DescribeDomainsCommand";
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 = "OpenSearchClient";
15
+ const commandName = "DescribeDomainsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeDomainsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeDomainsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeDomainsCommand.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_restJson1DescribeDomainsCommand(input, context);
33
- };
34
- DescribeDomainsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeDomainsCommand(output, context);
36
- };
37
- return DescribeDomainsCommand;
38
- }($Command));
39
- export { DescribeDomainsCommand };
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 { DescribeInboundConnectionsRequestFilterSensitiveLog, DescribeInboundConnectionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeInboundConnectionsCommand, serializeAws_restJson1DescribeInboundConnectionsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeInboundConnectionsCommand = (function (_super) {
7
- __extends(DescribeInboundConnectionsCommand, _super);
8
- function DescribeInboundConnectionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeInboundConnectionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeInboundConnectionsCommand.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 = "OpenSearchClient";
18
- var commandName = "DescribeInboundConnectionsCommand";
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 = "OpenSearchClient";
15
+ const commandName = "DescribeInboundConnectionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeInboundConnectionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeInboundConnectionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeInboundConnectionsCommand.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_restJson1DescribeInboundConnectionsCommand(input, context);
33
- };
34
- DescribeInboundConnectionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeInboundConnectionsCommand(output, context);
36
- };
37
- return DescribeInboundConnectionsCommand;
38
- }($Command));
39
- export { DescribeInboundConnectionsCommand };
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 { DescribeInstanceTypeLimitsRequestFilterSensitiveLog, DescribeInstanceTypeLimitsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeInstanceTypeLimitsCommand, serializeAws_restJson1DescribeInstanceTypeLimitsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeInstanceTypeLimitsCommand = (function (_super) {
7
- __extends(DescribeInstanceTypeLimitsCommand, _super);
8
- function DescribeInstanceTypeLimitsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeInstanceTypeLimitsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeInstanceTypeLimitsCommand.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 = "OpenSearchClient";
18
- var commandName = "DescribeInstanceTypeLimitsCommand";
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 = "OpenSearchClient";
15
+ const commandName = "DescribeInstanceTypeLimitsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeInstanceTypeLimitsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeInstanceTypeLimitsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeInstanceTypeLimitsCommand.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_restJson1DescribeInstanceTypeLimitsCommand(input, context);
33
- };
34
- DescribeInstanceTypeLimitsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeInstanceTypeLimitsCommand(output, context);
36
- };
37
- return DescribeInstanceTypeLimitsCommand;
38
- }($Command));
39
- export { DescribeInstanceTypeLimitsCommand };
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 { DescribeOutboundConnectionsRequestFilterSensitiveLog, DescribeOutboundConnectionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeOutboundConnectionsCommand, serializeAws_restJson1DescribeOutboundConnectionsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeOutboundConnectionsCommand = (function (_super) {
7
- __extends(DescribeOutboundConnectionsCommand, _super);
8
- function DescribeOutboundConnectionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeOutboundConnectionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeOutboundConnectionsCommand.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 = "OpenSearchClient";
18
- var commandName = "DescribeOutboundConnectionsCommand";
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 = "OpenSearchClient";
15
+ const commandName = "DescribeOutboundConnectionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeOutboundConnectionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeOutboundConnectionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeOutboundConnectionsCommand.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_restJson1DescribeOutboundConnectionsCommand(input, context);
33
- };
34
- DescribeOutboundConnectionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeOutboundConnectionsCommand(output, context);
36
- };
37
- return DescribeOutboundConnectionsCommand;
38
- }($Command));
39
- export { DescribeOutboundConnectionsCommand };
31
+ }
32
+ }