@aws-sdk/client-opensearch 3.36.0 → 3.39.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 (121) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/OpenSearch.js +0 -14
  3. package/dist-cjs/OpenSearchClient.js +0 -19
  4. package/dist-cjs/commands/AcceptInboundConnectionCommand.js +0 -24
  5. package/dist-cjs/commands/AddTagsCommand.js +0 -28
  6. package/dist-cjs/commands/AssociatePackageCommand.js +0 -24
  7. package/dist-cjs/commands/CancelServiceSoftwareUpdateCommand.js +0 -26
  8. package/dist-cjs/commands/CreateDomainCommand.js +0 -27
  9. package/dist-cjs/commands/CreateOutboundConnectionCommand.js +0 -24
  10. package/dist-cjs/commands/CreatePackageCommand.js +0 -24
  11. package/dist-cjs/commands/DeleteDomainCommand.js +0 -26
  12. package/dist-cjs/commands/DeleteInboundConnectionCommand.js +0 -24
  13. package/dist-cjs/commands/DeleteOutboundConnectionCommand.js +0 -24
  14. package/dist-cjs/commands/DeletePackageCommand.js +0 -24
  15. package/dist-cjs/commands/DescribeDomainAutoTunesCommand.js +0 -26
  16. package/dist-cjs/commands/DescribeDomainCommand.js +0 -26
  17. package/dist-cjs/commands/DescribeDomainConfigCommand.js +0 -26
  18. package/dist-cjs/commands/DescribeDomainsCommand.js +0 -26
  19. package/dist-cjs/commands/DescribeInboundConnectionsCommand.js +0 -24
  20. package/dist-cjs/commands/DescribeInstanceTypeLimitsCommand.js +0 -31
  21. package/dist-cjs/commands/DescribeOutboundConnectionsCommand.js +0 -24
  22. package/dist-cjs/commands/DescribePackagesCommand.js +0 -26
  23. package/dist-cjs/commands/DescribeReservedInstanceOfferingsCommand.js +0 -24
  24. package/dist-cjs/commands/DescribeReservedInstancesCommand.js +0 -24
  25. package/dist-cjs/commands/DissociatePackageCommand.js +0 -24
  26. package/dist-cjs/commands/GetCompatibleVersionsCommand.js +0 -31
  27. package/dist-cjs/commands/GetPackageVersionHistoryCommand.js +0 -24
  28. package/dist-cjs/commands/GetUpgradeHistoryCommand.js +0 -24
  29. package/dist-cjs/commands/GetUpgradeStatusCommand.js +0 -25
  30. package/dist-cjs/commands/ListDomainNamesCommand.js +0 -24
  31. package/dist-cjs/commands/ListDomainsForPackageCommand.js +0 -24
  32. package/dist-cjs/commands/ListInstanceTypeDetailsCommand.js +0 -7
  33. package/dist-cjs/commands/ListPackagesForDomainCommand.js +0 -24
  34. package/dist-cjs/commands/ListTagsCommand.js +0 -24
  35. package/dist-cjs/commands/ListVersionsCommand.js +0 -24
  36. package/dist-cjs/commands/PurchaseReservedInstanceOfferingCommand.js +0 -24
  37. package/dist-cjs/commands/RejectInboundConnectionCommand.js +0 -24
  38. package/dist-cjs/commands/RemoveTagsCommand.js +0 -24
  39. package/dist-cjs/commands/StartServiceSoftwareUpdateCommand.js +0 -24
  40. package/dist-cjs/commands/UpdateDomainConfigCommand.js +0 -26
  41. package/dist-cjs/commands/UpdatePackageCommand.js +0 -24
  42. package/dist-cjs/commands/UpgradeDomainCommand.js +0 -25
  43. package/dist-cjs/commands/index.js +42 -0
  44. package/dist-cjs/endpoints.js +6 -1
  45. package/dist-cjs/index.js +4 -54
  46. package/dist-cjs/models/models_0.js +0 -480
  47. package/dist-cjs/pagination/DescribeDomainAutoTunesPaginator.js +0 -10
  48. package/dist-cjs/pagination/DescribeInboundConnectionsPaginator.js +0 -10
  49. package/dist-cjs/pagination/DescribeOutboundConnectionsPaginator.js +0 -10
  50. package/dist-cjs/pagination/DescribePackagesPaginator.js +0 -10
  51. package/dist-cjs/pagination/DescribeReservedInstanceOfferingsPaginator.js +0 -10
  52. package/dist-cjs/pagination/DescribeReservedInstancesPaginator.js +0 -10
  53. package/dist-cjs/pagination/GetPackageVersionHistoryPaginator.js +0 -10
  54. package/dist-cjs/pagination/GetUpgradeHistoryPaginator.js +0 -10
  55. package/dist-cjs/pagination/ListDomainsForPackagePaginator.js +0 -10
  56. package/dist-cjs/pagination/ListInstanceTypeDetailsPaginator.js +0 -10
  57. package/dist-cjs/pagination/ListPackagesForDomainPaginator.js +0 -10
  58. package/dist-cjs/pagination/ListVersionsPaginator.js +0 -10
  59. package/dist-cjs/pagination/index.js +16 -0
  60. package/dist-cjs/protocols/Aws_restJson1.js +0 -5
  61. package/dist-cjs/runtimeConfig.browser.js +1 -5
  62. package/dist-cjs/runtimeConfig.js +1 -5
  63. package/dist-cjs/runtimeConfig.native.js +0 -3
  64. package/dist-cjs/runtimeConfig.shared.js +0 -3
  65. package/dist-es/commands/index.js +39 -0
  66. package/dist-es/endpoints.js +6 -1
  67. package/dist-es/index.js +4 -54
  68. package/dist-es/pagination/index.js +13 -0
  69. package/dist-types/commands/index.d.ts +39 -0
  70. package/dist-types/index.d.ts +4 -54
  71. package/dist-types/pagination/index.d.ts +13 -0
  72. package/dist-types/ts3.4/OpenSearch.d.ts +39 -167
  73. package/dist-types/ts3.4/OpenSearchClient.d.ts +24 -100
  74. package/dist-types/ts3.4/commands/AcceptInboundConnectionCommand.d.ts +2 -20
  75. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +2 -24
  76. package/dist-types/ts3.4/commands/AssociatePackageCommand.d.ts +2 -20
  77. package/dist-types/ts3.4/commands/CancelServiceSoftwareUpdateCommand.d.ts +2 -22
  78. package/dist-types/ts3.4/commands/CreateDomainCommand.d.ts +2 -23
  79. package/dist-types/ts3.4/commands/CreateOutboundConnectionCommand.d.ts +2 -20
  80. package/dist-types/ts3.4/commands/CreatePackageCommand.d.ts +2 -20
  81. package/dist-types/ts3.4/commands/DeleteDomainCommand.d.ts +2 -22
  82. package/dist-types/ts3.4/commands/DeleteInboundConnectionCommand.d.ts +2 -20
  83. package/dist-types/ts3.4/commands/DeleteOutboundConnectionCommand.d.ts +2 -20
  84. package/dist-types/ts3.4/commands/DeletePackageCommand.d.ts +2 -20
  85. package/dist-types/ts3.4/commands/DescribeDomainAutoTunesCommand.d.ts +2 -22
  86. package/dist-types/ts3.4/commands/DescribeDomainCommand.d.ts +2 -22
  87. package/dist-types/ts3.4/commands/DescribeDomainConfigCommand.d.ts +2 -22
  88. package/dist-types/ts3.4/commands/DescribeDomainsCommand.d.ts +2 -22
  89. package/dist-types/ts3.4/commands/DescribeInboundConnectionsCommand.d.ts +2 -20
  90. package/dist-types/ts3.4/commands/DescribeInstanceTypeLimitsCommand.d.ts +2 -27
  91. package/dist-types/ts3.4/commands/DescribeOutboundConnectionsCommand.d.ts +2 -20
  92. package/dist-types/ts3.4/commands/DescribePackagesCommand.d.ts +2 -22
  93. package/dist-types/ts3.4/commands/DescribeReservedInstanceOfferingsCommand.d.ts +2 -20
  94. package/dist-types/ts3.4/commands/DescribeReservedInstancesCommand.d.ts +2 -20
  95. package/dist-types/ts3.4/commands/DissociatePackageCommand.d.ts +2 -20
  96. package/dist-types/ts3.4/commands/GetCompatibleVersionsCommand.d.ts +2 -27
  97. package/dist-types/ts3.4/commands/GetPackageVersionHistoryCommand.d.ts +2 -20
  98. package/dist-types/ts3.4/commands/GetUpgradeHistoryCommand.d.ts +2 -20
  99. package/dist-types/ts3.4/commands/GetUpgradeStatusCommand.d.ts +2 -21
  100. package/dist-types/ts3.4/commands/ListDomainNamesCommand.d.ts +2 -20
  101. package/dist-types/ts3.4/commands/ListDomainsForPackageCommand.d.ts +2 -20
  102. package/dist-types/ts3.4/commands/ListInstanceTypeDetailsCommand.d.ts +1 -3
  103. package/dist-types/ts3.4/commands/ListPackagesForDomainCommand.d.ts +2 -20
  104. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -20
  105. package/dist-types/ts3.4/commands/ListVersionsCommand.d.ts +2 -20
  106. package/dist-types/ts3.4/commands/PurchaseReservedInstanceOfferingCommand.d.ts +2 -20
  107. package/dist-types/ts3.4/commands/RejectInboundConnectionCommand.d.ts +2 -20
  108. package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +2 -20
  109. package/dist-types/ts3.4/commands/StartServiceSoftwareUpdateCommand.d.ts +2 -20
  110. package/dist-types/ts3.4/commands/UpdateDomainConfigCommand.d.ts +2 -22
  111. package/dist-types/ts3.4/commands/UpdatePackageCommand.d.ts +2 -20
  112. package/dist-types/ts3.4/commands/UpgradeDomainCommand.d.ts +2 -21
  113. package/dist-types/ts3.4/commands/index.d.ts +39 -0
  114. package/dist-types/ts3.4/index.d.ts +4 -54
  115. package/dist-types/ts3.4/models/models_0.d.ts +740 -3284
  116. package/dist-types/ts3.4/pagination/index.d.ts +13 -0
  117. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  118. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  119. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  120. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  121. package/package.json +32 -32
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>List all supported versions of OpenSearch and Elasticsearch.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { OpenSearchClient, ListVersionsCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
14
- * // const { OpenSearchClient, ListVersionsCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
15
- * const client = new OpenSearchClient(config);
16
- * const command = new ListVersionsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListVersionsCommandInput} for command's `input` shape.
21
- * @see {@link ListVersionsCommandOutput} for command's `response` shape.
22
- * @see {@link OpenSearchClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListVersionsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Allows you to purchase reserved OpenSearch instances.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { OpenSearchClient, PurchaseReservedInstanceOfferingCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
14
- * // const { OpenSearchClient, PurchaseReservedInstanceOfferingCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
15
- * const client = new OpenSearchClient(config);
16
- * const command = new PurchaseReservedInstanceOfferingCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link PurchaseReservedInstanceOfferingCommandInput} for command's `input` shape.
21
- * @see {@link PurchaseReservedInstanceOfferingCommandOutput} for command's `response` shape.
22
- * @see {@link OpenSearchClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class PurchaseReservedInstanceOfferingCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Allows the remote domain owner to reject an inbound cross-cluster connection request.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { OpenSearchClient, RejectInboundConnectionCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
14
- * // const { OpenSearchClient, RejectInboundConnectionCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
15
- * const client = new OpenSearchClient(config);
16
- * const command = new RejectInboundConnectionCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link RejectInboundConnectionCommandInput} for command's `input` shape.
21
- * @see {@link RejectInboundConnectionCommandOutput} for command's `response` shape.
22
- * @see {@link OpenSearchClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class RejectInboundConnectionCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Removes the specified set of tags from the given domain.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { OpenSearchClient, RemoveTagsCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
14
- * // const { OpenSearchClient, RemoveTagsCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
15
- * const client = new OpenSearchClient(config);
16
- * const command = new RemoveTagsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link RemoveTagsCommandInput} for command's `input` shape.
21
- * @see {@link RemoveTagsCommandOutput} for command's `response` shape.
22
- * @see {@link OpenSearchClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class RemoveTagsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Schedules a service software update for an Amazon OpenSearch Service domain.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { OpenSearchClient, StartServiceSoftwareUpdateCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
14
- * // const { OpenSearchClient, StartServiceSoftwareUpdateCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
15
- * const client = new OpenSearchClient(config);
16
- * const command = new StartServiceSoftwareUpdateCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link StartServiceSoftwareUpdateCommandInput} for command's `input` shape.
21
- * @see {@link StartServiceSoftwareUpdateCommandOutput} for command's `response` shape.
22
- * @see {@link OpenSearchClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class StartServiceSoftwareUpdateCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Modifies the cluster configuration of the specified domain, such as setting the instance type
10
- * and the number of instances.
11
- * </p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { OpenSearchClient, UpdateDomainConfigCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
16
- * // const { OpenSearchClient, UpdateDomainConfigCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
17
- * const client = new OpenSearchClient(config);
18
- * const command = new UpdateDomainConfigCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link UpdateDomainConfigCommandInput} for command's `input` shape.
23
- * @see {@link UpdateDomainConfigCommandOutput} for command's `response` shape.
24
- * @see {@link OpenSearchClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class UpdateDomainConfigCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Updates a package for use with Amazon OpenSearch Service domains.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { OpenSearchClient, UpdatePackageCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
14
- * // const { OpenSearchClient, UpdatePackageCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
15
- * const client = new OpenSearchClient(config);
16
- * const command = new UpdatePackageCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link UpdatePackageCommandInput} for command's `input` shape.
21
- * @see {@link UpdatePackageCommandOutput} for command's `response` shape.
22
- * @see {@link OpenSearchClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class UpdatePackageCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Allows you to either upgrade your domain or perform an upgrade eligibility check to a compatible version of OpenSearch or Elasticsearch.
10
- * </p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { OpenSearchClient, UpgradeDomainCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
15
- * // const { OpenSearchClient, UpgradeDomainCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
16
- * const client = new OpenSearchClient(config);
17
- * const command = new UpgradeDomainCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link UpgradeDomainCommandInput} for command's `input` shape.
22
- * @see {@link UpgradeDomainCommandOutput} for command's `response` shape.
23
- * @see {@link OpenSearchClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class UpgradeDomainCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./AcceptInboundConnectionCommand"), exports);
5
+ tslib_1.__exportStar(require("./AddTagsCommand"), exports);
6
+ tslib_1.__exportStar(require("./AssociatePackageCommand"), exports);
7
+ tslib_1.__exportStar(require("./CancelServiceSoftwareUpdateCommand"), exports);
8
+ tslib_1.__exportStar(require("./CreateDomainCommand"), exports);
9
+ tslib_1.__exportStar(require("./CreateOutboundConnectionCommand"), exports);
10
+ tslib_1.__exportStar(require("./CreatePackageCommand"), exports);
11
+ tslib_1.__exportStar(require("./DeleteDomainCommand"), exports);
12
+ tslib_1.__exportStar(require("./DeleteInboundConnectionCommand"), exports);
13
+ tslib_1.__exportStar(require("./DeleteOutboundConnectionCommand"), exports);
14
+ tslib_1.__exportStar(require("./DeletePackageCommand"), exports);
15
+ tslib_1.__exportStar(require("./DescribeDomainAutoTunesCommand"), exports);
16
+ tslib_1.__exportStar(require("./DescribeDomainCommand"), exports);
17
+ tslib_1.__exportStar(require("./DescribeDomainConfigCommand"), exports);
18
+ tslib_1.__exportStar(require("./DescribeDomainsCommand"), exports);
19
+ tslib_1.__exportStar(require("./DescribeInboundConnectionsCommand"), exports);
20
+ tslib_1.__exportStar(require("./DescribeInstanceTypeLimitsCommand"), exports);
21
+ tslib_1.__exportStar(require("./DescribeOutboundConnectionsCommand"), exports);
22
+ tslib_1.__exportStar(require("./DescribePackagesCommand"), exports);
23
+ tslib_1.__exportStar(require("./DescribeReservedInstanceOfferingsCommand"), exports);
24
+ tslib_1.__exportStar(require("./DescribeReservedInstancesCommand"), exports);
25
+ tslib_1.__exportStar(require("./DissociatePackageCommand"), exports);
26
+ tslib_1.__exportStar(require("./GetCompatibleVersionsCommand"), exports);
27
+ tslib_1.__exportStar(require("./GetPackageVersionHistoryCommand"), exports);
28
+ tslib_1.__exportStar(require("./GetUpgradeHistoryCommand"), exports);
29
+ tslib_1.__exportStar(require("./GetUpgradeStatusCommand"), exports);
30
+ tslib_1.__exportStar(require("./ListDomainNamesCommand"), exports);
31
+ tslib_1.__exportStar(require("./ListDomainsForPackageCommand"), exports);
32
+ tslib_1.__exportStar(require("./ListInstanceTypeDetailsCommand"), exports);
33
+ tslib_1.__exportStar(require("./ListPackagesForDomainCommand"), exports);
34
+ tslib_1.__exportStar(require("./ListTagsCommand"), exports);
35
+ tslib_1.__exportStar(require("./ListVersionsCommand"), exports);
36
+ tslib_1.__exportStar(require("./PurchaseReservedInstanceOfferingCommand"), exports);
37
+ tslib_1.__exportStar(require("./RejectInboundConnectionCommand"), exports);
38
+ tslib_1.__exportStar(require("./RemoveTagsCommand"), exports);
39
+ tslib_1.__exportStar(require("./StartServiceSoftwareUpdateCommand"), exports);
40
+ tslib_1.__exportStar(require("./UpdateDomainConfigCommand"), exports);
41
+ tslib_1.__exportStar(require("./UpdatePackageCommand"), exports);
42
+ tslib_1.__exportStar(require("./UpgradeDomainCommand"), exports);
@@ -34,22 +34,27 @@ const partitionHash = {
34
34
  "us-west-1",
35
35
  "us-west-2",
36
36
  ],
37
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
37
38
  hostname: "es.{region}.amazonaws.com",
38
39
  },
39
40
  "aws-cn": {
40
41
  regions: ["cn-north-1", "cn-northwest-1"],
42
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
41
43
  hostname: "es.{region}.amazonaws.com.cn",
42
44
  },
43
45
  "aws-iso": {
44
- regions: ["us-iso-east-1"],
46
+ regions: ["us-iso-east-1", "us-iso-west-1"],
47
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
45
48
  hostname: "es.{region}.c2s.ic.gov",
46
49
  },
47
50
  "aws-iso-b": {
48
51
  regions: ["us-isob-east-1"],
52
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
49
53
  hostname: "es.{region}.sc2s.sgov.gov",
50
54
  },
51
55
  "aws-us-gov": {
52
56
  regions: ["fips", "us-gov-east-1", "us-gov-west-1"],
57
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
53
58
  hostname: "es.{region}.amazonaws.com",
54
59
  },
55
60
  };
package/dist-cjs/index.js CHANGED
@@ -1,58 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./OpenSearchClient"), exports);
5
4
  tslib_1.__exportStar(require("./OpenSearch"), exports);
6
- tslib_1.__exportStar(require("./commands/AcceptInboundConnectionCommand"), exports);
7
- tslib_1.__exportStar(require("./commands/AddTagsCommand"), exports);
8
- tslib_1.__exportStar(require("./commands/AssociatePackageCommand"), exports);
9
- tslib_1.__exportStar(require("./commands/CancelServiceSoftwareUpdateCommand"), exports);
10
- tslib_1.__exportStar(require("./commands/CreateDomainCommand"), exports);
11
- tslib_1.__exportStar(require("./commands/CreateOutboundConnectionCommand"), exports);
12
- tslib_1.__exportStar(require("./commands/CreatePackageCommand"), exports);
13
- tslib_1.__exportStar(require("./commands/DeleteDomainCommand"), exports);
14
- tslib_1.__exportStar(require("./commands/DeleteInboundConnectionCommand"), exports);
15
- tslib_1.__exportStar(require("./commands/DeleteOutboundConnectionCommand"), exports);
16
- tslib_1.__exportStar(require("./commands/DeletePackageCommand"), exports);
17
- tslib_1.__exportStar(require("./commands/DescribeDomainCommand"), exports);
18
- tslib_1.__exportStar(require("./commands/DescribeDomainAutoTunesCommand"), exports);
19
- tslib_1.__exportStar(require("./pagination/DescribeDomainAutoTunesPaginator"), exports);
20
- tslib_1.__exportStar(require("./commands/DescribeDomainConfigCommand"), exports);
21
- tslib_1.__exportStar(require("./commands/DescribeDomainsCommand"), exports);
22
- tslib_1.__exportStar(require("./commands/DescribeInboundConnectionsCommand"), exports);
23
- tslib_1.__exportStar(require("./pagination/DescribeInboundConnectionsPaginator"), exports);
24
- tslib_1.__exportStar(require("./commands/DescribeInstanceTypeLimitsCommand"), exports);
25
- tslib_1.__exportStar(require("./commands/DescribeOutboundConnectionsCommand"), exports);
26
- tslib_1.__exportStar(require("./pagination/DescribeOutboundConnectionsPaginator"), exports);
27
- tslib_1.__exportStar(require("./commands/DescribePackagesCommand"), exports);
28
- tslib_1.__exportStar(require("./pagination/DescribePackagesPaginator"), exports);
29
- tslib_1.__exportStar(require("./commands/DescribeReservedInstanceOfferingsCommand"), exports);
30
- tslib_1.__exportStar(require("./pagination/DescribeReservedInstanceOfferingsPaginator"), exports);
31
- tslib_1.__exportStar(require("./commands/DescribeReservedInstancesCommand"), exports);
32
- tslib_1.__exportStar(require("./pagination/DescribeReservedInstancesPaginator"), exports);
33
- tslib_1.__exportStar(require("./commands/DissociatePackageCommand"), exports);
34
- tslib_1.__exportStar(require("./commands/GetCompatibleVersionsCommand"), exports);
35
- tslib_1.__exportStar(require("./commands/GetPackageVersionHistoryCommand"), exports);
36
- tslib_1.__exportStar(require("./pagination/GetPackageVersionHistoryPaginator"), exports);
37
- tslib_1.__exportStar(require("./commands/GetUpgradeHistoryCommand"), exports);
38
- tslib_1.__exportStar(require("./pagination/GetUpgradeHistoryPaginator"), exports);
39
- tslib_1.__exportStar(require("./commands/GetUpgradeStatusCommand"), exports);
40
- tslib_1.__exportStar(require("./commands/ListDomainNamesCommand"), exports);
41
- tslib_1.__exportStar(require("./commands/ListDomainsForPackageCommand"), exports);
42
- tslib_1.__exportStar(require("./pagination/ListDomainsForPackagePaginator"), exports);
43
- tslib_1.__exportStar(require("./commands/ListInstanceTypeDetailsCommand"), exports);
44
- tslib_1.__exportStar(require("./pagination/ListInstanceTypeDetailsPaginator"), exports);
45
- tslib_1.__exportStar(require("./commands/ListPackagesForDomainCommand"), exports);
46
- tslib_1.__exportStar(require("./pagination/ListPackagesForDomainPaginator"), exports);
47
- tslib_1.__exportStar(require("./commands/ListTagsCommand"), exports);
48
- tslib_1.__exportStar(require("./commands/ListVersionsCommand"), exports);
49
- tslib_1.__exportStar(require("./pagination/ListVersionsPaginator"), exports);
50
- tslib_1.__exportStar(require("./commands/PurchaseReservedInstanceOfferingCommand"), exports);
51
- tslib_1.__exportStar(require("./commands/RejectInboundConnectionCommand"), exports);
52
- tslib_1.__exportStar(require("./commands/RemoveTagsCommand"), exports);
53
- tslib_1.__exportStar(require("./commands/StartServiceSoftwareUpdateCommand"), exports);
54
- tslib_1.__exportStar(require("./commands/UpdateDomainConfigCommand"), exports);
55
- tslib_1.__exportStar(require("./commands/UpdatePackageCommand"), exports);
56
- tslib_1.__exportStar(require("./commands/UpgradeDomainCommand"), exports);
57
- tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
58
- tslib_1.__exportStar(require("./models/index"), exports);
5
+ tslib_1.__exportStar(require("./OpenSearchClient"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);