@aws-sdk/client-opensearch 3.321.1 → 3.326.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 (76) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/OpenSearch.js +2 -0
  3. package/dist-cjs/commands/DescribeDomainHealthCommand.js +45 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +22 -2
  6. package/dist-cjs/protocols/Aws_restJson1.js +81 -3
  7. package/dist-es/OpenSearch.js +2 -0
  8. package/dist-es/commands/DescribeDomainHealthCommand.js +41 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/models/models_0.js +20 -0
  11. package/dist-es/protocols/Aws_restJson1.js +76 -0
  12. package/dist-types/OpenSearch.d.ts +7 -0
  13. package/dist-types/OpenSearchClient.d.ts +3 -2
  14. package/dist-types/commands/AcceptInboundConnectionCommand.d.ts +29 -2
  15. package/dist-types/commands/AddTagsCommand.d.ts +4 -0
  16. package/dist-types/commands/AssociatePackageCommand.d.ts +20 -1
  17. package/dist-types/commands/AuthorizeVpcEndpointAccessCommand.d.ts +11 -2
  18. package/dist-types/commands/CancelServiceSoftwareUpdateCommand.d.ts +16 -1
  19. package/dist-types/commands/CreateDomainCommand.d.ts +138 -1
  20. package/dist-types/commands/CreateOutboundConnectionCommand.d.ts +30 -1
  21. package/dist-types/commands/CreatePackageCommand.d.ts +19 -0
  22. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +25 -1
  23. package/dist-types/commands/DeleteDomainCommand.d.ts +137 -1
  24. package/dist-types/commands/DeleteInboundConnectionCommand.d.ts +29 -2
  25. package/dist-types/commands/DeleteOutboundConnectionCommand.d.ts +33 -2
  26. package/dist-types/commands/DeletePackageCommand.d.ts +20 -1
  27. package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +13 -2
  28. package/dist-types/commands/DescribeDomainAutoTunesCommand.d.ts +20 -1
  29. package/dist-types/commands/DescribeDomainChangeProgressCommand.d.ts +26 -1
  30. package/dist-types/commands/DescribeDomainCommand.d.ts +137 -1
  31. package/dist-types/commands/DescribeDomainConfigCommand.d.ts +211 -1
  32. package/dist-types/commands/DescribeDomainHealthCommand.d.ts +109 -0
  33. package/dist-types/commands/DescribeDomainsCommand.d.ts +138 -0
  34. package/dist-types/commands/DescribeDryRunProgressCommand.d.ts +154 -2
  35. package/dist-types/commands/DescribeInboundConnectionsCommand.d.ts +32 -2
  36. package/dist-types/commands/DescribeInstanceTypeLimitsCommand.d.ts +38 -1
  37. package/dist-types/commands/DescribeOutboundConnectionsCommand.d.ts +36 -2
  38. package/dist-types/commands/DescribePackagesCommand.d.ts +23 -1
  39. package/dist-types/commands/DescribeReservedInstanceOfferingsCommand.d.ts +25 -2
  40. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +31 -2
  41. package/dist-types/commands/DescribeVpcEndpointsCommand.d.ts +34 -1
  42. package/dist-types/commands/DissociatePackageCommand.d.ts +20 -1
  43. package/dist-types/commands/GetCompatibleVersionsCommand.d.ts +15 -2
  44. package/dist-types/commands/GetPackageVersionHistoryCommand.d.ts +17 -3
  45. package/dist-types/commands/GetUpgradeHistoryCommand.d.ts +25 -2
  46. package/dist-types/commands/GetUpgradeStatusCommand.d.ts +10 -2
  47. package/dist-types/commands/ListDomainNamesCommand.d.ts +11 -0
  48. package/dist-types/commands/ListDomainsForPackageCommand.d.ts +23 -1
  49. package/dist-types/commands/ListInstanceTypeDetailsCommand.d.ts +25 -1
  50. package/dist-types/commands/ListPackagesForDomainCommand.d.ts +23 -1
  51. package/dist-types/commands/ListScheduledActionsCommand.d.ts +21 -2
  52. package/dist-types/commands/ListTagsCommand.d.ts +12 -1
  53. package/dist-types/commands/ListVersionsCommand.d.ts +10 -1
  54. package/dist-types/commands/ListVpcEndpointAccessCommand.d.ts +14 -2
  55. package/dist-types/commands/ListVpcEndpointsCommand.d.ts +15 -1
  56. package/dist-types/commands/ListVpcEndpointsForDomainCommand.d.ts +16 -2
  57. package/dist-types/commands/PurchaseReservedInstanceOfferingCommand.d.ts +9 -2
  58. package/dist-types/commands/RejectInboundConnectionCommand.d.ts +29 -2
  59. package/dist-types/commands/RemoveTagsCommand.d.ts +4 -0
  60. package/dist-types/commands/RevokeVpcEndpointAccessCommand.d.ts +6 -2
  61. package/dist-types/commands/StartServiceSoftwareUpdateCommand.d.ts +16 -1
  62. package/dist-types/commands/UpdateDomainConfigCommand.d.ts +228 -1
  63. package/dist-types/commands/UpdatePackageCommand.d.ts +20 -1
  64. package/dist-types/commands/UpdateScheduledActionCommand.d.ts +17 -1
  65. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +26 -2
  66. package/dist-types/commands/UpgradeDomainCommand.d.ts +18 -2
  67. package/dist-types/commands/index.d.ts +1 -0
  68. package/dist-types/models/models_0.d.ts +243 -20
  69. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  70. package/dist-types/ts3.4/OpenSearch.d.ts +17 -0
  71. package/dist-types/ts3.4/OpenSearchClient.d.ts +6 -0
  72. package/dist-types/ts3.4/commands/DescribeDomainHealthCommand.d.ts +41 -0
  73. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  74. package/dist-types/ts3.4/models/models_0.d.ts +58 -0
  75. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  76. package/package.json +16 -16
package/README.md CHANGED
@@ -358,6 +358,14 @@ DescribeDomainConfig
358
358
 
359
359
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/describedomainconfigcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainconfigcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainconfigcommandoutput.html)
360
360
 
361
+ </details>
362
+ <details>
363
+ <summary>
364
+ DescribeDomainHealth
365
+ </summary>
366
+
367
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/describedomainhealthcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainhealthcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainhealthcommandoutput.html)
368
+
361
369
  </details>
362
370
  <details>
363
371
  <summary>
