@aws-sdk/client-appflow 3.504.0 → 3.509.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 +45 -714
- package/dist-es/protocols/Aws_restJson1.js +44 -713
- package/package.json +3 -3
|
@@ -389,7 +389,7 @@ export const se_UpdateFlowCommand = async (input, context) => {
|
|
|
389
389
|
};
|
|
390
390
|
export const de_CancelFlowExecutionsCommand = async (output, context) => {
|
|
391
391
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
392
|
-
return
|
|
392
|
+
return de_CommandError(output, context);
|
|
393
393
|
}
|
|
394
394
|
const contents = map({
|
|
395
395
|
$metadata: deserializeMetadata(output),
|
|
@@ -401,40 +401,9 @@ export const de_CancelFlowExecutionsCommand = async (output, context) => {
|
|
|
401
401
|
Object.assign(contents, doc);
|
|
402
402
|
return contents;
|
|
403
403
|
};
|
|
404
|
-
const de_CancelFlowExecutionsCommandError = async (output, context) => {
|
|
405
|
-
const parsedOutput = {
|
|
406
|
-
...output,
|
|
407
|
-
body: await parseErrorBody(output.body, context),
|
|
408
|
-
};
|
|
409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
410
|
-
switch (errorCode) {
|
|
411
|
-
case "AccessDeniedException":
|
|
412
|
-
case "com.amazonaws.appflow#AccessDeniedException":
|
|
413
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
414
|
-
case "InternalServerException":
|
|
415
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
416
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
417
|
-
case "ResourceNotFoundException":
|
|
418
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
419
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
420
|
-
case "ThrottlingException":
|
|
421
|
-
case "com.amazonaws.appflow#ThrottlingException":
|
|
422
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
423
|
-
case "ValidationException":
|
|
424
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
425
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
426
|
-
default:
|
|
427
|
-
const parsedBody = parsedOutput.body;
|
|
428
|
-
return throwDefaultError({
|
|
429
|
-
output,
|
|
430
|
-
parsedBody,
|
|
431
|
-
errorCode,
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
404
|
export const de_CreateConnectorProfileCommand = async (output, context) => {
|
|
436
405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
437
|
-
return
|
|
406
|
+
return de_CommandError(output, context);
|
|
438
407
|
}
|
|
439
408
|
const contents = map({
|
|
440
409
|
$metadata: deserializeMetadata(output),
|
|
@@ -446,40 +415,9 @@ export const de_CreateConnectorProfileCommand = async (output, context) => {
|
|
|
446
415
|
Object.assign(contents, doc);
|
|
447
416
|
return contents;
|
|
448
417
|
};
|
|
449
|
-
const de_CreateConnectorProfileCommandError = async (output, context) => {
|
|
450
|
-
const parsedOutput = {
|
|
451
|
-
...output,
|
|
452
|
-
body: await parseErrorBody(output.body, context),
|
|
453
|
-
};
|
|
454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
|
-
switch (errorCode) {
|
|
456
|
-
case "ConflictException":
|
|
457
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
458
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
459
|
-
case "ConnectorAuthenticationException":
|
|
460
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
461
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
462
|
-
case "InternalServerException":
|
|
463
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
464
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
465
|
-
case "ServiceQuotaExceededException":
|
|
466
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
467
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ValidationException":
|
|
469
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
470
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
471
|
-
default:
|
|
472
|
-
const parsedBody = parsedOutput.body;
|
|
473
|
-
return throwDefaultError({
|
|
474
|
-
output,
|
|
475
|
-
parsedBody,
|
|
476
|
-
errorCode,
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
418
|
export const de_CreateFlowCommand = async (output, context) => {
|
|
481
419
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
482
|
-
return
|
|
420
|
+
return de_CommandError(output, context);
|
|
483
421
|
}
|
|
484
422
|
const contents = map({
|
|
485
423
|
$metadata: deserializeMetadata(output),
|
|
@@ -492,49 +430,9 @@ export const de_CreateFlowCommand = async (output, context) => {
|
|
|
492
430
|
Object.assign(contents, doc);
|
|
493
431
|
return contents;
|
|
494
432
|
};
|
|
495
|
-
const de_CreateFlowCommandError = async (output, context) => {
|
|
496
|
-
const parsedOutput = {
|
|
497
|
-
...output,
|
|
498
|
-
body: await parseErrorBody(output.body, context),
|
|
499
|
-
};
|
|
500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
|
-
switch (errorCode) {
|
|
502
|
-
case "AccessDeniedException":
|
|
503
|
-
case "com.amazonaws.appflow#AccessDeniedException":
|
|
504
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
505
|
-
case "ConflictException":
|
|
506
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
507
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
508
|
-
case "ConnectorAuthenticationException":
|
|
509
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
510
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
511
|
-
case "ConnectorServerException":
|
|
512
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
513
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
514
|
-
case "InternalServerException":
|
|
515
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
516
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
517
|
-
case "ResourceNotFoundException":
|
|
518
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
519
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
520
|
-
case "ServiceQuotaExceededException":
|
|
521
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
522
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
523
|
-
case "ValidationException":
|
|
524
|
-
case "com.amazonaws.appflow#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
433
|
export const de_DeleteConnectorProfileCommand = async (output, context) => {
|
|
536
434
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
537
|
-
return
|
|
435
|
+
return de_CommandError(output, context);
|
|
538
436
|
}
|
|
539
437
|
const contents = map({
|
|
540
438
|
$metadata: deserializeMetadata(output),
|
|
@@ -542,34 +440,9 @@ export const de_DeleteConnectorProfileCommand = async (output, context) => {
|
|
|
542
440
|
await collectBody(output.body, context);
|
|
543
441
|
return contents;
|
|
544
442
|
};
|
|
545
|
-
const de_DeleteConnectorProfileCommandError = 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 "ConflictException":
|
|
553
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
554
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
555
|
-
case "InternalServerException":
|
|
556
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
557
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
558
|
-
case "ResourceNotFoundException":
|
|
559
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
560
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
561
|
-
default:
|
|
562
|
-
const parsedBody = parsedOutput.body;
|
|
563
|
-
return throwDefaultError({
|
|
564
|
-
output,
|
|
565
|
-
parsedBody,
|
|
566
|
-
errorCode,
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
443
|
export const de_DeleteFlowCommand = async (output, context) => {
|
|
571
444
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
572
|
-
return
|
|
445
|
+
return de_CommandError(output, context);
|
|
573
446
|
}
|
|
574
447
|
const contents = map({
|
|
575
448
|
$metadata: deserializeMetadata(output),
|
|
@@ -577,34 +450,9 @@ export const de_DeleteFlowCommand = async (output, context) => {
|
|
|
577
450
|
await collectBody(output.body, context);
|
|
578
451
|
return contents;
|
|
579
452
|
};
|
|
580
|
-
const de_DeleteFlowCommandError = async (output, context) => {
|
|
581
|
-
const parsedOutput = {
|
|
582
|
-
...output,
|
|
583
|
-
body: await parseErrorBody(output.body, context),
|
|
584
|
-
};
|
|
585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
|
-
switch (errorCode) {
|
|
587
|
-
case "ConflictException":
|
|
588
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
589
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
590
|
-
case "InternalServerException":
|
|
591
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
592
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
593
|
-
case "ResourceNotFoundException":
|
|
594
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
595
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
596
|
-
default:
|
|
597
|
-
const parsedBody = parsedOutput.body;
|
|
598
|
-
return throwDefaultError({
|
|
599
|
-
output,
|
|
600
|
-
parsedBody,
|
|
601
|
-
errorCode,
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
};
|
|
605
453
|
export const de_DescribeConnectorCommand = async (output, context) => {
|
|
606
454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
607
|
-
return
|
|
455
|
+
return de_CommandError(output, context);
|
|
608
456
|
}
|
|
609
457
|
const contents = map({
|
|
610
458
|
$metadata: deserializeMetadata(output),
|
|
@@ -616,34 +464,9 @@ export const de_DescribeConnectorCommand = async (output, context) => {
|
|
|
616
464
|
Object.assign(contents, doc);
|
|
617
465
|
return contents;
|
|
618
466
|
};
|
|
619
|
-
const de_DescribeConnectorCommandError = async (output, context) => {
|
|
620
|
-
const parsedOutput = {
|
|
621
|
-
...output,
|
|
622
|
-
body: await parseErrorBody(output.body, context),
|
|
623
|
-
};
|
|
624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
|
-
switch (errorCode) {
|
|
626
|
-
case "InternalServerException":
|
|
627
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
628
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
629
|
-
case "ResourceNotFoundException":
|
|
630
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
631
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
632
|
-
case "ValidationException":
|
|
633
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
634
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
635
|
-
default:
|
|
636
|
-
const parsedBody = parsedOutput.body;
|
|
637
|
-
return throwDefaultError({
|
|
638
|
-
output,
|
|
639
|
-
parsedBody,
|
|
640
|
-
errorCode,
|
|
641
|
-
});
|
|
642
|
-
}
|
|
643
|
-
};
|
|
644
467
|
export const de_DescribeConnectorEntityCommand = async (output, context) => {
|
|
645
468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
646
|
-
return
|
|
469
|
+
return de_CommandError(output, context);
|
|
647
470
|
}
|
|
648
471
|
const contents = map({
|
|
649
472
|
$metadata: deserializeMetadata(output),
|
|
@@ -655,40 +478,9 @@ export const de_DescribeConnectorEntityCommand = async (output, context) => {
|
|
|
655
478
|
Object.assign(contents, doc);
|
|
656
479
|
return contents;
|
|
657
480
|
};
|
|
658
|
-
const de_DescribeConnectorEntityCommandError = async (output, context) => {
|
|
659
|
-
const parsedOutput = {
|
|
660
|
-
...output,
|
|
661
|
-
body: await parseErrorBody(output.body, context),
|
|
662
|
-
};
|
|
663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
|
-
switch (errorCode) {
|
|
665
|
-
case "ConnectorAuthenticationException":
|
|
666
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
667
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ConnectorServerException":
|
|
669
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
670
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
671
|
-
case "InternalServerException":
|
|
672
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
673
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
674
|
-
case "ResourceNotFoundException":
|
|
675
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
676
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
677
|
-
case "ValidationException":
|
|
678
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
679
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
680
|
-
default:
|
|
681
|
-
const parsedBody = parsedOutput.body;
|
|
682
|
-
return throwDefaultError({
|
|
683
|
-
output,
|
|
684
|
-
parsedBody,
|
|
685
|
-
errorCode,
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
};
|
|
689
481
|
export const de_DescribeConnectorProfilesCommand = async (output, context) => {
|
|
690
482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
|
-
return
|
|
483
|
+
return de_CommandError(output, context);
|
|
692
484
|
}
|
|
693
485
|
const contents = map({
|
|
694
486
|
$metadata: deserializeMetadata(output),
|
|
@@ -701,31 +493,9 @@ export const de_DescribeConnectorProfilesCommand = async (output, context) => {
|
|
|
701
493
|
Object.assign(contents, doc);
|
|
702
494
|
return contents;
|
|
703
495
|
};
|
|
704
|
-
const de_DescribeConnectorProfilesCommandError = async (output, context) => {
|
|
705
|
-
const parsedOutput = {
|
|
706
|
-
...output,
|
|
707
|
-
body: await parseErrorBody(output.body, context),
|
|
708
|
-
};
|
|
709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
710
|
-
switch (errorCode) {
|
|
711
|
-
case "InternalServerException":
|
|
712
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
713
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
714
|
-
case "ValidationException":
|
|
715
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
716
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
717
|
-
default:
|
|
718
|
-
const parsedBody = parsedOutput.body;
|
|
719
|
-
return throwDefaultError({
|
|
720
|
-
output,
|
|
721
|
-
parsedBody,
|
|
722
|
-
errorCode,
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
496
|
export const de_DescribeConnectorsCommand = async (output, context) => {
|
|
727
497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
728
|
-
return
|
|
498
|
+
return de_CommandError(output, context);
|
|
729
499
|
}
|
|
730
500
|
const contents = map({
|
|
731
501
|
$metadata: deserializeMetadata(output),
|
|
@@ -739,31 +509,9 @@ export const de_DescribeConnectorsCommand = async (output, context) => {
|
|
|
739
509
|
Object.assign(contents, doc);
|
|
740
510
|
return contents;
|
|
741
511
|
};
|
|
742
|
-
const de_DescribeConnectorsCommandError = async (output, context) => {
|
|
743
|
-
const parsedOutput = {
|
|
744
|
-
...output,
|
|
745
|
-
body: await parseErrorBody(output.body, context),
|
|
746
|
-
};
|
|
747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
748
|
-
switch (errorCode) {
|
|
749
|
-
case "InternalServerException":
|
|
750
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
751
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
752
|
-
case "ValidationException":
|
|
753
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
754
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
755
|
-
default:
|
|
756
|
-
const parsedBody = parsedOutput.body;
|
|
757
|
-
return throwDefaultError({
|
|
758
|
-
output,
|
|
759
|
-
parsedBody,
|
|
760
|
-
errorCode,
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
512
|
export const de_DescribeFlowCommand = async (output, context) => {
|
|
765
513
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
-
return
|
|
514
|
+
return de_CommandError(output, context);
|
|
767
515
|
}
|
|
768
516
|
const contents = map({
|
|
769
517
|
$metadata: deserializeMetadata(output),
|
|
@@ -793,31 +541,9 @@ export const de_DescribeFlowCommand = async (output, context) => {
|
|
|
793
541
|
Object.assign(contents, doc);
|
|
794
542
|
return contents;
|
|
795
543
|
};
|
|
796
|
-
const de_DescribeFlowCommandError = async (output, context) => {
|
|
797
|
-
const parsedOutput = {
|
|
798
|
-
...output,
|
|
799
|
-
body: await parseErrorBody(output.body, context),
|
|
800
|
-
};
|
|
801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
|
-
switch (errorCode) {
|
|
803
|
-
case "InternalServerException":
|
|
804
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
805
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
806
|
-
case "ResourceNotFoundException":
|
|
807
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
808
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
809
|
-
default:
|
|
810
|
-
const parsedBody = parsedOutput.body;
|
|
811
|
-
return throwDefaultError({
|
|
812
|
-
output,
|
|
813
|
-
parsedBody,
|
|
814
|
-
errorCode,
|
|
815
|
-
});
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
544
|
export const de_DescribeFlowExecutionRecordsCommand = async (output, context) => {
|
|
819
545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
820
|
-
return
|
|
546
|
+
return de_CommandError(output, context);
|
|
821
547
|
}
|
|
822
548
|
const contents = map({
|
|
823
549
|
$metadata: deserializeMetadata(output),
|
|
@@ -830,34 +556,9 @@ export const de_DescribeFlowExecutionRecordsCommand = async (output, context) =>
|
|
|
830
556
|
Object.assign(contents, doc);
|
|
831
557
|
return contents;
|
|
832
558
|
};
|
|
833
|
-
const de_DescribeFlowExecutionRecordsCommandError = async (output, context) => {
|
|
834
|
-
const parsedOutput = {
|
|
835
|
-
...output,
|
|
836
|
-
body: await parseErrorBody(output.body, context),
|
|
837
|
-
};
|
|
838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
|
-
switch (errorCode) {
|
|
840
|
-
case "InternalServerException":
|
|
841
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
842
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ResourceNotFoundException":
|
|
844
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
845
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ValidationException":
|
|
847
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
848
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
849
|
-
default:
|
|
850
|
-
const parsedBody = parsedOutput.body;
|
|
851
|
-
return throwDefaultError({
|
|
852
|
-
output,
|
|
853
|
-
parsedBody,
|
|
854
|
-
errorCode,
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
};
|
|
858
559
|
export const de_ListConnectorEntitiesCommand = async (output, context) => {
|
|
859
560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
|
-
return
|
|
561
|
+
return de_CommandError(output, context);
|
|
861
562
|
}
|
|
862
563
|
const contents = map({
|
|
863
564
|
$metadata: deserializeMetadata(output),
|
|
@@ -870,40 +571,9 @@ export const de_ListConnectorEntitiesCommand = async (output, context) => {
|
|
|
870
571
|
Object.assign(contents, doc);
|
|
871
572
|
return contents;
|
|
872
573
|
};
|
|
873
|
-
const de_ListConnectorEntitiesCommandError = async (output, context) => {
|
|
874
|
-
const parsedOutput = {
|
|
875
|
-
...output,
|
|
876
|
-
body: await parseErrorBody(output.body, context),
|
|
877
|
-
};
|
|
878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
|
-
switch (errorCode) {
|
|
880
|
-
case "ConnectorAuthenticationException":
|
|
881
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
882
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
883
|
-
case "ConnectorServerException":
|
|
884
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
885
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
886
|
-
case "InternalServerException":
|
|
887
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
888
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ResourceNotFoundException":
|
|
890
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
891
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
892
|
-
case "ValidationException":
|
|
893
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
894
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
895
|
-
default:
|
|
896
|
-
const parsedBody = parsedOutput.body;
|
|
897
|
-
return throwDefaultError({
|
|
898
|
-
output,
|
|
899
|
-
parsedBody,
|
|
900
|
-
errorCode,
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
574
|
export const de_ListConnectorsCommand = async (output, context) => {
|
|
905
575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
906
|
-
return
|
|
576
|
+
return de_CommandError(output, context);
|
|
907
577
|
}
|
|
908
578
|
const contents = map({
|
|
909
579
|
$metadata: deserializeMetadata(output),
|
|
@@ -916,31 +586,9 @@ export const de_ListConnectorsCommand = async (output, context) => {
|
|
|
916
586
|
Object.assign(contents, doc);
|
|
917
587
|
return contents;
|
|
918
588
|
};
|
|
919
|
-
const de_ListConnectorsCommandError = async (output, context) => {
|
|
920
|
-
const parsedOutput = {
|
|
921
|
-
...output,
|
|
922
|
-
body: await parseErrorBody(output.body, context),
|
|
923
|
-
};
|
|
924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
-
switch (errorCode) {
|
|
926
|
-
case "InternalServerException":
|
|
927
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
928
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ValidationException":
|
|
930
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
931
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
932
|
-
default:
|
|
933
|
-
const parsedBody = parsedOutput.body;
|
|
934
|
-
return throwDefaultError({
|
|
935
|
-
output,
|
|
936
|
-
parsedBody,
|
|
937
|
-
errorCode,
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
};
|
|
941
589
|
export const de_ListFlowsCommand = async (output, context) => {
|
|
942
590
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
943
|
-
return
|
|
591
|
+
return de_CommandError(output, context);
|
|
944
592
|
}
|
|
945
593
|
const contents = map({
|
|
946
594
|
$metadata: deserializeMetadata(output),
|
|
@@ -953,31 +601,9 @@ export const de_ListFlowsCommand = async (output, context) => {
|
|
|
953
601
|
Object.assign(contents, doc);
|
|
954
602
|
return contents;
|
|
955
603
|
};
|
|
956
|
-
const de_ListFlowsCommandError = async (output, context) => {
|
|
957
|
-
const parsedOutput = {
|
|
958
|
-
...output,
|
|
959
|
-
body: await parseErrorBody(output.body, context),
|
|
960
|
-
};
|
|
961
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
|
-
switch (errorCode) {
|
|
963
|
-
case "InternalServerException":
|
|
964
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
965
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
966
|
-
case "ValidationException":
|
|
967
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
968
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
969
|
-
default:
|
|
970
|
-
const parsedBody = parsedOutput.body;
|
|
971
|
-
return throwDefaultError({
|
|
972
|
-
output,
|
|
973
|
-
parsedBody,
|
|
974
|
-
errorCode,
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
};
|
|
978
604
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
979
605
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
980
|
-
return
|
|
606
|
+
return de_CommandError(output, context);
|
|
981
607
|
}
|
|
982
608
|
const contents = map({
|
|
983
609
|
$metadata: deserializeMetadata(output),
|
|
@@ -989,34 +615,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
989
615
|
Object.assign(contents, doc);
|
|
990
616
|
return contents;
|
|
991
617
|
};
|
|
992
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
993
|
-
const parsedOutput = {
|
|
994
|
-
...output,
|
|
995
|
-
body: await parseErrorBody(output.body, context),
|
|
996
|
-
};
|
|
997
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
|
-
switch (errorCode) {
|
|
999
|
-
case "InternalServerException":
|
|
1000
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1001
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ResourceNotFoundException":
|
|
1003
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1004
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ValidationException":
|
|
1006
|
-
case "com.amazonaws.appflow#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
618
|
export const de_RegisterConnectorCommand = async (output, context) => {
|
|
1018
619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return
|
|
620
|
+
return de_CommandError(output, context);
|
|
1020
621
|
}
|
|
1021
622
|
const contents = map({
|
|
1022
623
|
$metadata: deserializeMetadata(output),
|
|
@@ -1028,52 +629,9 @@ export const de_RegisterConnectorCommand = async (output, context) => {
|
|
|
1028
629
|
Object.assign(contents, doc);
|
|
1029
630
|
return contents;
|
|
1030
631
|
};
|
|
1031
|
-
const de_RegisterConnectorCommandError = async (output, context) => {
|
|
1032
|
-
const parsedOutput = {
|
|
1033
|
-
...output,
|
|
1034
|
-
body: await parseErrorBody(output.body, context),
|
|
1035
|
-
};
|
|
1036
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
|
-
switch (errorCode) {
|
|
1038
|
-
case "AccessDeniedException":
|
|
1039
|
-
case "com.amazonaws.appflow#AccessDeniedException":
|
|
1040
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "ConflictException":
|
|
1042
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1043
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ConnectorAuthenticationException":
|
|
1045
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1046
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ConnectorServerException":
|
|
1048
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
1049
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "InternalServerException":
|
|
1051
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1052
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ResourceNotFoundException":
|
|
1054
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1055
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ServiceQuotaExceededException":
|
|
1057
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
1058
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ThrottlingException":
|
|
1060
|
-
case "com.amazonaws.appflow#ThrottlingException":
|
|
1061
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "ValidationException":
|
|
1063
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1064
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1065
|
-
default:
|
|
1066
|
-
const parsedBody = parsedOutput.body;
|
|
1067
|
-
return throwDefaultError({
|
|
1068
|
-
output,
|
|
1069
|
-
parsedBody,
|
|
1070
|
-
errorCode,
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
};
|
|
1074
632
|
export const de_ResetConnectorMetadataCacheCommand = async (output, context) => {
|
|
1075
633
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1076
|
-
return
|
|
634
|
+
return de_CommandError(output, context);
|
|
1077
635
|
}
|
|
1078
636
|
const contents = map({
|
|
1079
637
|
$metadata: deserializeMetadata(output),
|
|
@@ -1081,37 +639,9 @@ export const de_ResetConnectorMetadataCacheCommand = async (output, context) =>
|
|
|
1081
639
|
await collectBody(output.body, context);
|
|
1082
640
|
return contents;
|
|
1083
641
|
};
|
|
1084
|
-
const de_ResetConnectorMetadataCacheCommandError = async (output, context) => {
|
|
1085
|
-
const parsedOutput = {
|
|
1086
|
-
...output,
|
|
1087
|
-
body: await parseErrorBody(output.body, context),
|
|
1088
|
-
};
|
|
1089
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
|
-
switch (errorCode) {
|
|
1091
|
-
case "ConflictException":
|
|
1092
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1093
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "InternalServerException":
|
|
1095
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1096
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "ResourceNotFoundException":
|
|
1098
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1099
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "ValidationException":
|
|
1101
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1102
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1103
|
-
default:
|
|
1104
|
-
const parsedBody = parsedOutput.body;
|
|
1105
|
-
return throwDefaultError({
|
|
1106
|
-
output,
|
|
1107
|
-
parsedBody,
|
|
1108
|
-
errorCode,
|
|
1109
|
-
});
|
|
1110
|
-
}
|
|
1111
|
-
};
|
|
1112
642
|
export const de_StartFlowCommand = async (output, context) => {
|
|
1113
643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1114
|
-
return
|
|
644
|
+
return de_CommandError(output, context);
|
|
1115
645
|
}
|
|
1116
646
|
const contents = map({
|
|
1117
647
|
$metadata: deserializeMetadata(output),
|
|
@@ -1125,37 +655,9 @@ export const de_StartFlowCommand = async (output, context) => {
|
|
|
1125
655
|
Object.assign(contents, doc);
|
|
1126
656
|
return contents;
|
|
1127
657
|
};
|
|
1128
|
-
const de_StartFlowCommandError = async (output, context) => {
|
|
1129
|
-
const parsedOutput = {
|
|
1130
|
-
...output,
|
|
1131
|
-
body: await parseErrorBody(output.body, context),
|
|
1132
|
-
};
|
|
1133
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1134
|
-
switch (errorCode) {
|
|
1135
|
-
case "ConflictException":
|
|
1136
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1137
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "InternalServerException":
|
|
1139
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1140
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "ResourceNotFoundException":
|
|
1142
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1143
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "ServiceQuotaExceededException":
|
|
1145
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
1146
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1147
|
-
default:
|
|
1148
|
-
const parsedBody = parsedOutput.body;
|
|
1149
|
-
return throwDefaultError({
|
|
1150
|
-
output,
|
|
1151
|
-
parsedBody,
|
|
1152
|
-
errorCode,
|
|
1153
|
-
});
|
|
1154
|
-
}
|
|
1155
|
-
};
|
|
1156
658
|
export const de_StopFlowCommand = async (output, context) => {
|
|
1157
659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1158
|
-
return
|
|
660
|
+
return de_CommandError(output, context);
|
|
1159
661
|
}
|
|
1160
662
|
const contents = map({
|
|
1161
663
|
$metadata: deserializeMetadata(output),
|
|
@@ -1168,37 +670,9 @@ export const de_StopFlowCommand = async (output, context) => {
|
|
|
1168
670
|
Object.assign(contents, doc);
|
|
1169
671
|
return contents;
|
|
1170
672
|
};
|
|
1171
|
-
const de_StopFlowCommandError = async (output, context) => {
|
|
1172
|
-
const parsedOutput = {
|
|
1173
|
-
...output,
|
|
1174
|
-
body: await parseErrorBody(output.body, context),
|
|
1175
|
-
};
|
|
1176
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
|
-
switch (errorCode) {
|
|
1178
|
-
case "ConflictException":
|
|
1179
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1180
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "InternalServerException":
|
|
1182
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1183
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "ResourceNotFoundException":
|
|
1185
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1186
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "UnsupportedOperationException":
|
|
1188
|
-
case "com.amazonaws.appflow#UnsupportedOperationException":
|
|
1189
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1190
|
-
default:
|
|
1191
|
-
const parsedBody = parsedOutput.body;
|
|
1192
|
-
return throwDefaultError({
|
|
1193
|
-
output,
|
|
1194
|
-
parsedBody,
|
|
1195
|
-
errorCode,
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
};
|
|
1199
673
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1200
674
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1201
|
-
return
|
|
675
|
+
return de_CommandError(output, context);
|
|
1202
676
|
}
|
|
1203
677
|
const contents = map({
|
|
1204
678
|
$metadata: deserializeMetadata(output),
|
|
@@ -1206,34 +680,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1206
680
|
await collectBody(output.body, context);
|
|
1207
681
|
return contents;
|
|
1208
682
|
};
|
|
1209
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1210
|
-
const parsedOutput = {
|
|
1211
|
-
...output,
|
|
1212
|
-
body: await parseErrorBody(output.body, context),
|
|
1213
|
-
};
|
|
1214
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1215
|
-
switch (errorCode) {
|
|
1216
|
-
case "InternalServerException":
|
|
1217
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1218
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ResourceNotFoundException":
|
|
1220
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1221
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "ValidationException":
|
|
1223
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1224
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1225
|
-
default:
|
|
1226
|
-
const parsedBody = parsedOutput.body;
|
|
1227
|
-
return throwDefaultError({
|
|
1228
|
-
output,
|
|
1229
|
-
parsedBody,
|
|
1230
|
-
errorCode,
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
};
|
|
1234
683
|
export const de_UnregisterConnectorCommand = async (output, context) => {
|
|
1235
684
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1236
|
-
return
|
|
685
|
+
return de_CommandError(output, context);
|
|
1237
686
|
}
|
|
1238
687
|
const contents = map({
|
|
1239
688
|
$metadata: deserializeMetadata(output),
|
|
@@ -1241,34 +690,9 @@ export const de_UnregisterConnectorCommand = async (output, context) => {
|
|
|
1241
690
|
await collectBody(output.body, context);
|
|
1242
691
|
return contents;
|
|
1243
692
|
};
|
|
1244
|
-
const de_UnregisterConnectorCommandError = async (output, context) => {
|
|
1245
|
-
const parsedOutput = {
|
|
1246
|
-
...output,
|
|
1247
|
-
body: await parseErrorBody(output.body, context),
|
|
1248
|
-
};
|
|
1249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1250
|
-
switch (errorCode) {
|
|
1251
|
-
case "ConflictException":
|
|
1252
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1253
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "InternalServerException":
|
|
1255
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1256
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "ResourceNotFoundException":
|
|
1258
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1259
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1260
|
-
default:
|
|
1261
|
-
const parsedBody = parsedOutput.body;
|
|
1262
|
-
return throwDefaultError({
|
|
1263
|
-
output,
|
|
1264
|
-
parsedBody,
|
|
1265
|
-
errorCode,
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
};
|
|
1269
693
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1270
694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1271
|
-
return
|
|
695
|
+
return de_CommandError(output, context);
|
|
1272
696
|
}
|
|
1273
697
|
const contents = map({
|
|
1274
698
|
$metadata: deserializeMetadata(output),
|
|
@@ -1276,34 +700,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1276
700
|
await collectBody(output.body, context);
|
|
1277
701
|
return contents;
|
|
1278
702
|
};
|
|
1279
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1280
|
-
const parsedOutput = {
|
|
1281
|
-
...output,
|
|
1282
|
-
body: await parseErrorBody(output.body, context),
|
|
1283
|
-
};
|
|
1284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
|
-
switch (errorCode) {
|
|
1286
|
-
case "InternalServerException":
|
|
1287
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1288
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ResourceNotFoundException":
|
|
1290
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "ValidationException":
|
|
1293
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1294
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1295
|
-
default:
|
|
1296
|
-
const parsedBody = parsedOutput.body;
|
|
1297
|
-
return throwDefaultError({
|
|
1298
|
-
output,
|
|
1299
|
-
parsedBody,
|
|
1300
|
-
errorCode,
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
703
|
export const de_UpdateConnectorProfileCommand = async (output, context) => {
|
|
1305
704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1306
|
-
return
|
|
705
|
+
return de_CommandError(output, context);
|
|
1307
706
|
}
|
|
1308
707
|
const contents = map({
|
|
1309
708
|
$metadata: deserializeMetadata(output),
|
|
@@ -1315,40 +714,9 @@ export const de_UpdateConnectorProfileCommand = async (output, context) => {
|
|
|
1315
714
|
Object.assign(contents, doc);
|
|
1316
715
|
return contents;
|
|
1317
716
|
};
|
|
1318
|
-
const de_UpdateConnectorProfileCommandError = async (output, context) => {
|
|
1319
|
-
const parsedOutput = {
|
|
1320
|
-
...output,
|
|
1321
|
-
body: await parseErrorBody(output.body, context),
|
|
1322
|
-
};
|
|
1323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
|
-
switch (errorCode) {
|
|
1325
|
-
case "ConflictException":
|
|
1326
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1327
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ConnectorAuthenticationException":
|
|
1329
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1330
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "InternalServerException":
|
|
1332
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1333
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "ResourceNotFoundException":
|
|
1335
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1336
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "ValidationException":
|
|
1338
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1339
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1340
|
-
default:
|
|
1341
|
-
const parsedBody = parsedOutput.body;
|
|
1342
|
-
return throwDefaultError({
|
|
1343
|
-
output,
|
|
1344
|
-
parsedBody,
|
|
1345
|
-
errorCode,
|
|
1346
|
-
});
|
|
1347
|
-
}
|
|
1348
|
-
};
|
|
1349
717
|
export const de_UpdateConnectorRegistrationCommand = async (output, context) => {
|
|
1350
718
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1351
|
-
return
|
|
719
|
+
return de_CommandError(output, context);
|
|
1352
720
|
}
|
|
1353
721
|
const contents = map({
|
|
1354
722
|
$metadata: deserializeMetadata(output),
|
|
@@ -1360,52 +728,9 @@ export const de_UpdateConnectorRegistrationCommand = async (output, context) =>
|
|
|
1360
728
|
Object.assign(contents, doc);
|
|
1361
729
|
return contents;
|
|
1362
730
|
};
|
|
1363
|
-
const de_UpdateConnectorRegistrationCommandError = async (output, context) => {
|
|
1364
|
-
const parsedOutput = {
|
|
1365
|
-
...output,
|
|
1366
|
-
body: await parseErrorBody(output.body, context),
|
|
1367
|
-
};
|
|
1368
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
|
-
switch (errorCode) {
|
|
1370
|
-
case "AccessDeniedException":
|
|
1371
|
-
case "com.amazonaws.appflow#AccessDeniedException":
|
|
1372
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "ConflictException":
|
|
1374
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1375
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "ConnectorAuthenticationException":
|
|
1377
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1378
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ConnectorServerException":
|
|
1380
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
1381
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "InternalServerException":
|
|
1383
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1384
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "ResourceNotFoundException":
|
|
1386
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1387
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "ServiceQuotaExceededException":
|
|
1389
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
1390
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1391
|
-
case "ThrottlingException":
|
|
1392
|
-
case "com.amazonaws.appflow#ThrottlingException":
|
|
1393
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1394
|
-
case "ValidationException":
|
|
1395
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1396
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1397
|
-
default:
|
|
1398
|
-
const parsedBody = parsedOutput.body;
|
|
1399
|
-
return throwDefaultError({
|
|
1400
|
-
output,
|
|
1401
|
-
parsedBody,
|
|
1402
|
-
errorCode,
|
|
1403
|
-
});
|
|
1404
|
-
}
|
|
1405
|
-
};
|
|
1406
731
|
export const de_UpdateFlowCommand = async (output, context) => {
|
|
1407
732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1408
|
-
return
|
|
733
|
+
return de_CommandError(output, context);
|
|
1409
734
|
}
|
|
1410
735
|
const contents = map({
|
|
1411
736
|
$metadata: deserializeMetadata(output),
|
|
@@ -1417,7 +742,7 @@ export const de_UpdateFlowCommand = async (output, context) => {
|
|
|
1417
742
|
Object.assign(contents, doc);
|
|
1418
743
|
return contents;
|
|
1419
744
|
};
|
|
1420
|
-
const
|
|
745
|
+
const de_CommandError = async (output, context) => {
|
|
1421
746
|
const parsedOutput = {
|
|
1422
747
|
...output,
|
|
1423
748
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1427,27 +752,33 @@ const de_UpdateFlowCommandError = async (output, context) => {
|
|
|
1427
752
|
case "AccessDeniedException":
|
|
1428
753
|
case "com.amazonaws.appflow#AccessDeniedException":
|
|
1429
754
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "ConflictException":
|
|
1431
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1432
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "ConnectorAuthenticationException":
|
|
1434
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1435
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "ConnectorServerException":
|
|
1437
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
1438
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
1439
755
|
case "InternalServerException":
|
|
1440
756
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1441
757
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1442
758
|
case "ResourceNotFoundException":
|
|
1443
759
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1444
760
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "
|
|
1446
|
-
case "com.amazonaws.appflow#
|
|
1447
|
-
throw await
|
|
761
|
+
case "ThrottlingException":
|
|
762
|
+
case "com.amazonaws.appflow#ThrottlingException":
|
|
763
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1448
764
|
case "ValidationException":
|
|
1449
765
|
case "com.amazonaws.appflow#ValidationException":
|
|
1450
766
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
767
|
+
case "ConflictException":
|
|
768
|
+
case "com.amazonaws.appflow#ConflictException":
|
|
769
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
770
|
+
case "ConnectorAuthenticationException":
|
|
771
|
+
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
772
|
+
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
773
|
+
case "ServiceQuotaExceededException":
|
|
774
|
+
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
775
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
776
|
+
case "ConnectorServerException":
|
|
777
|
+
case "com.amazonaws.appflow#ConnectorServerException":
|
|
778
|
+
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
779
|
+
case "UnsupportedOperationException":
|
|
780
|
+
case "com.amazonaws.appflow#UnsupportedOperationException":
|
|
781
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1451
782
|
default:
|
|
1452
783
|
const parsedBody = parsedOutput.body;
|
|
1453
784
|
return throwDefaultError({
|