@aws-sdk/client-opensearchserverless 3.315.0 → 3.319.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/OpenSearchServerless.js +35 -434
- package/dist-cjs/protocols/Aws_json1_0.js +15 -15
- package/dist-es/OpenSearchServerless.js +35 -434
- package/dist-es/protocols/Aws_json1_0.js +15 -15
- package/dist-types/OpenSearchServerless.d.ts +47 -119
- package/dist-types/ts3.4/OpenSearchServerless.d.ts +4 -1
- package/package.json +8 -8
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { BatchGetCollectionCommand, } from "./commands/BatchGetCollectionCommand";
|
|
2
3
|
import { BatchGetVpcEndpointCommand, } from "./commands/BatchGetVpcEndpointCommand";
|
|
3
4
|
import { CreateAccessPolicyCommand, } from "./commands/CreateAccessPolicyCommand";
|
|
@@ -30,439 +31,39 @@ import { UpdateSecurityConfigCommand, } from "./commands/UpdateSecurityConfigCom
|
|
|
30
31
|
import { UpdateSecurityPolicyCommand, } from "./commands/UpdateSecurityPolicyCommand";
|
|
31
32
|
import { UpdateVpcEndpointCommand, } from "./commands/UpdateVpcEndpointCommand";
|
|
32
33
|
import { OpenSearchServerlessClient } from "./OpenSearchServerlessClient";
|
|
34
|
+
const commands = {
|
|
35
|
+
BatchGetCollectionCommand,
|
|
36
|
+
BatchGetVpcEndpointCommand,
|
|
37
|
+
CreateAccessPolicyCommand,
|
|
38
|
+
CreateCollectionCommand,
|
|
39
|
+
CreateSecurityConfigCommand,
|
|
40
|
+
CreateSecurityPolicyCommand,
|
|
41
|
+
CreateVpcEndpointCommand,
|
|
42
|
+
DeleteAccessPolicyCommand,
|
|
43
|
+
DeleteCollectionCommand,
|
|
44
|
+
DeleteSecurityConfigCommand,
|
|
45
|
+
DeleteSecurityPolicyCommand,
|
|
46
|
+
DeleteVpcEndpointCommand,
|
|
47
|
+
GetAccessPolicyCommand,
|
|
48
|
+
GetAccountSettingsCommand,
|
|
49
|
+
GetPoliciesStatsCommand,
|
|
50
|
+
GetSecurityConfigCommand,
|
|
51
|
+
GetSecurityPolicyCommand,
|
|
52
|
+
ListAccessPoliciesCommand,
|
|
53
|
+
ListCollectionsCommand,
|
|
54
|
+
ListSecurityConfigsCommand,
|
|
55
|
+
ListSecurityPoliciesCommand,
|
|
56
|
+
ListTagsForResourceCommand,
|
|
57
|
+
ListVpcEndpointsCommand,
|
|
58
|
+
TagResourceCommand,
|
|
59
|
+
UntagResourceCommand,
|
|
60
|
+
UpdateAccessPolicyCommand,
|
|
61
|
+
UpdateAccountSettingsCommand,
|
|
62
|
+
UpdateCollectionCommand,
|
|
63
|
+
UpdateSecurityConfigCommand,
|
|
64
|
+
UpdateSecurityPolicyCommand,
|
|
65
|
+
UpdateVpcEndpointCommand,
|
|
66
|
+
};
|
|
33
67
|
export class OpenSearchServerless extends OpenSearchServerlessClient {
|
|
34
|
-
batchGetCollection(args, optionsOrCb, cb) {
|
|
35
|
-
const command = new BatchGetCollectionCommand(args);
|
|
36
|
-
if (typeof optionsOrCb === "function") {
|
|
37
|
-
this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
else if (typeof cb === "function") {
|
|
40
|
-
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
batchGetVpcEndpoint(args, optionsOrCb, cb) {
|
|
49
|
-
const command = new BatchGetVpcEndpointCommand(args);
|
|
50
|
-
if (typeof optionsOrCb === "function") {
|
|
51
|
-
this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
else if (typeof cb === "function") {
|
|
54
|
-
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
56
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
createAccessPolicy(args, optionsOrCb, cb) {
|
|
63
|
-
const command = new CreateAccessPolicyCommand(args);
|
|
64
|
-
if (typeof optionsOrCb === "function") {
|
|
65
|
-
this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
else if (typeof cb === "function") {
|
|
68
|
-
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
70
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
createCollection(args, optionsOrCb, cb) {
|
|
77
|
-
const command = new CreateCollectionCommand(args);
|
|
78
|
-
if (typeof optionsOrCb === "function") {
|
|
79
|
-
this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
else if (typeof cb === "function") {
|
|
82
|
-
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
return this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
createSecurityConfig(args, optionsOrCb, cb) {
|
|
91
|
-
const command = new CreateSecurityConfigCommand(args);
|
|
92
|
-
if (typeof optionsOrCb === "function") {
|
|
93
|
-
this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
else if (typeof cb === "function") {
|
|
96
|
-
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
return this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
createSecurityPolicy(args, optionsOrCb, cb) {
|
|
105
|
-
const command = new CreateSecurityPolicyCommand(args);
|
|
106
|
-
if (typeof optionsOrCb === "function") {
|
|
107
|
-
this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
else if (typeof cb === "function") {
|
|
110
|
-
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
return this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
createVpcEndpoint(args, optionsOrCb, cb) {
|
|
119
|
-
const command = new CreateVpcEndpointCommand(args);
|
|
120
|
-
if (typeof optionsOrCb === "function") {
|
|
121
|
-
this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
else if (typeof cb === "function") {
|
|
124
|
-
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
deleteAccessPolicy(args, optionsOrCb, cb) {
|
|
133
|
-
const command = new DeleteAccessPolicyCommand(args);
|
|
134
|
-
if (typeof optionsOrCb === "function") {
|
|
135
|
-
this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
else if (typeof cb === "function") {
|
|
138
|
-
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
return this.send(command, optionsOrCb);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
deleteCollection(args, optionsOrCb, cb) {
|
|
147
|
-
const command = new DeleteCollectionCommand(args);
|
|
148
|
-
if (typeof optionsOrCb === "function") {
|
|
149
|
-
this.send(command, optionsOrCb);
|
|
150
|
-
}
|
|
151
|
-
else if (typeof cb === "function") {
|
|
152
|
-
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
return this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
deleteSecurityConfig(args, optionsOrCb, cb) {
|
|
161
|
-
const command = new DeleteSecurityConfigCommand(args);
|
|
162
|
-
if (typeof optionsOrCb === "function") {
|
|
163
|
-
this.send(command, optionsOrCb);
|
|
164
|
-
}
|
|
165
|
-
else if (typeof cb === "function") {
|
|
166
|
-
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
return this.send(command, optionsOrCb);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
deleteSecurityPolicy(args, optionsOrCb, cb) {
|
|
175
|
-
const command = new DeleteSecurityPolicyCommand(args);
|
|
176
|
-
if (typeof optionsOrCb === "function") {
|
|
177
|
-
this.send(command, optionsOrCb);
|
|
178
|
-
}
|
|
179
|
-
else if (typeof cb === "function") {
|
|
180
|
-
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
return this.send(command, optionsOrCb);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
deleteVpcEndpoint(args, optionsOrCb, cb) {
|
|
189
|
-
const command = new DeleteVpcEndpointCommand(args);
|
|
190
|
-
if (typeof optionsOrCb === "function") {
|
|
191
|
-
this.send(command, optionsOrCb);
|
|
192
|
-
}
|
|
193
|
-
else if (typeof cb === "function") {
|
|
194
|
-
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
196
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
return this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
getAccessPolicy(args, optionsOrCb, cb) {
|
|
203
|
-
const command = new GetAccessPolicyCommand(args);
|
|
204
|
-
if (typeof optionsOrCb === "function") {
|
|
205
|
-
this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
else if (typeof cb === "function") {
|
|
208
|
-
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
return this.send(command, optionsOrCb);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
getAccountSettings(args, optionsOrCb, cb) {
|
|
217
|
-
const command = new GetAccountSettingsCommand(args);
|
|
218
|
-
if (typeof optionsOrCb === "function") {
|
|
219
|
-
this.send(command, optionsOrCb);
|
|
220
|
-
}
|
|
221
|
-
else if (typeof cb === "function") {
|
|
222
|
-
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
224
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
return this.send(command, optionsOrCb);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
getPoliciesStats(args, optionsOrCb, cb) {
|
|
231
|
-
const command = new GetPoliciesStatsCommand(args);
|
|
232
|
-
if (typeof optionsOrCb === "function") {
|
|
233
|
-
this.send(command, optionsOrCb);
|
|
234
|
-
}
|
|
235
|
-
else if (typeof cb === "function") {
|
|
236
|
-
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
238
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
return this.send(command, optionsOrCb);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
getSecurityConfig(args, optionsOrCb, cb) {
|
|
245
|
-
const command = new GetSecurityConfigCommand(args);
|
|
246
|
-
if (typeof optionsOrCb === "function") {
|
|
247
|
-
this.send(command, optionsOrCb);
|
|
248
|
-
}
|
|
249
|
-
else if (typeof cb === "function") {
|
|
250
|
-
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
252
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
return this.send(command, optionsOrCb);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
getSecurityPolicy(args, optionsOrCb, cb) {
|
|
259
|
-
const command = new GetSecurityPolicyCommand(args);
|
|
260
|
-
if (typeof optionsOrCb === "function") {
|
|
261
|
-
this.send(command, optionsOrCb);
|
|
262
|
-
}
|
|
263
|
-
else if (typeof cb === "function") {
|
|
264
|
-
if (typeof optionsOrCb !== "object")
|
|
265
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
266
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
267
|
-
}
|
|
268
|
-
else {
|
|
269
|
-
return this.send(command, optionsOrCb);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
listAccessPolicies(args, optionsOrCb, cb) {
|
|
273
|
-
const command = new ListAccessPoliciesCommand(args);
|
|
274
|
-
if (typeof optionsOrCb === "function") {
|
|
275
|
-
this.send(command, optionsOrCb);
|
|
276
|
-
}
|
|
277
|
-
else if (typeof cb === "function") {
|
|
278
|
-
if (typeof optionsOrCb !== "object")
|
|
279
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
280
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
return this.send(command, optionsOrCb);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
listCollections(args, optionsOrCb, cb) {
|
|
287
|
-
const command = new ListCollectionsCommand(args);
|
|
288
|
-
if (typeof optionsOrCb === "function") {
|
|
289
|
-
this.send(command, optionsOrCb);
|
|
290
|
-
}
|
|
291
|
-
else if (typeof cb === "function") {
|
|
292
|
-
if (typeof optionsOrCb !== "object")
|
|
293
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
294
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
295
|
-
}
|
|
296
|
-
else {
|
|
297
|
-
return this.send(command, optionsOrCb);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
listSecurityConfigs(args, optionsOrCb, cb) {
|
|
301
|
-
const command = new ListSecurityConfigsCommand(args);
|
|
302
|
-
if (typeof optionsOrCb === "function") {
|
|
303
|
-
this.send(command, optionsOrCb);
|
|
304
|
-
}
|
|
305
|
-
else if (typeof cb === "function") {
|
|
306
|
-
if (typeof optionsOrCb !== "object")
|
|
307
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
308
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
return this.send(command, optionsOrCb);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
listSecurityPolicies(args, optionsOrCb, cb) {
|
|
315
|
-
const command = new ListSecurityPoliciesCommand(args);
|
|
316
|
-
if (typeof optionsOrCb === "function") {
|
|
317
|
-
this.send(command, optionsOrCb);
|
|
318
|
-
}
|
|
319
|
-
else if (typeof cb === "function") {
|
|
320
|
-
if (typeof optionsOrCb !== "object")
|
|
321
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
322
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
323
|
-
}
|
|
324
|
-
else {
|
|
325
|
-
return this.send(command, optionsOrCb);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
329
|
-
const command = new ListTagsForResourceCommand(args);
|
|
330
|
-
if (typeof optionsOrCb === "function") {
|
|
331
|
-
this.send(command, optionsOrCb);
|
|
332
|
-
}
|
|
333
|
-
else if (typeof cb === "function") {
|
|
334
|
-
if (typeof optionsOrCb !== "object")
|
|
335
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
336
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
337
|
-
}
|
|
338
|
-
else {
|
|
339
|
-
return this.send(command, optionsOrCb);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
listVpcEndpoints(args, optionsOrCb, cb) {
|
|
343
|
-
const command = new ListVpcEndpointsCommand(args);
|
|
344
|
-
if (typeof optionsOrCb === "function") {
|
|
345
|
-
this.send(command, optionsOrCb);
|
|
346
|
-
}
|
|
347
|
-
else if (typeof cb === "function") {
|
|
348
|
-
if (typeof optionsOrCb !== "object")
|
|
349
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
350
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
return this.send(command, optionsOrCb);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
tagResource(args, optionsOrCb, cb) {
|
|
357
|
-
const command = new TagResourceCommand(args);
|
|
358
|
-
if (typeof optionsOrCb === "function") {
|
|
359
|
-
this.send(command, optionsOrCb);
|
|
360
|
-
}
|
|
361
|
-
else if (typeof cb === "function") {
|
|
362
|
-
if (typeof optionsOrCb !== "object")
|
|
363
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
364
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
return this.send(command, optionsOrCb);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
untagResource(args, optionsOrCb, cb) {
|
|
371
|
-
const command = new UntagResourceCommand(args);
|
|
372
|
-
if (typeof optionsOrCb === "function") {
|
|
373
|
-
this.send(command, optionsOrCb);
|
|
374
|
-
}
|
|
375
|
-
else if (typeof cb === "function") {
|
|
376
|
-
if (typeof optionsOrCb !== "object")
|
|
377
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
378
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
return this.send(command, optionsOrCb);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
updateAccessPolicy(args, optionsOrCb, cb) {
|
|
385
|
-
const command = new UpdateAccessPolicyCommand(args);
|
|
386
|
-
if (typeof optionsOrCb === "function") {
|
|
387
|
-
this.send(command, optionsOrCb);
|
|
388
|
-
}
|
|
389
|
-
else if (typeof cb === "function") {
|
|
390
|
-
if (typeof optionsOrCb !== "object")
|
|
391
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
392
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
return this.send(command, optionsOrCb);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
updateAccountSettings(args, optionsOrCb, cb) {
|
|
399
|
-
const command = new UpdateAccountSettingsCommand(args);
|
|
400
|
-
if (typeof optionsOrCb === "function") {
|
|
401
|
-
this.send(command, optionsOrCb);
|
|
402
|
-
}
|
|
403
|
-
else if (typeof cb === "function") {
|
|
404
|
-
if (typeof optionsOrCb !== "object")
|
|
405
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
406
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
407
|
-
}
|
|
408
|
-
else {
|
|
409
|
-
return this.send(command, optionsOrCb);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
updateCollection(args, optionsOrCb, cb) {
|
|
413
|
-
const command = new UpdateCollectionCommand(args);
|
|
414
|
-
if (typeof optionsOrCb === "function") {
|
|
415
|
-
this.send(command, optionsOrCb);
|
|
416
|
-
}
|
|
417
|
-
else if (typeof cb === "function") {
|
|
418
|
-
if (typeof optionsOrCb !== "object")
|
|
419
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
420
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
421
|
-
}
|
|
422
|
-
else {
|
|
423
|
-
return this.send(command, optionsOrCb);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
updateSecurityConfig(args, optionsOrCb, cb) {
|
|
427
|
-
const command = new UpdateSecurityConfigCommand(args);
|
|
428
|
-
if (typeof optionsOrCb === "function") {
|
|
429
|
-
this.send(command, optionsOrCb);
|
|
430
|
-
}
|
|
431
|
-
else if (typeof cb === "function") {
|
|
432
|
-
if (typeof optionsOrCb !== "object")
|
|
433
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
434
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
435
|
-
}
|
|
436
|
-
else {
|
|
437
|
-
return this.send(command, optionsOrCb);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
updateSecurityPolicy(args, optionsOrCb, cb) {
|
|
441
|
-
const command = new UpdateSecurityPolicyCommand(args);
|
|
442
|
-
if (typeof optionsOrCb === "function") {
|
|
443
|
-
this.send(command, optionsOrCb);
|
|
444
|
-
}
|
|
445
|
-
else if (typeof cb === "function") {
|
|
446
|
-
if (typeof optionsOrCb !== "object")
|
|
447
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
448
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
449
|
-
}
|
|
450
|
-
else {
|
|
451
|
-
return this.send(command, optionsOrCb);
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
updateVpcEndpoint(args, optionsOrCb, cb) {
|
|
455
|
-
const command = new UpdateVpcEndpointCommand(args);
|
|
456
|
-
if (typeof optionsOrCb === "function") {
|
|
457
|
-
this.send(command, optionsOrCb);
|
|
458
|
-
}
|
|
459
|
-
else if (typeof cb === "function") {
|
|
460
|
-
if (typeof optionsOrCb !== "object")
|
|
461
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
462
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
463
|
-
}
|
|
464
|
-
else {
|
|
465
|
-
return this.send(command, optionsOrCb);
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
68
|
}
|
|
69
|
+
createAggregatedClient(commands, OpenSearchServerless);
|
|
@@ -1444,7 +1444,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1444
1444
|
};
|
|
1445
1445
|
const se_CreateAccessPolicyRequest = (input, context) => {
|
|
1446
1446
|
return take(input, {
|
|
1447
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1447
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1448
1448
|
description: [],
|
|
1449
1449
|
name: [],
|
|
1450
1450
|
policy: [],
|
|
@@ -1453,7 +1453,7 @@ const se_CreateAccessPolicyRequest = (input, context) => {
|
|
|
1453
1453
|
};
|
|
1454
1454
|
const se_CreateCollectionRequest = (input, context) => {
|
|
1455
1455
|
return take(input, {
|
|
1456
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1456
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1457
1457
|
description: [],
|
|
1458
1458
|
name: [],
|
|
1459
1459
|
tags: _json,
|
|
@@ -1462,7 +1462,7 @@ const se_CreateCollectionRequest = (input, context) => {
|
|
|
1462
1462
|
};
|
|
1463
1463
|
const se_CreateSecurityConfigRequest = (input, context) => {
|
|
1464
1464
|
return take(input, {
|
|
1465
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1465
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1466
1466
|
description: [],
|
|
1467
1467
|
name: [],
|
|
1468
1468
|
samlOptions: _json,
|
|
@@ -1471,7 +1471,7 @@ const se_CreateSecurityConfigRequest = (input, context) => {
|
|
|
1471
1471
|
};
|
|
1472
1472
|
const se_CreateSecurityPolicyRequest = (input, context) => {
|
|
1473
1473
|
return take(input, {
|
|
1474
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1474
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1475
1475
|
description: [],
|
|
1476
1476
|
name: [],
|
|
1477
1477
|
policy: [],
|
|
@@ -1480,7 +1480,7 @@ const se_CreateSecurityPolicyRequest = (input, context) => {
|
|
|
1480
1480
|
};
|
|
1481
1481
|
const se_CreateVpcEndpointRequest = (input, context) => {
|
|
1482
1482
|
return take(input, {
|
|
1483
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1483
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1484
1484
|
name: [],
|
|
1485
1485
|
securityGroupIds: _json,
|
|
1486
1486
|
subnetIds: _json,
|
|
@@ -1489,39 +1489,39 @@ const se_CreateVpcEndpointRequest = (input, context) => {
|
|
|
1489
1489
|
};
|
|
1490
1490
|
const se_DeleteAccessPolicyRequest = (input, context) => {
|
|
1491
1491
|
return take(input, {
|
|
1492
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1492
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1493
1493
|
name: [],
|
|
1494
1494
|
type: [],
|
|
1495
1495
|
});
|
|
1496
1496
|
};
|
|
1497
1497
|
const se_DeleteCollectionRequest = (input, context) => {
|
|
1498
1498
|
return take(input, {
|
|
1499
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1499
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1500
1500
|
id: [],
|
|
1501
1501
|
});
|
|
1502
1502
|
};
|
|
1503
1503
|
const se_DeleteSecurityConfigRequest = (input, context) => {
|
|
1504
1504
|
return take(input, {
|
|
1505
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1505
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1506
1506
|
id: [],
|
|
1507
1507
|
});
|
|
1508
1508
|
};
|
|
1509
1509
|
const se_DeleteSecurityPolicyRequest = (input, context) => {
|
|
1510
1510
|
return take(input, {
|
|
1511
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1511
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1512
1512
|
name: [],
|
|
1513
1513
|
type: [],
|
|
1514
1514
|
});
|
|
1515
1515
|
};
|
|
1516
1516
|
const se_DeleteVpcEndpointRequest = (input, context) => {
|
|
1517
1517
|
return take(input, {
|
|
1518
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1518
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1519
1519
|
id: [],
|
|
1520
1520
|
});
|
|
1521
1521
|
};
|
|
1522
1522
|
const se_UpdateAccessPolicyRequest = (input, context) => {
|
|
1523
1523
|
return take(input, {
|
|
1524
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1524
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1525
1525
|
description: [],
|
|
1526
1526
|
name: [],
|
|
1527
1527
|
policy: [],
|
|
@@ -1531,14 +1531,14 @@ const se_UpdateAccessPolicyRequest = (input, context) => {
|
|
|
1531
1531
|
};
|
|
1532
1532
|
const se_UpdateCollectionRequest = (input, context) => {
|
|
1533
1533
|
return take(input, {
|
|
1534
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1534
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1535
1535
|
description: [],
|
|
1536
1536
|
id: [],
|
|
1537
1537
|
});
|
|
1538
1538
|
};
|
|
1539
1539
|
const se_UpdateSecurityConfigRequest = (input, context) => {
|
|
1540
1540
|
return take(input, {
|
|
1541
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1541
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1542
1542
|
configVersion: [],
|
|
1543
1543
|
description: [],
|
|
1544
1544
|
id: [],
|
|
@@ -1547,7 +1547,7 @@ const se_UpdateSecurityConfigRequest = (input, context) => {
|
|
|
1547
1547
|
};
|
|
1548
1548
|
const se_UpdateSecurityPolicyRequest = (input, context) => {
|
|
1549
1549
|
return take(input, {
|
|
1550
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1550
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1551
1551
|
description: [],
|
|
1552
1552
|
name: [],
|
|
1553
1553
|
policy: [],
|
|
@@ -1559,7 +1559,7 @@ const se_UpdateVpcEndpointRequest = (input, context) => {
|
|
|
1559
1559
|
return take(input, {
|
|
1560
1560
|
addSecurityGroupIds: _json,
|
|
1561
1561
|
addSubnetIds: _json,
|
|
1562
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1562
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1563
1563
|
id: [],
|
|
1564
1564
|
removeSecurityGroupIds: _json,
|
|
1565
1565
|
removeSubnetIds: _json,
|