@@ -20,6 +20,7 @@ const DescribeDomainAutoTunesCommand_1 = require("./commands/DescribeDomainAutoT
20
20
  const DescribeDomainChangeProgressCommand_1 = require("./commands/DescribeDomainChangeProgressCommand");
21
21
  const DescribeDomainCommand_1 = require("./commands/DescribeDomainCommand");
22
22
  const DescribeDomainConfigCommand_1 = require("./commands/DescribeDomainConfigCommand");
23
+ const DescribeDomainHealthCommand_1 = require("./commands/DescribeDomainHealthCommand");
23
24
  const DescribeDomainsCommand_1 = require("./commands/DescribeDomainsCommand");
24
25
  const DescribeDryRunProgressCommand_1 = require("./commands/DescribeDryRunProgressCommand");
25
26
  const DescribeInboundConnectionsCommand_1 = require("./commands/DescribeInboundConnectionsCommand");
@@ -74,6 +75,7 @@ const commands = {
74
75
  DescribeDomainAutoTunesCommand: DescribeDomainAutoTunesCommand_1.DescribeDomainAutoTunesCommand,
75
76
  DescribeDomainChangeProgressCommand: DescribeDomainChangeProgressCommand_1.DescribeDomainChangeProgressCommand,
76
77
  DescribeDomainConfigCommand: DescribeDomainConfigCommand_1.DescribeDomainConfigCommand,
78
+ DescribeDomainHealthCommand: DescribeDomainHealthCommand_1.DescribeDomainHealthCommand,
77
79
  DescribeDomainsCommand: DescribeDomainsCommand_1.DescribeDomainsCommand,
78
80
  DescribeDryRunProgressCommand: DescribeDryRunProgressCommand_1.DescribeDryRunProgressCommand,
79
81
  DescribeInboundConnectionsCommand: DescribeInboundConnectionsCommand_1.DescribeInboundConnectionsCommand,
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeDomainHealthCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DescribeDomainHealthCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeDomainHealthCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "OpenSearchClient";
27
+ const commandName = "DescribeDomainHealthCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_DescribeDomainHealthCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_DescribeDomainHealthCommand)(output, context);
43
+ }
44
+ }
45
+ exports.DescribeDomainHealthCommand = DescribeDomainHealthCommand;
@@ -19,6 +19,7 @@ tslib_1.__exportStar(require("./DescribeDomainAutoTunesCommand"), exports);
19
19
  tslib_1.__exportStar(require("./DescribeDomainChangeProgressCommand"), exports);
20
20
  tslib_1.__exportStar(require("./DescribeDomainCommand"), exports);
21
21
  tslib_1.__exportStar(require("./DescribeDomainConfigCommand"), exports);
22
+ tslib_1.__exportStar(require("./DescribeDomainHealthCommand"), exports);
22
23
  tslib_1.__exportStar(require("./DescribeDomainsCommand"), exports);
23
24
  tslib_1.__exportStar(require("./DescribeDryRunProgressCommand"), exports);
