@aws-sdk/client-opensearch 3.430.0 → 3.432.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 (42) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/OpenSearch.js +6 -0
  3. package/dist-cjs/commands/GetDomainMaintenanceStatusCommand.js +51 -0
  4. package/dist-cjs/commands/ListDomainMaintenancesCommand.js +51 -0
  5. package/dist-cjs/commands/StartDomainMaintenanceCommand.js +51 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/endpoint/ruleset.js +3 -3
  8. package/dist-cjs/models/models_0.js +14 -2
  9. package/dist-cjs/pagination/ListDomainMaintenancesPaginator.js +29 -0
  10. package/dist-cjs/pagination/index.js +1 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +238 -3
  12. package/dist-es/OpenSearch.js +6 -0
  13. package/dist-es/commands/GetDomainMaintenanceStatusCommand.js +47 -0
  14. package/dist-es/commands/ListDomainMaintenancesCommand.js +47 -0
  15. package/dist-es/commands/StartDomainMaintenanceCommand.js +47 -0
  16. package/dist-es/commands/index.js +3 -0
  17. package/dist-es/endpoint/ruleset.js +3 -3
  18. package/dist-es/models/models_0.js +12 -0
  19. package/dist-es/pagination/ListDomainMaintenancesPaginator.js +25 -0
  20. package/dist-es/pagination/index.js +1 -0
  21. package/dist-es/protocols/Aws_restJson1.js +229 -0
  22. package/dist-types/OpenSearch.d.ts +21 -0
  23. package/dist-types/OpenSearchClient.d.ts +5 -2
  24. package/dist-types/commands/GetDomainMaintenanceStatusCommand.d.ts +94 -0
  25. package/dist-types/commands/ListDomainMaintenancesCommand.d.ts +104 -0
  26. package/dist-types/commands/StartDomainMaintenanceCommand.d.ts +91 -0
  27. package/dist-types/commands/index.d.ts +3 -0
  28. package/dist-types/models/models_0.d.ts +215 -2
  29. package/dist-types/pagination/ListDomainMaintenancesPaginator.d.ts +7 -0
  30. package/dist-types/pagination/index.d.ts +1 -0
  31. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  32. package/dist-types/ts3.4/OpenSearch.d.ts +51 -0
  33. package/dist-types/ts3.4/OpenSearchClient.d.ts +18 -0
  34. package/dist-types/ts3.4/commands/GetDomainMaintenanceStatusCommand.d.ts +42 -0
  35. package/dist-types/ts3.4/commands/ListDomainMaintenancesCommand.d.ts +42 -0
  36. package/dist-types/ts3.4/commands/StartDomainMaintenanceCommand.d.ts +42 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +57 -0
  39. package/dist-types/ts3.4/pagination/ListDomainMaintenancesPaginator.d.ts +11 -0
  40. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  41. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  42. package/package.json +4 -4
package/README.md CHANGED
@@ -459,6 +459,14 @@ GetCompatibleVersions
459
459
 
460
460
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/getcompatibleversionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/getcompatibleversionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/getcompatibleversionscommandoutput.html)
461
461
 
462
+ </details>
463
+ <details>
464
+ <summary>
465
+ GetDomainMaintenanceStatus
466
+ </summary>
467
+
468
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/getdomainmaintenancestatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/getdomainmaintenancestatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/getdomainmaintenancestatuscommandoutput.html)
469
+
462
470
  </details>
463
471
  <details>
464
472
  <summary>
@@ -483,6 +491,14 @@ GetUpgradeStatus
483
491
 
484
492
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/getupgradestatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/getupgradestatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/getupgradestatuscommandoutput.html)
485
493
 
494
+ </details>
495
+ <details>
496
+ <summary>
497
+ ListDomainMaintenances
498
+ </summary>
499
+
500
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/listdomainmaintenancescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/listdomainmaintenancescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/listdomainmaintenancescommandoutput.html)
501
+
486
502
  </details>
487
503
  <details>
488
504
  <summary>
@@ -595,6 +611,14 @@ RevokeVpcEndpointAccess
595
611
 
