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