@aws-sdk/client-opensearchserverless 3.503.1 → 3.507.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/index.js +73 -988
- package/dist-es/protocols/Aws_json1_0.js +66 -981
- package/package.json +3 -3
|
@@ -227,7 +227,7 @@ export const se_UpdateVpcEndpointCommand = async (input, context) => {
|
|
|
227
227
|
};
|
|
228
228
|
export const de_BatchGetCollectionCommand = async (output, context) => {
|
|
229
229
|
if (output.statusCode >= 300) {
|
|
230
|
-
return
|
|
230
|
+
return de_CommandError(output, context);
|
|
231
231
|
}
|
|
232
232
|
const data = await parseBody(output.body, context);
|
|
233
233
|
let contents = {};
|
|
@@ -238,31 +238,9 @@ export const de_BatchGetCollectionCommand = async (output, context) => {
|
|
|
238
238
|
};
|
|
239
239
|
return response;
|
|
240
240
|
};
|
|
241
|
-
const de_BatchGetCollectionCommandError = async (output, context) => {
|
|
242
|
-
const parsedOutput = {
|
|
243
|
-
...output,
|
|
244
|
-
body: await parseErrorBody(output.body, context),
|
|
245
|
-
};
|
|
246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
247
|
-
switch (errorCode) {
|
|
248
|
-
case "InternalServerException":
|
|
249
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
250
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
251
|
-
case "ValidationException":
|
|
252
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
253
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
254
|
-
default:
|
|
255
|
-
const parsedBody = parsedOutput.body;
|
|
256
|
-
return throwDefaultError({
|
|
257
|
-
output,
|
|
258
|
-
parsedBody,
|
|
259
|
-
errorCode,
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
241
|
export const de_BatchGetEffectiveLifecyclePolicyCommand = async (output, context) => {
|
|
264
242
|
if (output.statusCode >= 300) {
|
|
265
|
-
return
|
|
243
|
+
return de_CommandError(output, context);
|
|
266
244
|
}
|
|
267
245
|
const data = await parseBody(output.body, context);
|
|
268
246
|
let contents = {};
|
|
@@ -273,31 +251,9 @@ export const de_BatchGetEffectiveLifecyclePolicyCommand = async (output, context
|
|
|
273
251
|
};
|
|
274
252
|
return response;
|
|
275
253
|
};
|
|
276
|
-
const de_BatchGetEffectiveLifecyclePolicyCommandError = async (output, context) => {
|
|
277
|
-
const parsedOutput = {
|
|
278
|
-
...output,
|
|
279
|
-
body: await parseErrorBody(output.body, context),
|
|
280
|
-
};
|
|
281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
282
|
-
switch (errorCode) {
|
|
283
|
-
case "InternalServerException":
|
|
284
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
285
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
286
|
-
case "ValidationException":
|
|
287
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
288
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
289
|
-
default:
|
|
290
|
-
const parsedBody = parsedOutput.body;
|
|
291
|
-
return throwDefaultError({
|
|
292
|
-
output,
|
|
293
|
-
parsedBody,
|
|
294
|
-
errorCode,
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
254
|
export const de_BatchGetLifecyclePolicyCommand = async (output, context) => {
|
|
299
255
|
if (output.statusCode >= 300) {
|
|
300
|
-
return
|
|
256
|
+
return de_CommandError(output, context);
|
|
301
257
|
}
|
|
302
258
|
const data = await parseBody(output.body, context);
|
|
303
259
|
let contents = {};
|
|
@@ -308,31 +264,9 @@ export const de_BatchGetLifecyclePolicyCommand = async (output, context) => {
|
|
|
308
264
|
};
|
|
309
265
|
return response;
|
|
310
266
|
};
|
|
311
|
-
const de_BatchGetLifecyclePolicyCommandError = async (output, context) => {
|
|
312
|
-
const parsedOutput = {
|
|
313
|
-
...output,
|
|
314
|
-
body: await parseErrorBody(output.body, context),
|
|
315
|
-
};
|
|
316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
317
|
-
switch (errorCode) {
|
|
318
|
-
case "InternalServerException":
|
|
319
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
320
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
321
|
-
case "ValidationException":
|
|
322
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
323
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
324
|
-
default:
|
|
325
|
-
const parsedBody = parsedOutput.body;
|
|
326
|
-
return throwDefaultError({
|
|
327
|
-
output,
|
|
328
|
-
parsedBody,
|
|
329
|
-
errorCode,
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
267
|
export const de_BatchGetVpcEndpointCommand = async (output, context) => {
|
|
334
268
|
if (output.statusCode >= 300) {
|
|
335
|
-
return
|
|
269
|
+
return de_CommandError(output, context);
|
|
336
270
|
}
|
|
337
271
|
const data = await parseBody(output.body, context);
|
|
338
272
|
let contents = {};
|
|
@@ -343,31 +277,9 @@ export const de_BatchGetVpcEndpointCommand = async (output, context) => {
|
|
|
343
277
|
};
|
|
344
278
|
return response;
|
|
345
279
|
};
|
|
346
|
-
const de_BatchGetVpcEndpointCommandError = async (output, context) => {
|
|
347
|
-
const parsedOutput = {
|
|
348
|
-
...output,
|
|
349
|
-
body: await parseErrorBody(output.body, context),
|
|
350
|
-
};
|
|
351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
352
|
-
switch (errorCode) {
|
|
353
|
-
case "InternalServerException":
|
|
354
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
355
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
356
|
-
case "ValidationException":
|
|
357
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
358
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
359
|
-
default:
|
|
360
|
-
const parsedBody = parsedOutput.body;
|
|
361
|
-
return throwDefaultError({
|
|
362
|
-
output,
|
|
363
|
-
parsedBody,
|
|
364
|
-
errorCode,
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
280
|
export const de_CreateAccessPolicyCommand = async (output, context) => {
|
|
369
281
|
if (output.statusCode >= 300) {
|
|
370
|
-
return
|
|
282
|
+
return de_CommandError(output, context);
|
|
371
283
|
}
|
|
372
284
|
const data = await parseBody(output.body, context);
|
|
373
285
|
let contents = {};
|
|
@@ -378,37 +290,9 @@ export const de_CreateAccessPolicyCommand = async (output, context) => {
|
|
|
378
290
|
};
|
|
379
291
|
return response;
|
|
380
292
|
};
|
|
381
|
-
const de_CreateAccessPolicyCommandError = async (output, context) => {
|
|
382
|
-
const parsedOutput = {
|
|
383
|
-
...output,
|
|
384
|
-
body: await parseErrorBody(output.body, context),
|
|
385
|
-
};
|
|
386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
387
|
-
switch (errorCode) {
|
|
388
|
-
case "ConflictException":
|
|
389
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
390
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
391
|
-
case "InternalServerException":
|
|
392
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
393
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
394
|
-
case "ServiceQuotaExceededException":
|
|
395
|
-
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
396
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
397
|
-
case "ValidationException":
|
|
398
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
399
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
400
|
-
default:
|
|
401
|
-
const parsedBody = parsedOutput.body;
|
|
402
|
-
return throwDefaultError({
|
|
403
|
-
output,
|
|
404
|
-
parsedBody,
|
|
405
|
-
errorCode,
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
293
|
export const de_CreateCollectionCommand = async (output, context) => {
|
|
410
294
|
if (output.statusCode >= 300) {
|
|
411
|
-
return
|
|
295
|
+
return de_CommandError(output, context);
|
|
412
296
|
}
|
|
413
297
|
const data = await parseBody(output.body, context);
|
|
414
298
|
let contents = {};
|
|
@@ -419,40 +303,9 @@ export const de_CreateCollectionCommand = async (output, context) => {
|
|
|
419
303
|
};
|
|
420
304
|
return response;
|
|
421
305
|
};
|
|
422
|
-
const de_CreateCollectionCommandError = async (output, context) => {
|
|
423
|
-
const parsedOutput = {
|
|
424
|
-
...output,
|
|
425
|
-
body: await parseErrorBody(output.body, context),
|
|
426
|
-
};
|
|
427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
428
|
-
switch (errorCode) {
|
|
429
|
-
case "ConflictException":
|
|
430
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
431
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
432
|
-
case "InternalServerException":
|
|
433
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
434
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
435
|
-
case "OcuLimitExceededException":
|
|
436
|
-
case "com.amazonaws.opensearchserverless#OcuLimitExceededException":
|
|
437
|
-
throw await de_OcuLimitExceededExceptionRes(parsedOutput, context);
|
|
438
|
-
case "ServiceQuotaExceededException":
|
|
439
|
-
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
440
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
441
|
-
case "ValidationException":
|
|
442
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
443
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
444
|
-
default:
|
|
445
|
-
const parsedBody = parsedOutput.body;
|
|
446
|
-
return throwDefaultError({
|
|
447
|
-
output,
|
|
448
|
-
parsedBody,
|
|
449
|
-
errorCode,
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
306
|
export const de_CreateLifecyclePolicyCommand = async (output, context) => {
|
|
454
307
|
if (output.statusCode >= 300) {
|
|
455
|
-
return
|
|
308
|
+
return de_CommandError(output, context);
|
|
456
309
|
}
|
|
457
310
|
const data = await parseBody(output.body, context);
|
|
458
311
|
let contents = {};
|
|
@@ -463,37 +316,9 @@ export const de_CreateLifecyclePolicyCommand = async (output, context) => {
|
|
|
463
316
|
};
|
|
464
317
|
return response;
|
|
465
318
|
};
|
|
466
|
-
const de_CreateLifecyclePolicyCommandError = async (output, context) => {
|
|
467
|
-
const parsedOutput = {
|
|
468
|
-
...output,
|
|
469
|
-
body: await parseErrorBody(output.body, context),
|
|
470
|
-
};
|
|
471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
472
|
-
switch (errorCode) {
|
|
473
|
-
case "ConflictException":
|
|
474
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
475
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
476
|
-
case "InternalServerException":
|
|
477
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
478
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
479
|
-
case "ServiceQuotaExceededException":
|
|
480
|
-
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
481
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
482
|
-
case "ValidationException":
|
|
483
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
484
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
485
|
-
default:
|
|
486
|
-
const parsedBody = parsedOutput.body;
|
|
487
|
-
return throwDefaultError({
|
|
488
|
-
output,
|
|
489
|
-
parsedBody,
|
|
490
|
-
errorCode,
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
319
|
export const de_CreateSecurityConfigCommand = async (output, context) => {
|
|
495
320
|
if (output.statusCode >= 300) {
|
|
496
|
-
return
|
|
321
|
+
return de_CommandError(output, context);
|
|
497
322
|
}
|
|
498
323
|
const data = await parseBody(output.body, context);
|
|
499
324
|
let contents = {};
|
|
@@ -504,37 +329,9 @@ export const de_CreateSecurityConfigCommand = async (output, context) => {
|
|
|
504
329
|
};
|
|
505
330
|
return response;
|
|
506
331
|
};
|
|
507
|
-
const de_CreateSecurityConfigCommandError = async (output, context) => {
|
|
508
|
-
const parsedOutput = {
|
|
509
|
-
...output,
|
|
510
|
-
body: await parseErrorBody(output.body, context),
|
|
511
|
-
};
|
|
512
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
513
|
-
switch (errorCode) {
|
|
514
|
-
case "ConflictException":
|
|
515
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
516
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
517
|
-
case "InternalServerException":
|
|
518
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
519
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
520
|
-
case "ServiceQuotaExceededException":
|
|
521
|
-
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
522
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
523
|
-
case "ValidationException":
|
|
524
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
525
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
526
|
-
default:
|
|
527
|
-
const parsedBody = parsedOutput.body;
|
|
528
|
-
return throwDefaultError({
|
|
529
|
-
output,
|
|
530
|
-
parsedBody,
|
|
531
|
-
errorCode,
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
};
|
|
535
332
|
export const de_CreateSecurityPolicyCommand = async (output, context) => {
|
|
536
333
|
if (output.statusCode >= 300) {
|
|
537
|
-
return
|
|
334
|
+
return de_CommandError(output, context);
|
|
538
335
|
}
|
|
539
336
|
const data = await parseBody(output.body, context);
|
|
540
337
|
let contents = {};
|
|
@@ -545,37 +342,9 @@ export const de_CreateSecurityPolicyCommand = async (output, context) => {
|
|
|
545
342
|
};
|
|
546
343
|
return response;
|
|
547
344
|
};
|
|
548
|
-
const de_CreateSecurityPolicyCommandError = async (output, context) => {
|
|
549
|
-
const parsedOutput = {
|
|
550
|
-
...output,
|
|
551
|
-
body: await parseErrorBody(output.body, context),
|
|
552
|
-
};
|
|
553
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
554
|
-
switch (errorCode) {
|
|
555
|
-
case "ConflictException":
|
|
556
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
557
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
558
|
-
case "InternalServerException":
|
|
559
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
560
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ServiceQuotaExceededException":
|
|
562
|
-
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
563
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
564
|
-
case "ValidationException":
|
|
565
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
566
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
567
|
-
default:
|
|
568
|
-
const parsedBody = parsedOutput.body;
|
|
569
|
-
return throwDefaultError({
|
|
570
|
-
output,
|
|
571
|
-
parsedBody,
|
|
572
|
-
errorCode,
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
345
|
export const de_CreateVpcEndpointCommand = async (output, context) => {
|
|
577
346
|
if (output.statusCode >= 300) {
|
|
578
|
-
return
|
|
347
|
+
return de_CommandError(output, context);
|
|
579
348
|
}
|
|
580
349
|
const data = await parseBody(output.body, context);
|
|
581
350
|
let contents = {};
|
|
@@ -586,37 +355,9 @@ export const de_CreateVpcEndpointCommand = async (output, context) => {
|
|
|
586
355
|
};
|
|
587
356
|
return response;
|
|
588
357
|
};
|
|
589
|
-
const de_CreateVpcEndpointCommandError = async (output, context) => {
|
|
590
|
-
const parsedOutput = {
|
|
591
|
-
...output,
|
|
592
|
-
body: await parseErrorBody(output.body, context),
|
|
593
|
-
};
|
|
594
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
|
-
switch (errorCode) {
|
|
596
|
-
case "ConflictException":
|
|
597
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
598
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
599
|
-
case "InternalServerException":
|
|
600
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
601
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
602
|
-
case "ServiceQuotaExceededException":
|
|
603
|
-
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
604
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
605
|
-
case "ValidationException":
|
|
606
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
607
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
608
|
-
default:
|
|
609
|
-
const parsedBody = parsedOutput.body;
|
|
610
|
-
return throwDefaultError({
|
|
611
|
-
output,
|
|
612
|
-
parsedBody,
|
|
613
|
-
errorCode,
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
};
|
|
617
358
|
export const de_DeleteAccessPolicyCommand = async (output, context) => {
|
|
618
359
|
if (output.statusCode >= 300) {
|
|
619
|
-
return
|
|
360
|
+
return de_CommandError(output, context);
|
|
620
361
|
}
|
|
621
362
|
const data = await parseBody(output.body, context);
|
|
622
363
|
let contents = {};
|
|
@@ -627,37 +368,9 @@ export const de_DeleteAccessPolicyCommand = async (output, context) => {
|
|
|
627
368
|
};
|
|
628
369
|
return response;
|
|
629
370
|
};
|
|
630
|
-
const de_DeleteAccessPolicyCommandError = async (output, context) => {
|
|
631
|
-
const parsedOutput = {
|
|
632
|
-
...output,
|
|
633
|
-
body: await parseErrorBody(output.body, context),
|
|
634
|
-
};
|
|
635
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
636
|
-
switch (errorCode) {
|
|
637
|
-
case "ConflictException":
|
|
638
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
639
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
640
|
-
case "InternalServerException":
|
|
641
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
642
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
643
|
-
case "ResourceNotFoundException":
|
|
644
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
645
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
646
|
-
case "ValidationException":
|
|
647
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
648
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
649
|
-
default:
|
|
650
|
-
const parsedBody = parsedOutput.body;
|
|
651
|
-
return throwDefaultError({
|
|
652
|
-
output,
|
|
653
|
-
parsedBody,
|
|
654
|
-
errorCode,
|
|
655
|
-
});
|
|
656
|
-
}
|
|
657
|
-
};
|
|
658
371
|
export const de_DeleteCollectionCommand = async (output, context) => {
|
|
659
372
|
if (output.statusCode >= 300) {
|
|
660
|
-
return
|
|
373
|
+
return de_CommandError(output, context);
|
|
661
374
|
}
|
|
662
375
|
const data = await parseBody(output.body, context);
|
|
663
376
|
let contents = {};
|
|
@@ -668,37 +381,9 @@ export const de_DeleteCollectionCommand = async (output, context) => {
|
|
|
668
381
|
};
|
|
669
382
|
return response;
|
|
670
383
|
};
|
|
671
|
-
const de_DeleteCollectionCommandError = async (output, context) => {
|
|
672
|
-
const parsedOutput = {
|
|
673
|
-
...output,
|
|
674
|
-
body: await parseErrorBody(output.body, context),
|
|
675
|
-
};
|
|
676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
|
-
switch (errorCode) {
|
|
678
|
-
case "ConflictException":
|
|
679
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
680
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
681
|
-
case "InternalServerException":
|
|
682
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
683
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
684
|
-
case "ResourceNotFoundException":
|
|
685
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
686
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ValidationException":
|
|
688
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
689
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
690
|
-
default:
|
|
691
|
-
const parsedBody = parsedOutput.body;
|
|
692
|
-
return throwDefaultError({
|
|
693
|
-
output,
|
|
694
|
-
parsedBody,
|
|
695
|
-
errorCode,
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
};
|
|
699
384
|
export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
700
385
|
if (output.statusCode >= 300) {
|
|
701
|
-
return
|
|
386
|
+
return de_CommandError(output, context);
|
|
702
387
|
}
|
|
703
388
|
const data = await parseBody(output.body, context);
|
|
704
389
|
let contents = {};
|
|
@@ -709,37 +394,9 @@ export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
|
709
394
|
};
|
|
710
395
|
return response;
|
|
711
396
|
};
|
|
712
|
-
const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
|
|
713
|
-
const parsedOutput = {
|
|
714
|
-
...output,
|
|
715
|
-
body: await parseErrorBody(output.body, context),
|
|
716
|
-
};
|
|
717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
718
|
-
switch (errorCode) {
|
|
719
|
-
case "ConflictException":
|
|
720
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
721
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
722
|
-
case "InternalServerException":
|
|
723
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
724
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
725
|
-
case "ResourceNotFoundException":
|
|
726
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
727
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ValidationException":
|
|
729
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
730
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
731
|
-
default:
|
|
732
|
-
const parsedBody = parsedOutput.body;
|
|
733
|
-
return throwDefaultError({
|
|
734
|
-
output,
|
|
735
|
-
parsedBody,
|
|
736
|
-
errorCode,
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
397
|
export const de_DeleteSecurityConfigCommand = async (output, context) => {
|
|
741
398
|
if (output.statusCode >= 300) {
|
|
742
|
-
return
|
|
399
|
+
return de_CommandError(output, context);
|
|
743
400
|
}
|
|
744
401
|
const data = await parseBody(output.body, context);
|
|
745
402
|
let contents = {};
|
|
@@ -750,37 +407,9 @@ export const de_DeleteSecurityConfigCommand = async (output, context) => {
|
|
|
750
407
|
};
|
|
751
408
|
return response;
|
|
752
409
|
};
|
|
753
|
-
const de_DeleteSecurityConfigCommandError = async (output, context) => {
|
|
754
|
-
const parsedOutput = {
|
|
755
|
-
...output,
|
|
756
|
-
body: await parseErrorBody(output.body, context),
|
|
757
|
-
};
|
|
758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
-
switch (errorCode) {
|
|
760
|
-
case "ConflictException":
|
|
761
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
762
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
763
|
-
case "InternalServerException":
|
|
764
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
765
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
766
|
-
case "ResourceNotFoundException":
|
|
767
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
768
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
769
|
-
case "ValidationException":
|
|
770
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
771
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
772
|
-
default:
|
|
773
|
-
const parsedBody = parsedOutput.body;
|
|
774
|
-
return throwDefaultError({
|
|
775
|
-
output,
|
|
776
|
-
parsedBody,
|
|
777
|
-
errorCode,
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
};
|
|
781
410
|
export const de_DeleteSecurityPolicyCommand = async (output, context) => {
|
|
782
411
|
if (output.statusCode >= 300) {
|
|
783
|
-
return
|
|
412
|
+
return de_CommandError(output, context);
|
|
784
413
|
}
|
|
785
414
|
const data = await parseBody(output.body, context);
|
|
786
415
|
let contents = {};
|
|
@@ -789,80 +418,24 @@ export const de_DeleteSecurityPolicyCommand = async (output, context) => {
|
|
|
789
418
|
$metadata: deserializeMetadata(output),
|
|
790
419
|
...contents,
|
|
791
420
|
};
|
|
792
|
-
return response;
|
|
793
|
-
};
|
|
794
|
-
const
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
body: await parseErrorBody(output.body, context),
|
|
798
|
-
};
|
|
799
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
800
|
-
switch (errorCode) {
|
|
801
|
-
case "ConflictException":
|
|
802
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
803
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
804
|
-
case "InternalServerException":
|
|
805
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
806
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ResourceNotFoundException":
|
|
808
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
810
|
-
case "ValidationException":
|
|
811
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
812
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
813
|
-
default:
|
|
814
|
-
const parsedBody = parsedOutput.body;
|
|
815
|
-
return throwDefaultError({
|
|
816
|
-
output,
|
|
817
|
-
parsedBody,
|
|
818
|
-
errorCode,
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
};
|
|
822
|
-
export const de_DeleteVpcEndpointCommand = async (output, context) => {
|
|
823
|
-
if (output.statusCode >= 300) {
|
|
824
|
-
return de_DeleteVpcEndpointCommandError(output, context);
|
|
825
|
-
}
|
|
826
|
-
const data = await parseBody(output.body, context);
|
|
827
|
-
let contents = {};
|
|
828
|
-
contents = _json(data);
|
|
829
|
-
const response = {
|
|
830
|
-
$metadata: deserializeMetadata(output),
|
|
831
|
-
...contents,
|
|
832
|
-
};
|
|
833
|
-
return response;
|
|
834
|
-
};
|
|
835
|
-
const de_DeleteVpcEndpointCommandError = async (output, context) => {
|
|
836
|
-
const parsedOutput = {
|
|
837
|
-
...output,
|
|
838
|
-
body: await parseErrorBody(output.body, context),
|
|
839
|
-
};
|
|
840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
-
switch (errorCode) {
|
|
842
|
-
case "ConflictException":
|
|
843
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
844
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
845
|
-
case "InternalServerException":
|
|
846
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
847
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
848
|
-
case "ResourceNotFoundException":
|
|
849
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
850
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
851
|
-
case "ValidationException":
|
|
852
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
853
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
854
|
-
default:
|
|
855
|
-
const parsedBody = parsedOutput.body;
|
|
856
|
-
return throwDefaultError({
|
|
857
|
-
output,
|
|
858
|
-
parsedBody,
|
|
859
|
-
errorCode,
|
|
860
|
-
});
|
|
421
|
+
return response;
|
|
422
|
+
};
|
|
423
|
+
export const de_DeleteVpcEndpointCommand = async (output, context) => {
|
|
424
|
+
if (output.statusCode >= 300) {
|
|
425
|
+
return de_CommandError(output, context);
|
|
861
426
|
}
|
|
427
|
+
const data = await parseBody(output.body, context);
|
|
428
|
+
let contents = {};
|
|
429
|
+
contents = _json(data);
|
|
430
|
+
const response = {
|
|
431
|
+
$metadata: deserializeMetadata(output),
|
|
432
|
+
...contents,
|
|
433
|
+
};
|
|
434
|
+
return response;
|
|
862
435
|
};
|
|
863
436
|
export const de_GetAccessPolicyCommand = async (output, context) => {
|
|
864
437
|
if (output.statusCode >= 300) {
|
|
865
|
-
return
|
|
438
|
+
return de_CommandError(output, context);
|
|
866
439
|
}
|
|
867
440
|
const data = await parseBody(output.body, context);
|
|
868
441
|
let contents = {};
|
|
@@ -873,34 +446,9 @@ export const de_GetAccessPolicyCommand = async (output, context) => {
|
|
|
873
446
|
};
|
|
874
447
|
return response;
|
|
875
448
|
};
|
|
876
|
-
const de_GetAccessPolicyCommandError = async (output, context) => {
|
|
877
|
-
const parsedOutput = {
|
|
878
|
-
...output,
|
|
879
|
-
body: await parseErrorBody(output.body, context),
|
|
880
|
-
};
|
|
881
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
|
-
switch (errorCode) {
|
|
883
|
-
case "InternalServerException":
|
|
884
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
885
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
886
|
-
case "ResourceNotFoundException":
|
|
887
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
888
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ValidationException":
|
|
890
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
891
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
892
|
-
default:
|
|
893
|
-
const parsedBody = parsedOutput.body;
|
|
894
|
-
return throwDefaultError({
|
|
895
|
-
output,
|
|
896
|
-
parsedBody,
|
|
897
|
-
errorCode,
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
};
|
|
901
449
|
export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
902
450
|
if (output.statusCode >= 300) {
|
|
903
|
-
return
|
|
451
|
+
return de_CommandError(output, context);
|
|
904
452
|
}
|
|
905
453
|
const data = await parseBody(output.body, context);
|
|
906
454
|
let contents = {};
|
|
@@ -911,31 +459,9 @@ export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
|
911
459
|
};
|
|
912
460
|
return response;
|
|
913
461
|
};
|
|
914
|
-
const de_GetAccountSettingsCommandError = async (output, context) => {
|
|
915
|
-
const parsedOutput = {
|
|
916
|
-
...output,
|
|
917
|
-
body: await parseErrorBody(output.body, context),
|
|
918
|
-
};
|
|
919
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
|
-
switch (errorCode) {
|
|
921
|
-
case "InternalServerException":
|
|
922
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
923
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
924
|
-
case "ValidationException":
|
|
925
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
926
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
927
|
-
default:
|
|
928
|
-
const parsedBody = parsedOutput.body;
|
|
929
|
-
return throwDefaultError({
|
|
930
|
-
output,
|
|
931
|
-
parsedBody,
|
|
932
|
-
errorCode,
|
|
933
|
-
});
|
|
934
|
-
}
|
|
935
|
-
};
|
|
936
462
|
export const de_GetPoliciesStatsCommand = async (output, context) => {
|
|
937
463
|
if (output.statusCode >= 300) {
|
|
938
|
-
return
|
|
464
|
+
return de_CommandError(output, context);
|
|
939
465
|
}
|
|
940
466
|
const data = await parseBody(output.body, context);
|
|
941
467
|
let contents = {};
|
|
@@ -946,28 +472,9 @@ export const de_GetPoliciesStatsCommand = async (output, context) => {
|
|
|
946
472
|
};
|
|
947
473
|
return response;
|
|
948
474
|
};
|
|
949
|
-
const de_GetPoliciesStatsCommandError = async (output, context) => {
|
|
950
|
-
const parsedOutput = {
|
|
951
|
-
...output,
|
|
952
|
-
body: await parseErrorBody(output.body, context),
|
|
953
|
-
};
|
|
954
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
955
|
-
switch (errorCode) {
|
|
956
|
-
case "InternalServerException":
|
|
957
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
958
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
959
|
-
default:
|
|
960
|
-
const parsedBody = parsedOutput.body;
|
|
961
|
-
return throwDefaultError({
|
|
962
|
-
output,
|
|
963
|
-
parsedBody,
|
|
964
|
-
errorCode,
|
|
965
|
-
});
|
|
966
|
-
}
|
|
967
|
-
};
|
|
968
475
|
export const de_GetSecurityConfigCommand = async (output, context) => {
|
|
969
476
|
if (output.statusCode >= 300) {
|
|
970
|
-
return
|
|
477
|
+
return de_CommandError(output, context);
|
|
971
478
|
}
|
|
972
479
|
const data = await parseBody(output.body, context);
|
|
973
480
|
let contents = {};
|
|
@@ -978,34 +485,9 @@ export const de_GetSecurityConfigCommand = async (output, context) => {
|
|
|
978
485
|
};
|
|
979
486
|
return response;
|
|
980
487
|
};
|
|
981
|
-
const de_GetSecurityConfigCommandError = async (output, context) => {
|
|
982
|
-
const parsedOutput = {
|
|
983
|
-
...output,
|
|
984
|
-
body: await parseErrorBody(output.body, context),
|
|
985
|
-
};
|
|
986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
987
|
-
switch (errorCode) {
|
|
988
|
-
case "InternalServerException":
|
|
989
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
990
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
991
|
-
case "ResourceNotFoundException":
|
|
992
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
993
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ValidationException":
|
|
995
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
996
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
997
|
-
default:
|
|
998
|
-
const parsedBody = parsedOutput.body;
|
|
999
|
-
return throwDefaultError({
|
|
1000
|
-
output,
|
|
1001
|
-
parsedBody,
|
|
1002
|
-
errorCode,
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
};
|
|
1006
488
|
export const de_GetSecurityPolicyCommand = async (output, context) => {
|
|
1007
489
|
if (output.statusCode >= 300) {
|
|
1008
|
-
return
|
|
490
|
+
return de_CommandError(output, context);
|
|
1009
491
|
}
|
|
1010
492
|
const data = await parseBody(output.body, context);
|
|
1011
493
|
let contents = {};
|
|
@@ -1016,34 +498,9 @@ export const de_GetSecurityPolicyCommand = async (output, context) => {
|
|
|
1016
498
|
};
|
|
1017
499
|
return response;
|
|
1018
500
|
};
|
|
1019
|
-
const de_GetSecurityPolicyCommandError = async (output, context) => {
|
|
1020
|
-
const parsedOutput = {
|
|
1021
|
-
...output,
|
|
1022
|
-
body: await parseErrorBody(output.body, context),
|
|
1023
|
-
};
|
|
1024
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
|
-
switch (errorCode) {
|
|
1026
|
-
case "InternalServerException":
|
|
1027
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1028
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "ResourceNotFoundException":
|
|
1030
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1031
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "ValidationException":
|
|
1033
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1034
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1035
|
-
default:
|
|
1036
|
-
const parsedBody = parsedOutput.body;
|
|
1037
|
-
return throwDefaultError({
|
|
1038
|
-
output,
|
|
1039
|
-
parsedBody,
|
|
1040
|
-
errorCode,
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
};
|
|
1044
501
|
export const de_ListAccessPoliciesCommand = async (output, context) => {
|
|
1045
502
|
if (output.statusCode >= 300) {
|
|
1046
|
-
return
|
|
503
|
+
return de_CommandError(output, context);
|
|
1047
504
|
}
|
|
1048
505
|
const data = await parseBody(output.body, context);
|
|
1049
506
|
let contents = {};
|
|
@@ -1054,31 +511,9 @@ export const de_ListAccessPoliciesCommand = async (output, context) => {
|
|
|
1054
511
|
};
|
|
1055
512
|
return response;
|
|
1056
513
|
};
|
|
1057
|
-
const de_ListAccessPoliciesCommandError = async (output, context) => {
|
|
1058
|
-
const parsedOutput = {
|
|
1059
|
-
...output,
|
|
1060
|
-
body: await parseErrorBody(output.body, context),
|
|
1061
|
-
};
|
|
1062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
|
-
switch (errorCode) {
|
|
1064
|
-
case "InternalServerException":
|
|
1065
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1066
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ValidationException":
|
|
1068
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1069
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1070
|
-
default:
|
|
1071
|
-
const parsedBody = parsedOutput.body;
|
|
1072
|
-
return throwDefaultError({
|
|
1073
|
-
output,
|
|
1074
|
-
parsedBody,
|
|
1075
|
-
errorCode,
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
};
|
|
1079
514
|
export const de_ListCollectionsCommand = async (output, context) => {
|
|
1080
515
|
if (output.statusCode >= 300) {
|
|
1081
|
-
return
|
|
516
|
+
return de_CommandError(output, context);
|
|
1082
517
|
}
|
|
1083
518
|
const data = await parseBody(output.body, context);
|
|
1084
519
|
let contents = {};
|
|
@@ -1089,31 +524,9 @@ export const de_ListCollectionsCommand = async (output, context) => {
|
|
|
1089
524
|
};
|
|
1090
525
|
return response;
|
|
1091
526
|
};
|
|
1092
|
-
const de_ListCollectionsCommandError = async (output, context) => {
|
|
1093
|
-
const parsedOutput = {
|
|
1094
|
-
...output,
|
|
1095
|
-
body: await parseErrorBody(output.body, context),
|
|
1096
|
-
};
|
|
1097
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
|
-
switch (errorCode) {
|
|
1099
|
-
case "InternalServerException":
|
|
1100
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1101
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "ValidationException":
|
|
1103
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1104
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1105
|
-
default:
|
|
1106
|
-
const parsedBody = parsedOutput.body;
|
|
1107
|
-
return throwDefaultError({
|
|
1108
|
-
output,
|
|
1109
|
-
parsedBody,
|
|
1110
|
-
errorCode,
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
527
|
export const de_ListLifecyclePoliciesCommand = async (output, context) => {
|
|
1115
528
|
if (output.statusCode >= 300) {
|
|
1116
|
-
return
|
|
529
|
+
return de_CommandError(output, context);
|
|
1117
530
|
}
|
|
1118
531
|
const data = await parseBody(output.body, context);
|
|
1119
532
|
let contents = {};
|
|
@@ -1124,31 +537,9 @@ export const de_ListLifecyclePoliciesCommand = async (output, context) => {
|
|
|
1124
537
|
};
|
|
1125
538
|
return response;
|
|
1126
539
|
};
|
|
1127
|
-
const de_ListLifecyclePoliciesCommandError = async (output, context) => {
|
|
1128
|
-
const parsedOutput = {
|
|
1129
|
-
...output,
|
|
1130
|
-
body: await parseErrorBody(output.body, context),
|
|
1131
|
-
};
|
|
1132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
|
-
switch (errorCode) {
|
|
1134
|
-
case "InternalServerException":
|
|
1135
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1136
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "ValidationException":
|
|
1138
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1139
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1140
|
-
default:
|
|
1141
|
-
const parsedBody = parsedOutput.body;
|
|
1142
|
-
return throwDefaultError({
|
|
1143
|
-
output,
|
|
1144
|
-
parsedBody,
|
|
1145
|
-
errorCode,
|
|
1146
|
-
});
|
|
1147
|
-
}
|
|
1148
|
-
};
|
|
1149
540
|
export const de_ListSecurityConfigsCommand = async (output, context) => {
|
|
1150
541
|
if (output.statusCode >= 300) {
|
|
1151
|
-
return
|
|
542
|
+
return de_CommandError(output, context);
|
|
1152
543
|
}
|
|
1153
544
|
const data = await parseBody(output.body, context);
|
|
1154
545
|
let contents = {};
|
|
@@ -1159,31 +550,9 @@ export const de_ListSecurityConfigsCommand = async (output, context) => {
|
|
|
1159
550
|
};
|
|
1160
551
|
return response;
|
|
1161
552
|
};
|
|
1162
|
-
const de_ListSecurityConfigsCommandError = async (output, context) => {
|
|
1163
|
-
const parsedOutput = {
|
|
1164
|
-
...output,
|
|
1165
|
-
body: await parseErrorBody(output.body, context),
|
|
1166
|
-
};
|
|
1167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
-
switch (errorCode) {
|
|
1169
|
-
case "InternalServerException":
|
|
1170
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1171
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ValidationException":
|
|
1173
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1174
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1175
|
-
default:
|
|
1176
|
-
const parsedBody = parsedOutput.body;
|
|
1177
|
-
return throwDefaultError({
|
|
1178
|
-
output,
|
|
1179
|
-
parsedBody,
|
|
1180
|
-
errorCode,
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
};
|
|
1184
553
|
export const de_ListSecurityPoliciesCommand = async (output, context) => {
|
|
1185
554
|
if (output.statusCode >= 300) {
|
|
1186
|
-
return
|
|
555
|
+
return de_CommandError(output, context);
|
|
1187
556
|
}
|
|
1188
557
|
const data = await parseBody(output.body, context);
|
|
1189
558
|
let contents = {};
|
|
@@ -1194,69 +563,22 @@ export const de_ListSecurityPoliciesCommand = async (output, context) => {
|
|
|
1194
563
|
};
|
|
1195
564
|
return response;
|
|
1196
565
|
};
|
|
1197
|
-
const de_ListSecurityPoliciesCommandError = async (output, context) => {
|
|
1198
|
-
const parsedOutput = {
|
|
1199
|
-
...output,
|
|
1200
|
-
body: await parseErrorBody(output.body, context),
|
|
1201
|
-
};
|
|
1202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1203
|
-
switch (errorCode) {
|
|
1204
|
-
case "InternalServerException":
|
|
1205
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1206
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ValidationException":
|
|
1208
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1209
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode,
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
566
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1220
567
|
if (output.statusCode >= 300) {
|
|
1221
|
-
return
|
|
568
|
+
return de_CommandError(output, context);
|
|
1222
569
|
}
|
|
1223
570
|
const data = await parseBody(output.body, context);
|
|
1224
571
|
let contents = {};
|
|
1225
572
|
contents = _json(data);
|
|
1226
573
|
const response = {
|
|
1227
|
-
$metadata: deserializeMetadata(output),
|
|
1228
|
-
...contents,
|
|
1229
|
-
};
|
|
1230
|
-
return response;
|
|
1231
|
-
};
|
|
1232
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1233
|
-
const parsedOutput = {
|
|
1234
|
-
...output,
|
|
1235
|
-
body: await parseErrorBody(output.body, context),
|
|
1236
|
-
};
|
|
1237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
|
-
switch (errorCode) {
|
|
1239
|
-
case "InternalServerException":
|
|
1240
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1241
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ResourceNotFoundException":
|
|
1243
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1244
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "ValidationException":
|
|
1246
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1247
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1248
|
-
default:
|
|
1249
|
-
const parsedBody = parsedOutput.body;
|
|
1250
|
-
return throwDefaultError({
|
|
1251
|
-
output,
|
|
1252
|
-
parsedBody,
|
|
1253
|
-
errorCode,
|
|
1254
|
-
});
|
|
1255
|
-
}
|
|
574
|
+
$metadata: deserializeMetadata(output),
|
|
575
|
+
...contents,
|
|
576
|
+
};
|
|
577
|
+
return response;
|
|
1256
578
|
};
|
|
1257
579
|
export const de_ListVpcEndpointsCommand = async (output, context) => {
|
|
1258
580
|
if (output.statusCode >= 300) {
|
|
1259
|
-
return
|
|
581
|
+
return de_CommandError(output, context);
|
|
1260
582
|
}
|
|
1261
583
|
const data = await parseBody(output.body, context);
|
|
1262
584
|
let contents = {};
|
|
@@ -1267,31 +589,9 @@ export const de_ListVpcEndpointsCommand = async (output, context) => {
|
|
|
1267
589
|
};
|
|
1268
590
|
return response;
|
|
1269
591
|
};
|
|
1270
|
-
const de_ListVpcEndpointsCommandError = async (output, context) => {
|
|
1271
|
-
const parsedOutput = {
|
|
1272
|
-
...output,
|
|
1273
|
-
body: await parseErrorBody(output.body, context),
|
|
1274
|
-
};
|
|
1275
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
|
-
switch (errorCode) {
|
|
1277
|
-
case "InternalServerException":
|
|
1278
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1279
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ValidationException":
|
|
1281
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1282
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1283
|
-
default:
|
|
1284
|
-
const parsedBody = parsedOutput.body;
|
|
1285
|
-
return throwDefaultError({
|
|
1286
|
-
output,
|
|
1287
|
-
parsedBody,
|
|
1288
|
-
errorCode,
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
};
|
|
1292
592
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1293
593
|
if (output.statusCode >= 300) {
|
|
1294
|
-
return
|
|
594
|
+
return de_CommandError(output, context);
|
|
1295
595
|
}
|
|
1296
596
|
const data = await parseBody(output.body, context);
|
|
1297
597
|
let contents = {};
|
|
@@ -1302,40 +602,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1302
602
|
};
|
|
1303
603
|
return response;
|
|
1304
604
|
};
|
|
1305
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1306
|
-
const parsedOutput = {
|
|
1307
|
-
...output,
|
|
1308
|
-
body: await parseErrorBody(output.body, context),
|
|
1309
|
-
};
|
|
1310
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1311
|
-
switch (errorCode) {
|
|
1312
|
-
case "ConflictException":
|
|
1313
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1314
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "InternalServerException":
|
|
1316
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1317
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "ResourceNotFoundException":
|
|
1319
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1320
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "ServiceQuotaExceededException":
|
|
1322
|
-
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
1323
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ValidationException":
|
|
1325
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1326
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1327
|
-
default:
|
|
1328
|
-
const parsedBody = parsedOutput.body;
|
|
1329
|
-
return throwDefaultError({
|
|
1330
|
-
output,
|
|
1331
|
-
parsedBody,
|
|
1332
|
-
errorCode,
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
};
|
|
1336
605
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1337
606
|
if (output.statusCode >= 300) {
|
|
1338
|
-
return
|
|
607
|
+
return de_CommandError(output, context);
|
|
1339
608
|
}
|
|
1340
609
|
const data = await parseBody(output.body, context);
|
|
1341
610
|
let contents = {};
|
|
@@ -1346,37 +615,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1346
615
|
};
|
|
1347
616
|
return response;
|
|
1348
617
|
};
|
|
1349
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1350
|
-
const parsedOutput = {
|
|
1351
|
-
...output,
|
|
1352
|
-
body: await parseErrorBody(output.body, context),
|
|
1353
|
-
};
|
|
1354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
|
-
switch (errorCode) {
|
|
1356
|
-
case "ConflictException":
|
|
1357
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1358
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "InternalServerException":
|
|
1360
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1361
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ResourceNotFoundException":
|
|
1363
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "ValidationException":
|
|
1366
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1367
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1368
|
-
default:
|
|
1369
|
-
const parsedBody = parsedOutput.body;
|
|
1370
|
-
return throwDefaultError({
|
|
1371
|
-
output,
|
|
1372
|
-
parsedBody,
|
|
1373
|
-
errorCode,
|
|
1374
|
-
});
|
|
1375
|
-
}
|
|
1376
|
-
};
|
|
1377
618
|
export const de_UpdateAccessPolicyCommand = async (output, context) => {
|
|
1378
619
|
if (output.statusCode >= 300) {
|
|
1379
|
-
return
|
|
620
|
+
return de_CommandError(output, context);
|
|
1380
621
|
}
|
|
1381
622
|
const data = await parseBody(output.body, context);
|
|
1382
623
|
let contents = {};
|
|
@@ -1387,37 +628,9 @@ export const de_UpdateAccessPolicyCommand = async (output, context) => {
|
|
|
1387
628
|
};
|
|
1388
629
|
return response;
|
|
1389
630
|
};
|
|
1390
|
-
const de_UpdateAccessPolicyCommandError = async (output, context) => {
|
|
1391
|
-
const parsedOutput = {
|
|
1392
|
-
...output,
|
|
1393
|
-
body: await parseErrorBody(output.body, context),
|
|
1394
|
-
};
|
|
1395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
|
-
switch (errorCode) {
|
|
1397
|
-
case "ConflictException":
|
|
1398
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1399
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "InternalServerException":
|
|
1401
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1402
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "ResourceNotFoundException":
|
|
1404
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1405
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "ValidationException":
|
|
1407
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1408
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1409
|
-
default:
|
|
1410
|
-
const parsedBody = parsedOutput.body;
|
|
1411
|
-
return throwDefaultError({
|
|
1412
|
-
output,
|
|
1413
|
-
parsedBody,
|
|
1414
|
-
errorCode,
|
|
1415
|
-
});
|
|
1416
|
-
}
|
|
1417
|
-
};
|
|
1418
631
|
export const de_UpdateAccountSettingsCommand = async (output, context) => {
|
|
1419
632
|
if (output.statusCode >= 300) {
|
|
1420
|
-
return
|
|
633
|
+
return de_CommandError(output, context);
|
|
1421
634
|
}
|
|
1422
635
|
const data = await parseBody(output.body, context);
|
|
1423
636
|
let contents = {};
|
|
@@ -1428,31 +641,9 @@ export const de_UpdateAccountSettingsCommand = async (output, context) => {
|
|
|
1428
641
|
};
|
|
1429
642
|
return response;
|
|
1430
643
|
};
|
|
1431
|
-
const de_UpdateAccountSettingsCommandError = async (output, context) => {
|
|
1432
|
-
const parsedOutput = {
|
|
1433
|
-
...output,
|
|
1434
|
-
body: await parseErrorBody(output.body, context),
|
|
1435
|
-
};
|
|
1436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1437
|
-
switch (errorCode) {
|
|
1438
|
-
case "InternalServerException":
|
|
1439
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1440
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "ValidationException":
|
|
1442
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1443
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1444
|
-
default:
|
|
1445
|
-
const parsedBody = parsedOutput.body;
|
|
1446
|
-
return throwDefaultError({
|
|
1447
|
-
output,
|
|
1448
|
-
parsedBody,
|
|
1449
|
-
errorCode,
|
|
1450
|
-
});
|
|
1451
|
-
}
|
|
1452
|
-
};
|
|
1453
644
|
export const de_UpdateCollectionCommand = async (output, context) => {
|
|
1454
645
|
if (output.statusCode >= 300) {
|
|
1455
|
-
return
|
|
646
|
+
return de_CommandError(output, context);
|
|
1456
647
|
}
|
|
1457
648
|
const data = await parseBody(output.body, context);
|
|
1458
649
|
let contents = {};
|
|
@@ -1463,34 +654,9 @@ export const de_UpdateCollectionCommand = async (output, context) => {
|
|
|
1463
654
|
};
|
|
1464
655
|
return response;
|
|
1465
656
|
};
|
|
1466
|
-
const de_UpdateCollectionCommandError = async (output, context) => {
|
|
1467
|
-
const parsedOutput = {
|
|
1468
|
-
...output,
|
|
1469
|
-
body: await parseErrorBody(output.body, context),
|
|
1470
|
-
};
|
|
1471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
|
-
switch (errorCode) {
|
|
1473
|
-
case "ConflictException":
|
|
1474
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1475
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "InternalServerException":
|
|
1477
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1478
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "ValidationException":
|
|
1480
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1481
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1482
|
-
default:
|
|
1483
|
-
const parsedBody = parsedOutput.body;
|
|
1484
|
-
return throwDefaultError({
|
|
1485
|
-
output,
|
|
1486
|
-
parsedBody,
|
|
1487
|
-
errorCode,
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
};
|
|
1491
657
|
export const de_UpdateLifecyclePolicyCommand = async (output, context) => {
|
|
1492
658
|
if (output.statusCode >= 300) {
|
|
1493
|
-
return
|
|
659
|
+
return de_CommandError(output, context);
|
|
1494
660
|
}
|
|
1495
661
|
const data = await parseBody(output.body, context);
|
|
1496
662
|
let contents = {};
|
|
@@ -1501,40 +667,9 @@ export const de_UpdateLifecyclePolicyCommand = async (output, context) => {
|
|
|
1501
667
|
};
|
|
1502
668
|
return response;
|
|
1503
669
|
};
|
|
1504
|
-
const de_UpdateLifecyclePolicyCommandError = async (output, context) => {
|
|
1505
|
-
const parsedOutput = {
|
|
1506
|
-
...output,
|
|
1507
|
-
body: await parseErrorBody(output.body, context),
|
|
1508
|
-
};
|
|
1509
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
|
-
switch (errorCode) {
|
|
1511
|
-
case "ConflictException":
|
|
1512
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1513
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1514
|
-
case "InternalServerException":
|
|
1515
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1516
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1517
|
-
case "ResourceNotFoundException":
|
|
1518
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1519
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "ServiceQuotaExceededException":
|
|
1521
|
-
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
1522
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "ValidationException":
|
|
1524
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1525
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1526
|
-
default:
|
|
1527
|
-
const parsedBody = parsedOutput.body;
|
|
1528
|
-
return throwDefaultError({
|
|
1529
|
-
output,
|
|
1530
|
-
parsedBody,
|
|
1531
|
-
errorCode,
|
|
1532
|
-
});
|
|
1533
|
-
}
|
|
1534
|
-
};
|
|
1535
670
|
export const de_UpdateSecurityConfigCommand = async (output, context) => {
|
|
1536
671
|
if (output.statusCode >= 300) {
|
|
1537
|
-
return
|
|
672
|
+
return de_CommandError(output, context);
|
|
1538
673
|
}
|
|
1539
674
|
const data = await parseBody(output.body, context);
|
|
1540
675
|
let contents = {};
|
|
@@ -1545,37 +680,9 @@ export const de_UpdateSecurityConfigCommand = async (output, context) => {
|
|
|
1545
680
|
};
|
|
1546
681
|
return response;
|
|
1547
682
|
};
|
|
1548
|
-
const de_UpdateSecurityConfigCommandError = async (output, context) => {
|
|
1549
|
-
const parsedOutput = {
|
|
1550
|
-
...output,
|
|
1551
|
-
body: await parseErrorBody(output.body, context),
|
|
1552
|
-
};
|
|
1553
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
|
-
switch (errorCode) {
|
|
1555
|
-
case "ConflictException":
|
|
1556
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1557
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1558
|
-
case "InternalServerException":
|
|
1559
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1560
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1561
|
-
case "ResourceNotFoundException":
|
|
1562
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1563
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "ValidationException":
|
|
1565
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1566
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1567
|
-
default:
|
|
1568
|
-
const parsedBody = parsedOutput.body;
|
|
1569
|
-
return throwDefaultError({
|
|
1570
|
-
output,
|
|
1571
|
-
parsedBody,
|
|
1572
|
-
errorCode,
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
};
|
|
1576
683
|
export const de_UpdateSecurityPolicyCommand = async (output, context) => {
|
|
1577
684
|
if (output.statusCode >= 300) {
|
|
1578
|
-
return
|
|
685
|
+
return de_CommandError(output, context);
|
|
1579
686
|
}
|
|
1580
687
|
const data = await parseBody(output.body, context);
|
|
1581
688
|
let contents = {};
|
|
@@ -1586,40 +693,9 @@ export const de_UpdateSecurityPolicyCommand = async (output, context) => {
|
|
|
1586
693
|
};
|
|
1587
694
|
return response;
|
|
1588
695
|
};
|
|
1589
|
-
const de_UpdateSecurityPolicyCommandError = async (output, context) => {
|
|
1590
|
-
const parsedOutput = {
|
|
1591
|
-
...output,
|
|
1592
|
-
body: await parseErrorBody(output.body, context),
|
|
1593
|
-
};
|
|
1594
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1595
|
-
switch (errorCode) {
|
|
1596
|
-
case "ConflictException":
|
|
1597
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1598
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1599
|
-
case "InternalServerException":
|
|
1600
|
-
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1601
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1602
|
-
case "ResourceNotFoundException":
|
|
1603
|
-
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1604
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1605
|
-
case "ServiceQuotaExceededException":
|
|
1606
|
-
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
1607
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "ValidationException":
|
|
1609
|
-
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1610
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1611
|
-
default:
|
|
1612
|
-
const parsedBody = parsedOutput.body;
|
|
1613
|
-
return throwDefaultError({
|
|
1614
|
-
output,
|
|
1615
|
-
parsedBody,
|
|
1616
|
-
errorCode,
|
|
1617
|
-
});
|
|
1618
|
-
}
|
|
1619
|
-
};
|
|
1620
696
|
export const de_UpdateVpcEndpointCommand = async (output, context) => {
|
|
1621
697
|
if (output.statusCode >= 300) {
|
|
1622
|
-
return
|
|
698
|
+
return de_CommandError(output, context);
|
|
1623
699
|
}
|
|
1624
700
|
const data = await parseBody(output.body, context);
|
|
1625
701
|
let contents = {};
|
|
@@ -1630,22 +706,31 @@ export const de_UpdateVpcEndpointCommand = async (output, context) => {
|
|
|
1630
706
|
};
|
|
1631
707
|
return response;
|
|
1632
708
|
};
|
|
1633
|
-
const
|
|
709
|
+
const de_CommandError = async (output, context) => {
|
|
1634
710
|
const parsedOutput = {
|
|
1635
711
|
...output,
|
|
1636
712
|
body: await parseErrorBody(output.body, context),
|
|
1637
713
|
};
|
|
1638
714
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1639
715
|
switch (errorCode) {
|
|
1640
|
-
case "ConflictException":
|
|
1641
|
-
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1642
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1643
716
|
case "InternalServerException":
|
|
1644
717
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1645
718
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1646
719
|
case "ValidationException":
|
|
1647
720
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1648
721
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
722
|
+
case "ConflictException":
|
|
723
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
724
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
725
|
+
case "ServiceQuotaExceededException":
|
|
726
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
727
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
728
|
+
case "OcuLimitExceededException":
|
|
729
|
+
case "com.amazonaws.opensearchserverless#OcuLimitExceededException":
|
|
730
|
+
throw await de_OcuLimitExceededExceptionRes(parsedOutput, context);
|
|
731
|
+
case "ResourceNotFoundException":
|
|
732
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
733
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1649
734
|
default:
|
|
1650
735
|
const parsedBody = parsedOutput.body;
|
|
1651
736
|
return throwDefaultError({
|