596
612
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/revokevpcendpointaccesscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/revokevpcendpointaccesscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/revokevpcendpointaccesscommandoutput.html)
597
613
 
614
+ </details>
615
+ <details>
616
+ <summary>
617
+ StartDomainMaintenance
618
+ </summary>
619
+
620
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/startdomainmaintenancecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/startdomainmaintenancecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/startdomainmaintenancecommandoutput.html)
621
+
598
622
  </details>
599
623
  <details>
600
624
  <summary>
@@ -33,9 +33,11 @@ const DescribeReservedInstancesCommand_1 = require("./commands/DescribeReservedI
33
33
  const DescribeVpcEndpointsCommand_1 = require("./commands/DescribeVpcEndpointsCommand");
34
34
  const DissociatePackageCommand_1 = require("./commands/DissociatePackageCommand");
35
35
  const GetCompatibleVersionsCommand_1 = require("./commands/GetCompatibleVersionsCommand");
36
+ const GetDomainMaintenanceStatusCommand_1 = require("./commands/GetDomainMaintenanceStatusCommand");
36
37
  const GetPackageVersionHistoryCommand_1 = require("./commands/GetPackageVersionHistoryCommand");
37
38
  const GetUpgradeHistoryCommand_1 = require("./commands/GetUpgradeHistoryCommand");
38
39
  const GetUpgradeStatusCommand_1 = require("./commands/GetUpgradeStatusCommand");
40
+ const ListDomainMaintenancesCommand_1 = require("./commands/ListDomainMaintenancesCommand");
39
41
  const ListDomainNamesCommand_1 = require("./commands/ListDomainNamesCommand");
40
42
  const ListDomainsForPackageCommand_1 = require("./commands/ListDomainsForPackageCommand");
41
43
  const ListInstanceTypeDetailsCommand_1 = require("./commands/ListInstanceTypeDetailsCommand");
@@ -50,6 +52,7 @@ const PurchaseReservedInstanceOfferingCommand_1 = require("./commands/PurchaseRe
50
52
  const RejectInboundConnectionCommand_1 = require("./commands/RejectInboundConnectionCommand");
51
53
  const RemoveTagsCommand_1 = require("./commands/RemoveTagsCommand");
52
54
  const RevokeVpcEndpointAccessCommand_1 = require("./commands/RevokeVpcEndpointAccessCommand");
55
+ const StartDomainMaintenanceCommand_1 = require("./commands/StartDomainMaintenanceCommand");
53
56
  const StartServiceSoftwareUpdateCommand_1 = require("./commands/StartServiceSoftwareUpdateCommand");
54
57
  const UpdateDomainConfigCommand_1 = require("./commands/UpdateDomainConfigCommand");
55
58
  const UpdatePackageCommand_1 = require("./commands/UpdatePackageCommand");
@@ -89,9 +92,11 @@ const commands = {
89
92
  DescribeVpcEndpointsCommand: DescribeVpcEndpointsCommand_1.DescribeVpcEndpointsCommand,
90
93
  DissociatePackageCommand: DissociatePackageCommand_1.DissociatePackageCommand,
91
94
  GetCompatibleVersionsCommand: GetCompatibleVersionsCommand_1.GetCompatibleVersionsCommand,
95
+ GetDomainMaintenanceStatusCommand: GetDomainMaintenanceStatusCommand_1.GetDomainMaintenanceStatusCommand,
92
96
  GetPackageVersionHistoryCommand: GetPackageVersionHistoryCommand_1.GetPackageVersionHistoryCommand,
93
97
  GetUpgradeHistoryCommand: GetUpgradeHistoryCommand_1.GetUpgradeHistoryCommand,
94
98
  GetUpgradeStatusCommand: GetUpgradeStatusCommand_1.GetUpgradeStatusCommand,
99
+ ListDomainMaintenancesCommand: ListDomainMaintenancesCommand_1.ListDomainMaintenancesCommand,
95
100
  ListDomainNamesCommand: ListDomainNamesCommand_1.ListDomainNamesCommand,
96
101
  ListDomainsForPackageCommand: ListDomainsForPackageCommand_1.ListDomainsForPackageCommand,
97
102
  ListInstanceTypeDetailsCommand: ListInstanceTypeDetailsCommand_1.ListInstanceTypeDetailsCommand,
@@ -106,6 +111,7 @@ const commands = {
106
111
  RejectInboundConnectionCommand: RejectInboundConnectionCommand_1.RejectInboundConnectionCommand,
107
112
  RemoveTagsCommand: RemoveTagsCommand_1.RemoveTagsCommand,
108
113
  RevokeVpcEndpointAccessCommand: RevokeVpcEndpointAccessCommand_1.RevokeVpcEndpointAccessCommand,
114
+ StartDomainMaintenanceCommand: StartDomainMaintenanceCommand_1.StartDomainMaintenanceCommand,
109
115
  StartServiceSoftwareUpdateCommand: StartServiceSoftwareUpdateCommand_1.StartServiceSoftwareUpdateCommand,
110
116
  UpdateDomainConfigCommand: UpdateDomainConfigCommand_1.UpdateDomainConfigCommand,
111
117
  UpdatePackageCommand: UpdatePackageCommand_1.UpdatePackageCommand,
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDomainMaintenanceStatusCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class GetDomainMaintenanceStatusCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDomainMaintenanceStatusCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "OpenSearchClient";
29
+ const commandName = "GetDomainMaintenanceStatusCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AmazonOpenSearchService",
38
+ operation: "GetDomainMaintenanceStatus",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_GetDomainMaintenanceStatusCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_GetDomainMaintenanceStatusCommand)(output, context);
49
+ }
50
+ }
51
+ exports.GetDomainMaintenanceStatusCommand = GetDomainMaintenanceStatusCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListDomainMaintenancesCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListDomainMaintenancesCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListDomainMaintenancesCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "OpenSearchClient";
29
+ const commandName = "ListDomainMaintenancesCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AmazonOpenSearchService",
38
+ operation: "ListDomainMaintenances",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_ListDomainMaintenancesCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_ListDomainMaintenancesCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListDomainMaintenancesCommand = ListDomainMaintenancesCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartDomainMaintenanceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class StartDomainMaintenanceCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartDomainMaintenanceCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "OpenSearchClient";
29
+ const commandName = "StartDomainMaintenanceCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AmazonOpenSearchService",
38
+ operation: "StartDomainMaintenance",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_StartDomainMaintenanceCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_StartDomainMaintenanceCommand)(output, context);
49
+ }
50
+ }
51
+ exports.StartDomainMaintenanceCommand = StartDomainMaintenanceCommand;
@@ -32,9 +32,11 @@ tslib_1.__exportStar(require("./DescribeReservedInstancesCommand"), exports);
32
32
  tslib_1.__exportStar(require("./DescribeVpcEndpointsCommand"), exports);
