@aws-sdk/client-opensearch 3.272.0 → 3.277.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.
- package/dist-cjs/OpenSearch.js +30 -0
- package/dist-cjs/commands/ListScheduledActionsCommand.js +46 -0
- package/dist-cjs/commands/UpdateScheduledActionCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +95 -5
- package/dist-cjs/pagination/ListScheduledActionsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +295 -2
- package/dist-es/OpenSearch.js +30 -0
- package/dist-es/commands/ListScheduledActionsCommand.js +42 -0
- package/dist-es/commands/UpdateScheduledActionCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +78 -0
- package/dist-es/pagination/ListScheduledActionsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +289 -1
- package/dist-types/OpenSearch.d.ts +20 -0
- package/dist-types/OpenSearchClient.d.ts +4 -2
- package/dist-types/commands/ListScheduledActionsCommand.d.ts +40 -0
- package/dist-types/commands/UpdateScheduledActionCommand.d.ts +40 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +389 -15
- package/dist-types/pagination/ListScheduledActionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/OpenSearch.d.ts +34 -0
- package/dist-types/ts3.4/OpenSearchClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/ListScheduledActionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateScheduledActionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +133 -0
- package/dist-types/ts3.4/pagination/ListScheduledActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +2 -2
package/dist-cjs/OpenSearch.js
CHANGED
|
@@ -37,6 +37,7 @@ const ListDomainNamesCommand_1 = require("./commands/ListDomainNamesCommand");
|
|
|
37
37
|
const ListDomainsForPackageCommand_1 = require("./commands/ListDomainsForPackageCommand");
|
|
38
38
|
const ListInstanceTypeDetailsCommand_1 = require("./commands/ListInstanceTypeDetailsCommand");
|
|
39
39
|
const ListPackagesForDomainCommand_1 = require("./commands/ListPackagesForDomainCommand");
|
|
40
|
+
const ListScheduledActionsCommand_1 = require("./commands/ListScheduledActionsCommand");
|
|
40
41
|
const ListTagsCommand_1 = require("./commands/ListTagsCommand");
|
|
41
42
|
const ListVersionsCommand_1 = require("./commands/ListVersionsCommand");
|
|
42
43
|
const ListVpcEndpointAccessCommand_1 = require("./commands/ListVpcEndpointAccessCommand");
|
|
@@ -49,6 +50,7 @@ const RevokeVpcEndpointAccessCommand_1 = require("./commands/RevokeVpcEndpointAc
|
|
|
49
50
|
const StartServiceSoftwareUpdateCommand_1 = require("./commands/StartServiceSoftwareUpdateCommand");
|
|
50
51
|
const UpdateDomainConfigCommand_1 = require("./commands/UpdateDomainConfigCommand");
|
|
51
52
|
const UpdatePackageCommand_1 = require("./commands/UpdatePackageCommand");
|
|
53
|
+
const UpdateScheduledActionCommand_1 = require("./commands/UpdateScheduledActionCommand");
|
|
52
54
|
const UpdateVpcEndpointCommand_1 = require("./commands/UpdateVpcEndpointCommand");
|
|
53
55
|
const UpgradeDomainCommand_1 = require("./commands/UpgradeDomainCommand");
|
|
54
56
|
const OpenSearchClient_1 = require("./OpenSearchClient");
|
|
@@ -557,6 +559,20 @@ class OpenSearch extends OpenSearchClient_1.OpenSearchClient {
|
|
|
557
559
|
return this.send(command, optionsOrCb);
|
|
558
560
|
}
|
|
559
561
|
}
|
|
562
|
+
listScheduledActions(args, optionsOrCb, cb) {
|
|
563
|
+
const command = new ListScheduledActionsCommand_1.ListScheduledActionsCommand(args);
|
|
564
|
+
if (typeof optionsOrCb === "function") {
|
|
565
|
+
this.send(command, optionsOrCb);
|
|
566
|
+
}
|
|
567
|
+
else if (typeof cb === "function") {
|
|
568
|
+
if (typeof optionsOrCb !== "object")
|
|
569
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
570
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
571
|
+
}
|
|
572
|
+
else {
|
|
573
|
+
return this.send(command, optionsOrCb);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
560
576
|
listTags(args, optionsOrCb, cb) {
|
|
561
577
|
const command = new ListTagsCommand_1.ListTagsCommand(args);
|
|
562
578
|
if (typeof optionsOrCb === "function") {
|
|
@@ -725,6 +741,20 @@ class OpenSearch extends OpenSearchClient_1.OpenSearchClient {
|
|
|
725
741
|
return this.send(command, optionsOrCb);
|
|
726
742
|
}
|
|
727
743
|
}
|
|
744
|
+
updateScheduledAction(args, optionsOrCb, cb) {
|
|
745
|
+
const command = new UpdateScheduledActionCommand_1.UpdateScheduledActionCommand(args);
|
|
746
|
+
if (typeof optionsOrCb === "function") {
|
|
747
|
+
this.send(command, optionsOrCb);
|
|
748
|
+
}
|
|
749
|
+
else if (typeof cb === "function") {
|
|
750
|
+
if (typeof optionsOrCb !== "object")
|
|
751
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
752
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
753
|
+
}
|
|
754
|
+
else {
|
|
755
|
+
return this.send(command, optionsOrCb);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
728
758
|
updateVpcEndpoint(args, optionsOrCb, cb) {
|
|
729
759
|
const command = new UpdateVpcEndpointCommand_1.UpdateVpcEndpointCommand(args);
|
|
730
760
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListScheduledActionsCommand = 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 models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListScheduledActionsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListScheduledActionsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchClient";
|
|
28
|
+
const commandName = "ListScheduledActionsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListScheduledActionsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListScheduledActionsResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListScheduledActionsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListScheduledActionsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListScheduledActionsCommand = ListScheduledActionsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateScheduledActionCommand = 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 models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class UpdateScheduledActionCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateScheduledActionCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchClient";
|
|
28
|
+
const commandName = "UpdateScheduledActionCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.UpdateScheduledActionRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.UpdateScheduledActionResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UpdateScheduledActionCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateScheduledActionCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UpdateScheduledActionCommand = UpdateScheduledActionCommand;
|
|
@@ -37,6 +37,7 @@ tslib_1.__exportStar(require("./ListDomainNamesCommand"), exports);
|
|
|
37
37
|
tslib_1.__exportStar(require("./ListDomainsForPackageCommand"), exports);
|
|
38
38
|
tslib_1.__exportStar(require("./ListInstanceTypeDetailsCommand"), exports);
|
|
39
39
|
tslib_1.__exportStar(require("./ListPackagesForDomainCommand"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./ListScheduledActionsCommand"), exports);
|
|
40
41
|
tslib_1.__exportStar(require("./ListTagsCommand"), exports);
|
|
41
42
|
tslib_1.__exportStar(require("./ListVersionsCommand"), exports);
|
|
42
43
|
tslib_1.__exportStar(require("./ListVpcEndpointAccessCommand"), exports);
|
|
@@ -49,5 +50,6 @@ tslib_1.__exportStar(require("./RevokeVpcEndpointAccessCommand"), exports);
|
|
|
49
50
|
tslib_1.__exportStar(require("./StartServiceSoftwareUpdateCommand"), exports);
|
|
50
51
|
tslib_1.__exportStar(require("./UpdateDomainConfigCommand"), exports);
|
|
51
52
|
tslib_1.__exportStar(require("./UpdatePackageCommand"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./UpdateScheduledActionCommand"), exports);
|
|
52
54
|
tslib_1.__exportStar(require("./UpdateVpcEndpointCommand"), exports);
|
|
53
55
|
tslib_1.__exportStar(require("./UpgradeDomainCommand"), 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 = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
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 }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ 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: [{ 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: [{ 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: [{ 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 }] }, { type: b, rules: [{ endpoint: { url: "https://es.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.UpgradeDomainResponseFilterSensitiveLog = exports.UpgradeDomainRequestFilterSensitiveLog = exports.UpdateVpcEndpointResponseFilterSensitiveLog = exports.UpdateVpcEndpointRequestFilterSensitiveLog = exports.UpdatePackageResponseFilterSensitiveLog = exports.UpdatePackageRequestFilterSensitiveLog = exports.UpdateDomainConfigResponseFilterSensitiveLog = exports.UpdateDomainConfigRequestFilterSensitiveLog = exports.StartServiceSoftwareUpdateResponseFilterSensitiveLog = exports.StartServiceSoftwareUpdateRequestFilterSensitiveLog = exports.RevokeVpcEndpointAccessResponseFilterSensitiveLog = exports.RevokeVpcEndpointAccessRequestFilterSensitiveLog = exports.RemoveTagsRequestFilterSensitiveLog = exports.RejectInboundConnectionResponseFilterSensitiveLog = exports.RejectInboundConnectionRequestFilterSensitiveLog = exports.PurchaseReservedInstanceOfferingResponseFilterSensitiveLog = exports.PurchaseReservedInstanceOfferingRequestFilterSensitiveLog = exports.ListVpcEndpointsForDomainResponseFilterSensitiveLog = exports.ListVpcEndpointsForDomainRequestFilterSensitiveLog = exports.ListVpcEndpointsResponseFilterSensitiveLog = exports.ListVpcEndpointsRequestFilterSensitiveLog = exports.ListVpcEndpointAccessResponseFilterSensitiveLog = exports.ListVpcEndpointAccessRequestFilterSensitiveLog = void 0;
|
|
3
|
+
exports.AWSDomainInformationFilterSensitiveLog = exports.InboundConnectionStatusFilterSensitiveLog = exports.AcceptInboundConnectionRequestFilterSensitiveLog = 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.CreateDomainResponseFilterSensitiveLog = exports.DomainStatusFilterSensitiveLog = exports.VPCDerivedInfoFilterSensitiveLog = exports.ChangeProgressDetailsFilterSensitiveLog = exports.AutoTuneOptionsOutputFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.VPCOptionsFilterSensitiveLog = exports.SoftwareUpdateOptionsFilterSensitiveLog = exports.SnapshotOptionsFilterSensitiveLog = exports.OffPeakWindowOptionsFilterSensitiveLog = exports.OffPeakWindowFilterSensitiveLog = exports.WindowStartTimeFilterSensitiveLog = exports.NodeToNodeEncryptionOptionsFilterSensitiveLog = exports.LogPublishingOptionFilterSensitiveLog = exports.EncryptionAtRestOptionsFilterSensitiveLog = exports.EBSOptionsFilterSensitiveLog = exports.DomainEndpointOptionsFilterSensitiveLog = exports.CognitoOptionsFilterSensitiveLog = exports.ClusterConfigFilterSensitiveLog = exports.ZoneAwarenessConfigFilterSensitiveLog = exports.ColdStorageOptionsFilterSensitiveLog = exports.AutoTuneOptionsInputFilterSensitiveLog = exports.AutoTuneMaintenanceScheduleFilterSensitiveLog = exports.DurationFilterSensitiveLog = exports.CancelServiceSoftwareUpdateResponseFilterSensitiveLog = exports.ServiceSoftwareOptionsFilterSensitiveLog = exports.CancelServiceSoftwareUpdateRequestFilterSensitiveLog = exports.AuthorizeVpcEndpointAccessResponseFilterSensitiveLog = exports.AuthorizedPrincipalFilterSensitiveLog = exports.AuthorizeVpcEndpointAccessRequestFilterSensitiveLog = exports.AssociatePackageResponseFilterSensitiveLog = exports.DomainPackageDetailsFilterSensitiveLog = exports.ErrorDetailsFilterSensitiveLog = exports.AssociatePackageRequestFilterSensitiveLog = exports.AdvancedSecurityOptionsStatusFilterSensitiveLog = exports.AdvancedSecurityOptionsInputFilterSensitiveLog = exports.SAMLOptionsInputFilterSensitiveLog = exports.MasterUserOptionsFilterSensitiveLog = exports.AdvancedSecurityOptionsFilterSensitiveLog = exports.SAMLOptionsOutputFilterSensitiveLog = exports.SAMLIdpFilterSensitiveLog = exports.AdvancedOptionsStatusFilterSensitiveLog = exports.AddTagsRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.AdditionalLimitFilterSensitiveLog = exports.AccessPoliciesStatusFilterSensitiveLog = exports.OptionStatusFilterSensitiveLog = exports.AcceptInboundConnectionResponseFilterSensitiveLog = exports.InboundConnectionFilterSensitiveLog = exports.DomainInformationContainerFilterSensitiveLog = void 0;
|
|
5
|
+
exports.VPCDerivedInfoStatusFilterSensitiveLog = exports.SoftwareUpdateOptionsStatusFilterSensitiveLog = exports.SnapshotOptionsStatusFilterSensitiveLog = exports.OffPeakWindowOptionsStatusFilterSensitiveLog = exports.NodeToNodeEncryptionOptionsStatusFilterSensitiveLog = exports.LogPublishingOptionsStatusFilterSensitiveLog = exports.VersionStatusFilterSensitiveLog = exports.EncryptionAtRestOptionsStatusFilterSensitiveLog = exports.EBSOptionsStatusFilterSensitiveLog = exports.DomainEndpointOptionsStatusFilterSensitiveLog = exports.CognitoOptionsStatusFilterSensitiveLog = exports.ClusterConfigStatusFilterSensitiveLog = exports.AutoTuneOptionsStatusFilterSensitiveLog = exports.AutoTuneStatusFilterSensitiveLog = exports.AutoTuneOptionsFilterSensitiveLog = exports.DescribeDomainConfigRequestFilterSensitiveLog = exports.DescribeDomainChangeProgressResponseFilterSensitiveLog = exports.ChangeProgressStatusDetailsFilterSensitiveLog = exports.ChangeProgressStageFilterSensitiveLog = exports.DescribeDomainChangeProgressRequestFilterSensitiveLog = exports.DescribeDomainAutoTunesResponseFilterSensitiveLog = exports.AutoTuneFilterSensitiveLog = exports.AutoTuneDetailsFilterSensitiveLog = exports.ScheduledAutoTuneDetailsFilterSensitiveLog = exports.DescribeDomainAutoTunesRequestFilterSensitiveLog = exports.DescribeDomainResponseFilterSensitiveLog = exports.DescribeDomainRequestFilterSensitiveLog = exports.DeleteVpcEndpointResponseFilterSensitiveLog = exports.VpcEndpointSummaryFilterSensitiveLog = exports.DeleteVpcEndpointRequestFilterSensitiveLog = exports.DeletePackageResponseFilterSensitiveLog = exports.DeletePackageRequestFilterSensitiveLog = exports.DeleteOutboundConnectionResponseFilterSensitiveLog = exports.OutboundConnectionFilterSensitiveLog = exports.DeleteOutboundConnectionRequestFilterSensitiveLog = exports.DeleteInboundConnectionResponseFilterSensitiveLog = exports.DeleteInboundConnectionRequestFilterSensitiveLog = exports.DeleteDomainResponseFilterSensitiveLog = exports.DeleteDomainRequestFilterSensitiveLog = exports.CreateVpcEndpointResponseFilterSensitiveLog = exports.VpcEndpointFilterSensitiveLog = exports.CreateVpcEndpointRequestFilterSensitiveLog = exports.CreatePackageResponseFilterSensitiveLog = exports.PackageDetailsFilterSensitiveLog = exports.CreatePackageRequestFilterSensitiveLog = exports.PackageSourceFilterSensitiveLog = exports.CreateOutboundConnectionResponseFilterSensitiveLog = exports.OutboundConnectionStatusFilterSensitiveLog = exports.ConnectionPropertiesFilterSensitiveLog = exports.CreateOutboundConnectionRequestFilterSensitiveLog = void 0;
|
|
6
|
+
exports.DomainInfoFilterSensitiveLog = exports.ListDomainNamesRequestFilterSensitiveLog = exports.GetUpgradeStatusResponseFilterSensitiveLog = exports.GetUpgradeStatusRequestFilterSensitiveLog = exports.GetUpgradeHistoryResponseFilterSensitiveLog = exports.UpgradeHistoryFilterSensitiveLog = exports.UpgradeStepItemFilterSensitiveLog = exports.GetUpgradeHistoryRequestFilterSensitiveLog = exports.GetPackageVersionHistoryResponseFilterSensitiveLog = exports.PackageVersionHistoryFilterSensitiveLog = exports.GetPackageVersionHistoryRequestFilterSensitiveLog = exports.GetCompatibleVersionsResponseFilterSensitiveLog = exports.CompatibleVersionsMapFilterSensitiveLog = exports.GetCompatibleVersionsRequestFilterSensitiveLog = exports.DissociatePackageResponseFilterSensitiveLog = exports.DissociatePackageRequestFilterSensitiveLog = exports.DescribeVpcEndpointsResponseFilterSensitiveLog = exports.VpcEndpointErrorFilterSensitiveLog = exports.DescribeVpcEndpointsRequestFilterSensitiveLog = exports.DescribeReservedInstancesResponseFilterSensitiveLog = exports.ReservedInstanceFilterSensitiveLog = exports.DescribeReservedInstancesRequestFilterSensitiveLog = exports.DescribeReservedInstanceOfferingsResponseFilterSensitiveLog = exports.ReservedInstanceOfferingFilterSensitiveLog = exports.RecurringChargeFilterSensitiveLog = exports.DescribeReservedInstanceOfferingsRequestFilterSensitiveLog = exports.DescribePackagesResponseFilterSensitiveLog = exports.DescribePackagesRequestFilterSensitiveLog = exports.DescribePackagesFilterFilterSensitiveLog = exports.DescribeOutboundConnectionsResponseFilterSensitiveLog = exports.DescribeOutboundConnectionsRequestFilterSensitiveLog = exports.DescribeInstanceTypeLimitsResponseFilterSensitiveLog = exports.LimitsFilterSensitiveLog = exports.StorageTypeFilterSensitiveLog = exports.StorageTypeLimitFilterSensitiveLog = exports.InstanceLimitsFilterSensitiveLog = exports.InstanceCountLimitsFilterSensitiveLog = exports.DescribeInstanceTypeLimitsRequestFilterSensitiveLog = exports.DescribeInboundConnectionsResponseFilterSensitiveLog = exports.DescribeInboundConnectionsRequestFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.DescribeDryRunProgressResponseFilterSensitiveLog = exports.DryRunResultsFilterSensitiveLog = exports.DryRunProgressStatusFilterSensitiveLog = exports.ValidationFailureFilterSensitiveLog = exports.DescribeDryRunProgressRequestFilterSensitiveLog = exports.DescribeDomainsResponseFilterSensitiveLog = exports.DescribeDomainsRequestFilterSensitiveLog = exports.DescribeDomainConfigResponseFilterSensitiveLog = exports.DomainConfigFilterSensitiveLog = void 0;
|
|
7
|
+
exports.UpgradeDomainResponseFilterSensitiveLog = exports.UpgradeDomainRequestFilterSensitiveLog = exports.UpdateVpcEndpointResponseFilterSensitiveLog = exports.UpdateVpcEndpointRequestFilterSensitiveLog = exports.UpdateScheduledActionResponseFilterSensitiveLog = exports.UpdateScheduledActionRequestFilterSensitiveLog = exports.UpdatePackageResponseFilterSensitiveLog = exports.UpdatePackageRequestFilterSensitiveLog = exports.UpdateDomainConfigResponseFilterSensitiveLog = exports.UpdateDomainConfigRequestFilterSensitiveLog = exports.StartServiceSoftwareUpdateResponseFilterSensitiveLog = exports.StartServiceSoftwareUpdateRequestFilterSensitiveLog = exports.RevokeVpcEndpointAccessResponseFilterSensitiveLog = exports.RevokeVpcEndpointAccessRequestFilterSensitiveLog = exports.RemoveTagsRequestFilterSensitiveLog = exports.RejectInboundConnectionResponseFilterSensitiveLog = exports.RejectInboundConnectionRequestFilterSensitiveLog = exports.PurchaseReservedInstanceOfferingResponseFilterSensitiveLog = exports.PurchaseReservedInstanceOfferingRequestFilterSensitiveLog = exports.ListVpcEndpointsForDomainResponseFilterSensitiveLog = exports.ListVpcEndpointsForDomainRequestFilterSensitiveLog = exports.ListVpcEndpointsResponseFilterSensitiveLog = exports.ListVpcEndpointsRequestFilterSensitiveLog = exports.ListVpcEndpointAccessResponseFilterSensitiveLog = exports.ListVpcEndpointAccessRequestFilterSensitiveLog = exports.ListVersionsResponseFilterSensitiveLog = exports.ListVersionsRequestFilterSensitiveLog = exports.ListTagsResponseFilterSensitiveLog = exports.ListTagsRequestFilterSensitiveLog = exports.ListScheduledActionsResponseFilterSensitiveLog = exports.ScheduledActionFilterSensitiveLog = exports.ListScheduledActionsRequestFilterSensitiveLog = exports.ListPackagesForDomainResponseFilterSensitiveLog = exports.ListPackagesForDomainRequestFilterSensitiveLog = exports.ListInstanceTypeDetailsResponseFilterSensitiveLog = exports.InstanceTypeDetailsFilterSensitiveLog = exports.ListInstanceTypeDetailsRequestFilterSensitiveLog = exports.ListDomainsForPackageResponseFilterSensitiveLog = exports.ListDomainsForPackageRequestFilterSensitiveLog = exports.ListDomainNamesResponseFilterSensitiveLog = void 0;
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const OpenSearchServiceException_1 = require("./OpenSearchServiceException");
|
|
10
10
|
var ConnectionMode;
|
|
@@ -81,6 +81,27 @@ var OptionState;
|
|
|
81
81
|
OptionState["Processing"] = "Processing";
|
|
82
82
|
OptionState["RequiresIndexDocuments"] = "RequiresIndexDocuments";
|
|
83
83
|
})(OptionState = exports.OptionState || (exports.OptionState = {}));
|
|
84
|
+
var ActionSeverity;
|
|
85
|
+
(function (ActionSeverity) {
|
|
86
|
+
ActionSeverity["HIGH"] = "HIGH";
|
|
87
|
+
ActionSeverity["LOW"] = "LOW";
|
|
88
|
+
ActionSeverity["MEDIUM"] = "MEDIUM";
|
|
89
|
+
})(ActionSeverity = exports.ActionSeverity || (exports.ActionSeverity = {}));
|
|
90
|
+
var ActionStatus;
|
|
91
|
+
(function (ActionStatus) {
|
|
92
|
+
ActionStatus["COMPLETED"] = "COMPLETED";
|
|
93
|
+
ActionStatus["ELIGIBLE"] = "ELIGIBLE";
|
|
94
|
+
ActionStatus["FAILED"] = "FAILED";
|
|
95
|
+
ActionStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
96
|
+
ActionStatus["NOT_ELIGIBLE"] = "NOT_ELIGIBLE";
|
|
97
|
+
ActionStatus["PENDING_UPDATE"] = "PENDING_UPDATE";
|
|
98
|
+
})(ActionStatus = exports.ActionStatus || (exports.ActionStatus = {}));
|
|
99
|
+
var ActionType;
|
|
100
|
+
(function (ActionType) {
|
|
101
|
+
ActionType["JVM_HEAP_SIZE_TUNING"] = "JVM_HEAP_SIZE_TUNING";
|
|
102
|
+
ActionType["JVM_YOUNG_GEN_TUNING"] = "JVM_YOUNG_GEN_TUNING";
|
|
103
|
+
ActionType["SERVICE_SOFTWARE_UPDATE"] = "SERVICE_SOFTWARE_UPDATE";
|
|
104
|
+
})(ActionType = exports.ActionType || (exports.ActionType = {}));
|
|
84
105
|
class BaseException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
85
106
|
constructor(opts) {
|
|
86
107
|
super({
|
|
@@ -437,11 +458,36 @@ var EngineType;
|
|
|
437
458
|
EngineType["Elasticsearch"] = "Elasticsearch";
|
|
438
459
|
EngineType["OpenSearch"] = "OpenSearch";
|
|
439
460
|
})(EngineType = exports.EngineType || (exports.EngineType = {}));
|
|
461
|
+
var ScheduledBy;
|
|
462
|
+
(function (ScheduledBy) {
|
|
463
|
+
ScheduledBy["CUSTOMER"] = "CUSTOMER";
|
|
464
|
+
ScheduledBy["SYSTEM"] = "SYSTEM";
|
|
465
|
+
})(ScheduledBy = exports.ScheduledBy || (exports.ScheduledBy = {}));
|
|
466
|
+
var ScheduleAt;
|
|
467
|
+
(function (ScheduleAt) {
|
|
468
|
+
ScheduleAt["NOW"] = "NOW";
|
|
469
|
+
ScheduleAt["OFF_PEAK_WINDOW"] = "OFF_PEAK_WINDOW";
|
|
470
|
+
ScheduleAt["TIMESTAMP"] = "TIMESTAMP";
|
|
471
|
+
})(ScheduleAt = exports.ScheduleAt || (exports.ScheduleAt = {}));
|
|
440
472
|
var DryRunMode;
|
|
441
473
|
(function (DryRunMode) {
|
|
442
474
|
DryRunMode["Basic"] = "Basic";
|
|
443
475
|
DryRunMode["Verbose"] = "Verbose";
|
|
444
476
|
})(DryRunMode = exports.DryRunMode || (exports.DryRunMode = {}));
|
|
477
|
+
class SlotNotAvailableException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
478
|
+
constructor(opts) {
|
|
479
|
+
super({
|
|
480
|
+
name: "SlotNotAvailableException",
|
|
481
|
+
$fault: "client",
|
|
482
|
+
...opts,
|
|
483
|
+
});
|
|
484
|
+
this.name = "SlotNotAvailableException";
|
|
485
|
+
this.$fault = "client";
|
|
486
|
+
Object.setPrototypeOf(this, SlotNotAvailableException.prototype);
|
|
487
|
+
this.SlotSuggestions = opts.SlotSuggestions;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
exports.SlotNotAvailableException = SlotNotAvailableException;
|
|
445
491
|
const AcceptInboundConnectionRequestFilterSensitiveLog = (obj) => ({
|
|
446
492
|
...obj,
|
|
447
493
|
});
|
|
@@ -611,10 +657,26 @@ const NodeToNodeEncryptionOptionsFilterSensitiveLog = (obj) => ({
|
|
|
611
657
|
...obj,
|
|
612
658
|
});
|
|
613
659
|
exports.NodeToNodeEncryptionOptionsFilterSensitiveLog = NodeToNodeEncryptionOptionsFilterSensitiveLog;
|
|
660
|
+
const WindowStartTimeFilterSensitiveLog = (obj) => ({
|
|
661
|
+
...obj,
|
|
662
|
+
});
|
|
663
|
+
exports.WindowStartTimeFilterSensitiveLog = WindowStartTimeFilterSensitiveLog;
|
|
664
|
+
const OffPeakWindowFilterSensitiveLog = (obj) => ({
|
|
665
|
+
...obj,
|
|
666
|
+
});
|
|
667
|
+
exports.OffPeakWindowFilterSensitiveLog = OffPeakWindowFilterSensitiveLog;
|
|
668
|
+
const OffPeakWindowOptionsFilterSensitiveLog = (obj) => ({
|
|
669
|
+
...obj,
|
|
670
|
+
});
|
|
671
|
+
exports.OffPeakWindowOptionsFilterSensitiveLog = OffPeakWindowOptionsFilterSensitiveLog;
|
|
614
672
|
const SnapshotOptionsFilterSensitiveLog = (obj) => ({
|
|
615
673
|
...obj,
|
|
616
674
|
});
|
|
617
675
|
exports.SnapshotOptionsFilterSensitiveLog = SnapshotOptionsFilterSensitiveLog;
|
|
676
|
+
const SoftwareUpdateOptionsFilterSensitiveLog = (obj) => ({
|
|
677
|
+
...obj,
|
|
678
|
+
});
|
|
679
|
+
exports.SoftwareUpdateOptionsFilterSensitiveLog = SoftwareUpdateOptionsFilterSensitiveLog;
|
|
618
680
|
const VPCOptionsFilterSensitiveLog = (obj) => ({
|
|
619
681
|
...obj,
|
|
620
682
|
});
|
|
@@ -830,10 +892,18 @@ const NodeToNodeEncryptionOptionsStatusFilterSensitiveLog = (obj) => ({
|
|
|
830
892
|
...obj,
|
|
831
893
|
});
|
|
832
894
|
exports.NodeToNodeEncryptionOptionsStatusFilterSensitiveLog = NodeToNodeEncryptionOptionsStatusFilterSensitiveLog;
|
|
895
|
+
const OffPeakWindowOptionsStatusFilterSensitiveLog = (obj) => ({
|
|
896
|
+
...obj,
|
|
897
|
+
});
|
|
898
|
+
exports.OffPeakWindowOptionsStatusFilterSensitiveLog = OffPeakWindowOptionsStatusFilterSensitiveLog;
|
|
833
899
|
const SnapshotOptionsStatusFilterSensitiveLog = (obj) => ({
|
|
834
900
|
...obj,
|
|
835
901
|
});
|
|
836
902
|
exports.SnapshotOptionsStatusFilterSensitiveLog = SnapshotOptionsStatusFilterSensitiveLog;
|
|
903
|
+
const SoftwareUpdateOptionsStatusFilterSensitiveLog = (obj) => ({
|
|
904
|
+
...obj,
|
|
905
|
+
});
|
|
906
|
+
exports.SoftwareUpdateOptionsStatusFilterSensitiveLog = SoftwareUpdateOptionsStatusFilterSensitiveLog;
|
|
837
907
|
const VPCDerivedInfoStatusFilterSensitiveLog = (obj) => ({
|
|
838
908
|
...obj,
|
|
839
909
|
});
|
|
@@ -1070,6 +1140,18 @@ const ListPackagesForDomainResponseFilterSensitiveLog = (obj) => ({
|
|
|
1070
1140
|
...obj,
|
|
1071
1141
|
});
|
|
1072
1142
|
exports.ListPackagesForDomainResponseFilterSensitiveLog = ListPackagesForDomainResponseFilterSensitiveLog;
|
|
1143
|
+
const ListScheduledActionsRequestFilterSensitiveLog = (obj) => ({
|
|
1144
|
+
...obj,
|
|
1145
|
+
});
|
|
1146
|
+
exports.ListScheduledActionsRequestFilterSensitiveLog = ListScheduledActionsRequestFilterSensitiveLog;
|
|
1147
|
+
const ScheduledActionFilterSensitiveLog = (obj) => ({
|
|
1148
|
+
...obj,
|
|
1149
|
+
});
|
|
1150
|
+
exports.ScheduledActionFilterSensitiveLog = ScheduledActionFilterSensitiveLog;
|
|
1151
|
+
const ListScheduledActionsResponseFilterSensitiveLog = (obj) => ({
|
|
1152
|
+
...obj,
|
|
1153
|
+
});
|
|
1154
|
+
exports.ListScheduledActionsResponseFilterSensitiveLog = ListScheduledActionsResponseFilterSensitiveLog;
|
|
1073
1155
|
const ListTagsRequestFilterSensitiveLog = (obj) => ({
|
|
1074
1156
|
...obj,
|
|
1075
1157
|
});
|
|
@@ -1165,6 +1247,14 @@ const UpdatePackageResponseFilterSensitiveLog = (obj) => ({
|
|
|
1165
1247
|
...obj,
|
|
1166
1248
|
});
|
|
1167
1249
|
exports.UpdatePackageResponseFilterSensitiveLog = UpdatePackageResponseFilterSensitiveLog;
|
|
1250
|
+
const UpdateScheduledActionRequestFilterSensitiveLog = (obj) => ({
|
|
1251
|
+
...obj,
|
|
1252
|
+
});
|
|
1253
|
+
exports.UpdateScheduledActionRequestFilterSensitiveLog = UpdateScheduledActionRequestFilterSensitiveLog;
|
|
1254
|
+
const UpdateScheduledActionResponseFilterSensitiveLog = (obj) => ({
|
|
1255
|
+
...obj,
|
|
1256
|
+
});
|
|
1257
|
+
exports.UpdateScheduledActionResponseFilterSensitiveLog = UpdateScheduledActionResponseFilterSensitiveLog;
|
|
1168
1258
|
const UpdateVpcEndpointRequestFilterSensitiveLog = (obj) => ({
|
|
1169
1259
|
...obj,
|
|
1170
1260
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListScheduledActions = void 0;
|
|
4
|
+
const ListScheduledActionsCommand_1 = require("../commands/ListScheduledActionsCommand");
|
|
5
|
+
const OpenSearch_1 = require("../OpenSearch");
|
|
6
|
+
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListScheduledActionsCommand_1.ListScheduledActionsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listScheduledActions(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListScheduledActions(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof OpenSearch_1.OpenSearch) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof OpenSearchClient_1.OpenSearchClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListScheduledActions = paginateListScheduledActions;
|
|
@@ -13,4 +13,5 @@ tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
|
13
13
|
tslib_1.__exportStar(require("./ListDomainsForPackagePaginator"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./ListInstanceTypeDetailsPaginator"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./ListPackagesForDomainPaginator"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./ListScheduledActionsPaginator"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./ListVersionsPaginator"), exports);
|