@aws-sdk/client-opensearch 3.183.0 → 3.185.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/OpenSearch.js +169 -162
- package/dist-es/OpenSearchClient.js +28 -22
- package/dist-es/commands/AcceptInboundConnectionCommand.js +28 -21
- package/dist-es/commands/AddTagsCommand.js +29 -22
- package/dist-es/commands/AssociatePackageCommand.js +28 -21
- package/dist-es/commands/CancelServiceSoftwareUpdateCommand.js +28 -21
- package/dist-es/commands/CreateDomainCommand.js +28 -21
- package/dist-es/commands/CreateOutboundConnectionCommand.js +28 -21
- package/dist-es/commands/CreatePackageCommand.js +28 -21
- package/dist-es/commands/DeleteDomainCommand.js +28 -21
- package/dist-es/commands/DeleteInboundConnectionCommand.js +28 -21
- package/dist-es/commands/DeleteOutboundConnectionCommand.js +28 -21
- package/dist-es/commands/DeletePackageCommand.js +28 -21
- package/dist-es/commands/DescribeDomainAutoTunesCommand.js +28 -21
- package/dist-es/commands/DescribeDomainChangeProgressCommand.js +28 -21
- package/dist-es/commands/DescribeDomainCommand.js +28 -21
- package/dist-es/commands/DescribeDomainConfigCommand.js +28 -21
- package/dist-es/commands/DescribeDomainsCommand.js +28 -21
- package/dist-es/commands/DescribeInboundConnectionsCommand.js +28 -21
- package/dist-es/commands/DescribeInstanceTypeLimitsCommand.js +28 -21
- package/dist-es/commands/DescribeOutboundConnectionsCommand.js +28 -21
- package/dist-es/commands/DescribePackagesCommand.js +28 -21
- package/dist-es/commands/DescribeReservedInstanceOfferingsCommand.js +28 -21
- package/dist-es/commands/DescribeReservedInstancesCommand.js +28 -21
- package/dist-es/commands/DissociatePackageCommand.js +28 -21
- package/dist-es/commands/GetCompatibleVersionsCommand.js +28 -21
- package/dist-es/commands/GetPackageVersionHistoryCommand.js +28 -21
- package/dist-es/commands/GetUpgradeHistoryCommand.js +28 -21
- package/dist-es/commands/GetUpgradeStatusCommand.js +28 -21
- package/dist-es/commands/ListDomainNamesCommand.js +28 -21
- package/dist-es/commands/ListDomainsForPackageCommand.js +28 -21
- package/dist-es/commands/ListInstanceTypeDetailsCommand.js +28 -21
- package/dist-es/commands/ListPackagesForDomainCommand.js +28 -21
- package/dist-es/commands/ListTagsCommand.js +28 -21
- package/dist-es/commands/ListVersionsCommand.js +28 -21
- package/dist-es/commands/PurchaseReservedInstanceOfferingCommand.js +28 -21
- package/dist-es/commands/RejectInboundConnectionCommand.js +28 -21
- package/dist-es/commands/RemoveTagsCommand.js +29 -22
- package/dist-es/commands/StartServiceSoftwareUpdateCommand.js +28 -21
- package/dist-es/commands/UpdateDomainConfigCommand.js +28 -21
- package/dist-es/commands/UpdatePackageCommand.js +28 -21
- package/dist-es/commands/UpgradeDomainCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/OpenSearchServiceException.js +10 -5
- package/dist-es/models/models_0.js +281 -597
- package/dist-es/pagination/DescribeDomainAutoTunesPaginator.js +68 -25
- package/dist-es/pagination/DescribeInboundConnectionsPaginator.js +68 -25
- package/dist-es/pagination/DescribeOutboundConnectionsPaginator.js +68 -25
- package/dist-es/pagination/DescribePackagesPaginator.js +68 -25
- package/dist-es/pagination/DescribeReservedInstanceOfferingsPaginator.js +68 -25
- package/dist-es/pagination/DescribeReservedInstancesPaginator.js +68 -25
- package/dist-es/pagination/GetPackageVersionHistoryPaginator.js +68 -25
- package/dist-es/pagination/GetUpgradeHistoryPaginator.js +68 -25
- package/dist-es/pagination/ListDomainsForPackagePaginator.js +68 -25
- package/dist-es/pagination/ListInstanceTypeDetailsPaginator.js +68 -25
- package/dist-es/pagination/ListPackagesForDomainPaginator.js +68 -25
- package/dist-es/pagination/ListVersionsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +4322 -3200
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
package/dist-es/OpenSearch.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { AcceptInboundConnectionCommand, } from "./commands/AcceptInboundConnectionCommand";
|
|
2
3
|
import { AddTagsCommand } from "./commands/AddTagsCommand";
|
|
3
4
|
import { AssociatePackageCommand, } from "./commands/AssociatePackageCommand";
|
|
@@ -39,565 +40,571 @@ import { UpdateDomainConfigCommand, } from "./commands/UpdateDomainConfigCommand
|
|
|
39
40
|
import { UpdatePackageCommand, } from "./commands/UpdatePackageCommand";
|
|
40
41
|
import { UpgradeDomainCommand, } from "./commands/UpgradeDomainCommand";
|
|
41
42
|
import { OpenSearchClient } from "./OpenSearchClient";
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
var OpenSearch = (function (_super) {
|
|
44
|
+
__extends(OpenSearch, _super);
|
|
45
|
+
function OpenSearch() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
OpenSearch.prototype.acceptInboundConnection = function (args, optionsOrCb, cb) {
|
|
49
|
+
var command = new AcceptInboundConnectionCommand(args);
|
|
45
50
|
if (typeof optionsOrCb === "function") {
|
|
46
51
|
this.send(command, optionsOrCb);
|
|
47
52
|
}
|
|
48
53
|
else if (typeof cb === "function") {
|
|
49
54
|
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(
|
|
55
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
51
56
|
this.send(command, optionsOrCb || {}, cb);
|
|
52
57
|
}
|
|
53
58
|
else {
|
|
54
59
|
return this.send(command, optionsOrCb);
|
|
55
60
|
}
|
|
56
|
-
}
|
|
57
|
-
addTags(args, optionsOrCb, cb) {
|
|
58
|
-
|
|
61
|
+
};
|
|
62
|
+
OpenSearch.prototype.addTags = function (args, optionsOrCb, cb) {
|
|
63
|
+
var command = new AddTagsCommand(args);
|
|
59
64
|
if (typeof optionsOrCb === "function") {
|
|
60
65
|
this.send(command, optionsOrCb);
|
|
61
66
|
}
|
|
62
67
|
else if (typeof cb === "function") {
|
|
63
68
|
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(
|
|
69
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
65
70
|
this.send(command, optionsOrCb || {}, cb);
|
|
66
71
|
}
|
|
67
72
|
else {
|
|
68
73
|
return this.send(command, optionsOrCb);
|
|
69
74
|
}
|
|
70
|
-
}
|
|
71
|
-
associatePackage(args, optionsOrCb, cb) {
|
|
72
|
-
|
|
75
|
+
};
|
|
76
|
+
OpenSearch.prototype.associatePackage = function (args, optionsOrCb, cb) {
|
|
77
|
+
var command = new AssociatePackageCommand(args);
|
|
73
78
|
if (typeof optionsOrCb === "function") {
|
|
74
79
|
this.send(command, optionsOrCb);
|
|
75
80
|
}
|
|
76
81
|
else if (typeof cb === "function") {
|
|
77
82
|
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(
|
|
83
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
79
84
|
this.send(command, optionsOrCb || {}, cb);
|
|
80
85
|
}
|
|
81
86
|
else {
|
|
82
87
|
return this.send(command, optionsOrCb);
|
|
83
88
|
}
|
|
84
|
-
}
|
|
85
|
-
cancelServiceSoftwareUpdate(args, optionsOrCb, cb) {
|
|
86
|
-
|
|
89
|
+
};
|
|
90
|
+
OpenSearch.prototype.cancelServiceSoftwareUpdate = function (args, optionsOrCb, cb) {
|
|
91
|
+
var command = new CancelServiceSoftwareUpdateCommand(args);
|
|
87
92
|
if (typeof optionsOrCb === "function") {
|
|
88
93
|
this.send(command, optionsOrCb);
|
|
89
94
|
}
|
|
90
95
|
else if (typeof cb === "function") {
|
|
91
96
|
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(
|
|
97
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
93
98
|
this.send(command, optionsOrCb || {}, cb);
|
|
94
99
|
}
|
|
95
100
|
else {
|
|
96
101
|
return this.send(command, optionsOrCb);
|
|
97
102
|
}
|
|
98
|
-
}
|
|
99
|
-
createDomain(args, optionsOrCb, cb) {
|
|
100
|
-
|
|
103
|
+
};
|
|
104
|
+
OpenSearch.prototype.createDomain = function (args, optionsOrCb, cb) {
|
|
105
|
+
var command = new CreateDomainCommand(args);
|
|
101
106
|
if (typeof optionsOrCb === "function") {
|
|
102
107
|
this.send(command, optionsOrCb);
|
|
103
108
|
}
|
|
104
109
|
else if (typeof cb === "function") {
|
|
105
110
|
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(
|
|
111
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
107
112
|
this.send(command, optionsOrCb || {}, cb);
|
|
108
113
|
}
|
|
109
114
|
else {
|
|
110
115
|
return this.send(command, optionsOrCb);
|
|
111
116
|
}
|
|
112
|
-
}
|
|
113
|
-
createOutboundConnection(args, optionsOrCb, cb) {
|
|
114
|
-
|
|
117
|
+
};
|
|
118
|
+
OpenSearch.prototype.createOutboundConnection = function (args, optionsOrCb, cb) {
|
|
119
|
+
var command = new CreateOutboundConnectionCommand(args);
|
|
115
120
|
if (typeof optionsOrCb === "function") {
|
|
116
121
|
this.send(command, optionsOrCb);
|
|
117
122
|
}
|
|
118
123
|
else if (typeof cb === "function") {
|
|
119
124
|
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(
|
|
125
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
121
126
|
this.send(command, optionsOrCb || {}, cb);
|
|
122
127
|
}
|
|
123
128
|
else {
|
|
124
129
|
return this.send(command, optionsOrCb);
|
|
125
130
|
}
|
|
126
|
-
}
|
|
127
|
-
createPackage(args, optionsOrCb, cb) {
|
|
128
|
-
|
|
131
|
+
};
|
|
132
|
+
OpenSearch.prototype.createPackage = function (args, optionsOrCb, cb) {
|
|
133
|
+
var command = new CreatePackageCommand(args);
|
|
129
134
|
if (typeof optionsOrCb === "function") {
|
|
130
135
|
this.send(command, optionsOrCb);
|
|
131
136
|
}
|
|
132
137
|
else if (typeof cb === "function") {
|
|
133
138
|
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(
|
|
139
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
135
140
|
this.send(command, optionsOrCb || {}, cb);
|
|
136
141
|
}
|
|
137
142
|
else {
|
|
138
143
|
return this.send(command, optionsOrCb);
|
|
139
144
|
}
|
|
140
|
-
}
|
|
141
|
-
deleteDomain(args, optionsOrCb, cb) {
|
|
142
|
-
|
|
145
|
+
};
|
|
146
|
+
OpenSearch.prototype.deleteDomain = function (args, optionsOrCb, cb) {
|
|
147
|
+
var command = new DeleteDomainCommand(args);
|
|
143
148
|
if (typeof optionsOrCb === "function") {
|
|
144
149
|
this.send(command, optionsOrCb);
|
|
145
150
|
}
|
|
146
151
|
else if (typeof cb === "function") {
|
|
147
152
|
if (typeof optionsOrCb !== "object")
|
|
148
|
-
throw new Error(
|
|
153
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
149
154
|
this.send(command, optionsOrCb || {}, cb);
|
|
150
155
|
}
|
|
151
156
|
else {
|
|
152
157
|
return this.send(command, optionsOrCb);
|
|
153
158
|
}
|
|
154
|
-
}
|
|
155
|
-
deleteInboundConnection(args, optionsOrCb, cb) {
|
|
156
|
-
|
|
159
|
+
};
|
|
160
|
+
OpenSearch.prototype.deleteInboundConnection = function (args, optionsOrCb, cb) {
|
|
161
|
+
var command = new DeleteInboundConnectionCommand(args);
|
|
157
162
|
if (typeof optionsOrCb === "function") {
|
|
158
163
|
this.send(command, optionsOrCb);
|
|
159
164
|
}
|
|
160
165
|
else if (typeof cb === "function") {
|
|
161
166
|
if (typeof optionsOrCb !== "object")
|
|
162
|
-
throw new Error(
|
|
167
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
163
168
|
this.send(command, optionsOrCb || {}, cb);
|
|
164
169
|
}
|
|
165
170
|
else {
|
|
166
171
|
return this.send(command, optionsOrCb);
|
|
167
172
|
}
|
|
168
|
-
}
|
|
169
|
-
deleteOutboundConnection(args, optionsOrCb, cb) {
|
|
170
|
-
|
|
173
|
+
};
|
|
174
|
+
OpenSearch.prototype.deleteOutboundConnection = function (args, optionsOrCb, cb) {
|
|
175
|
+
var command = new DeleteOutboundConnectionCommand(args);
|
|
171
176
|
if (typeof optionsOrCb === "function") {
|
|
172
177
|
this.send(command, optionsOrCb);
|
|
173
178
|
}
|
|
174
179
|
else if (typeof cb === "function") {
|
|
175
180
|
if (typeof optionsOrCb !== "object")
|
|
176
|
-
throw new Error(
|
|
181
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
177
182
|
this.send(command, optionsOrCb || {}, cb);
|
|
178
183
|
}
|
|
179
184
|
else {
|
|
180
185
|
return this.send(command, optionsOrCb);
|
|
181
186
|
}
|
|
182
|
-
}
|
|
183
|
-
deletePackage(args, optionsOrCb, cb) {
|
|
184
|
-
|
|
187
|
+
};
|
|
188
|
+
OpenSearch.prototype.deletePackage = function (args, optionsOrCb, cb) {
|
|
189
|
+
var command = new DeletePackageCommand(args);
|
|
185
190
|
if (typeof optionsOrCb === "function") {
|
|
186
191
|
this.send(command, optionsOrCb);
|
|
187
192
|
}
|
|
188
193
|
else if (typeof cb === "function") {
|
|
189
194
|
if (typeof optionsOrCb !== "object")
|
|
190
|
-
throw new Error(
|
|
195
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
191
196
|
this.send(command, optionsOrCb || {}, cb);
|
|
192
197
|
}
|
|
193
198
|
else {
|
|
194
199
|
return this.send(command, optionsOrCb);
|
|
195
200
|
}
|
|
196
|
-
}
|
|
197
|
-
describeDomain(args, optionsOrCb, cb) {
|
|
198
|
-
|
|
201
|
+
};
|
|
202
|
+
OpenSearch.prototype.describeDomain = function (args, optionsOrCb, cb) {
|
|
203
|
+
var command = new DescribeDomainCommand(args);
|
|
199
204
|
if (typeof optionsOrCb === "function") {
|
|
200
205
|
this.send(command, optionsOrCb);
|
|
201
206
|
}
|
|
202
207
|
else if (typeof cb === "function") {
|
|
203
208
|
if (typeof optionsOrCb !== "object")
|
|
204
|
-
throw new Error(
|
|
209
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
205
210
|
this.send(command, optionsOrCb || {}, cb);
|
|
206
211
|
}
|
|
207
212
|
else {
|
|
208
213
|
return this.send(command, optionsOrCb);
|
|
209
214
|
}
|
|
210
|
-
}
|
|
211
|
-
describeDomainAutoTunes(args, optionsOrCb, cb) {
|
|
212
|
-
|
|
215
|
+
};
|
|
216
|
+
OpenSearch.prototype.describeDomainAutoTunes = function (args, optionsOrCb, cb) {
|
|
217
|
+
var command = new DescribeDomainAutoTunesCommand(args);
|
|
213
218
|
if (typeof optionsOrCb === "function") {
|
|
214
219
|
this.send(command, optionsOrCb);
|
|
215
220
|
}
|
|
216
221
|
else if (typeof cb === "function") {
|
|
217
222
|
if (typeof optionsOrCb !== "object")
|
|
218
|
-
throw new Error(
|
|
223
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
219
224
|
this.send(command, optionsOrCb || {}, cb);
|
|
220
225
|
}
|
|
221
226
|
else {
|
|
222
227
|
return this.send(command, optionsOrCb);
|
|
223
228
|
}
|
|
224
|
-
}
|
|
225
|
-
describeDomainChangeProgress(args, optionsOrCb, cb) {
|
|
226
|
-
|
|
229
|
+
};
|
|
230
|
+
OpenSearch.prototype.describeDomainChangeProgress = function (args, optionsOrCb, cb) {
|
|
231
|
+
var command = new DescribeDomainChangeProgressCommand(args);
|
|
227
232
|
if (typeof optionsOrCb === "function") {
|
|
228
233
|
this.send(command, optionsOrCb);
|
|
229
234
|
}
|
|
230
235
|
else if (typeof cb === "function") {
|
|
231
236
|
if (typeof optionsOrCb !== "object")
|
|
232
|
-
throw new Error(
|
|
237
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
233
238
|
this.send(command, optionsOrCb || {}, cb);
|
|
234
239
|
}
|
|
235
240
|
else {
|
|
236
241
|
return this.send(command, optionsOrCb);
|
|
237
242
|
}
|
|
238
|
-
}
|
|
239
|
-
describeDomainConfig(args, optionsOrCb, cb) {
|
|
240
|
-
|
|
243
|
+
};
|
|
244
|
+
OpenSearch.prototype.describeDomainConfig = function (args, optionsOrCb, cb) {
|
|
245
|
+
var command = new DescribeDomainConfigCommand(args);
|
|
241
246
|
if (typeof optionsOrCb === "function") {
|
|
242
247
|
this.send(command, optionsOrCb);
|
|
243
248
|
}
|
|
244
249
|
else if (typeof cb === "function") {
|
|
245
250
|
if (typeof optionsOrCb !== "object")
|
|
246
|
-
throw new Error(
|
|
251
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
247
252
|
this.send(command, optionsOrCb || {}, cb);
|
|
248
253
|
}
|
|
249
254
|
else {
|
|
250
255
|
return this.send(command, optionsOrCb);
|
|
251
256
|
}
|
|
252
|
-
}
|
|
253
|
-
describeDomains(args, optionsOrCb, cb) {
|
|
254
|
-
|
|
257
|
+
};
|
|
258
|
+
OpenSearch.prototype.describeDomains = function (args, optionsOrCb, cb) {
|
|
259
|
+
var command = new DescribeDomainsCommand(args);
|
|
255
260
|
if (typeof optionsOrCb === "function") {
|
|
256
261
|
this.send(command, optionsOrCb);
|
|
257
262
|
}
|
|
258
263
|
else if (typeof cb === "function") {
|
|
259
264
|
if (typeof optionsOrCb !== "object")
|
|
260
|
-
throw new Error(
|
|
265
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
261
266
|
this.send(command, optionsOrCb || {}, cb);
|
|
262
267
|
}
|
|
263
268
|
else {
|
|
264
269
|
return this.send(command, optionsOrCb);
|
|
265
270
|
}
|
|
266
|
-
}
|
|
267
|
-
describeInboundConnections(args, optionsOrCb, cb) {
|
|
268
|
-
|
|
271
|
+
};
|
|
272
|
+
OpenSearch.prototype.describeInboundConnections = function (args, optionsOrCb, cb) {
|
|
273
|
+
var command = new DescribeInboundConnectionsCommand(args);
|
|
269
274
|
if (typeof optionsOrCb === "function") {
|
|
270
275
|
this.send(command, optionsOrCb);
|
|
271
276
|
}
|
|
272
277
|
else if (typeof cb === "function") {
|
|
273
278
|
if (typeof optionsOrCb !== "object")
|
|
274
|
-
throw new Error(
|
|
279
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
275
280
|
this.send(command, optionsOrCb || {}, cb);
|
|
276
281
|
}
|
|
277
282
|
else {
|
|
278
283
|
return this.send(command, optionsOrCb);
|
|
279
284
|
}
|
|
280
|
-
}
|
|
281
|
-
describeInstanceTypeLimits(args, optionsOrCb, cb) {
|
|
282
|
-
|
|
285
|
+
};
|
|
286
|
+
OpenSearch.prototype.describeInstanceTypeLimits = function (args, optionsOrCb, cb) {
|
|
287
|
+
var command = new DescribeInstanceTypeLimitsCommand(args);
|
|
283
288
|
if (typeof optionsOrCb === "function") {
|
|
284
289
|
this.send(command, optionsOrCb);
|
|
285
290
|
}
|
|
286
291
|
else if (typeof cb === "function") {
|
|
287
292
|
if (typeof optionsOrCb !== "object")
|
|
288
|
-
throw new Error(
|
|
293
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
289
294
|
this.send(command, optionsOrCb || {}, cb);
|
|
290
295
|
}
|
|
291
296
|
else {
|
|
292
297
|
return this.send(command, optionsOrCb);
|
|
293
298
|
}
|
|
294
|
-
}
|
|
295
|
-
describeOutboundConnections(args, optionsOrCb, cb) {
|
|
296
|
-
|
|
299
|
+
};
|
|
300
|
+
OpenSearch.prototype.describeOutboundConnections = function (args, optionsOrCb, cb) {
|
|
301
|
+
var command = new DescribeOutboundConnectionsCommand(args);
|
|
297
302
|
if (typeof optionsOrCb === "function") {
|
|
298
303
|
this.send(command, optionsOrCb);
|
|
299
304
|
}
|
|
300
305
|
else if (typeof cb === "function") {
|
|
301
306
|
if (typeof optionsOrCb !== "object")
|
|
302
|
-
throw new Error(
|
|
307
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
303
308
|
this.send(command, optionsOrCb || {}, cb);
|
|
304
309
|
}
|
|
305
310
|
else {
|
|
306
311
|
return this.send(command, optionsOrCb);
|
|
307
312
|
}
|
|
308
|
-
}
|
|
309
|
-
describePackages(args, optionsOrCb, cb) {
|
|
310
|
-
|
|
313
|
+
};
|
|
314
|
+
OpenSearch.prototype.describePackages = function (args, optionsOrCb, cb) {
|
|
315
|
+
var command = new DescribePackagesCommand(args);
|
|
311
316
|
if (typeof optionsOrCb === "function") {
|
|
312
317
|
this.send(command, optionsOrCb);
|
|
313
318
|
}
|
|
314
319
|
else if (typeof cb === "function") {
|
|
315
320
|
if (typeof optionsOrCb !== "object")
|
|
316
|
-
throw new Error(
|
|
321
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
317
322
|
this.send(command, optionsOrCb || {}, cb);
|
|
318
323
|
}
|
|
319
324
|
else {
|
|
320
325
|
return this.send(command, optionsOrCb);
|
|
321
326
|
}
|
|
322
|
-
}
|
|
323
|
-
describeReservedInstanceOfferings(args, optionsOrCb, cb) {
|
|
324
|
-
|
|
327
|
+
};
|
|
328
|
+
OpenSearch.prototype.describeReservedInstanceOfferings = function (args, optionsOrCb, cb) {
|
|
329
|
+
var command = new DescribeReservedInstanceOfferingsCommand(args);
|
|
325
330
|
if (typeof optionsOrCb === "function") {
|
|
326
331
|
this.send(command, optionsOrCb);
|
|
327
332
|
}
|
|
328
333
|
else if (typeof cb === "function") {
|
|
329
334
|
if (typeof optionsOrCb !== "object")
|
|
330
|
-
throw new Error(
|
|
335
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
331
336
|
this.send(command, optionsOrCb || {}, cb);
|
|
332
337
|
}
|
|
333
338
|
else {
|
|
334
339
|
return this.send(command, optionsOrCb);
|
|
335
340
|
}
|
|
336
|
-
}
|
|
337
|
-
describeReservedInstances(args, optionsOrCb, cb) {
|
|
338
|
-
|
|
341
|
+
};
|
|
342
|
+
OpenSearch.prototype.describeReservedInstances = function (args, optionsOrCb, cb) {
|
|
343
|
+
var command = new DescribeReservedInstancesCommand(args);
|
|
339
344
|
if (typeof optionsOrCb === "function") {
|
|
340
345
|
this.send(command, optionsOrCb);
|
|
341
346
|
}
|
|
342
347
|
else if (typeof cb === "function") {
|
|
343
348
|
if (typeof optionsOrCb !== "object")
|
|
344
|
-
throw new Error(
|
|
349
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
345
350
|
this.send(command, optionsOrCb || {}, cb);
|
|
346
351
|
}
|
|
347
352
|
else {
|
|
348
353
|
return this.send(command, optionsOrCb);
|
|
349
354
|
}
|
|
350
|
-
}
|
|
351
|
-
dissociatePackage(args, optionsOrCb, cb) {
|
|
352
|
-
|
|
355
|
+
};
|
|
356
|
+
OpenSearch.prototype.dissociatePackage = function (args, optionsOrCb, cb) {
|
|
357
|
+
var command = new DissociatePackageCommand(args);
|
|
353
358
|
if (typeof optionsOrCb === "function") {
|
|
354
359
|
this.send(command, optionsOrCb);
|
|
355
360
|
}
|
|
356
361
|
else if (typeof cb === "function") {
|
|
357
362
|
if (typeof optionsOrCb !== "object")
|
|
358
|
-
throw new Error(
|
|
363
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
359
364
|
this.send(command, optionsOrCb || {}, cb);
|
|
360
365
|
}
|
|
361
366
|
else {
|
|
362
367
|
return this.send(command, optionsOrCb);
|
|
363
368
|
}
|
|
364
|
-
}
|
|
365
|
-
getCompatibleVersions(args, optionsOrCb, cb) {
|
|
366
|
-
|
|
369
|
+
};
|
|
370
|
+
OpenSearch.prototype.getCompatibleVersions = function (args, optionsOrCb, cb) {
|
|
371
|
+
var command = new GetCompatibleVersionsCommand(args);
|
|
367
372
|
if (typeof optionsOrCb === "function") {
|
|
368
373
|
this.send(command, optionsOrCb);
|
|
369
374
|
}
|
|
370
375
|
else if (typeof cb === "function") {
|
|
371
376
|
if (typeof optionsOrCb !== "object")
|
|
372
|
-
throw new Error(
|
|
377
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
373
378
|
this.send(command, optionsOrCb || {}, cb);
|
|
374
379
|
}
|
|
375
380
|
else {
|
|
376
381
|
return this.send(command, optionsOrCb);
|
|
377
382
|
}
|
|
378
|
-
}
|
|
379
|
-
getPackageVersionHistory(args, optionsOrCb, cb) {
|
|
380
|
-
|
|
383
|
+
};
|
|
384
|
+
OpenSearch.prototype.getPackageVersionHistory = function (args, optionsOrCb, cb) {
|
|
385
|
+
var command = new GetPackageVersionHistoryCommand(args);
|
|
381
386
|
if (typeof optionsOrCb === "function") {
|
|
382
387
|
this.send(command, optionsOrCb);
|
|
383
388
|
}
|
|
384
389
|
else if (typeof cb === "function") {
|
|
385
390
|
if (typeof optionsOrCb !== "object")
|
|
386
|
-
throw new Error(
|
|
391
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
387
392
|
this.send(command, optionsOrCb || {}, cb);
|
|
388
393
|
}
|
|
389
394
|
else {
|
|
390
395
|
return this.send(command, optionsOrCb);
|
|
391
396
|
}
|
|
392
|
-
}
|
|
393
|
-
getUpgradeHistory(args, optionsOrCb, cb) {
|
|
394
|
-
|
|
397
|
+
};
|
|
398
|
+
OpenSearch.prototype.getUpgradeHistory = function (args, optionsOrCb, cb) {
|
|
399
|
+
var command = new GetUpgradeHistoryCommand(args);
|
|
395
400
|
if (typeof optionsOrCb === "function") {
|
|
396
401
|
this.send(command, optionsOrCb);
|
|
397
402
|
}
|
|
398
403
|
else if (typeof cb === "function") {
|
|
399
404
|
if (typeof optionsOrCb !== "object")
|
|
400
|
-
throw new Error(
|
|
405
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
401
406
|
this.send(command, optionsOrCb || {}, cb);
|
|
402
407
|
}
|
|
403
408
|
else {
|
|
404
409
|
return this.send(command, optionsOrCb);
|
|
405
410
|
}
|
|
406
|
-
}
|
|
407
|
-
getUpgradeStatus(args, optionsOrCb, cb) {
|
|
408
|
-
|
|
411
|
+
};
|
|
412
|
+
OpenSearch.prototype.getUpgradeStatus = function (args, optionsOrCb, cb) {
|
|
413
|
+
var command = new GetUpgradeStatusCommand(args);
|
|
409
414
|
if (typeof optionsOrCb === "function") {
|
|
410
415
|
this.send(command, optionsOrCb);
|
|
411
416
|
}
|
|
412
417
|
else if (typeof cb === "function") {
|
|
413
418
|
if (typeof optionsOrCb !== "object")
|
|
414
|
-
throw new Error(
|
|
419
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
415
420
|
this.send(command, optionsOrCb || {}, cb);
|
|
416
421
|
}
|
|
417
422
|
else {
|
|
418
423
|
return this.send(command, optionsOrCb);
|
|
419
424
|
}
|
|
420
|
-
}
|
|
421
|
-
listDomainNames(args, optionsOrCb, cb) {
|
|
422
|
-
|
|
425
|
+
};
|
|
426
|
+
OpenSearch.prototype.listDomainNames = function (args, optionsOrCb, cb) {
|
|
427
|
+
var command = new ListDomainNamesCommand(args);
|
|
423
428
|
if (typeof optionsOrCb === "function") {
|
|
424
429
|
this.send(command, optionsOrCb);
|
|
425
430
|
}
|
|
426
431
|
else if (typeof cb === "function") {
|
|
427
432
|
if (typeof optionsOrCb !== "object")
|
|
428
|
-
throw new Error(
|
|
433
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
429
434
|
this.send(command, optionsOrCb || {}, cb);
|
|
430
435
|
}
|
|
431
436
|
else {
|
|
432
437
|
return this.send(command, optionsOrCb);
|
|
433
438
|
}
|
|
434
|
-
}
|
|
435
|
-
listDomainsForPackage(args, optionsOrCb, cb) {
|
|
436
|
-
|
|
439
|
+
};
|
|
440
|
+
OpenSearch.prototype.listDomainsForPackage = function (args, optionsOrCb, cb) {
|
|
441
|
+
var command = new ListDomainsForPackageCommand(args);
|
|
437
442
|
if (typeof optionsOrCb === "function") {
|
|
438
443
|
this.send(command, optionsOrCb);
|
|
439
444
|
}
|
|
440
445
|
else if (typeof cb === "function") {
|
|
441
446
|
if (typeof optionsOrCb !== "object")
|
|
442
|
-
throw new Error(
|
|
447
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
443
448
|
this.send(command, optionsOrCb || {}, cb);
|
|
444
449
|
}
|
|
445
450
|
else {
|
|
446
451
|
return this.send(command, optionsOrCb);
|
|
447
452
|
}
|
|
448
|
-
}
|
|
449
|
-
listInstanceTypeDetails(args, optionsOrCb, cb) {
|
|
450
|
-
|
|
453
|
+
};
|
|
454
|
+
OpenSearch.prototype.listInstanceTypeDetails = function (args, optionsOrCb, cb) {
|
|
455
|
+
var command = new ListInstanceTypeDetailsCommand(args);
|
|
451
456
|
if (typeof optionsOrCb === "function") {
|
|
452
457
|
this.send(command, optionsOrCb);
|
|
453
458
|
}
|
|
454
459
|
else if (typeof cb === "function") {
|
|
455
460
|
if (typeof optionsOrCb !== "object")
|
|
456
|
-
throw new Error(
|
|
461
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
457
462
|
this.send(command, optionsOrCb || {}, cb);
|
|
458
463
|
}
|
|
459
464
|
else {
|
|
460
465
|
return this.send(command, optionsOrCb);
|
|
461
466
|
}
|
|
462
|
-
}
|
|
463
|
-
listPackagesForDomain(args, optionsOrCb, cb) {
|
|
464
|
-
|
|
467
|
+
};
|
|
468
|
+
OpenSearch.prototype.listPackagesForDomain = function (args, optionsOrCb, cb) {
|
|
469
|
+
var command = new ListPackagesForDomainCommand(args);
|
|
465
470
|
if (typeof optionsOrCb === "function") {
|
|
466
471
|
this.send(command, optionsOrCb);
|
|
467
472
|
}
|
|
468
473
|
else if (typeof cb === "function") {
|
|
469
474
|
if (typeof optionsOrCb !== "object")
|
|
470
|
-
throw new Error(
|
|
475
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
471
476
|
this.send(command, optionsOrCb || {}, cb);
|
|
472
477
|
}
|
|
473
478
|
else {
|
|
474
479
|
return this.send(command, optionsOrCb);
|
|
475
480
|
}
|
|
476
|
-
}
|
|
477
|
-
listTags(args, optionsOrCb, cb) {
|
|
478
|
-
|
|
481
|
+
};
|
|
482
|
+
OpenSearch.prototype.listTags = function (args, optionsOrCb, cb) {
|
|
483
|
+
var command = new ListTagsCommand(args);
|
|
479
484
|
if (typeof optionsOrCb === "function") {
|
|
480
485
|
this.send(command, optionsOrCb);
|
|
481
486
|
}
|
|
482
487
|
else if (typeof cb === "function") {
|
|
483
488
|
if (typeof optionsOrCb !== "object")
|
|
484
|
-
throw new Error(
|
|
489
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
485
490
|
this.send(command, optionsOrCb || {}, cb);
|
|
486
491
|
}
|
|
487
492
|
else {
|
|
488
493
|
return this.send(command, optionsOrCb);
|
|
489
494
|
}
|
|
490
|
-
}
|
|
491
|
-
listVersions(args, optionsOrCb, cb) {
|
|
492
|
-
|
|
495
|
+
};
|
|
496
|
+
OpenSearch.prototype.listVersions = function (args, optionsOrCb, cb) {
|
|
497
|
+
var command = new ListVersionsCommand(args);
|
|
493
498
|
if (typeof optionsOrCb === "function") {
|
|
494
499
|
this.send(command, optionsOrCb);
|
|
495
500
|
}
|
|
496
501
|
else if (typeof cb === "function") {
|
|
497
502
|
if (typeof optionsOrCb !== "object")
|
|
498
|
-
throw new Error(
|
|
503
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
499
504
|
this.send(command, optionsOrCb || {}, cb);
|
|
500
505
|
}
|
|
501
506
|
else {
|
|
502
507
|
return this.send(command, optionsOrCb);
|
|
503
508
|
}
|
|
504
|
-
}
|
|
505
|
-
purchaseReservedInstanceOffering(args, optionsOrCb, cb) {
|
|
506
|
-
|
|
509
|
+
};
|
|
510
|
+
OpenSearch.prototype.purchaseReservedInstanceOffering = function (args, optionsOrCb, cb) {
|
|
511
|
+
var command = new PurchaseReservedInstanceOfferingCommand(args);
|
|
507
512
|
if (typeof optionsOrCb === "function") {
|
|
508
513
|
this.send(command, optionsOrCb);
|
|
509
514
|
}
|
|
510
515
|
else if (typeof cb === "function") {
|
|
511
516
|
if (typeof optionsOrCb !== "object")
|
|
512
|
-
throw new Error(
|
|
517
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
513
518
|
this.send(command, optionsOrCb || {}, cb);
|
|
514
519
|
}
|
|
515
520
|
else {
|
|
516
521
|
return this.send(command, optionsOrCb);
|
|
517
522
|
}
|
|
518
|
-
}
|
|
519
|
-
rejectInboundConnection(args, optionsOrCb, cb) {
|
|
520
|
-
|
|
523
|
+
};
|
|
524
|
+
OpenSearch.prototype.rejectInboundConnection = function (args, optionsOrCb, cb) {
|
|
525
|
+
var command = new RejectInboundConnectionCommand(args);
|
|
521
526
|
if (typeof optionsOrCb === "function") {
|
|
522
527
|
this.send(command, optionsOrCb);
|
|
523
528
|
}
|
|
524
529
|
else if (typeof cb === "function") {
|
|
525
530
|
if (typeof optionsOrCb !== "object")
|
|
526
|
-
throw new Error(
|
|
531
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
527
532
|
this.send(command, optionsOrCb || {}, cb);
|
|
528
533
|
}
|
|
529
534
|
else {
|
|
530
535
|
return this.send(command, optionsOrCb);
|
|
531
536
|
}
|
|
532
|
-
}
|
|
533
|
-
removeTags(args, optionsOrCb, cb) {
|
|
534
|
-
|
|
537
|
+
};
|
|
538
|
+
OpenSearch.prototype.removeTags = function (args, optionsOrCb, cb) {
|
|
539
|
+
var command = new RemoveTagsCommand(args);
|
|
535
540
|
if (typeof optionsOrCb === "function") {
|
|
536
541
|
this.send(command, optionsOrCb);
|
|
537
542
|
}
|
|
538
543
|
else if (typeof cb === "function") {
|
|
539
544
|
if (typeof optionsOrCb !== "object")
|
|
540
|
-
throw new Error(
|
|
545
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
541
546
|
this.send(command, optionsOrCb || {}, cb);
|
|
542
547
|
}
|
|
543
548
|
else {
|
|
544
549
|
return this.send(command, optionsOrCb);
|
|
545
550
|
}
|
|
546
|
-
}
|
|
547
|
-
startServiceSoftwareUpdate(args, optionsOrCb, cb) {
|
|
548
|
-
|
|
551
|
+
};
|
|
552
|
+
OpenSearch.prototype.startServiceSoftwareUpdate = function (args, optionsOrCb, cb) {
|
|
553
|
+
var command = new StartServiceSoftwareUpdateCommand(args);
|
|
549
554
|
if (typeof optionsOrCb === "function") {
|
|
550
555
|
this.send(command, optionsOrCb);
|
|
551
556
|
}
|
|
552
557
|
else if (typeof cb === "function") {
|
|
553
558
|
if (typeof optionsOrCb !== "object")
|
|
554
|
-
throw new Error(
|
|
559
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
555
560
|
this.send(command, optionsOrCb || {}, cb);
|
|
556
561
|
}
|
|
557
562
|
else {
|
|
558
563
|
return this.send(command, optionsOrCb);
|
|
559
564
|
}
|
|
560
|
-
}
|
|
561
|
-
updateDomainConfig(args, optionsOrCb, cb) {
|
|
562
|
-
|
|
565
|
+
};
|
|
566
|
+
OpenSearch.prototype.updateDomainConfig = function (args, optionsOrCb, cb) {
|
|
567
|
+
var command = new UpdateDomainConfigCommand(args);
|
|
563
568
|
if (typeof optionsOrCb === "function") {
|
|
564
569
|
this.send(command, optionsOrCb);
|
|
565
570
|
}
|
|
566
571
|
else if (typeof cb === "function") {
|
|
567
572
|
if (typeof optionsOrCb !== "object")
|
|
568
|
-
throw new Error(
|
|
573
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
569
574
|
this.send(command, optionsOrCb || {}, cb);
|
|
570
575
|
}
|
|
571
576
|
else {
|
|
572
577
|
return this.send(command, optionsOrCb);
|
|
573
578
|
}
|
|
574
|
-
}
|
|
575
|
-
updatePackage(args, optionsOrCb, cb) {
|
|
576
|
-
|
|
579
|
+
};
|
|
580
|
+
OpenSearch.prototype.updatePackage = function (args, optionsOrCb, cb) {
|
|
581
|
+
var command = new UpdatePackageCommand(args);
|
|
577
582
|
if (typeof optionsOrCb === "function") {
|
|
578
583
|
this.send(command, optionsOrCb);
|
|
579
584
|
}
|
|
580
585
|
else if (typeof cb === "function") {
|
|
581
586
|
if (typeof optionsOrCb !== "object")
|
|
582
|
-
throw new Error(
|
|
587
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
583
588
|
this.send(command, optionsOrCb || {}, cb);
|
|
584
589
|
}
|
|
585
590
|
else {
|
|
586
591
|
return this.send(command, optionsOrCb);
|
|
587
592
|
}
|
|
588
|
-
}
|
|
589
|
-
upgradeDomain(args, optionsOrCb, cb) {
|
|
590
|
-
|
|
593
|
+
};
|
|
594
|
+
OpenSearch.prototype.upgradeDomain = function (args, optionsOrCb, cb) {
|
|
595
|
+
var command = new UpgradeDomainCommand(args);
|
|
591
596
|
if (typeof optionsOrCb === "function") {
|
|
592
597
|
this.send(command, optionsOrCb);
|
|
593
598
|
}
|
|
594
599
|
else if (typeof cb === "function") {
|
|
595
600
|
if (typeof optionsOrCb !== "object")
|
|
596
|
-
throw new Error(
|
|
601
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
597
602
|
this.send(command, optionsOrCb || {}, cb);
|
|
598
603
|
}
|
|
599
604
|
else {
|
|
600
605
|
return this.send(command, optionsOrCb);
|
|
601
606
|
}
|
|
602
|
-
}
|
|
603
|
-
|
|
607
|
+
};
|
|
608
|
+
return OpenSearch;
|
|
609
|
+
}(OpenSearchClient));
|
|
610
|
+
export { OpenSearch };
|