@aws-sdk/client-appfabric 3.504.0 → 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 +40 -833
- package/dist-es/protocols/Aws_restJson1.js +61 -854
- package/package.json +3 -3
|
@@ -341,7 +341,7 @@ export const se_UpdateIngestionDestinationCommand = async (input, context) => {
|
|
|
341
341
|
};
|
|
342
342
|
export const de_BatchGetUserAccessTasksCommand = async (output, context) => {
|
|
343
343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
344
|
-
return
|
|
344
|
+
return de_CommandError(output, context);
|
|
345
345
|
}
|
|
346
346
|
const contents = map({
|
|
347
347
|
$metadata: deserializeMetadata(output),
|
|
@@ -353,40 +353,9 @@ export const de_BatchGetUserAccessTasksCommand = async (output, context) => {
|
|
|
353
353
|
Object.assign(contents, doc);
|
|
354
354
|
return contents;
|
|
355
355
|
};
|
|
356
|
-
const de_BatchGetUserAccessTasksCommandError = async (output, context) => {
|
|
357
|
-
const parsedOutput = {
|
|
358
|
-
...output,
|
|
359
|
-
body: await parseErrorBody(output.body, context),
|
|
360
|
-
};
|
|
361
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
362
|
-
switch (errorCode) {
|
|
363
|
-
case "AccessDeniedException":
|
|
364
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
365
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
366
|
-
case "InternalServerException":
|
|
367
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
368
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
369
|
-
case "ResourceNotFoundException":
|
|
370
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
371
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
372
|
-
case "ThrottlingException":
|
|
373
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
374
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
375
|
-
case "ValidationException":
|
|
376
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
377
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
378
|
-
default:
|
|
379
|
-
const parsedBody = parsedOutput.body;
|
|
380
|
-
return throwDefaultError({
|
|
381
|
-
output,
|
|
382
|
-
parsedBody,
|
|
383
|
-
errorCode,
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
356
|
export const de_ConnectAppAuthorizationCommand = async (output, context) => {
|
|
388
357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
389
|
-
return
|
|
358
|
+
return de_CommandError(output, context);
|
|
390
359
|
}
|
|
391
360
|
const contents = map({
|
|
392
361
|
$metadata: deserializeMetadata(output),
|
|
@@ -398,40 +367,9 @@ export const de_ConnectAppAuthorizationCommand = async (output, context) => {
|
|
|
398
367
|
Object.assign(contents, doc);
|
|
399
368
|
return contents;
|
|
400
369
|
};
|
|
401
|
-
const de_ConnectAppAuthorizationCommandError = async (output, context) => {
|
|
402
|
-
const parsedOutput = {
|
|
403
|
-
...output,
|
|
404
|
-
body: await parseErrorBody(output.body, context),
|
|
405
|
-
};
|
|
406
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
407
|
-
switch (errorCode) {
|
|
408
|
-
case "AccessDeniedException":
|
|
409
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
410
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
411
|
-
case "InternalServerException":
|
|
412
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
413
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
414
|
-
case "ResourceNotFoundException":
|
|
415
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
416
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
417
|
-
case "ThrottlingException":
|
|
418
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
419
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
420
|
-
case "ValidationException":
|
|
421
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
422
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
423
|
-
default:
|
|
424
|
-
const parsedBody = parsedOutput.body;
|
|
425
|
-
return throwDefaultError({
|
|
426
|
-
output,
|
|
427
|
-
parsedBody,
|
|
428
|
-
errorCode,
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
370
|
export const de_CreateAppAuthorizationCommand = async (output, context) => {
|
|
433
371
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
434
|
-
return
|
|
372
|
+
return de_CommandError(output, context);
|
|
435
373
|
}
|
|
436
374
|
const contents = map({
|
|
437
375
|
$metadata: deserializeMetadata(output),
|
|
@@ -443,46 +381,9 @@ export const de_CreateAppAuthorizationCommand = async (output, context) => {
|
|
|
443
381
|
Object.assign(contents, doc);
|
|
444
382
|
return contents;
|
|
445
383
|
};
|
|
446
|
-
const de_CreateAppAuthorizationCommandError = async (output, context) => {
|
|
447
|
-
const parsedOutput = {
|
|
448
|
-
...output,
|
|
449
|
-
body: await parseErrorBody(output.body, context),
|
|
450
|
-
};
|
|
451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
452
|
-
switch (errorCode) {
|
|
453
|
-
case "AccessDeniedException":
|
|
454
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
455
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
456
|
-
case "ConflictException":
|
|
457
|
-
case "com.amazonaws.appfabric#ConflictException":
|
|
458
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
459
|
-
case "InternalServerException":
|
|
460
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
461
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
462
|
-
case "ResourceNotFoundException":
|
|
463
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
464
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
465
|
-
case "ServiceQuotaExceededException":
|
|
466
|
-
case "com.amazonaws.appfabric#ServiceQuotaExceededException":
|
|
467
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ThrottlingException":
|
|
469
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
470
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
471
|
-
case "ValidationException":
|
|
472
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
473
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
474
|
-
default:
|
|
475
|
-
const parsedBody = parsedOutput.body;
|
|
476
|
-
return throwDefaultError({
|
|
477
|
-
output,
|
|
478
|
-
parsedBody,
|
|
479
|
-
errorCode,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
384
|
export const de_CreateAppBundleCommand = async (output, context) => {
|
|
484
385
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
485
|
-
return
|
|
386
|
+
return de_CommandError(output, context);
|
|
486
387
|
}
|
|
487
388
|
const contents = map({
|
|
488
389
|
$metadata: deserializeMetadata(output),
|
|
@@ -494,43 +395,9 @@ export const de_CreateAppBundleCommand = async (output, context) => {
|
|
|
494
395
|
Object.assign(contents, doc);
|
|
495
396
|
return contents;
|
|
496
397
|
};
|
|
497
|
-
const de_CreateAppBundleCommandError = async (output, context) => {
|
|
498
|
-
const parsedOutput = {
|
|
499
|
-
...output,
|
|
500
|
-
body: await parseErrorBody(output.body, context),
|
|
501
|
-
};
|
|
502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
503
|
-
switch (errorCode) {
|
|
504
|
-
case "AccessDeniedException":
|
|
505
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
506
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ConflictException":
|
|
508
|
-
case "com.amazonaws.appfabric#ConflictException":
|
|
509
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
510
|
-
case "InternalServerException":
|
|
511
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
512
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ServiceQuotaExceededException":
|
|
514
|
-
case "com.amazonaws.appfabric#ServiceQuotaExceededException":
|
|
515
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ThrottlingException":
|
|
517
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
518
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
519
|
-
case "ValidationException":
|
|
520
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
521
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
522
|
-
default:
|
|
523
|
-
const parsedBody = parsedOutput.body;
|
|
524
|
-
return throwDefaultError({
|
|
525
|
-
output,
|
|
526
|
-
parsedBody,
|
|
527
|
-
errorCode,
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
};
|
|
531
398
|
export const de_CreateIngestionCommand = async (output, context) => {
|
|
532
399
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
533
|
-
return
|
|
400
|
+
return de_CommandError(output, context);
|
|
534
401
|
}
|
|
535
402
|
const contents = map({
|
|
536
403
|
$metadata: deserializeMetadata(output),
|
|
@@ -542,43 +409,9 @@ export const de_CreateIngestionCommand = async (output, context) => {
|
|
|
542
409
|
Object.assign(contents, doc);
|
|
543
410
|
return contents;
|
|
544
411
|
};
|
|
545
|
-
const de_CreateIngestionCommandError = async (output, context) => {
|
|
546
|
-
const parsedOutput = {
|
|
547
|
-
...output,
|
|
548
|
-
body: await parseErrorBody(output.body, context),
|
|
549
|
-
};
|
|
550
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
551
|
-
switch (errorCode) {
|
|
552
|
-
case "AccessDeniedException":
|
|
553
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
554
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
555
|
-
case "ConflictException":
|
|
556
|
-
case "com.amazonaws.appfabric#ConflictException":
|
|
557
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
558
|
-
case "InternalServerException":
|
|
559
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
560
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ServiceQuotaExceededException":
|
|
562
|
-
case "com.amazonaws.appfabric#ServiceQuotaExceededException":
|
|
563
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
564
|
-
case "ThrottlingException":
|
|
565
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
566
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
567
|
-
case "ValidationException":
|
|
568
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
569
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
570
|
-
default:
|
|
571
|
-
const parsedBody = parsedOutput.body;
|
|
572
|
-
return throwDefaultError({
|
|
573
|
-
output,
|
|
574
|
-
parsedBody,
|
|
575
|
-
errorCode,
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
412
|
export const de_CreateIngestionDestinationCommand = async (output, context) => {
|
|
580
413
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
581
|
-
return
|
|
414
|
+
return de_CommandError(output, context);
|
|
582
415
|
}
|
|
583
416
|
const contents = map({
|
|
584
417
|
$metadata: deserializeMetadata(output),
|
|
@@ -590,43 +423,9 @@ export const de_CreateIngestionDestinationCommand = async (output, context) => {
|
|
|
590
423
|
Object.assign(contents, doc);
|
|
591
424
|
return contents;
|
|
592
425
|
};
|
|
593
|
-
const de_CreateIngestionDestinationCommandError = async (output, context) => {
|
|
594
|
-
const parsedOutput = {
|
|
595
|
-
...output,
|
|
596
|
-
body: await parseErrorBody(output.body, context),
|
|
597
|
-
};
|
|
598
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
599
|
-
switch (errorCode) {
|
|
600
|
-
case "AccessDeniedException":
|
|
601
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
602
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ConflictException":
|
|
604
|
-
case "com.amazonaws.appfabric#ConflictException":
|
|
605
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
606
|
-
case "InternalServerException":
|
|
607
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
608
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ServiceQuotaExceededException":
|
|
610
|
-
case "com.amazonaws.appfabric#ServiceQuotaExceededException":
|
|
611
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ThrottlingException":
|
|
613
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
614
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ValidationException":
|
|
616
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
617
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
618
|
-
default:
|
|
619
|
-
const parsedBody = parsedOutput.body;
|
|
620
|
-
return throwDefaultError({
|
|
621
|
-
output,
|
|
622
|
-
parsedBody,
|
|
623
|
-
errorCode,
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
426
|
export const de_DeleteAppAuthorizationCommand = async (output, context) => {
|
|
628
427
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
629
|
-
return
|
|
428
|
+
return de_CommandError(output, context);
|
|
630
429
|
}
|
|
631
430
|
const contents = map({
|
|
632
431
|
$metadata: deserializeMetadata(output),
|
|
@@ -634,40 +433,9 @@ export const de_DeleteAppAuthorizationCommand = async (output, context) => {
|
|
|
634
433
|
await collectBody(output.body, context);
|
|
635
434
|
return contents;
|
|
636
435
|
};
|
|
637
|
-
const de_DeleteAppAuthorizationCommandError = async (output, context) => {
|
|
638
|
-
const parsedOutput = {
|
|
639
|
-
...output,
|
|
640
|
-
body: await parseErrorBody(output.body, context),
|
|
641
|
-
};
|
|
642
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
643
|
-
switch (errorCode) {
|
|
644
|
-
case "AccessDeniedException":
|
|
645
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
646
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
647
|
-
case "InternalServerException":
|
|
648
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
649
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
650
|
-
case "ResourceNotFoundException":
|
|
651
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
652
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ThrottlingException":
|
|
654
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
655
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
656
|
-
case "ValidationException":
|
|
657
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
658
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
659
|
-
default:
|
|
660
|
-
const parsedBody = parsedOutput.body;
|
|
661
|
-
return throwDefaultError({
|
|
662
|
-
output,
|
|
663
|
-
parsedBody,
|
|
664
|
-
errorCode,
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
};
|
|
668
436
|
export const de_DeleteAppBundleCommand = async (output, context) => {
|
|
669
437
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
670
|
-
return
|
|
438
|
+
return de_CommandError(output, context);
|
|
671
439
|
}
|
|
672
440
|
const contents = map({
|
|
673
441
|
$metadata: deserializeMetadata(output),
|
|
@@ -675,40 +443,9 @@ export const de_DeleteAppBundleCommand = async (output, context) => {
|
|
|
675
443
|
await collectBody(output.body, context);
|
|
676
444
|
return contents;
|
|
677
445
|
};
|
|
678
|
-
const de_DeleteAppBundleCommandError = async (output, context) => {
|
|
679
|
-
const parsedOutput = {
|
|
680
|
-
...output,
|
|
681
|
-
body: await parseErrorBody(output.body, context),
|
|
682
|
-
};
|
|
683
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
|
-
switch (errorCode) {
|
|
685
|
-
case "AccessDeniedException":
|
|
686
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
687
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
688
|
-
case "ConflictException":
|
|
689
|
-
case "com.amazonaws.appfabric#ConflictException":
|
|
690
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
691
|
-
case "InternalServerException":
|
|
692
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
693
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
694
|
-
case "ThrottlingException":
|
|
695
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
696
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
697
|
-
case "ValidationException":
|
|
698
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
699
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
700
|
-
default:
|
|
701
|
-
const parsedBody = parsedOutput.body;
|
|
702
|
-
return throwDefaultError({
|
|
703
|
-
output,
|
|
704
|
-
parsedBody,
|
|
705
|
-
errorCode,
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
446
|
export const de_DeleteIngestionCommand = async (output, context) => {
|
|
710
447
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
711
|
-
return
|
|
448
|
+
return de_CommandError(output, context);
|
|
712
449
|
}
|
|
713
450
|
const contents = map({
|
|
714
451
|
$metadata: deserializeMetadata(output),
|
|
@@ -716,40 +453,9 @@ export const de_DeleteIngestionCommand = async (output, context) => {
|
|
|
716
453
|
await collectBody(output.body, context);
|
|
717
454
|
return contents;
|
|
718
455
|
};
|
|
719
|
-
const de_DeleteIngestionCommandError = async (output, context) => {
|
|
720
|
-
const parsedOutput = {
|
|
721
|
-
...output,
|
|
722
|
-
body: await parseErrorBody(output.body, context),
|
|
723
|
-
};
|
|
724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
725
|
-
switch (errorCode) {
|
|
726
|
-
case "AccessDeniedException":
|
|
727
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
728
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
729
|
-
case "InternalServerException":
|
|
730
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
731
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
732
|
-
case "ResourceNotFoundException":
|
|
733
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
734
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ThrottlingException":
|
|
736
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
737
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ValidationException":
|
|
739
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
740
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
741
|
-
default:
|
|
742
|
-
const parsedBody = parsedOutput.body;
|
|
743
|
-
return throwDefaultError({
|
|
744
|
-
output,
|
|
745
|
-
parsedBody,
|
|
746
|
-
errorCode,
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
456
|
export const de_DeleteIngestionDestinationCommand = async (output, context) => {
|
|
751
457
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
752
|
-
return
|
|
458
|
+
return de_CommandError(output, context);
|
|
753
459
|
}
|
|
754
460
|
const contents = map({
|
|
755
461
|
$metadata: deserializeMetadata(output),
|
|
@@ -757,40 +463,9 @@ export const de_DeleteIngestionDestinationCommand = async (output, context) => {
|
|
|
757
463
|
await collectBody(output.body, context);
|
|
758
464
|
return contents;
|
|
759
465
|
};
|
|
760
|
-
const de_DeleteIngestionDestinationCommandError = async (output, context) => {
|
|
761
|
-
const parsedOutput = {
|
|
762
|
-
...output,
|
|
763
|
-
body: await parseErrorBody(output.body, context),
|
|
764
|
-
};
|
|
765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
766
|
-
switch (errorCode) {
|
|
767
|
-
case "AccessDeniedException":
|
|
768
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
769
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
770
|
-
case "InternalServerException":
|
|
771
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
772
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ResourceNotFoundException":
|
|
774
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
775
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
776
|
-
case "ThrottlingException":
|
|
777
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
778
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ValidationException":
|
|
780
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
781
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
782
|
-
default:
|
|
783
|
-
const parsedBody = parsedOutput.body;
|
|
784
|
-
return throwDefaultError({
|
|
785
|
-
output,
|
|
786
|
-
parsedBody,
|
|
787
|
-
errorCode,
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
466
|
export const de_GetAppAuthorizationCommand = async (output, context) => {
|
|
792
467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
793
|
-
return
|
|
468
|
+
return de_CommandError(output, context);
|
|
794
469
|
}
|
|
795
470
|
const contents = map({
|
|
796
471
|
$metadata: deserializeMetadata(output),
|
|
@@ -802,40 +477,9 @@ export const de_GetAppAuthorizationCommand = async (output, context) => {
|
|
|
802
477
|
Object.assign(contents, doc);
|
|
803
478
|
return contents;
|
|
804
479
|
};
|
|
805
|
-
const de_GetAppAuthorizationCommandError = async (output, context) => {
|
|
806
|
-
const parsedOutput = {
|
|
807
|
-
...output,
|
|
808
|
-
body: await parseErrorBody(output.body, context),
|
|
809
|
-
};
|
|
810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
|
-
switch (errorCode) {
|
|
812
|
-
case "AccessDeniedException":
|
|
813
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
814
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
815
|
-
case "InternalServerException":
|
|
816
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
817
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ResourceNotFoundException":
|
|
819
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
820
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
821
|
-
case "ThrottlingException":
|
|
822
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
823
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ValidationException":
|
|
825
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
826
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
827
|
-
default:
|
|
828
|
-
const parsedBody = parsedOutput.body;
|
|
829
|
-
return throwDefaultError({
|
|
830
|
-
output,
|
|
831
|
-
parsedBody,
|
|
832
|
-
errorCode,
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
};
|
|
836
480
|
export const de_GetAppBundleCommand = async (output, context) => {
|
|
837
481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
838
|
-
return
|
|
482
|
+
return de_CommandError(output, context);
|
|
839
483
|
}
|
|
840
484
|
const contents = map({
|
|
841
485
|
$metadata: deserializeMetadata(output),
|
|
@@ -847,40 +491,9 @@ export const de_GetAppBundleCommand = async (output, context) => {
|
|
|
847
491
|
Object.assign(contents, doc);
|
|
848
492
|
return contents;
|
|
849
493
|
};
|
|
850
|
-
const de_GetAppBundleCommandError = async (output, context) => {
|
|
851
|
-
const parsedOutput = {
|
|
852
|
-
...output,
|
|
853
|
-
body: await parseErrorBody(output.body, context),
|
|
854
|
-
};
|
|
855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
856
|
-
switch (errorCode) {
|
|
857
|
-
case "AccessDeniedException":
|
|
858
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
859
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
860
|
-
case "InternalServerException":
|
|
861
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
862
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
863
|
-
case "ResourceNotFoundException":
|
|
864
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
865
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
866
|
-
case "ThrottlingException":
|
|
867
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
868
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
869
|
-
case "ValidationException":
|
|
870
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
871
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
872
|
-
default:
|
|
873
|
-
const parsedBody = parsedOutput.body;
|
|
874
|
-
return throwDefaultError({
|
|
875
|
-
output,
|
|
876
|
-
parsedBody,
|
|
877
|
-
errorCode,
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
};
|
|
881
494
|
export const de_GetIngestionCommand = async (output, context) => {
|
|
882
495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
883
|
-
return
|
|
496
|
+
return de_CommandError(output, context);
|
|
884
497
|
}
|
|
885
498
|
const contents = map({
|
|
886
499
|
$metadata: deserializeMetadata(output),
|
|
@@ -892,40 +505,9 @@ export const de_GetIngestionCommand = async (output, context) => {
|
|
|
892
505
|
Object.assign(contents, doc);
|
|
893
506
|
return contents;
|
|
894
507
|
};
|
|
895
|
-
const de_GetIngestionCommandError = async (output, context) => {
|
|
896
|
-
const parsedOutput = {
|
|
897
|
-
...output,
|
|
898
|
-
body: await parseErrorBody(output.body, context),
|
|
899
|
-
};
|
|
900
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
|
-
switch (errorCode) {
|
|
902
|
-
case "AccessDeniedException":
|
|
903
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
904
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
905
|
-
case "InternalServerException":
|
|
906
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
907
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ResourceNotFoundException":
|
|
909
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
910
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
911
|
-
case "ThrottlingException":
|
|
912
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
913
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ValidationException":
|
|
915
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
916
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
917
|
-
default:
|
|
918
|
-
const parsedBody = parsedOutput.body;
|
|
919
|
-
return throwDefaultError({
|
|
920
|
-
output,
|
|
921
|
-
parsedBody,
|
|
922
|
-
errorCode,
|
|
923
|
-
});
|
|
924
|
-
}
|
|
925
|
-
};
|
|
926
508
|
export const de_GetIngestionDestinationCommand = async (output, context) => {
|
|
927
509
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
928
|
-
return
|
|
510
|
+
return de_CommandError(output, context);
|
|
929
511
|
}
|
|
930
512
|
const contents = map({
|
|
931
513
|
$metadata: deserializeMetadata(output),
|
|
@@ -937,40 +519,9 @@ export const de_GetIngestionDestinationCommand = async (output, context) => {
|
|
|
937
519
|
Object.assign(contents, doc);
|
|
938
520
|
return contents;
|
|
939
521
|
};
|
|
940
|
-
const de_GetIngestionDestinationCommandError = async (output, context) => {
|
|
941
|
-
const parsedOutput = {
|
|
942
|
-
...output,
|
|
943
|
-
body: await parseErrorBody(output.body, context),
|
|
944
|
-
};
|
|
945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
-
switch (errorCode) {
|
|
947
|
-
case "AccessDeniedException":
|
|
948
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
949
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
950
|
-
case "InternalServerException":
|
|
951
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
952
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
953
|
-
case "ResourceNotFoundException":
|
|
954
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
955
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ThrottlingException":
|
|
957
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
958
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ValidationException":
|
|
960
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
961
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
962
|
-
default:
|
|
963
|
-
const parsedBody = parsedOutput.body;
|
|
964
|
-
return throwDefaultError({
|
|
965
|
-
output,
|
|
966
|
-
parsedBody,
|
|
967
|
-
errorCode,
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
};
|
|
971
522
|
export const de_ListAppAuthorizationsCommand = async (output, context) => {
|
|
972
523
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
973
|
-
return
|
|
524
|
+
return de_CommandError(output, context);
|
|
974
525
|
}
|
|
975
526
|
const contents = map({
|
|
976
527
|
$metadata: deserializeMetadata(output),
|
|
@@ -983,40 +534,9 @@ export const de_ListAppAuthorizationsCommand = async (output, context) => {
|
|
|
983
534
|
Object.assign(contents, doc);
|
|
984
535
|
return contents;
|
|
985
536
|
};
|
|
986
|
-
const de_ListAppAuthorizationsCommandError = async (output, context) => {
|
|
987
|
-
const parsedOutput = {
|
|
988
|
-
...output,
|
|
989
|
-
body: await parseErrorBody(output.body, context),
|
|
990
|
-
};
|
|
991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
|
-
switch (errorCode) {
|
|
993
|
-
case "AccessDeniedException":
|
|
994
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
995
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
996
|
-
case "InternalServerException":
|
|
997
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
998
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
999
|
-
case "ResourceNotFoundException":
|
|
1000
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1001
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ThrottlingException":
|
|
1003
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1004
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ValidationException":
|
|
1006
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
1007
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1008
|
-
default:
|
|
1009
|
-
const parsedBody = parsedOutput.body;
|
|
1010
|
-
return throwDefaultError({
|
|
1011
|
-
output,
|
|
1012
|
-
parsedBody,
|
|
1013
|
-
errorCode,
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
};
|
|
1017
537
|
export const de_ListAppBundlesCommand = async (output, context) => {
|
|
1018
538
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return
|
|
539
|
+
return de_CommandError(output, context);
|
|
1020
540
|
}
|
|
1021
541
|
const contents = map({
|
|
1022
542
|
$metadata: deserializeMetadata(output),
|
|
@@ -1027,176 +547,55 @@ export const de_ListAppBundlesCommand = async (output, context) => {
|
|
|
1027
547
|
nextToken: __expectString,
|
|
1028
548
|
});
|
|
1029
549
|
Object.assign(contents, doc);
|
|
1030
|
-
return contents;
|
|
1031
|
-
};
|
|
1032
|
-
const
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
body: await parseErrorBody(output.body, context),
|
|
1036
|
-
};
|
|
1037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
|
-
switch (errorCode) {
|
|
1039
|
-
case "AccessDeniedException":
|
|
1040
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1041
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "InternalServerException":
|
|
1043
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
1044
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "ThrottlingException":
|
|
1046
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1047
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "ValidationException":
|
|
1049
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
1050
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1051
|
-
default:
|
|
1052
|
-
const parsedBody = parsedOutput.body;
|
|
1053
|
-
return throwDefaultError({
|
|
1054
|
-
output,
|
|
1055
|
-
parsedBody,
|
|
1056
|
-
errorCode,
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
};
|
|
1060
|
-
export const de_ListIngestionDestinationsCommand = async (output, context) => {
|
|
1061
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1062
|
-
return de_ListIngestionDestinationsCommandError(output, context);
|
|
1063
|
-
}
|
|
1064
|
-
const contents = map({
|
|
1065
|
-
$metadata: deserializeMetadata(output),
|
|
1066
|
-
});
|
|
1067
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1068
|
-
const doc = take(data, {
|
|
1069
|
-
ingestionDestinations: _json,
|
|
1070
|
-
nextToken: __expectString,
|
|
1071
|
-
});
|
|
1072
|
-
Object.assign(contents, doc);
|
|
1073
|
-
return contents;
|
|
1074
|
-
};
|
|
1075
|
-
const de_ListIngestionDestinationsCommandError = async (output, context) => {
|
|
1076
|
-
const parsedOutput = {
|
|
1077
|
-
...output,
|
|
1078
|
-
body: await parseErrorBody(output.body, context),
|
|
1079
|
-
};
|
|
1080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
|
-
switch (errorCode) {
|
|
1082
|
-
case "AccessDeniedException":
|
|
1083
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1084
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "InternalServerException":
|
|
1086
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
1087
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ResourceNotFoundException":
|
|
1089
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1090
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "ThrottlingException":
|
|
1092
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1093
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "ValidationException":
|
|
1095
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
1096
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1097
|
-
default:
|
|
1098
|
-
const parsedBody = parsedOutput.body;
|
|
1099
|
-
return throwDefaultError({
|
|
1100
|
-
output,
|
|
1101
|
-
parsedBody,
|
|
1102
|
-
errorCode,
|
|
1103
|
-
});
|
|
1104
|
-
}
|
|
1105
|
-
};
|
|
1106
|
-
export const de_ListIngestionsCommand = async (output, context) => {
|
|
1107
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1108
|
-
return de_ListIngestionsCommandError(output, context);
|
|
1109
|
-
}
|
|
1110
|
-
const contents = map({
|
|
1111
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
-
});
|
|
1113
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1114
|
-
const doc = take(data, {
|
|
1115
|
-
ingestions: _json,
|
|
1116
|
-
nextToken: __expectString,
|
|
1117
|
-
});
|
|
1118
|
-
Object.assign(contents, doc);
|
|
1119
|
-
return contents;
|
|
1120
|
-
};
|
|
1121
|
-
const de_ListIngestionsCommandError = async (output, context) => {
|
|
1122
|
-
const parsedOutput = {
|
|
1123
|
-
...output,
|
|
1124
|
-
body: await parseErrorBody(output.body, context),
|
|
1125
|
-
};
|
|
1126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
|
-
switch (errorCode) {
|
|
1128
|
-
case "AccessDeniedException":
|
|
1129
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1130
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "InternalServerException":
|
|
1132
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
1133
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1134
|
-
case "ResourceNotFoundException":
|
|
1135
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1136
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "ThrottlingException":
|
|
1138
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1139
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "ValidationException":
|
|
1141
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
1142
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1143
|
-
default:
|
|
1144
|
-
const parsedBody = parsedOutput.body;
|
|
1145
|
-
return throwDefaultError({
|
|
1146
|
-
output,
|
|
1147
|
-
parsedBody,
|
|
1148
|
-
errorCode,
|
|
1149
|
-
});
|
|
550
|
+
return contents;
|
|
551
|
+
};
|
|
552
|
+
export const de_ListIngestionDestinationsCommand = async (output, context) => {
|
|
553
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
554
|
+
return de_CommandError(output, context);
|
|
1150
555
|
}
|
|
556
|
+
const contents = map({
|
|
557
|
+
$metadata: deserializeMetadata(output),
|
|
558
|
+
});
|
|
559
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
560
|
+
const doc = take(data, {
|
|
561
|
+
ingestionDestinations: _json,
|
|
562
|
+
nextToken: __expectString,
|
|
563
|
+
});
|
|
564
|
+
Object.assign(contents, doc);
|
|
565
|
+
return contents;
|
|
1151
566
|
};
|
|
1152
|
-
export const
|
|
567
|
+
export const de_ListIngestionsCommand = async (output, context) => {
|
|
1153
568
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1154
|
-
return
|
|
569
|
+
return de_CommandError(output, context);
|
|
1155
570
|
}
|
|
1156
571
|
const contents = map({
|
|
1157
572
|
$metadata: deserializeMetadata(output),
|
|
1158
573
|
});
|
|
1159
574
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1160
575
|
const doc = take(data, {
|
|
1161
|
-
|
|
576
|
+
ingestions: _json,
|
|
577
|
+
nextToken: __expectString,
|
|
1162
578
|
});
|
|
1163
579
|
Object.assign(contents, doc);
|
|
1164
580
|
return contents;
|
|
1165
581
|
};
|
|
1166
|
-
const
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
body: await parseErrorBody(output.body, context),
|
|
1170
|
-
};
|
|
1171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
-
switch (errorCode) {
|
|
1173
|
-
case "AccessDeniedException":
|
|
1174
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1175
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "InternalServerException":
|
|
1177
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
1178
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ResourceNotFoundException":
|
|
1180
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1181
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ThrottlingException":
|
|
1183
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1184
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ValidationException":
|
|
1186
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
1187
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1188
|
-
default:
|
|
1189
|
-
const parsedBody = parsedOutput.body;
|
|
1190
|
-
return throwDefaultError({
|
|
1191
|
-
output,
|
|
1192
|
-
parsedBody,
|
|
1193
|
-
errorCode,
|
|
1194
|
-
});
|
|
582
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
583
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
584
|
+
return de_CommandError(output, context);
|
|
1195
585
|
}
|
|
586
|
+
const contents = map({
|
|
587
|
+
$metadata: deserializeMetadata(output),
|
|
588
|
+
});
|
|
589
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
590
|
+
const doc = take(data, {
|
|
591
|
+
tags: _json,
|
|
592
|
+
});
|
|
593
|
+
Object.assign(contents, doc);
|
|
594
|
+
return contents;
|
|
1196
595
|
};
|
|
1197
596
|
export const de_StartIngestionCommand = async (output, context) => {
|
|
1198
597
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1199
|
-
return
|
|
598
|
+
return de_CommandError(output, context);
|
|
1200
599
|
}
|
|
1201
600
|
const contents = map({
|
|
1202
601
|
$metadata: deserializeMetadata(output),
|
|
@@ -1204,43 +603,9 @@ export const de_StartIngestionCommand = async (output, context) => {
|
|
|
1204
603
|
await collectBody(output.body, context);
|
|
1205
604
|
return contents;
|
|
1206
605
|
};
|
|
1207
|
-
const de_StartIngestionCommandError = async (output, context) => {
|
|
1208
|
-
const parsedOutput = {
|
|
1209
|
-
...output,
|
|
1210
|
-
body: await parseErrorBody(output.body, context),
|
|
1211
|
-
};
|
|
1212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
|
-
switch (errorCode) {
|
|
1214
|
-
case "AccessDeniedException":
|
|
1215
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1216
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "ConflictException":
|
|
1218
|
-
case "com.amazonaws.appfabric#ConflictException":
|
|
1219
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "InternalServerException":
|
|
1221
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
1222
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "ResourceNotFoundException":
|
|
1224
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1225
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ThrottlingException":
|
|
1227
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1228
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ValidationException":
|
|
1230
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
1231
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1232
|
-
default:
|
|
1233
|
-
const parsedBody = parsedOutput.body;
|
|
1234
|
-
return throwDefaultError({
|
|
1235
|
-
output,
|
|
1236
|
-
parsedBody,
|
|
1237
|
-
errorCode,
|
|
1238
|
-
});
|
|
1239
|
-
}
|
|
1240
|
-
};
|
|
1241
606
|
export const de_StartUserAccessTasksCommand = async (output, context) => {
|
|
1242
607
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1243
|
-
return
|
|
608
|
+
return de_CommandError(output, context);
|
|
1244
609
|
}
|
|
1245
610
|
const contents = map({
|
|
1246
611
|
$metadata: deserializeMetadata(output),
|
|
@@ -1252,40 +617,9 @@ export const de_StartUserAccessTasksCommand = async (output, context) => {
|
|
|
1252
617
|
Object.assign(contents, doc);
|
|
1253
618
|
return contents;
|
|
1254
619
|
};
|
|
1255
|
-
const de_StartUserAccessTasksCommandError = async (output, context) => {
|
|
1256
|
-
const parsedOutput = {
|
|
1257
|
-
...output,
|
|
1258
|
-
body: await parseErrorBody(output.body, context),
|
|
1259
|
-
};
|
|
1260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
-
switch (errorCode) {
|
|
1262
|
-
case "AccessDeniedException":
|
|
1263
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1264
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "InternalServerException":
|
|
1266
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
1267
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "ResourceNotFoundException":
|
|
1269
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1270
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "ThrottlingException":
|
|
1272
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1273
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "ValidationException":
|
|
1275
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
1276
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1277
|
-
default:
|
|
1278
|
-
const parsedBody = parsedOutput.body;
|
|
1279
|
-
return throwDefaultError({
|
|
1280
|
-
output,
|
|
1281
|
-
parsedBody,
|
|
1282
|
-
errorCode,
|
|
1283
|
-
});
|
|
1284
|
-
}
|
|
1285
|
-
};
|
|
1286
620
|
export const de_StopIngestionCommand = async (output, context) => {
|
|
1287
621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1288
|
-
return
|
|
622
|
+
return de_CommandError(output, context);
|
|
1289
623
|
}
|
|
1290
624
|
const contents = map({
|
|
1291
625
|
$metadata: deserializeMetadata(output),
|
|
@@ -1293,43 +627,9 @@ export const de_StopIngestionCommand = async (output, context) => {
|
|
|
1293
627
|
await collectBody(output.body, context);
|
|
1294
628
|
return contents;
|
|
1295
629
|
};
|
|
1296
|
-
const de_StopIngestionCommandError = async (output, context) => {
|
|
1297
|
-
const parsedOutput = {
|
|
1298
|
-
...output,
|
|
1299
|
-
body: await parseErrorBody(output.body, context),
|
|
1300
|
-
};
|
|
1301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
|
-
switch (errorCode) {
|
|
1303
|
-
case "AccessDeniedException":
|
|
1304
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1305
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "ConflictException":
|
|
1307
|
-
case "com.amazonaws.appfabric#ConflictException":
|
|
1308
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "InternalServerException":
|
|
1310
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
1311
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "ResourceNotFoundException":
|
|
1313
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1314
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "ThrottlingException":
|
|
1316
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1317
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "ValidationException":
|
|
1319
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
1320
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1321
|
-
default:
|
|
1322
|
-
const parsedBody = parsedOutput.body;
|
|
1323
|
-
return throwDefaultError({
|
|
1324
|
-
output,
|
|
1325
|
-
parsedBody,
|
|
1326
|
-
errorCode,
|
|
1327
|
-
});
|
|
1328
|
-
}
|
|
1329
|
-
};
|
|
1330
630
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1331
631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1332
|
-
return
|
|
632
|
+
return de_CommandError(output, context);
|
|
1333
633
|
}
|
|
1334
634
|
const contents = map({
|
|
1335
635
|
$metadata: deserializeMetadata(output),
|
|
@@ -1337,40 +637,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1337
637
|
await collectBody(output.body, context);
|
|
1338
638
|
return contents;
|
|
1339
639
|
};
|
|
1340
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1341
|
-
const parsedOutput = {
|
|
1342
|
-
...output,
|
|
1343
|
-
body: await parseErrorBody(output.body, context),
|
|
1344
|
-
};
|
|
1345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
|
-
switch (errorCode) {
|
|
1347
|
-
case "AccessDeniedException":
|
|
1348
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1349
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "InternalServerException":
|
|
1351
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
1352
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1353
|
-
case "ResourceNotFoundException":
|
|
1354
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1355
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1356
|
-
case "ThrottlingException":
|
|
1357
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1358
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "ValidationException":
|
|
1360
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
1361
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1362
|
-
default:
|
|
1363
|
-
const parsedBody = parsedOutput.body;
|
|
1364
|
-
return throwDefaultError({
|
|
1365
|
-
output,
|
|
1366
|
-
parsedBody,
|
|
1367
|
-
errorCode,
|
|
1368
|
-
});
|
|
1369
|
-
}
|
|
1370
|
-
};
|
|
1371
640
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1372
641
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1373
|
-
return
|
|
642
|
+
return de_CommandError(output, context);
|
|
1374
643
|
}
|
|
1375
644
|
const contents = map({
|
|
1376
645
|
$metadata: deserializeMetadata(output),
|
|
@@ -1378,40 +647,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1378
647
|
await collectBody(output.body, context);
|
|
1379
648
|
return contents;
|
|
1380
649
|
};
|
|
1381
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1382
|
-
const parsedOutput = {
|
|
1383
|
-
...output,
|
|
1384
|
-
body: await parseErrorBody(output.body, context),
|
|
1385
|
-
};
|
|
1386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1387
|
-
switch (errorCode) {
|
|
1388
|
-
case "AccessDeniedException":
|
|
1389
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1390
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1391
|
-
case "InternalServerException":
|
|
1392
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
1393
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1394
|
-
case "ResourceNotFoundException":
|
|
1395
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1396
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1397
|
-
case "ThrottlingException":
|
|
1398
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1399
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "ValidationException":
|
|
1401
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
1402
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1403
|
-
default:
|
|
1404
|
-
const parsedBody = parsedOutput.body;
|
|
1405
|
-
return throwDefaultError({
|
|
1406
|
-
output,
|
|
1407
|
-
parsedBody,
|
|
1408
|
-
errorCode,
|
|
1409
|
-
});
|
|
1410
|
-
}
|
|
1411
|
-
};
|
|
1412
650
|
export const de_UpdateAppAuthorizationCommand = async (output, context) => {
|
|
1413
651
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1414
|
-
return
|
|
652
|
+
return de_CommandError(output, context);
|
|
1415
653
|
}
|
|
1416
654
|
const contents = map({
|
|
1417
655
|
$metadata: deserializeMetadata(output),
|
|
@@ -1423,40 +661,9 @@ export const de_UpdateAppAuthorizationCommand = async (output, context) => {
|
|
|
1423
661
|
Object.assign(contents, doc);
|
|
1424
662
|
return contents;
|
|
1425
663
|
};
|
|
1426
|
-
const de_UpdateAppAuthorizationCommandError = async (output, context) => {
|
|
1427
|
-
const parsedOutput = {
|
|
1428
|
-
...output,
|
|
1429
|
-
body: await parseErrorBody(output.body, context),
|
|
1430
|
-
};
|
|
1431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
|
-
switch (errorCode) {
|
|
1433
|
-
case "AccessDeniedException":
|
|
1434
|
-
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1435
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "InternalServerException":
|
|
1437
|
-
case "com.amazonaws.appfabric#InternalServerException":
|
|
1438
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "ResourceNotFoundException":
|
|
1440
|
-
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1441
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1442
|
-
case "ThrottlingException":
|
|
1443
|
-
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1444
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "ValidationException":
|
|
1446
|
-
case "com.amazonaws.appfabric#ValidationException":
|
|
1447
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1448
|
-
default:
|
|
1449
|
-
const parsedBody = parsedOutput.body;
|
|
1450
|
-
return throwDefaultError({
|
|
1451
|
-
output,
|
|
1452
|
-
parsedBody,
|
|
1453
|
-
errorCode,
|
|
1454
|
-
});
|
|
1455
|
-
}
|
|
1456
|
-
};
|
|
1457
664
|
export const de_UpdateIngestionDestinationCommand = async (output, context) => {
|
|
1458
665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1459
|
-
return
|
|
666
|
+
return de_CommandError(output, context);
|
|
1460
667
|
}
|
|
1461
668
|
const contents = map({
|
|
1462
669
|
$metadata: deserializeMetadata(output),
|
|
@@ -1468,7 +675,7 @@ export const de_UpdateIngestionDestinationCommand = async (output, context) => {
|
|
|
1468
675
|
Object.assign(contents, doc);
|
|
1469
676
|
return contents;
|
|
1470
677
|
};
|
|
1471
|
-
const
|
|
678
|
+
const de_CommandError = async (output, context) => {
|
|
1472
679
|
const parsedOutput = {
|
|
1473
680
|
...output,
|
|
1474
681
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1478,24 +685,24 @@ const de_UpdateIngestionDestinationCommandError = async (output, context) => {
|
|
|
1478
685
|
case "AccessDeniedException":
|
|
1479
686
|
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1480
687
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ConflictException":
|
|
1482
|
-
case "com.amazonaws.appfabric#ConflictException":
|
|
1483
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1484
688
|
case "InternalServerException":
|
|
1485
689
|
case "com.amazonaws.appfabric#InternalServerException":
|
|
1486
690
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1487
691
|
case "ResourceNotFoundException":
|
|
1488
692
|
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1489
693
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "ServiceQuotaExceededException":
|
|
1491
|
-
case "com.amazonaws.appfabric#ServiceQuotaExceededException":
|
|
1492
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1493
694
|
case "ThrottlingException":
|
|
1494
695
|
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1495
696
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1496
697
|
case "ValidationException":
|
|
1497
698
|
case "com.amazonaws.appfabric#ValidationException":
|
|
1498
699
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
700
|
+
case "ConflictException":
|
|
701
|
+
case "com.amazonaws.appfabric#ConflictException":
|
|
702
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
703
|
+
case "ServiceQuotaExceededException":
|
|
704
|
+
case "com.amazonaws.appfabric#ServiceQuotaExceededException":
|
|
705
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1499
706
|
default:
|
|
1500
707
|
const parsedBody = parsedOutput.body;
|
|
1501
708
|
return throwDefaultError({
|