24
25
  tslib_1.__exportStar(require("./DescribeInboundConnectionsCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdvancedSecurityOptionsInputFilterSensitiveLog = exports.SAMLOptionsInputFilterSensitiveLog = exports.MasterUserOptionsFilterSensitiveLog = exports.SlotNotAvailableException = exports.DryRunMode = exports.ScheduleAt = exports.ScheduledBy = exports.EngineType = exports.UpgradeStatus = exports.UpgradeStep = exports.VpcEndpointErrorCode = exports.ReservedInstancePaymentOption = exports.DescribePackagesFilterName = exports.InvalidPaginationTokenException = exports.RollbackOnDisable = exports.OverallChangeStatus = exports.AutoTuneType = exports.ScheduledAutoTuneSeverityType = exports.ScheduledAutoTuneActionType = exports.VpcEndpointStatus = exports.PackageStatus = exports.OutboundConnectionStatusCode = exports.ResourceAlreadyExistsException = exports.InvalidTypeException = exports.AutoTuneState = exports.LogType = exports.VolumeType = exports.TLSSecurityPolicy = exports.OpenSearchWarmPartitionInstanceType = exports.OpenSearchPartitionInstanceType = exports.TimeUnit = exports.AutoTuneDesiredState = exports.DeploymentStatus = exports.PrincipalType = exports.ConflictException = exports.PackageType = exports.DomainPackageStatus = exports.ValidationException = exports.InternalException = exports.BaseException = exports.ActionType = exports.ActionStatus = exports.ActionSeverity = exports.OptionState = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.DisabledOperationException = exports.InboundConnectionStatusCode = exports.ConnectionMode = void 0;
4
- exports.UpdateDomainConfigRequestFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = void 0;
3
+ exports.DryRunMode = exports.ScheduleAt = exports.ScheduledBy = exports.EngineType = exports.UpgradeStatus = exports.UpgradeStep = exports.VpcEndpointErrorCode = exports.ReservedInstancePaymentOption = exports.DescribePackagesFilterName = exports.InvalidPaginationTokenException = exports.MasterNodeStatus = exports.ZoneStatus = exports.DomainState = exports.DomainHealth = exports.RollbackOnDisable = exports.OverallChangeStatus = exports.AutoTuneType = exports.ScheduledAutoTuneSeverityType = exports.ScheduledAutoTuneActionType = exports.VpcEndpointStatus = exports.PackageStatus = exports.OutboundConnectionStatusCode = exports.ResourceAlreadyExistsException = exports.InvalidTypeException = exports.AutoTuneState = exports.LogType = exports.VolumeType = exports.TLSSecurityPolicy = exports.OpenSearchWarmPartitionInstanceType = exports.OpenSearchPartitionInstanceType = exports.TimeUnit = exports.AutoTuneDesiredState = exports.DeploymentStatus = exports.PrincipalType = exports.ConflictException = exports.PackageType = exports.DomainPackageStatus = exports.ValidationException = exports.InternalException = exports.BaseException = exports.ActionType = exports.ActionStatus = exports.ActionSeverity = exports.OptionState = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.DisabledOperationException = exports.InboundConnectionStatusCode = exports.ConnectionMode = void 0;
4
+ exports.UpdateDomainConfigRequestFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.AdvancedSecurityOptionsInputFilterSensitiveLog = exports.SAMLOptionsInputFilterSensitiveLog = exports.MasterUserOptionsFilterSensitiveLog = exports.SlotNotAvailableException = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const OpenSearchServiceException_1 = require("./OpenSearchServiceException");
7
7
  exports.ConnectionMode = {
@@ -381,6 +381,26 @@ exports.RollbackOnDisable = {
381
381
  DEFAULT_ROLLBACK: "DEFAULT_ROLLBACK",
382
382
  NO_ROLLBACK: "NO_ROLLBACK",
383
383
  };
384
+ exports.DomainHealth = {
385
+ Green: "Green",
386
+ NotAvailable: "NotAvailable",
387
+ Red: "Red",
388
+ Yellow: "Yellow",
389
+ };
390
+ exports.DomainState = {
391
+ Active: "Active",
392
+ NotAvailable: "NotAvailable",
393
+ Processing: "Processing",
394
+ };
395
+ exports.ZoneStatus = {
396
+ Active: "Active",
397
+ NotAvailable: "NotAvailable",
398
+ StandBy: "StandBy",
399
+ };
400
+ exports.MasterNodeStatus = {
401
+ Available: "Available",
402
+ UnAvailable: "UnAvailable",
403
+ };
384
404
  class InvalidPaginationTokenException extends OpenSearchServiceException_1.OpenSearchServiceException {
385
405
  constructor(opts) {
386
406
  super({
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateScheduledActionCommand = exports.se_UpdatePackageCommand = exports.se_UpdateDomainConfigCommand = exports.se_StartServiceSoftwareUpdateCommand = exports.se_RevokeVpcEndpointAccessCommand = exports.se_RemoveTagsCommand = exports.se_RejectInboundConnectionCommand = exports.se_PurchaseReservedInstanceOfferingCommand = exports.se_ListVpcEndpointsForDomainCommand = exports.se_ListVpcEndpointsCommand = exports.se_ListVpcEndpointAccessCommand = exports.se_ListVersionsCommand = exports.se_ListTagsCommand = exports.se_ListScheduledActionsCommand = exports.se_ListPackagesForDomainCommand = exports.se_ListInstanceTypeDetailsCommand = exports.se_ListDomainsForPackageCommand = exports.se_ListDomainNamesCommand = exports.se_GetUpgradeStatusCommand = exports.se_GetUpgradeHistoryCommand = exports.se_GetPackageVersionHistoryCommand = exports.se_GetCompatibleVersionsCommand = exports.se_DissociatePackageCommand = exports.se_DescribeVpcEndpointsCommand = exports.se_DescribeReservedInstancesCommand = exports.se_DescribeReservedInstanceOfferingsCommand = exports.se_DescribePackagesCommand = exports.se_DescribeOutboundConnectionsCommand = exports.se_DescribeInstanceTypeLimitsCommand = exports.se_DescribeInboundConnectionsCommand = exports.se_DescribeDryRunProgressCommand = exports.se_DescribeDomainsCommand = exports.se_DescribeDomainConfigCommand = exports.se_DescribeDomainChangeProgressCommand = exports.se_DescribeDomainAutoTunesCommand = exports.se_DescribeDomainCommand = exports.se_DeleteVpcEndpointCommand = exports.se_DeletePackageCommand = exports.se_DeleteOutboundConnectionCommand = exports.se_DeleteInboundConnectionCommand = exports.se_DeleteDomainCommand = exports.se_CreateVpcEndpointCommand = exports.se_CreatePackageCommand = exports.se_CreateOutboundConnectionCommand = exports.se_CreateDomainCommand = exports.se_CancelServiceSoftwareUpdateCommand = exports.se_AuthorizeVpcEndpointAccessCommand = exports.se_AssociatePackageCommand = exports.se_AddTagsCommand = exports.se_AcceptInboundConnectionCommand = void 0;
4
- exports.de_UpdateDomainConfigCommand = exports.de_StartServiceSoftwareUpdateCommand = exports.de_RevokeVpcEndpointAccessCommand = exports.de_RemoveTagsCommand = exports.de_RejectInboundConnectionCommand = exports.de_PurchaseReservedInstanceOfferingCommand = exports.de_ListVpcEndpointsForDomainCommand = exports.de_ListVpcEndpointsCommand = exports.de_ListVpcEndpointAccessCommand = exports.de_ListVersionsCommand = exports.de_ListTagsCommand = exports.de_ListScheduledActionsCommand = exports.de_ListPackagesForDomainCommand = exports.de_ListInstanceTypeDetailsCommand = exports.de_ListDomainsForPackageCommand = exports.de_ListDomainNamesCommand = exports.de_GetUpgradeStatusCommand = exports.de_GetUpgradeHistoryCommand = exports.de_GetPackageVersionHistoryCommand = exports.de_GetCompatibleVersionsCommand = exports.de_DissociatePackageCommand = exports.de_DescribeVpcEndpointsCommand = exports.de_DescribeReservedInstancesCommand = exports.de_DescribeReservedInstanceOfferingsCommand = exports.de_DescribePackagesCommand = exports.de_DescribeOutboundConnectionsCommand = exports.de_DescribeInstanceTypeLimitsCommand = exports.de_DescribeInboundConnectionsCommand = exports.de_DescribeDryRunProgressCommand = exports.de_DescribeDomainsCommand = exports.de_DescribeDomainConfigCommand = exports.de_DescribeDomainChangeProgressCommand = exports.de_DescribeDomainAutoTunesCommand = exports.de_DescribeDomainCommand = exports.de_DeleteVpcEndpointCommand = exports.de_DeletePackageCommand = exports.de_DeleteOutboundConnectionCommand = exports.de_DeleteInboundConnectionCommand = exports.de_DeleteDomainCommand = exports.de_CreateVpcEndpointCommand = exports.de_CreatePackageCommand = exports.de_CreateOutboundConnectionCommand = exports.de_CreateDomainCommand = exports.de_CancelServiceSoftwareUpdateCommand = exports.de_AuthorizeVpcEndpointAccessCommand = exports.de_AssociatePackageCommand = exports.de_AddTagsCommand = exports.de_AcceptInboundConnectionCommand = exports.se_UpgradeDomainCommand = exports.se_UpdateVpcEndpointCommand = void 0;
5
- exports.de_UpgradeDomainCommand = exports.de_UpdateVpcEndpointCommand = exports.de_UpdateScheduledActionCommand = exports.de_UpdatePackageCommand = void 0;
3
+ exports.se_UpdatePackageCommand = exports.se_UpdateDomainConfigCommand = exports.se_StartServiceSoftwareUpdateCommand = exports.se_RevokeVpcEndpointAccessCommand = exports.se_RemoveTagsCommand = exports.se_RejectInboundConnectionCommand = exports.se_PurchaseReservedInstanceOfferingCommand = exports.se_ListVpcEndpointsForDomainCommand = exports.se_ListVpcEndpointsCommand = exports.se_ListVpcEndpointAccessCommand = exports.se_ListVersionsCommand = exports.se_ListTagsCommand = exports.se_ListScheduledActionsCommand = exports.se_ListPackagesForDomainCommand = exports.se_ListInstanceTypeDetailsCommand = exports.se_ListDomainsForPackageCommand = exports.se_ListDomainNamesCommand = exports.se_GetUpgradeStatusCommand = exports.se_GetUpgradeHistoryCommand = exports.se_GetPackageVersionHistoryCommand = exports.se_GetCompatibleVersionsCommand = exports.se_DissociatePackageCommand = exports.se_DescribeVpcEndpointsCommand = exports.se_DescribeReservedInstancesCommand = exports.se_DescribeReservedInstanceOfferingsCommand = exports.se_DescribePackagesCommand = exports.se_DescribeOutboundConnectionsCommand = exports.se_DescribeInstanceTypeLimitsCommand = exports.se_DescribeInboundConnectionsCommand = exports.se_DescribeDryRunProgressCommand = exports.se_DescribeDomainsCommand = exports.se_DescribeDomainHealthCommand = exports.se_DescribeDomainConfigCommand = exports.se_DescribeDomainChangeProgressCommand = exports.se_DescribeDomainAutoTunesCommand = exports.se_DescribeDomainCommand = exports.se_DeleteVpcEndpointCommand = exports.se_DeletePackageCommand = exports.se_DeleteOutboundConnectionCommand = exports.se_DeleteInboundConnectionCommand = exports.se_DeleteDomainCommand = exports.se_CreateVpcEndpointCommand = exports.se_CreatePackageCommand = exports.se_CreateOutboundConnectionCommand = exports.se_CreateDomainCommand = exports.se_CancelServiceSoftwareUpdateCommand = exports.se_AuthorizeVpcEndpointAccessCommand = exports.se_AssociatePackageCommand = exports.se_AddTagsCommand = exports.se_AcceptInboundConnectionCommand = void 0;
4
+ exports.de_RevokeVpcEndpointAccessCommand = exports.de_RemoveTagsCommand = exports.de_RejectInboundConnectionCommand = exports.de_PurchaseReservedInstanceOfferingCommand = exports.de_ListVpcEndpointsForDomainCommand = exports.de_ListVpcEndpointsCommand = exports.de_ListVpcEndpointAccessCommand = exports.de_ListVersionsCommand = exports.de_ListTagsCommand = exports.de_ListScheduledActionsCommand = exports.de_ListPackagesForDomainCommand = exports.de_ListInstanceTypeDetailsCommand = exports.de_ListDomainsForPackageCommand = exports.de_ListDomainNamesCommand = exports.de_GetUpgradeStatusCommand = exports.de_GetUpgradeHistoryCommand = exports.de_GetPackageVersionHistoryCommand = exports.de_GetCompatibleVersionsCommand = exports.de_DissociatePackageCommand = exports.de_DescribeVpcEndpointsCommand = exports.de_DescribeReservedInstancesCommand = exports.de_DescribeReservedInstanceOfferingsCommand = exports.de_DescribePackagesCommand = exports.de_DescribeOutboundConnectionsCommand = exports.de_DescribeInstanceTypeLimitsCommand = exports.de_DescribeInboundConnectionsCommand = exports.de_DescribeDryRunProgressCommand = exports.de_DescribeDomainsCommand = exports.de_DescribeDomainHealthCommand = exports.de_DescribeDomainConfigCommand = exports.de_DescribeDomainChangeProgressCommand = exports.de_DescribeDomainAutoTunesCommand = exports.de_DescribeDomainCommand = exports.de_DeleteVpcEndpointCommand = exports.de_DeletePackageCommand = exports.de_DeleteOutboundConnectionCommand = exports.de_DeleteInboundConnectionCommand = exports.de_DeleteDomainCommand = exports.de_CreateVpcEndpointCommand = exports.de_CreatePackageCommand = exports.de_CreateOutboundConnectionCommand = exports.de_CreateDomainCommand = exports.de_CancelServiceSoftwareUpdateCommand = exports.de_AuthorizeVpcEndpointAccessCommand = exports.de_AssociatePackageCommand = exports.de_AddTagsCommand = exports.de_AcceptInboundConnectionCommand = exports.se_UpgradeDomainCommand = exports.se_UpdateVpcEndpointCommand = exports.se_UpdateScheduledActionCommand = void 0;
5
+ exports.de_UpgradeDomainCommand = exports.de_UpdateVpcEndpointCommand = exports.de_UpdateScheduledActionCommand = exports.de_UpdatePackageCommand = exports.de_UpdateDomainConfigCommand = exports.de_StartServiceSoftwareUpdateCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const models_0_1 = require("../models/models_0");
@@ -392,6 +392,24 @@ const se_DescribeDomainConfigCommand = async (input, context) => {
392
392
  });
393
393
  };
394
394
  exports.se_DescribeDomainConfigCommand = se_DescribeDomainConfigCommand;
395
+ const se_DescribeDomainHealthCommand = async (input, context) => {
396
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
397
+ const headers = {};
398
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
399
+ "/2021-01-01/opensearch/domain/{DomainName}/health";
400
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
401
+ let body;
402
+ return new protocol_http_1.HttpRequest({
403
+ protocol,
404
+ hostname,
405
+ port,
406
+ method: "GET",
407
+ headers,
408
+ path: resolvedPath,
409
+ body,
410
+ });
411
+ };
412
+ exports.se_DescribeDomainHealthCommand = se_DescribeDomainHealthCommand;
395
413
  const se_DescribeDomainsCommand = async (input, context) => {
396
414
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
397
415
  const headers = {
@@ -751,6 +769,8 @@ const se_ListInstanceTypeDetailsCommand = async (input, context) => {
751
769
  domainName: [, input.DomainName],
752
770
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
753
771
  nextToken: [, input.NextToken],
772
+ retrieveAZs: [() => input.RetrieveAZs !== void 0, () => input.RetrieveAZs.toString()],
773
+ instanceType: [, input.InstanceType],
754
774
  });
755
775
  let body;
756
776
  return new protocol_http_1.HttpRequest({
@@ -1966,6 +1986,64 @@ const de_DescribeDomainConfigCommandError = async (output, context) => {
1966
1986
  });
1967
1987
  }
1968
1988
  };
1989
+ const de_DescribeDomainHealthCommand = async (output, context) => {
1990
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1991
+ return de_DescribeDomainHealthCommandError(output, context);
1992
+ }
1993
+ const contents = (0, smithy_client_1.map)({
1994
+ $metadata: deserializeMetadata(output),
1995
+ });
1996
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1997
+ const doc = (0, smithy_client_1.take)(data, {
1998
+ ActiveAvailabilityZoneCount: smithy_client_1.expectString,
1999
+ AvailabilityZoneCount: smithy_client_1.expectString,
2000
+ ClusterHealth: smithy_client_1.expectString,
2001
+ DataNodeCount: smithy_client_1.expectString,
2002
+ DedicatedMaster: smithy_client_1.expectBoolean,
2003
+ DomainState: smithy_client_1.expectString,
2004
+ EnvironmentInformation: smithy_client_1._json,
2005
+ MasterEligibleNodeCount: smithy_client_1.expectString,
2006
+ MasterNode: smithy_client_1.expectString,
2007
+ StandByAvailabilityZoneCount: smithy_client_1.expectString,
2008
+ TotalShards: smithy_client_1.expectString,
2009
+ TotalUnAssignedShards: smithy_client_1.expectString,
2010
+ WarmNodeCount: smithy_client_1.expectString,
2011
+ });
2012
+ Object.assign(contents, doc);
2013
+ return contents;
2014
+ };
2015
+ exports.de_DescribeDomainHealthCommand = de_DescribeDomainHealthCommand;
2016
+ const de_DescribeDomainHealthCommandError = async (output, context) => {
2017
+ const parsedOutput = {
2018
+ ...output,
2019
+ body: await parseErrorBody(output.body, context),
2020
+ };
2021
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2022
+ switch (errorCode) {
2023
+ case "BaseException":
2024
+ case "com.amazonaws.opensearch#BaseException":
2025
+ throw await de_BaseExceptionRes(parsedOutput, context);
2026
+ case "DisabledOperationException":
2027
+ case "com.amazonaws.opensearch#DisabledOperationException":
2028
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2029
+ case "InternalException":
2030
+ case "com.amazonaws.opensearch#InternalException":
2031
+ throw await de_InternalExceptionRes(parsedOutput, context);
2032
+ case "ResourceNotFoundException":
2033
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
2034
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2035
+ case "ValidationException":
2036
+ case "com.amazonaws.opensearch#ValidationException":
2037
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2038
+ default:
2039
+ const parsedBody = parsedOutput.body;
2040
+ return throwDefaultError({
2041
+ output,
2042
+ parsedBody,
2043
+ errorCode,
2044
+ });
2045
+ }
2046
+ };
1969
2047
  const de_DescribeDomainsCommand = async (output, context) => {
1970
2048
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1971
2049
  return de_DescribeDomainsCommandError(output, context);
@@ -17,6 +17,7 @@ import { DescribeDomainAutoTunesCommand, } from "./commands/DescribeDomainAutoTu
17
17
  import { DescribeDomainChangeProgressCommand, } from "./commands/DescribeDomainChangeProgressCommand";
18
18
  import { DescribeDomainCommand, } from "./commands/DescribeDomainCommand";
19
19
  import { DescribeDomainConfigCommand, } from "./commands/DescribeDomainConfigCommand";
20
+ import { DescribeDomainHealthCommand, } from "./commands/DescribeDomainHealthCommand";
20
21
  import { DescribeDomainsCommand, } from "./commands/DescribeDomainsCommand";
21
22
  import { DescribeDryRunProgressCommand, } from "./commands/DescribeDryRunProgressCommand";
22
23
  import { DescribeInboundConnectionsCommand, } from "./commands/DescribeInboundConnectionsCommand";
@@ -71,6 +72,7 @@ const commands = {
71
72
  DescribeDomainAutoTunesCommand,
72
73
  DescribeDomainChangeProgressCommand,
73
74
  DescribeDomainConfigCommand,
75
+ DescribeDomainHealthCommand,
74
76
  DescribeDomainsCommand,
75
77
  DescribeDryRunProgressCommand,
76
78
  DescribeInboundConnectionsCommand,
@@ -0,0 +1,41 @@
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 { de_DescribeDomainHealthCommand, se_DescribeDomainHealthCommand } from "../protocols/Aws_restJson1";
5
+ export class DescribeDomainHealthCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeDomainHealthCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "OpenSearchClient";
24
+ const commandName = "DescribeDomainHealthCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_DescribeDomainHealthCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_DescribeDomainHealthCommand(output, context);
40
+ }
41
+ }
@@ -16,6 +16,7 @@ export * from "./DescribeDomainAutoTunesCommand";
16
16
  export * from "./DescribeDomainChangeProgressCommand";
17
17
  export * from "./DescribeDomainCommand";
18
18
  export * from "./DescribeDomainConfigCommand";
19
+ export * from "./DescribeDomainHealthCommand";
19
20
  export * from "./DescribeDomainsCommand";
20
21
  export * from "./DescribeDryRunProgressCommand";
21
22
  export * from "./DescribeInboundConnectionsCommand";
@@ -367,6 +367,26 @@ export const RollbackOnDisable = {
367
367
  DEFAULT_ROLLBACK: "DEFAULT_ROLLBACK",
368
368
  NO_ROLLBACK: "NO_ROLLBACK",
369
369
  };
370
+ export const DomainHealth = {
371
+ Green: "Green",
372
+ NotAvailable: "NotAvailable",
373
+ Red: "Red",
374
+ Yellow: "Yellow",
375
+ };
376
+ export const DomainState = {
377
+ Active: "Active",
378
+ NotAvailable: "NotAvailable",
379
+ Processing: "Processing",
380
+ };
381
+ export const ZoneStatus = {
382
+ Active: "Active",
383
+ NotAvailable: "NotAvailable",
384
+ StandBy: "StandBy",
385
+ };
386
+ export const MasterNodeStatus = {
387
+ Available: "Available",
388
+ UnAvailable: "UnAvailable",
389
+ };
370
390
  export class InvalidPaginationTokenException extends __BaseException {
371
391
  constructor(opts) {
372
392
  super({
@@ -369,6 +369,23 @@ export const se_DescribeDomainConfigCommand = async (input, context) => {
369
369
  body,
370
370
  });
371
371
  };
372
+ export const se_DescribeDomainHealthCommand = async (input, context) => {
373
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
374
+ const headers = {};
375
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
376
+ "/2021-01-01/opensearch/domain/{DomainName}/health";
377
+ resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
378
+ let body;
379
+ return new __HttpRequest({
380
+ protocol,
381
+ hostname,
382
+ port,
383
+ method: "GET",
384
+ headers,
385
+ path: resolvedPath,
386
+ body,
387
+ });
388
+ };
372
389
  export const se_DescribeDomainsCommand = async (input, context) => {
373
390
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
374
391
  const headers = {
@@ -712,6 +729,8 @@ export const se_ListInstanceTypeDetailsCommand = async (input, context) => {
712
729
  domainName: [, input.DomainName],
713
730
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
714
731
  nextToken: [, input.NextToken],
732
+ retrieveAZs: [() => input.RetrieveAZs !== void 0, () => input.RetrieveAZs.toString()],
733
+ instanceType: [, input.InstanceType],
715
734
  });
716
735
  let body;
717
736
  return new __HttpRequest({
@@ -1891,6 +1910,63 @@ const de_DescribeDomainConfigCommandError = async (output, context) => {
1891
1910
  });
1892
1911
  }
1893
1912
  };
1913
+ export const de_DescribeDomainHealthCommand = async (output, context) => {
1914
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1915
+ return de_DescribeDomainHealthCommandError(output, context);
1916
+ }
1917
+ const contents = map({
1918
+ $metadata: deserializeMetadata(output),
1919
+ });
1920
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1921
+ const doc = take(data, {
1922
+ ActiveAvailabilityZoneCount: __expectString,
1923
+ AvailabilityZoneCount: __expectString,
1924
+ ClusterHealth: __expectString,
1925
+ DataNodeCount: __expectString,
1926
+ DedicatedMaster: __expectBoolean,
1927
+ DomainState: __expectString,
1928
+ EnvironmentInformation: _json,
1929
+ MasterEligibleNodeCount: __expectString,
1930
+ MasterNode: __expectString,
1931
+ StandByAvailabilityZoneCount: __expectString,
1932
+ TotalShards: __expectString,
1933
+ TotalUnAssignedShards: __expectString,
1934
+ WarmNodeCount: __expectString,
1935
+ });
1936
+ Object.assign(contents, doc);
1937
+ return contents;
1938
+ };
1939
+ const de_DescribeDomainHealthCommandError = async (output, context) => {
1940
+ const parsedOutput = {
1941
+ ...output,
1942
+ body: await parseErrorBody(output.body, context),
1943
+ };
1944
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1945
+ switch (errorCode) {
1946
+ case "BaseException":
1947
+ case "com.amazonaws.opensearch#BaseException":
1948
+ throw await de_BaseExceptionRes(parsedOutput, context);
1949
+ case "DisabledOperationException":
1950
+ case "com.amazonaws.opensearch#DisabledOperationException":
1951
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
1952
+ case "InternalException":
1953
+ case "com.amazonaws.opensearch#InternalException":
1954
+ throw await de_InternalExceptionRes(parsedOutput, context);
1955
+ case "ResourceNotFoundException":
1956
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
1957
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1958
+ case "ValidationException":
1959
+ case "com.amazonaws.opensearch#ValidationException":
1960
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1961
+ default:
1962
+ const parsedBody = parsedOutput.body;
1963
+ return throwDefaultError({
1964
+ output,
1965
+ parsedBody,
1966
+ errorCode,
1967
+ });
1968
+ }
1969
+ };
1894
1970
  export const de_DescribeDomainsCommand = async (output, context) => {
1895
1971
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1896
1972
  return de_DescribeDomainsCommandError(output, context);
@@ -17,6 +17,7 @@ import { DescribeDomainAutoTunesCommandInput, DescribeDomainAutoTunesCommandOutp
17
17
  import { DescribeDomainChangeProgressCommandInput, DescribeDomainChangeProgressCommandOutput } from "./commands/DescribeDomainChangeProgressCommand";
18
18
  import { DescribeDomainCommandInput, DescribeDomainCommandOutput } from "./commands/DescribeDomainCommand";
19
19
  import { DescribeDomainConfigCommandInput, DescribeDomainConfigCommandOutput } from "./commands/DescribeDomainConfigCommand";
20
+ import { DescribeDomainHealthCommandInput, DescribeDomainHealthCommandOutput } from "./commands/DescribeDomainHealthCommand";
20
21
  import { DescribeDomainsCommandInput, DescribeDomainsCommandOutput } from "./commands/DescribeDomainsCommand";
21
22
  import { DescribeDryRunProgressCommandInput, DescribeDryRunProgressCommandOutput } from "./commands/DescribeDryRunProgressCommand";
22
23
  import { DescribeInboundConnectionsCommandInput, DescribeInboundConnectionsCommandOutput } from "./commands/DescribeInboundConnectionsCommand";
@@ -161,6 +162,12 @@ export interface OpenSearch {
161
162
  describeDomainConfig(args: DescribeDomainConfigCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDomainConfigCommandOutput>;
162
163
  describeDomainConfig(args: DescribeDomainConfigCommandInput, cb: (err: any, data?: DescribeDomainConfigCommandOutput) => void): void;
163
164
  describeDomainConfig(args: DescribeDomainConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDomainConfigCommandOutput) => void): void;
165
+ /**
166
+ * @see {@link DescribeDomainHealthCommand}
167
+ */
168
+ describeDomainHealth(args: DescribeDomainHealthCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDomainHealthCommandOutput>;
169
+ describeDomainHealth(args: DescribeDomainHealthCommandInput, cb: (err: any, data?: DescribeDomainHealthCommandOutput) => void): void;
170
+ describeDomainHealth(args: DescribeDomainHealthCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDomainHealthCommandOutput) => void): void;
164
171
  /**
165
172
  * @see {@link DescribeDomainsCommand}
166
173
  */
@@ -25,6 +25,7 @@ import { DescribeDomainAutoTunesCommandInput, DescribeDomainAutoTunesCommandOutp
25
25
  import { DescribeDomainChangeProgressCommandInput, DescribeDomainChangeProgressCommandOutput } from "./commands/DescribeDomainChangeProgressCommand";
26
26
  import { DescribeDomainCommandInput, DescribeDomainCommandOutput } from "./commands/DescribeDomainCommand";
27
27
  import { DescribeDomainConfigCommandInput, DescribeDomainConfigCommandOutput } from "./commands/DescribeDomainConfigCommand";
28
+ import { DescribeDomainHealthCommandInput, DescribeDomainHealthCommandOutput } from "./commands/DescribeDomainHealthCommand";
28
29
  import { DescribeDomainsCommandInput, DescribeDomainsCommandOutput } from "./commands/DescribeDomainsCommand";
29
30
  import { DescribeDryRunProgressCommandInput, DescribeDryRunProgressCommandOutput } from "./commands/DescribeDryRunProgressCommand";
30
31
  import { DescribeInboundConnectionsCommandInput, DescribeInboundConnectionsCommandOutput } from "./commands/DescribeInboundConnectionsCommand";
@@ -63,11 +64,11 @@ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, Endpoi
63
64
  /**
64
65
  * @public
65
66
  */
66
- export type ServiceInputTypes = AcceptInboundConnectionCommandInput | AddTagsCommandInput | AssociatePackageCommandInput | AuthorizeVpcEndpointAccessCommandInput | CancelServiceSoftwareUpdateCommandInput | CreateDomainCommandInput | CreateOutboundConnectionCommandInput | CreatePackageCommandInput | CreateVpcEndpointCommandInput | DeleteDomainCommandInput | DeleteInboundConnectionCommandInput | DeleteOutboundConnectionCommandInput | DeletePackageCommandInput | DeleteVpcEndpointCommandInput | DescribeDomainAutoTunesCommandInput | DescribeDomainChangeProgressCommandInput | DescribeDomainCommandInput | DescribeDomainConfigCommandInput | DescribeDomainsCommandInput | DescribeDryRunProgressCommandInput | DescribeInboundConnectionsCommandInput | DescribeInstanceTypeLimitsCommandInput | DescribeOutboundConnectionsCommandInput | DescribePackagesCommandInput | DescribeReservedInstanceOfferingsCommandInput | DescribeReservedInstancesCommandInput | DescribeVpcEndpointsCommandInput | DissociatePackageCommandInput | GetCompatibleVersionsCommandInput | GetPackageVersionHistoryCommandInput | GetUpgradeHistoryCommandInput | GetUpgradeStatusCommandInput | ListDomainNamesCommandInput | ListDomainsForPackageCommandInput | ListInstanceTypeDetailsCommandInput | ListPackagesForDomainCommandInput | ListScheduledActionsCommandInput | ListTagsCommandInput | ListVersionsCommandInput | ListVpcEndpointAccessCommandInput | ListVpcEndpointsCommandInput | ListVpcEndpointsForDomainCommandInput | PurchaseReservedInstanceOfferingCommandInput | RejectInboundConnectionCommandInput | RemoveTagsCommandInput | RevokeVpcEndpointAccessCommandInput | StartServiceSoftwareUpdateCommandInput | UpdateDomainConfigCommandInput | UpdatePackageCommandInput | UpdateScheduledActionCommandInput | UpdateVpcEndpointCommandInput | UpgradeDomainCommandInput;
67
+ export type ServiceInputTypes = AcceptInboundConnectionCommandInput | AddTagsCommandInput | AssociatePackageCommandInput | AuthorizeVpcEndpointAccessCommandInput | CancelServiceSoftwareUpdateCommandInput | CreateDomainCommandInput | CreateOutboundConnectionCommandInput | CreatePackageCommandInput | CreateVpcEndpointCommandInput | DeleteDomainCommandInput | DeleteInboundConnectionCommandInput | DeleteOutboundConnectionCommandInput | DeletePackageCommandInput | DeleteVpcEndpointCommandInput | DescribeDomainAutoTunesCommandInput | DescribeDomainChangeProgressCommandInput | DescribeDomainCommandInput | DescribeDomainConfigCommandInput | DescribeDomainHealthCommandInput | DescribeDomainsCommandInput | DescribeDryRunProgressCommandInput | DescribeInboundConnectionsCommandInput | DescribeInstanceTypeLimitsCommandInput | DescribeOutboundConnectionsCommandInput | DescribePackagesCommandInput | DescribeReservedInstanceOfferingsCommandInput | DescribeReservedInstancesCommandInput | DescribeVpcEndpointsCommandInput | DissociatePackageCommandInput | GetCompatibleVersionsCommandInput | GetPackageVersionHistoryCommandInput | GetUpgradeHistoryCommandInput | GetUpgradeStatusCommandInput | ListDomainNamesCommandInput | ListDomainsForPackageCommandInput | ListInstanceTypeDetailsCommandInput | ListPackagesForDomainCommandInput | ListScheduledActionsCommandInput | ListTagsCommandInput | ListVersionsCommandInput | ListVpcEndpointAccessCommandInput | ListVpcEndpointsCommandInput | ListVpcEndpointsForDomainCommandInput | PurchaseReservedInstanceOfferingCommandInput | RejectInboundConnectionCommandInput | RemoveTagsCommandInput | RevokeVpcEndpointAccessCommandInput | StartServiceSoftwareUpdateCommandInput | UpdateDomainConfigCommandInput | UpdatePackageCommandInput | UpdateScheduledActionCommandInput | UpdateVpcEndpointCommandInput | UpgradeDomainCommandInput;
67
68
  /**
68
69
  * @public
69
70
  */
70
- export type ServiceOutputTypes = AcceptInboundConnectionCommandOutput | AddTagsCommandOutput | AssociatePackageCommandOutput | AuthorizeVpcEndpointAccessCommandOutput | CancelServiceSoftwareUpdateCommandOutput | CreateDomainCommandOutput | CreateOutboundConnectionCommandOutput | CreatePackageCommandOutput | CreateVpcEndpointCommandOutput | DeleteDomainCommandOutput | DeleteInboundConnectionCommandOutput | DeleteOutboundConnectionCommandOutput | DeletePackageCommandOutput | DeleteVpcEndpointCommandOutput | DescribeDomainAutoTunesCommandOutput | DescribeDomainChangeProgressCommandOutput | DescribeDomainCommandOutput | DescribeDomainConfigCommandOutput | DescribeDomainsCommandOutput | DescribeDryRunProgressCommandOutput | DescribeInboundConnectionsCommandOutput | DescribeInstanceTypeLimitsCommandOutput | DescribeOutboundConnectionsCommandOutput | DescribePackagesCommandOutput | DescribeReservedInstanceOfferingsCommandOutput | DescribeReservedInstancesCommandOutput | DescribeVpcEndpointsCommandOutput | DissociatePackageCommandOutput | GetCompatibleVersionsCommandOutput | GetPackageVersionHistoryCommandOutput | GetUpgradeHistoryCommandOutput | GetUpgradeStatusCommandOutput | ListDomainNamesCommandOutput | ListDomainsForPackageCommandOutput | ListInstanceTypeDetailsCommandOutput | ListPackagesForDomainCommandOutput | ListScheduledActionsCommandOutput | ListTagsCommandOutput | ListVersionsCommandOutput | ListVpcEndpointAccessCommandOutput | ListVpcEndpointsCommandOutput | ListVpcEndpointsForDomainCommandOutput | PurchaseReservedInstanceOfferingCommandOutput | RejectInboundConnectionCommandOutput | RemoveTagsCommandOutput | RevokeVpcEndpointAccessCommandOutput | StartServiceSoftwareUpdateCommandOutput | UpdateDomainConfigCommandOutput | UpdatePackageCommandOutput | UpdateScheduledActionCommandOutput | UpdateVpcEndpointCommandOutput | UpgradeDomainCommandOutput;
71
+ export type ServiceOutputTypes = AcceptInboundConnectionCommandOutput | AddTagsCommandOutput | AssociatePackageCommandOutput | AuthorizeVpcEndpointAccessCommandOutput | CancelServiceSoftwareUpdateCommandOutput | CreateDomainCommandOutput | CreateOutboundConnectionCommandOutput | CreatePackageCommandOutput | CreateVpcEndpointCommandOutput | DeleteDomainCommandOutput | DeleteInboundConnectionCommandOutput | DeleteOutboundConnectionCommandOutput | DeletePackageCommandOutput | DeleteVpcEndpointCommandOutput | DescribeDomainAutoTunesCommandOutput | DescribeDomainChangeProgressCommandOutput | DescribeDomainCommandOutput | DescribeDomainConfigCommandOutput | DescribeDomainHealthCommandOutput | DescribeDomainsCommandOutput | DescribeDryRunProgressCommandOutput | DescribeInboundConnectionsCommandOutput | DescribeInstanceTypeLimitsCommandOutput | DescribeOutboundConnectionsCommandOutput | DescribePackagesCommandOutput | DescribeReservedInstanceOfferingsCommandOutput | DescribeReservedInstancesCommandOutput | DescribeVpcEndpointsCommandOutput | DissociatePackageCommandOutput | GetCompatibleVersionsCommandOutput | GetPackageVersionHistoryCommandOutput | GetUpgradeHistoryCommandOutput | GetUpgradeStatusCommandOutput | ListDomainNamesCommandOutput | ListDomainsForPackageCommandOutput | ListInstanceTypeDetailsCommandOutput | ListPackagesForDomainCommandOutput | ListScheduledActionsCommandOutput | ListTagsCommandOutput | ListVersionsCommandOutput | ListVpcEndpointAccessCommandOutput | ListVpcEndpointsCommandOutput | ListVpcEndpointsForDomainCommandOutput | PurchaseReservedInstanceOfferingCommandOutput | RejectInboundConnectionCommandOutput | RemoveTagsCommandOutput | RevokeVpcEndpointAccessCommandOutput | StartServiceSoftwareUpdateCommandOutput | UpdateDomainConfigCommandOutput | UpdatePackageCommandOutput | UpdateScheduledActionCommandOutput | UpdateVpcEndpointCommandOutput | UpgradeDomainCommandOutput;
71
72
  /**
72
73
  * @public
73
74
  */
@@ -33,6 +33,31 @@ export interface AcceptInboundConnectionCommandOutput extends AcceptInboundConne
33
33
  * };
34
34
  * const command = new AcceptInboundConnectionCommand(input);
35
35
  * const response = await client.send(command);
36
+ * // { // AcceptInboundConnectionResponse
37
+ * // Connection: { // InboundConnection
38
+ * // LocalDomainInfo: { // DomainInformationContainer
39
+ * // AWSDomainInformation: { // AWSDomainInformation
40
+ * // OwnerId: "STRING_VALUE",
41
+ * // DomainName: "STRING_VALUE", // required
42
+ * // Region: "STRING_VALUE",
43
+ * // },
44
+ * // },
45
+ * // RemoteDomainInfo: {
46
+ * // AWSDomainInformation: {
47
+ * // OwnerId: "STRING_VALUE",
48
+ * // DomainName: "STRING_VALUE", // required
49
+ * // Region: "STRING_VALUE",
50
+ * // },
51
+ * // },
52
+ * // ConnectionId: "STRING_VALUE",
53
+ * // ConnectionStatus: { // InboundConnectionStatus
54
+ * // StatusCode: "PENDING_ACCEPTANCE" || "APPROVED" || "PROVISIONING" || "ACTIVE" || "REJECTING" || "REJECTED" || "DELETING" || "DELETED",
55
+ * // Message: "STRING_VALUE",
56
+ * // },
57
+ * // ConnectionMode: "DIRECT" || "VPC_ENDPOINT",
58
+ * // },
59
+ * // };
60
+ *
36
61
  * ```
37
62
  *
38
63
  * @param AcceptInboundConnectionCommandInput - {@link AcceptInboundConnectionCommandInput}
@@ -42,14 +67,16 @@ export interface AcceptInboundConnectionCommandOutput extends AcceptInboundConne
42
67
  * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
43
68
  *
44
69
  * @throws {@link DisabledOperationException} (client fault)
45
- * <p>An error occured because the client wanted to access a not supported operation.</p>
70
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
46
71
  *
47
72
  * @throws {@link LimitExceededException} (client fault)
48
73
  * <p>An exception for trying to create more than the allowed number of resources or sub-resources.</p>
49
74
  *
50
75
  * @throws {@link ResourceNotFoundException} (client fault)
51
- * <p>An exception for accessing or deleting a resource that does not exist..</p>
76
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
52
77
  *
78
+ * @throws {@link OpenSearchServiceException}
79
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
53
80
  *
54
81
  */
55
82
  export declare class AcceptInboundConnectionCommand extends $Command<AcceptInboundConnectionCommandInput, AcceptInboundConnectionCommandOutput, OpenSearchClientResolvedConfig> {
@@ -39,6 +39,8 @@ export interface AddTagsCommandOutput extends __MetadataBearer {
39
39
  * };
40
40
  * const command = new AddTagsCommand(input);
41
41
  * const response = await client.send(command);
42
+ * // {};
43
+ *
42
44
  * ```
43
45
  *
44
46
  * @param AddTagsCommandInput - {@link AddTagsCommandInput}
@@ -59,6 +61,8 @@ export interface AddTagsCommandOutput extends __MetadataBearer {
59
61
  * @throws {@link ValidationException} (client fault)
60
62
  * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
61
63
  *
64
+ * @throws {@link OpenSearchServiceException}
65
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
62
66
  *
63
67
  */
64
68
  export declare class AddTagsCommand extends $Command<AddTagsCommandInput, AddTagsCommandOutput, OpenSearchClientResolvedConfig> {
@@ -34,6 +34,23 @@ export interface AssociatePackageCommandOutput extends AssociatePackageResponse,
34
34
  * };
35
35
  * const command = new AssociatePackageCommand(input);
36
36
  * const response = await client.send(command);
37
+ * // { // AssociatePackageResponse
38
+ * // DomainPackageDetails: { // DomainPackageDetails
39
+ * // PackageID: "STRING_VALUE",
40
+ * // PackageName: "STRING_VALUE",
41
+ * // PackageType: "TXT-DICTIONARY",
42
+ * // LastUpdated: new Date("TIMESTAMP"),
43
+ * // DomainName: "STRING_VALUE",
44
+ * // DomainPackageStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ACTIVE" || "DISSOCIATING" || "DISSOCIATION_FAILED",
45
+ * // PackageVersion: "STRING_VALUE",
46
+ * // ReferencePath: "STRING_VALUE",
47
+ * // ErrorDetails: { // ErrorDetails
48
+ * // ErrorType: "STRING_VALUE",
49
+ * // ErrorMessage: "STRING_VALUE",
50
+ * // },
51
+ * // },
52
+ * // };
53
+ *
37
54
  * ```
38
55
  *
39
56
  * @param AssociatePackageCommandInput - {@link AssociatePackageCommandInput}
@@ -55,11 +72,13 @@ export interface AssociatePackageCommandOutput extends AssociatePackageResponse,
55
72
  * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
56
73
  *
57
74
  * @throws {@link ResourceNotFoundException} (client fault)
58
- * <p>An exception for accessing or deleting a resource that does not exist..</p>
75
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
59
76
  *
60
77
  * @throws {@link ValidationException} (client fault)
61
78
  * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
62
79
  *
80
+ * @throws {@link OpenSearchServiceException}
81
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
63
82
  *
64
83
  */
65
84
  export declare class AssociatePackageCommand extends $Command<AssociatePackageCommandInput, AssociatePackageCommandOutput, OpenSearchClientResolvedConfig> {