33
33
  tslib_1.__exportStar(require("./DissociatePackageCommand"), exports);
34
34
  tslib_1.__exportStar(require("./GetCompatibleVersionsCommand"), exports);
35
+ tslib_1.__exportStar(require("./GetDomainMaintenanceStatusCommand"), exports);
35
36
  tslib_1.__exportStar(require("./GetPackageVersionHistoryCommand"), exports);
36
37
  tslib_1.__exportStar(require("./GetUpgradeHistoryCommand"), exports);
37
38
  tslib_1.__exportStar(require("./GetUpgradeStatusCommand"), exports);
39
+ tslib_1.__exportStar(require("./ListDomainMaintenancesCommand"), exports);
38
40
  tslib_1.__exportStar(require("./ListDomainNamesCommand"), exports);
39
41
  tslib_1.__exportStar(require("./ListDomainsForPackageCommand"), exports);
40
42
  tslib_1.__exportStar(require("./ListInstanceTypeDetailsCommand"), exports);
@@ -49,6 +51,7 @@ tslib_1.__exportStar(require("./PurchaseReservedInstanceOfferingCommand"), expor
49
51
  tslib_1.__exportStar(require("./RejectInboundConnectionCommand"), exports);
50
52
  tslib_1.__exportStar(require("./RemoveTagsCommand"), exports);
51
53
  tslib_1.__exportStar(require("./RevokeVpcEndpointAccessCommand"), exports);
54
+ tslib_1.__exportStar(require("./StartDomainMaintenanceCommand"), exports);
52
55
  tslib_1.__exportStar(require("./StartServiceSoftwareUpdateCommand"), exports);
53
56
  tslib_1.__exportStar(require("./UpdateDomainConfigCommand"), exports);
54
57
  tslib_1.__exportStar(require("./UpdatePackageCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "required", r = "fn", s = "argv", t = "ref";
5
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://es-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://es.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://es.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
+ const s = "required", t = "fn", u = "argv", v = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://es-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://es.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://es.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
7
  exports.ruleSet = _data;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpgradeStatus = exports.UpgradeStep = exports.VpcEndpointErrorCode = exports.ReservedInstancePaymentOption = exports.DescribePackagesFilterName = exports.InvalidPaginationTokenException = exports.NodeType = exports.NodeStatus = exports.DependencyFailureException = 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.SkipUnavailableStatus = 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 = exports.DryRunMode = exports.ScheduleAt = exports.ScheduledBy = exports.EngineType = void 0;
3
+ exports.MaintenanceStatus = exports.MaintenanceType = exports.VpcEndpointErrorCode = exports.ReservedInstancePaymentOption = exports.DescribePackagesFilterName = exports.InvalidPaginationTokenException = exports.NodeType = exports.NodeStatus = exports.DependencyFailureException = 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.SkipUnavailableStatus = 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 = exports.DryRunMode = exports.ScheduleAt = exports.ScheduledBy = exports.EngineType = exports.UpgradeStatus = exports.UpgradeStep = void 0;
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const OpenSearchServiceException_1 = require("./OpenSearchServiceException");
7
7
  exports.ConnectionMode = {
@@ -458,6 +458,18 @@ exports.VpcEndpointErrorCode = {
458
458
  ENDPOINT_NOT_FOUND: "ENDPOINT_NOT_FOUND",
459
459
  SERVER_ERROR: "SERVER_ERROR",
460
460
  };
461
+ exports.MaintenanceType = {
462
+ REBOOT_NODE: "REBOOT_NODE",
463
+ RESTART_DASHBOARD: "RESTART_DASHBOARD",
464
+ RESTART_SEARCH_PROCESS: "RESTART_SEARCH_PROCESS",
465
+ };
466
+ exports.MaintenanceStatus = {
467
+ COMPLETED: "COMPLETED",
468
+ FAILED: "FAILED",
469
+ IN_PROGRESS: "IN_PROGRESS",
470
+ PENDING: "PENDING",
471
+ TIMED_OUT: "TIMED_OUT",
472
+ };
461
473
  exports.UpgradeStep = {
462
474
  PRE_UPGRADE_CHECK: "PRE_UPGRADE_CHECK",
463
475
  SNAPSHOT: "SNAPSHOT",
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListDomainMaintenances = void 0;
4
+ const ListDomainMaintenancesCommand_1 = require("../commands/ListDomainMaintenancesCommand");
5
+ const OpenSearchClient_1 = require("../OpenSearchClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListDomainMaintenancesCommand_1.ListDomainMaintenancesCommand(input), ...args);
8
+ };
9
+ async function* paginateListDomainMaintenances(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof OpenSearchClient_1.OpenSearchClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListDomainMaintenances = paginateListDomainMaintenances;
@@ -10,6 +10,7 @@ tslib_1.__exportStar(require("./DescribeReservedInstancesPaginator"), exports);
10
10
  tslib_1.__exportStar(require("./GetPackageVersionHistoryPaginator"), exports);
11
11
  tslib_1.__exportStar(require("./GetUpgradeHistoryPaginator"), exports);
12
12
  tslib_1.__exportStar(require("./Interfaces"), exports);
13
+ tslib_1.__exportStar(require("./ListDomainMaintenancesPaginator"), exports);
13
14
  tslib_1.__exportStar(require("./ListDomainsForPackagePaginator"), exports);
14
15
  tslib_1.__exportStar(require("./ListInstanceTypeDetailsPaginator"), exports);
15
16
  tslib_1.__exportStar(require("./ListPackagesForDomainPaginator"), exports);