@aws-sdk/client-appflow 3.50.0 → 3.53.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/CHANGELOG.md +30 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AppflowServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +149 -5
- package/dist-cjs/protocols/Aws_restJson1.js +346 -829
- package/dist-es/index.js +1 -0
- package/dist-es/models/AppflowServiceException.js +12 -0
- package/dist-es/models/models_0.js +131 -1
- package/dist-es/protocols/Aws_restJson1.js +580 -930
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AppflowServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +140 -41
- package/dist-types/ts3.4/Appflow.d.ts +115 -0
- package/dist-types/ts3.4/AppflowClient.d.ts +95 -0
- package/dist-types/ts3.4/commands/CreateConnectorProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateFlowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteConnectorProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteFlowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeConnectorEntityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeConnectorProfilesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeConnectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeFlowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeFlowExecutionRecordsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListConnectorEntitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListFlowsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RegisterConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartFlowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopFlowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UnregisterConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConnectorProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateFlowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +22 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/AppflowServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2897 -0
- package/dist-types/ts3.4/pagination/DescribeConnectorProfilesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeConnectorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeFlowExecutionRecordsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListFlowsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +68 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1UpdateFlowCommand = exports.deserializeAws_restJson1UpdateConnectorProfileCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1UnregisterConnectorCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopFlowCommand = exports.deserializeAws_restJson1StartFlowCommand = exports.deserializeAws_restJson1RegisterConnectorCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListFlowsCommand = exports.deserializeAws_restJson1ListConnectorsCommand = exports.deserializeAws_restJson1ListConnectorEntitiesCommand = exports.deserializeAws_restJson1DescribeFlowExecutionRecordsCommand = exports.deserializeAws_restJson1DescribeFlowCommand = exports.deserializeAws_restJson1DescribeConnectorsCommand = exports.deserializeAws_restJson1DescribeConnectorProfilesCommand = exports.deserializeAws_restJson1DescribeConnectorEntityCommand = exports.deserializeAws_restJson1DescribeConnectorCommand = exports.deserializeAws_restJson1DeleteFlowCommand = exports.deserializeAws_restJson1DeleteConnectorProfileCommand = exports.deserializeAws_restJson1CreateFlowCommand = exports.deserializeAws_restJson1CreateConnectorProfileCommand = exports.serializeAws_restJson1UpdateFlowCommand = exports.serializeAws_restJson1UpdateConnectorProfileCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1UnregisterConnectorCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopFlowCommand = exports.serializeAws_restJson1StartFlowCommand = exports.serializeAws_restJson1RegisterConnectorCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListFlowsCommand = exports.serializeAws_restJson1ListConnectorsCommand = exports.serializeAws_restJson1ListConnectorEntitiesCommand = exports.serializeAws_restJson1DescribeFlowExecutionRecordsCommand = exports.serializeAws_restJson1DescribeFlowCommand = exports.serializeAws_restJson1DescribeConnectorsCommand = exports.serializeAws_restJson1DescribeConnectorProfilesCommand = exports.serializeAws_restJson1DescribeConnectorEntityCommand = exports.serializeAws_restJson1DescribeConnectorCommand = exports.serializeAws_restJson1DeleteFlowCommand = exports.serializeAws_restJson1DeleteConnectorProfileCommand = exports.serializeAws_restJson1CreateFlowCommand = exports.serializeAws_restJson1CreateConnectorProfileCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const AppflowServiceException_1 = require("../models/AppflowServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_restJson1CreateConnectorProfileCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -606,59 +608,28 @@ const deserializeAws_restJson1CreateConnectorProfileCommandError = async (output
|
|
|
606
608
|
switch (errorCode) {
|
|
607
609
|
case "ConflictException":
|
|
608
610
|
case "com.amazonaws.appflow#ConflictException":
|
|
609
|
-
|
|
610
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
611
|
-
name: errorCode,
|
|
612
|
-
$metadata: deserializeMetadata(output),
|
|
613
|
-
};
|
|
614
|
-
break;
|
|
611
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
615
612
|
case "ConnectorAuthenticationException":
|
|
616
613
|
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
617
|
-
|
|
618
|
-
...(await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)),
|
|
619
|
-
name: errorCode,
|
|
620
|
-
$metadata: deserializeMetadata(output),
|
|
621
|
-
};
|
|
622
|
-
break;
|
|
614
|
+
throw await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context);
|
|
623
615
|
case "InternalServerException":
|
|
624
616
|
case "com.amazonaws.appflow#InternalServerException":
|
|
625
|
-
|
|
626
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
627
|
-
name: errorCode,
|
|
628
|
-
$metadata: deserializeMetadata(output),
|
|
629
|
-
};
|
|
630
|
-
break;
|
|
617
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
631
618
|
case "ServiceQuotaExceededException":
|
|
632
619
|
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
633
|
-
|
|
634
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
635
|
-
name: errorCode,
|
|
636
|
-
$metadata: deserializeMetadata(output),
|
|
637
|
-
};
|
|
638
|
-
break;
|
|
620
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
639
621
|
case "ValidationException":
|
|
640
622
|
case "com.amazonaws.appflow#ValidationException":
|
|
641
|
-
|
|
642
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
643
|
-
name: errorCode,
|
|
644
|
-
$metadata: deserializeMetadata(output),
|
|
645
|
-
};
|
|
646
|
-
break;
|
|
623
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
647
624
|
default:
|
|
648
625
|
const parsedBody = parsedOutput.body;
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
...parsedBody,
|
|
652
|
-
name: `${errorCode}`,
|
|
653
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
626
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
627
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
654
628
|
$fault: "client",
|
|
655
629
|
$metadata: deserializeMetadata(output),
|
|
656
|
-
};
|
|
630
|
+
});
|
|
631
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
657
632
|
}
|
|
658
|
-
const message = response.message || response.Message || errorCode;
|
|
659
|
-
response.message = message;
|
|
660
|
-
delete response.Message;
|
|
661
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
662
633
|
};
|
|
663
634
|
const deserializeAws_restJson1CreateFlowCommand = async (output, context) => {
|
|
664
635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -690,75 +661,34 @@ const deserializeAws_restJson1CreateFlowCommandError = async (output, context) =
|
|
|
690
661
|
switch (errorCode) {
|
|
691
662
|
case "ConflictException":
|
|
692
663
|
case "com.amazonaws.appflow#ConflictException":
|
|
693
|
-
|
|
694
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
695
|
-
name: errorCode,
|
|
696
|
-
$metadata: deserializeMetadata(output),
|
|
697
|
-
};
|
|
698
|
-
break;
|
|
664
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
699
665
|
case "ConnectorAuthenticationException":
|
|
700
666
|
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
701
|
-
|
|
702
|
-
...(await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)),
|
|
703
|
-
name: errorCode,
|
|
704
|
-
$metadata: deserializeMetadata(output),
|
|
705
|
-
};
|
|
706
|
-
break;
|
|
667
|
+
throw await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context);
|
|
707
668
|
case "ConnectorServerException":
|
|
708
669
|
case "com.amazonaws.appflow#ConnectorServerException":
|
|
709
|
-
|
|
710
|
-
...(await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context)),
|
|
711
|
-
name: errorCode,
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
};
|
|
714
|
-
break;
|
|
670
|
+
throw await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context);
|
|
715
671
|
case "InternalServerException":
|
|
716
672
|
case "com.amazonaws.appflow#InternalServerException":
|
|
717
|
-
|
|
718
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
719
|
-
name: errorCode,
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
721
|
-
};
|
|
722
|
-
break;
|
|
673
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
723
674
|
case "ResourceNotFoundException":
|
|
724
675
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
725
|
-
|
|
726
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
727
|
-
name: errorCode,
|
|
728
|
-
$metadata: deserializeMetadata(output),
|
|
729
|
-
};
|
|
730
|
-
break;
|
|
676
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
731
677
|
case "ServiceQuotaExceededException":
|
|
732
678
|
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
733
|
-
|
|
734
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
735
|
-
name: errorCode,
|
|
736
|
-
$metadata: deserializeMetadata(output),
|
|
737
|
-
};
|
|
738
|
-
break;
|
|
679
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
739
680
|
case "ValidationException":
|
|
740
681
|
case "com.amazonaws.appflow#ValidationException":
|
|
741
|
-
|
|
742
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
743
|
-
name: errorCode,
|
|
744
|
-
$metadata: deserializeMetadata(output),
|
|
745
|
-
};
|
|
746
|
-
break;
|
|
682
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
747
683
|
default:
|
|
748
684
|
const parsedBody = parsedOutput.body;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
...parsedBody,
|
|
752
|
-
name: `${errorCode}`,
|
|
753
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
685
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
686
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
754
687
|
$fault: "client",
|
|
755
688
|
$metadata: deserializeMetadata(output),
|
|
756
|
-
};
|
|
689
|
+
});
|
|
690
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
757
691
|
}
|
|
758
|
-
const message = response.message || response.Message || errorCode;
|
|
759
|
-
response.message = message;
|
|
760
|
-
delete response.Message;
|
|
761
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
762
692
|
};
|
|
763
693
|
const deserializeAws_restJson1DeleteConnectorProfileCommand = async (output, context) => {
|
|
764
694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -782,43 +712,22 @@ const deserializeAws_restJson1DeleteConnectorProfileCommandError = async (output
|
|
|
782
712
|
switch (errorCode) {
|
|
783
713
|
case "ConflictException":
|
|
784
714
|
case "com.amazonaws.appflow#ConflictException":
|
|
785
|
-
|
|
786
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
787
|
-
name: errorCode,
|
|
788
|
-
$metadata: deserializeMetadata(output),
|
|
789
|
-
};
|
|
790
|
-
break;
|
|
715
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
791
716
|
case "InternalServerException":
|
|
792
717
|
case "com.amazonaws.appflow#InternalServerException":
|
|
793
|
-
|
|
794
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
795
|
-
name: errorCode,
|
|
796
|
-
$metadata: deserializeMetadata(output),
|
|
797
|
-
};
|
|
798
|
-
break;
|
|
718
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
799
719
|
case "ResourceNotFoundException":
|
|
800
720
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
801
|
-
|
|
802
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
803
|
-
name: errorCode,
|
|
804
|
-
$metadata: deserializeMetadata(output),
|
|
805
|
-
};
|
|
806
|
-
break;
|
|
721
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
807
722
|
default:
|
|
808
723
|
const parsedBody = parsedOutput.body;
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
...parsedBody,
|
|
812
|
-
name: `${errorCode}`,
|
|
813
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
724
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
725
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
814
726
|
$fault: "client",
|
|
815
727
|
$metadata: deserializeMetadata(output),
|
|
816
|
-
};
|
|
728
|
+
});
|
|
729
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
817
730
|
}
|
|
818
|
-
const message = response.message || response.Message || errorCode;
|
|
819
|
-
response.message = message;
|
|
820
|
-
delete response.Message;
|
|
821
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
822
731
|
};
|
|
823
732
|
const deserializeAws_restJson1DeleteFlowCommand = async (output, context) => {
|
|
824
733
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -842,43 +751,22 @@ const deserializeAws_restJson1DeleteFlowCommandError = async (output, context) =
|
|
|
842
751
|
switch (errorCode) {
|
|
843
752
|
case "ConflictException":
|
|
844
753
|
case "com.amazonaws.appflow#ConflictException":
|
|
845
|
-
|
|
846
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
847
|
-
name: errorCode,
|
|
848
|
-
$metadata: deserializeMetadata(output),
|
|
849
|
-
};
|
|
850
|
-
break;
|
|
754
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
851
755
|
case "InternalServerException":
|
|
852
756
|
case "com.amazonaws.appflow#InternalServerException":
|
|
853
|
-
|
|
854
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
855
|
-
name: errorCode,
|
|
856
|
-
$metadata: deserializeMetadata(output),
|
|
857
|
-
};
|
|
858
|
-
break;
|
|
757
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
859
758
|
case "ResourceNotFoundException":
|
|
860
759
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
861
|
-
|
|
862
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
863
|
-
name: errorCode,
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
};
|
|
866
|
-
break;
|
|
760
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
867
761
|
default:
|
|
868
762
|
const parsedBody = parsedOutput.body;
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
...parsedBody,
|
|
872
|
-
name: `${errorCode}`,
|
|
873
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
763
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
764
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
874
765
|
$fault: "client",
|
|
875
766
|
$metadata: deserializeMetadata(output),
|
|
876
|
-
};
|
|
767
|
+
});
|
|
768
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
877
769
|
}
|
|
878
|
-
const message = response.message || response.Message || errorCode;
|
|
879
|
-
response.message = message;
|
|
880
|
-
delete response.Message;
|
|
881
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
882
770
|
};
|
|
883
771
|
const deserializeAws_restJson1DescribeConnectorCommand = async (output, context) => {
|
|
884
772
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -906,43 +794,22 @@ const deserializeAws_restJson1DescribeConnectorCommandError = async (output, con
|
|
|
906
794
|
switch (errorCode) {
|
|
907
795
|
case "InternalServerException":
|
|
908
796
|
case "com.amazonaws.appflow#InternalServerException":
|
|
909
|
-
|
|
910
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
911
|
-
name: errorCode,
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
};
|
|
914
|
-
break;
|
|
797
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
915
798
|
case "ResourceNotFoundException":
|
|
916
799
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
917
|
-
|
|
918
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
919
|
-
name: errorCode,
|
|
920
|
-
$metadata: deserializeMetadata(output),
|
|
921
|
-
};
|
|
922
|
-
break;
|
|
800
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
923
801
|
case "ValidationException":
|
|
924
802
|
case "com.amazonaws.appflow#ValidationException":
|
|
925
|
-
|
|
926
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
927
|
-
name: errorCode,
|
|
928
|
-
$metadata: deserializeMetadata(output),
|
|
929
|
-
};
|
|
930
|
-
break;
|
|
803
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
931
804
|
default:
|
|
932
805
|
const parsedBody = parsedOutput.body;
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
...parsedBody,
|
|
936
|
-
name: `${errorCode}`,
|
|
937
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
806
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
807
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
938
808
|
$fault: "client",
|
|
939
809
|
$metadata: deserializeMetadata(output),
|
|
940
|
-
};
|
|
810
|
+
});
|
|
811
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
941
812
|
}
|
|
942
|
-
const message = response.message || response.Message || errorCode;
|
|
943
|
-
response.message = message;
|
|
944
|
-
delete response.Message;
|
|
945
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
946
813
|
};
|
|
947
814
|
const deserializeAws_restJson1DescribeConnectorEntityCommand = async (output, context) => {
|
|
948
815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -970,59 +837,28 @@ const deserializeAws_restJson1DescribeConnectorEntityCommandError = async (outpu
|
|
|
970
837
|
switch (errorCode) {
|
|
971
838
|
case "ConnectorAuthenticationException":
|
|
972
839
|
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
973
|
-
|
|
974
|
-
...(await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)),
|
|
975
|
-
name: errorCode,
|
|
976
|
-
$metadata: deserializeMetadata(output),
|
|
977
|
-
};
|
|
978
|
-
break;
|
|
840
|
+
throw await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context);
|
|
979
841
|
case "ConnectorServerException":
|
|
980
842
|
case "com.amazonaws.appflow#ConnectorServerException":
|
|
981
|
-
|
|
982
|
-
...(await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context)),
|
|
983
|
-
name: errorCode,
|
|
984
|
-
$metadata: deserializeMetadata(output),
|
|
985
|
-
};
|
|
986
|
-
break;
|
|
843
|
+
throw await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context);
|
|
987
844
|
case "InternalServerException":
|
|
988
845
|
case "com.amazonaws.appflow#InternalServerException":
|
|
989
|
-
|
|
990
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
991
|
-
name: errorCode,
|
|
992
|
-
$metadata: deserializeMetadata(output),
|
|
993
|
-
};
|
|
994
|
-
break;
|
|
846
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
995
847
|
case "ResourceNotFoundException":
|
|
996
848
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
997
|
-
|
|
998
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
999
|
-
name: errorCode,
|
|
1000
|
-
$metadata: deserializeMetadata(output),
|
|
1001
|
-
};
|
|
1002
|
-
break;
|
|
849
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1003
850
|
case "ValidationException":
|
|
1004
851
|
case "com.amazonaws.appflow#ValidationException":
|
|
1005
|
-
|
|
1006
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1007
|
-
name: errorCode,
|
|
1008
|
-
$metadata: deserializeMetadata(output),
|
|
1009
|
-
};
|
|
1010
|
-
break;
|
|
852
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1011
853
|
default:
|
|
1012
854
|
const parsedBody = parsedOutput.body;
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
...parsedBody,
|
|
1016
|
-
name: `${errorCode}`,
|
|
1017
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
855
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
856
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1018
857
|
$fault: "client",
|
|
1019
858
|
$metadata: deserializeMetadata(output),
|
|
1020
|
-
};
|
|
859
|
+
});
|
|
860
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1021
861
|
}
|
|
1022
|
-
const message = response.message || response.Message || errorCode;
|
|
1023
|
-
response.message = message;
|
|
1024
|
-
delete response.Message;
|
|
1025
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1026
862
|
};
|
|
1027
863
|
const deserializeAws_restJson1DescribeConnectorProfilesCommand = async (output, context) => {
|
|
1028
864
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1054,35 +890,19 @@ const deserializeAws_restJson1DescribeConnectorProfilesCommandError = async (out
|
|
|
1054
890
|
switch (errorCode) {
|
|
1055
891
|
case "InternalServerException":
|
|
1056
892
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1057
|
-
|
|
1058
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1059
|
-
name: errorCode,
|
|
1060
|
-
$metadata: deserializeMetadata(output),
|
|
1061
|
-
};
|
|
1062
|
-
break;
|
|
893
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1063
894
|
case "ValidationException":
|
|
1064
895
|
case "com.amazonaws.appflow#ValidationException":
|
|
1065
|
-
|
|
1066
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1067
|
-
name: errorCode,
|
|
1068
|
-
$metadata: deserializeMetadata(output),
|
|
1069
|
-
};
|
|
1070
|
-
break;
|
|
896
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1071
897
|
default:
|
|
1072
898
|
const parsedBody = parsedOutput.body;
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
...parsedBody,
|
|
1076
|
-
name: `${errorCode}`,
|
|
1077
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
899
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
900
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1078
901
|
$fault: "client",
|
|
1079
902
|
$metadata: deserializeMetadata(output),
|
|
1080
|
-
};
|
|
903
|
+
});
|
|
904
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1081
905
|
}
|
|
1082
|
-
const message = response.message || response.Message || errorCode;
|
|
1083
|
-
response.message = message;
|
|
1084
|
-
delete response.Message;
|
|
1085
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1086
906
|
};
|
|
1087
907
|
const deserializeAws_restJson1DescribeConnectorsCommand = async (output, context) => {
|
|
1088
908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1118,35 +938,19 @@ const deserializeAws_restJson1DescribeConnectorsCommandError = async (output, co
|
|
|
1118
938
|
switch (errorCode) {
|
|
1119
939
|
case "InternalServerException":
|
|
1120
940
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1121
|
-
|
|
1122
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1123
|
-
name: errorCode,
|
|
1124
|
-
$metadata: deserializeMetadata(output),
|
|
1125
|
-
};
|
|
1126
|
-
break;
|
|
941
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1127
942
|
case "ValidationException":
|
|
1128
943
|
case "com.amazonaws.appflow#ValidationException":
|
|
1129
|
-
|
|
1130
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1131
|
-
name: errorCode,
|
|
1132
|
-
$metadata: deserializeMetadata(output),
|
|
1133
|
-
};
|
|
1134
|
-
break;
|
|
944
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1135
945
|
default:
|
|
1136
946
|
const parsedBody = parsedOutput.body;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
...parsedBody,
|
|
1140
|
-
name: `${errorCode}`,
|
|
1141
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
947
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
948
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1142
949
|
$fault: "client",
|
|
1143
950
|
$metadata: deserializeMetadata(output),
|
|
1144
|
-
};
|
|
951
|
+
});
|
|
952
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1145
953
|
}
|
|
1146
|
-
const message = response.message || response.Message || errorCode;
|
|
1147
|
-
response.message = message;
|
|
1148
|
-
delete response.Message;
|
|
1149
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1150
954
|
};
|
|
1151
955
|
const deserializeAws_restJson1DescribeFlowCommand = async (output, context) => {
|
|
1152
956
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1234,35 +1038,19 @@ const deserializeAws_restJson1DescribeFlowCommandError = async (output, context)
|
|
|
1234
1038
|
switch (errorCode) {
|
|
1235
1039
|
case "InternalServerException":
|
|
1236
1040
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1237
|
-
|
|
1238
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1239
|
-
name: errorCode,
|
|
1240
|
-
$metadata: deserializeMetadata(output),
|
|
1241
|
-
};
|
|
1242
|
-
break;
|
|
1041
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1243
1042
|
case "ResourceNotFoundException":
|
|
1244
1043
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1245
|
-
|
|
1246
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1247
|
-
name: errorCode,
|
|
1248
|
-
$metadata: deserializeMetadata(output),
|
|
1249
|
-
};
|
|
1250
|
-
break;
|
|
1044
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1251
1045
|
default:
|
|
1252
1046
|
const parsedBody = parsedOutput.body;
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
...parsedBody,
|
|
1256
|
-
name: `${errorCode}`,
|
|
1257
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1047
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1048
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1258
1049
|
$fault: "client",
|
|
1259
1050
|
$metadata: deserializeMetadata(output),
|
|
1260
|
-
};
|
|
1051
|
+
});
|
|
1052
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1261
1053
|
}
|
|
1262
|
-
const message = response.message || response.Message || errorCode;
|
|
1263
|
-
response.message = message;
|
|
1264
|
-
delete response.Message;
|
|
1265
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1266
1054
|
};
|
|
1267
1055
|
const deserializeAws_restJson1DescribeFlowExecutionRecordsCommand = async (output, context) => {
|
|
1268
1056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1294,43 +1082,22 @@ const deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError = async (
|
|
|
1294
1082
|
switch (errorCode) {
|
|
1295
1083
|
case "InternalServerException":
|
|
1296
1084
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1297
|
-
|
|
1298
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1299
|
-
name: errorCode,
|
|
1300
|
-
$metadata: deserializeMetadata(output),
|
|
1301
|
-
};
|
|
1302
|
-
break;
|
|
1085
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1303
1086
|
case "ResourceNotFoundException":
|
|
1304
1087
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1305
|
-
|
|
1306
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1307
|
-
name: errorCode,
|
|
1308
|
-
$metadata: deserializeMetadata(output),
|
|
1309
|
-
};
|
|
1310
|
-
break;
|
|
1088
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1311
1089
|
case "ValidationException":
|
|
1312
1090
|
case "com.amazonaws.appflow#ValidationException":
|
|
1313
|
-
|
|
1314
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1315
|
-
name: errorCode,
|
|
1316
|
-
$metadata: deserializeMetadata(output),
|
|
1317
|
-
};
|
|
1318
|
-
break;
|
|
1091
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1319
1092
|
default:
|
|
1320
1093
|
const parsedBody = parsedOutput.body;
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
...parsedBody,
|
|
1324
|
-
name: `${errorCode}`,
|
|
1325
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1094
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1095
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1326
1096
|
$fault: "client",
|
|
1327
1097
|
$metadata: deserializeMetadata(output),
|
|
1328
|
-
};
|
|
1098
|
+
});
|
|
1099
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1329
1100
|
}
|
|
1330
|
-
const message = response.message || response.Message || errorCode;
|
|
1331
|
-
response.message = message;
|
|
1332
|
-
delete response.Message;
|
|
1333
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1334
1101
|
};
|
|
1335
1102
|
const deserializeAws_restJson1ListConnectorEntitiesCommand = async (output, context) => {
|
|
1336
1103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1358,59 +1125,28 @@ const deserializeAws_restJson1ListConnectorEntitiesCommandError = async (output,
|
|
|
1358
1125
|
switch (errorCode) {
|
|
1359
1126
|
case "ConnectorAuthenticationException":
|
|
1360
1127
|
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1361
|
-
|
|
1362
|
-
...(await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)),
|
|
1363
|
-
name: errorCode,
|
|
1364
|
-
$metadata: deserializeMetadata(output),
|
|
1365
|
-
};
|
|
1366
|
-
break;
|
|
1128
|
+
throw await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context);
|
|
1367
1129
|
case "ConnectorServerException":
|
|
1368
1130
|
case "com.amazonaws.appflow#ConnectorServerException":
|
|
1369
|
-
|
|
1370
|
-
...(await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context)),
|
|
1371
|
-
name: errorCode,
|
|
1372
|
-
$metadata: deserializeMetadata(output),
|
|
1373
|
-
};
|
|
1374
|
-
break;
|
|
1131
|
+
throw await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context);
|
|
1375
1132
|
case "InternalServerException":
|
|
1376
1133
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1377
|
-
|
|
1378
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1379
|
-
name: errorCode,
|
|
1380
|
-
$metadata: deserializeMetadata(output),
|
|
1381
|
-
};
|
|
1382
|
-
break;
|
|
1134
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1383
1135
|
case "ResourceNotFoundException":
|
|
1384
1136
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1385
|
-
|
|
1386
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1387
|
-
name: errorCode,
|
|
1388
|
-
$metadata: deserializeMetadata(output),
|
|
1389
|
-
};
|
|
1390
|
-
break;
|
|
1137
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1391
1138
|
case "ValidationException":
|
|
1392
1139
|
case "com.amazonaws.appflow#ValidationException":
|
|
1393
|
-
|
|
1394
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1395
|
-
name: errorCode,
|
|
1396
|
-
$metadata: deserializeMetadata(output),
|
|
1397
|
-
};
|
|
1398
|
-
break;
|
|
1140
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1399
1141
|
default:
|
|
1400
1142
|
const parsedBody = parsedOutput.body;
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
...parsedBody,
|
|
1404
|
-
name: `${errorCode}`,
|
|
1405
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1143
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1144
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1406
1145
|
$fault: "client",
|
|
1407
1146
|
$metadata: deserializeMetadata(output),
|
|
1408
|
-
};
|
|
1147
|
+
});
|
|
1148
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1409
1149
|
}
|
|
1410
|
-
const message = response.message || response.Message || errorCode;
|
|
1411
|
-
response.message = message;
|
|
1412
|
-
delete response.Message;
|
|
1413
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1414
1150
|
};
|
|
1415
1151
|
const deserializeAws_restJson1ListConnectorsCommand = async (output, context) => {
|
|
1416
1152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1442,35 +1178,19 @@ const deserializeAws_restJson1ListConnectorsCommandError = async (output, contex
|
|
|
1442
1178
|
switch (errorCode) {
|
|
1443
1179
|
case "InternalServerException":
|
|
1444
1180
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1445
|
-
|
|
1446
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1447
|
-
name: errorCode,
|
|
1448
|
-
$metadata: deserializeMetadata(output),
|
|
1449
|
-
};
|
|
1450
|
-
break;
|
|
1181
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1451
1182
|
case "ValidationException":
|
|
1452
1183
|
case "com.amazonaws.appflow#ValidationException":
|
|
1453
|
-
|
|
1454
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1455
|
-
name: errorCode,
|
|
1456
|
-
$metadata: deserializeMetadata(output),
|
|
1457
|
-
};
|
|
1458
|
-
break;
|
|
1184
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1459
1185
|
default:
|
|
1460
1186
|
const parsedBody = parsedOutput.body;
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
...parsedBody,
|
|
1464
|
-
name: `${errorCode}`,
|
|
1465
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1187
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1188
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1466
1189
|
$fault: "client",
|
|
1467
1190
|
$metadata: deserializeMetadata(output),
|
|
1468
|
-
};
|
|
1191
|
+
});
|
|
1192
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1469
1193
|
}
|
|
1470
|
-
const message = response.message || response.Message || errorCode;
|
|
1471
|
-
response.message = message;
|
|
1472
|
-
delete response.Message;
|
|
1473
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1474
1194
|
};
|
|
1475
1195
|
const deserializeAws_restJson1ListFlowsCommand = async (output, context) => {
|
|
1476
1196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1502,35 +1222,19 @@ const deserializeAws_restJson1ListFlowsCommandError = async (output, context) =>
|
|
|
1502
1222
|
switch (errorCode) {
|
|
1503
1223
|
case "InternalServerException":
|
|
1504
1224
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1505
|
-
|
|
1506
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1507
|
-
name: errorCode,
|
|
1508
|
-
$metadata: deserializeMetadata(output),
|
|
1509
|
-
};
|
|
1510
|
-
break;
|
|
1225
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1511
1226
|
case "ValidationException":
|
|
1512
1227
|
case "com.amazonaws.appflow#ValidationException":
|
|
1513
|
-
|
|
1514
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1515
|
-
name: errorCode,
|
|
1516
|
-
$metadata: deserializeMetadata(output),
|
|
1517
|
-
};
|
|
1518
|
-
break;
|
|
1228
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1519
1229
|
default:
|
|
1520
1230
|
const parsedBody = parsedOutput.body;
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
...parsedBody,
|
|
1524
|
-
name: `${errorCode}`,
|
|
1525
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1231
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1232
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1526
1233
|
$fault: "client",
|
|
1527
1234
|
$metadata: deserializeMetadata(output),
|
|
1528
|
-
};
|
|
1235
|
+
});
|
|
1236
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1529
1237
|
}
|
|
1530
|
-
const message = response.message || response.Message || errorCode;
|
|
1531
|
-
response.message = message;
|
|
1532
|
-
delete response.Message;
|
|
1533
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1534
1238
|
};
|
|
1535
1239
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1536
1240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1558,43 +1262,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1558
1262
|
switch (errorCode) {
|
|
1559
1263
|
case "InternalServerException":
|
|
1560
1264
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1561
|
-
|
|
1562
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1563
|
-
name: errorCode,
|
|
1564
|
-
$metadata: deserializeMetadata(output),
|
|
1565
|
-
};
|
|
1566
|
-
break;
|
|
1265
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1567
1266
|
case "ResourceNotFoundException":
|
|
1568
1267
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1569
|
-
|
|
1570
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1571
|
-
name: errorCode,
|
|
1572
|
-
$metadata: deserializeMetadata(output),
|
|
1573
|
-
};
|
|
1574
|
-
break;
|
|
1268
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1575
1269
|
case "ValidationException":
|
|
1576
1270
|
case "com.amazonaws.appflow#ValidationException":
|
|
1577
|
-
|
|
1578
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1579
|
-
name: errorCode,
|
|
1580
|
-
$metadata: deserializeMetadata(output),
|
|
1581
|
-
};
|
|
1582
|
-
break;
|
|
1271
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1583
1272
|
default:
|
|
1584
1273
|
const parsedBody = parsedOutput.body;
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
...parsedBody,
|
|
1588
|
-
name: `${errorCode}`,
|
|
1589
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1274
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1275
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1590
1276
|
$fault: "client",
|
|
1591
1277
|
$metadata: deserializeMetadata(output),
|
|
1592
|
-
};
|
|
1278
|
+
});
|
|
1279
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1593
1280
|
}
|
|
1594
|
-
const message = response.message || response.Message || errorCode;
|
|
1595
|
-
response.message = message;
|
|
1596
|
-
delete response.Message;
|
|
1597
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1598
1281
|
};
|
|
1599
1282
|
const deserializeAws_restJson1RegisterConnectorCommand = async (output, context) => {
|
|
1600
1283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1622,91 +1305,40 @@ const deserializeAws_restJson1RegisterConnectorCommandError = async (output, con
|
|
|
1622
1305
|
switch (errorCode) {
|
|
1623
1306
|
case "AccessDeniedException":
|
|
1624
1307
|
case "com.amazonaws.appflow#AccessDeniedException":
|
|
1625
|
-
|
|
1626
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1627
|
-
name: errorCode,
|
|
1628
|
-
$metadata: deserializeMetadata(output),
|
|
1629
|
-
};
|
|
1630
|
-
break;
|
|
1308
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1631
1309
|
case "ConflictException":
|
|
1632
1310
|
case "com.amazonaws.appflow#ConflictException":
|
|
1633
|
-
|
|
1634
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1635
|
-
name: errorCode,
|
|
1636
|
-
$metadata: deserializeMetadata(output),
|
|
1637
|
-
};
|
|
1638
|
-
break;
|
|
1311
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1639
1312
|
case "ConnectorAuthenticationException":
|
|
1640
1313
|
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1641
|
-
|
|
1642
|
-
...(await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)),
|
|
1643
|
-
name: errorCode,
|
|
1644
|
-
$metadata: deserializeMetadata(output),
|
|
1645
|
-
};
|
|
1646
|
-
break;
|
|
1314
|
+
throw await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context);
|
|
1647
1315
|
case "ConnectorServerException":
|
|
1648
1316
|
case "com.amazonaws.appflow#ConnectorServerException":
|
|
1649
|
-
|
|
1650
|
-
...(await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context)),
|
|
1651
|
-
name: errorCode,
|
|
1652
|
-
$metadata: deserializeMetadata(output),
|
|
1653
|
-
};
|
|
1654
|
-
break;
|
|
1317
|
+
throw await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context);
|
|
1655
1318
|
case "InternalServerException":
|
|
1656
1319
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1657
|
-
|
|
1658
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1659
|
-
name: errorCode,
|
|
1660
|
-
$metadata: deserializeMetadata(output),
|
|
1661
|
-
};
|
|
1662
|
-
break;
|
|
1320
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1663
1321
|
case "ResourceNotFoundException":
|
|
1664
1322
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1665
|
-
|
|
1666
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1667
|
-
name: errorCode,
|
|
1668
|
-
$metadata: deserializeMetadata(output),
|
|
1669
|
-
};
|
|
1670
|
-
break;
|
|
1323
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1671
1324
|
case "ServiceQuotaExceededException":
|
|
1672
1325
|
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
1673
|
-
|
|
1674
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1675
|
-
name: errorCode,
|
|
1676
|
-
$metadata: deserializeMetadata(output),
|
|
1677
|
-
};
|
|
1678
|
-
break;
|
|
1326
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1679
1327
|
case "ThrottlingException":
|
|
1680
1328
|
case "com.amazonaws.appflow#ThrottlingException":
|
|
1681
|
-
|
|
1682
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1683
|
-
name: errorCode,
|
|
1684
|
-
$metadata: deserializeMetadata(output),
|
|
1685
|
-
};
|
|
1686
|
-
break;
|
|
1329
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1687
1330
|
case "ValidationException":
|
|
1688
1331
|
case "com.amazonaws.appflow#ValidationException":
|
|
1689
|
-
|
|
1690
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1691
|
-
name: errorCode,
|
|
1692
|
-
$metadata: deserializeMetadata(output),
|
|
1693
|
-
};
|
|
1694
|
-
break;
|
|
1332
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1695
1333
|
default:
|
|
1696
1334
|
const parsedBody = parsedOutput.body;
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
...parsedBody,
|
|
1700
|
-
name: `${errorCode}`,
|
|
1701
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1335
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1336
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1702
1337
|
$fault: "client",
|
|
1703
1338
|
$metadata: deserializeMetadata(output),
|
|
1704
|
-
};
|
|
1339
|
+
});
|
|
1340
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1705
1341
|
}
|
|
1706
|
-
const message = response.message || response.Message || errorCode;
|
|
1707
|
-
response.message = message;
|
|
1708
|
-
delete response.Message;
|
|
1709
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1710
1342
|
};
|
|
1711
1343
|
const deserializeAws_restJson1StartFlowCommand = async (output, context) => {
|
|
1712
1344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1742,51 +1374,25 @@ const deserializeAws_restJson1StartFlowCommandError = async (output, context) =>
|
|
|
1742
1374
|
switch (errorCode) {
|
|
1743
1375
|
case "ConflictException":
|
|
1744
1376
|
case "com.amazonaws.appflow#ConflictException":
|
|
1745
|
-
|
|
1746
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1747
|
-
name: errorCode,
|
|
1748
|
-
$metadata: deserializeMetadata(output),
|
|
1749
|
-
};
|
|
1750
|
-
break;
|
|
1377
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1751
1378
|
case "InternalServerException":
|
|
1752
1379
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1753
|
-
|
|
1754
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1755
|
-
name: errorCode,
|
|
1756
|
-
$metadata: deserializeMetadata(output),
|
|
1757
|
-
};
|
|
1758
|
-
break;
|
|
1380
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1759
1381
|
case "ResourceNotFoundException":
|
|
1760
1382
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1761
|
-
|
|
1762
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1763
|
-
name: errorCode,
|
|
1764
|
-
$metadata: deserializeMetadata(output),
|
|
1765
|
-
};
|
|
1766
|
-
break;
|
|
1383
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1767
1384
|
case "ServiceQuotaExceededException":
|
|
1768
1385
|
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
1769
|
-
|
|
1770
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1771
|
-
name: errorCode,
|
|
1772
|
-
$metadata: deserializeMetadata(output),
|
|
1773
|
-
};
|
|
1774
|
-
break;
|
|
1386
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1775
1387
|
default:
|
|
1776
1388
|
const parsedBody = parsedOutput.body;
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
...parsedBody,
|
|
1780
|
-
name: `${errorCode}`,
|
|
1781
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1389
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1390
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1782
1391
|
$fault: "client",
|
|
1783
1392
|
$metadata: deserializeMetadata(output),
|
|
1784
|
-
};
|
|
1393
|
+
});
|
|
1394
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1785
1395
|
}
|
|
1786
|
-
const message = response.message || response.Message || errorCode;
|
|
1787
|
-
response.message = message;
|
|
1788
|
-
delete response.Message;
|
|
1789
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1790
1396
|
};
|
|
1791
1397
|
const deserializeAws_restJson1StopFlowCommand = async (output, context) => {
|
|
1792
1398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1818,51 +1424,25 @@ const deserializeAws_restJson1StopFlowCommandError = async (output, context) =>
|
|
|
1818
1424
|
switch (errorCode) {
|
|
1819
1425
|
case "ConflictException":
|
|
1820
1426
|
case "com.amazonaws.appflow#ConflictException":
|
|
1821
|
-
|
|
1822
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1823
|
-
name: errorCode,
|
|
1824
|
-
$metadata: deserializeMetadata(output),
|
|
1825
|
-
};
|
|
1826
|
-
break;
|
|
1427
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1827
1428
|
case "InternalServerException":
|
|
1828
1429
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1829
|
-
|
|
1830
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1831
|
-
name: errorCode,
|
|
1832
|
-
$metadata: deserializeMetadata(output),
|
|
1833
|
-
};
|
|
1834
|
-
break;
|
|
1430
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1835
1431
|
case "ResourceNotFoundException":
|
|
1836
1432
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1837
|
-
|
|
1838
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1839
|
-
name: errorCode,
|
|
1840
|
-
$metadata: deserializeMetadata(output),
|
|
1841
|
-
};
|
|
1842
|
-
break;
|
|
1433
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1843
1434
|
case "UnsupportedOperationException":
|
|
1844
1435
|
case "com.amazonaws.appflow#UnsupportedOperationException":
|
|
1845
|
-
|
|
1846
|
-
...(await deserializeAws_restJson1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1847
|
-
name: errorCode,
|
|
1848
|
-
$metadata: deserializeMetadata(output),
|
|
1849
|
-
};
|
|
1850
|
-
break;
|
|
1436
|
+
throw await deserializeAws_restJson1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1851
1437
|
default:
|
|
1852
1438
|
const parsedBody = parsedOutput.body;
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
...parsedBody,
|
|
1856
|
-
name: `${errorCode}`,
|
|
1857
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1439
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1440
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1858
1441
|
$fault: "client",
|
|
1859
1442
|
$metadata: deserializeMetadata(output),
|
|
1860
|
-
};
|
|
1443
|
+
});
|
|
1444
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1861
1445
|
}
|
|
1862
|
-
const message = response.message || response.Message || errorCode;
|
|
1863
|
-
response.message = message;
|
|
1864
|
-
delete response.Message;
|
|
1865
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1866
1446
|
};
|
|
1867
1447
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1868
1448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1886,43 +1466,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1886
1466
|
switch (errorCode) {
|
|
1887
1467
|
case "InternalServerException":
|
|
1888
1468
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1889
|
-
|
|
1890
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1891
|
-
name: errorCode,
|
|
1892
|
-
$metadata: deserializeMetadata(output),
|
|
1893
|
-
};
|
|
1894
|
-
break;
|
|
1469
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1895
1470
|
case "ResourceNotFoundException":
|
|
1896
1471
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1897
|
-
|
|
1898
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1899
|
-
name: errorCode,
|
|
1900
|
-
$metadata: deserializeMetadata(output),
|
|
1901
|
-
};
|
|
1902
|
-
break;
|
|
1472
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1903
1473
|
case "ValidationException":
|
|
1904
1474
|
case "com.amazonaws.appflow#ValidationException":
|
|
1905
|
-
|
|
1906
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1907
|
-
name: errorCode,
|
|
1908
|
-
$metadata: deserializeMetadata(output),
|
|
1909
|
-
};
|
|
1910
|
-
break;
|
|
1475
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1911
1476
|
default:
|
|
1912
1477
|
const parsedBody = parsedOutput.body;
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
...parsedBody,
|
|
1916
|
-
name: `${errorCode}`,
|
|
1917
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1478
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1479
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1918
1480
|
$fault: "client",
|
|
1919
1481
|
$metadata: deserializeMetadata(output),
|
|
1920
|
-
};
|
|
1482
|
+
});
|
|
1483
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1921
1484
|
}
|
|
1922
|
-
const message = response.message || response.Message || errorCode;
|
|
1923
|
-
response.message = message;
|
|
1924
|
-
delete response.Message;
|
|
1925
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1926
1485
|
};
|
|
1927
1486
|
const deserializeAws_restJson1UnregisterConnectorCommand = async (output, context) => {
|
|
1928
1487
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1946,43 +1505,22 @@ const deserializeAws_restJson1UnregisterConnectorCommandError = async (output, c
|
|
|
1946
1505
|
switch (errorCode) {
|
|
1947
1506
|
case "ConflictException":
|
|
1948
1507
|
case "com.amazonaws.appflow#ConflictException":
|
|
1949
|
-
|
|
1950
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1951
|
-
name: errorCode,
|
|
1952
|
-
$metadata: deserializeMetadata(output),
|
|
1953
|
-
};
|
|
1954
|
-
break;
|
|
1508
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1955
1509
|
case "InternalServerException":
|
|
1956
1510
|
case "com.amazonaws.appflow#InternalServerException":
|
|
1957
|
-
|
|
1958
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1959
|
-
name: errorCode,
|
|
1960
|
-
$metadata: deserializeMetadata(output),
|
|
1961
|
-
};
|
|
1962
|
-
break;
|
|
1511
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1963
1512
|
case "ResourceNotFoundException":
|
|
1964
1513
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1965
|
-
|
|
1966
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1967
|
-
name: errorCode,
|
|
1968
|
-
$metadata: deserializeMetadata(output),
|
|
1969
|
-
};
|
|
1970
|
-
break;
|
|
1514
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1971
1515
|
default:
|
|
1972
1516
|
const parsedBody = parsedOutput.body;
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
...parsedBody,
|
|
1976
|
-
name: `${errorCode}`,
|
|
1977
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1517
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1518
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1978
1519
|
$fault: "client",
|
|
1979
1520
|
$metadata: deserializeMetadata(output),
|
|
1980
|
-
};
|
|
1521
|
+
});
|
|
1522
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1981
1523
|
}
|
|
1982
|
-
const message = response.message || response.Message || errorCode;
|
|
1983
|
-
response.message = message;
|
|
1984
|
-
delete response.Message;
|
|
1985
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1986
1524
|
};
|
|
1987
1525
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1988
1526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2006,43 +1544,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2006
1544
|
switch (errorCode) {
|
|
2007
1545
|
case "InternalServerException":
|
|
2008
1546
|
case "com.amazonaws.appflow#InternalServerException":
|
|
2009
|
-
|
|
2010
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2011
|
-
name: errorCode,
|
|
2012
|
-
$metadata: deserializeMetadata(output),
|
|
2013
|
-
};
|
|
2014
|
-
break;
|
|
1547
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2015
1548
|
case "ResourceNotFoundException":
|
|
2016
1549
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
2017
|
-
|
|
2018
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2019
|
-
name: errorCode,
|
|
2020
|
-
$metadata: deserializeMetadata(output),
|
|
2021
|
-
};
|
|
2022
|
-
break;
|
|
1550
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2023
1551
|
case "ValidationException":
|
|
2024
1552
|
case "com.amazonaws.appflow#ValidationException":
|
|
2025
|
-
|
|
2026
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2027
|
-
name: errorCode,
|
|
2028
|
-
$metadata: deserializeMetadata(output),
|
|
2029
|
-
};
|
|
2030
|
-
break;
|
|
1553
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2031
1554
|
default:
|
|
2032
1555
|
const parsedBody = parsedOutput.body;
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
...parsedBody,
|
|
2036
|
-
name: `${errorCode}`,
|
|
2037
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1556
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1557
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2038
1558
|
$fault: "client",
|
|
2039
1559
|
$metadata: deserializeMetadata(output),
|
|
2040
|
-
};
|
|
1560
|
+
});
|
|
1561
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2041
1562
|
}
|
|
2042
|
-
const message = response.message || response.Message || errorCode;
|
|
2043
|
-
response.message = message;
|
|
2044
|
-
delete response.Message;
|
|
2045
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2046
1563
|
};
|
|
2047
1564
|
const deserializeAws_restJson1UpdateConnectorProfileCommand = async (output, context) => {
|
|
2048
1565
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2070,59 +1587,28 @@ const deserializeAws_restJson1UpdateConnectorProfileCommandError = async (output
|
|
|
2070
1587
|
switch (errorCode) {
|
|
2071
1588
|
case "ConflictException":
|
|
2072
1589
|
case "com.amazonaws.appflow#ConflictException":
|
|
2073
|
-
|
|
2074
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2075
|
-
name: errorCode,
|
|
2076
|
-
$metadata: deserializeMetadata(output),
|
|
2077
|
-
};
|
|
2078
|
-
break;
|
|
1590
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2079
1591
|
case "ConnectorAuthenticationException":
|
|
2080
1592
|
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
2081
|
-
|
|
2082
|
-
...(await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)),
|
|
2083
|
-
name: errorCode,
|
|
2084
|
-
$metadata: deserializeMetadata(output),
|
|
2085
|
-
};
|
|
2086
|
-
break;
|
|
1593
|
+
throw await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context);
|
|
2087
1594
|
case "InternalServerException":
|
|
2088
1595
|
case "com.amazonaws.appflow#InternalServerException":
|
|
2089
|
-
|
|
2090
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2091
|
-
name: errorCode,
|
|
2092
|
-
$metadata: deserializeMetadata(output),
|
|
2093
|
-
};
|
|
2094
|
-
break;
|
|
1596
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2095
1597
|
case "ResourceNotFoundException":
|
|
2096
1598
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
2097
|
-
|
|
2098
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2099
|
-
name: errorCode,
|
|
2100
|
-
$metadata: deserializeMetadata(output),
|
|
2101
|
-
};
|
|
2102
|
-
break;
|
|
1599
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2103
1600
|
case "ValidationException":
|
|
2104
1601
|
case "com.amazonaws.appflow#ValidationException":
|
|
2105
|
-
|
|
2106
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2107
|
-
name: errorCode,
|
|
2108
|
-
$metadata: deserializeMetadata(output),
|
|
2109
|
-
};
|
|
2110
|
-
break;
|
|
1602
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2111
1603
|
default:
|
|
2112
1604
|
const parsedBody = parsedOutput.body;
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
...parsedBody,
|
|
2116
|
-
name: `${errorCode}`,
|
|
2117
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1605
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1606
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2118
1607
|
$fault: "client",
|
|
2119
1608
|
$metadata: deserializeMetadata(output),
|
|
2120
|
-
};
|
|
1609
|
+
});
|
|
1610
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2121
1611
|
}
|
|
2122
|
-
const message = response.message || response.Message || errorCode;
|
|
2123
|
-
response.message = message;
|
|
2124
|
-
delete response.Message;
|
|
2125
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2126
1612
|
};
|
|
2127
1613
|
const deserializeAws_restJson1UpdateFlowCommand = async (output, context) => {
|
|
2128
1614
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2150,205 +1636,154 @@ const deserializeAws_restJson1UpdateFlowCommandError = async (output, context) =
|
|
|
2150
1636
|
switch (errorCode) {
|
|
2151
1637
|
case "ConflictException":
|
|
2152
1638
|
case "com.amazonaws.appflow#ConflictException":
|
|
2153
|
-
|
|
2154
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2155
|
-
name: errorCode,
|
|
2156
|
-
$metadata: deserializeMetadata(output),
|
|
2157
|
-
};
|
|
2158
|
-
break;
|
|
1639
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2159
1640
|
case "ConnectorAuthenticationException":
|
|
2160
1641
|
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
2161
|
-
|
|
2162
|
-
...(await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)),
|
|
2163
|
-
name: errorCode,
|
|
2164
|
-
$metadata: deserializeMetadata(output),
|
|
2165
|
-
};
|
|
2166
|
-
break;
|
|
1642
|
+
throw await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context);
|
|
2167
1643
|
case "ConnectorServerException":
|
|
2168
1644
|
case "com.amazonaws.appflow#ConnectorServerException":
|
|
2169
|
-
|
|
2170
|
-
...(await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context)),
|
|
2171
|
-
name: errorCode,
|
|
2172
|
-
$metadata: deserializeMetadata(output),
|
|
2173
|
-
};
|
|
2174
|
-
break;
|
|
1645
|
+
throw await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context);
|
|
2175
1646
|
case "InternalServerException":
|
|
2176
1647
|
case "com.amazonaws.appflow#InternalServerException":
|
|
2177
|
-
|
|
2178
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2179
|
-
name: errorCode,
|
|
2180
|
-
$metadata: deserializeMetadata(output),
|
|
2181
|
-
};
|
|
2182
|
-
break;
|
|
1648
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2183
1649
|
case "ResourceNotFoundException":
|
|
2184
1650
|
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
2185
|
-
|
|
2186
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2187
|
-
name: errorCode,
|
|
2188
|
-
$metadata: deserializeMetadata(output),
|
|
2189
|
-
};
|
|
2190
|
-
break;
|
|
1651
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2191
1652
|
case "ServiceQuotaExceededException":
|
|
2192
1653
|
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
2193
|
-
|
|
2194
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2195
|
-
name: errorCode,
|
|
2196
|
-
$metadata: deserializeMetadata(output),
|
|
2197
|
-
};
|
|
2198
|
-
break;
|
|
1654
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2199
1655
|
case "ValidationException":
|
|
2200
1656
|
case "com.amazonaws.appflow#ValidationException":
|
|
2201
|
-
|
|
2202
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2203
|
-
name: errorCode,
|
|
2204
|
-
$metadata: deserializeMetadata(output),
|
|
2205
|
-
};
|
|
2206
|
-
break;
|
|
1657
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2207
1658
|
default:
|
|
2208
1659
|
const parsedBody = parsedOutput.body;
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
...parsedBody,
|
|
2212
|
-
name: `${errorCode}`,
|
|
2213
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1660
|
+
response = new AppflowServiceException_1.AppflowServiceException({
|
|
1661
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2214
1662
|
$fault: "client",
|
|
2215
1663
|
$metadata: deserializeMetadata(output),
|
|
2216
|
-
};
|
|
1664
|
+
});
|
|
1665
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2217
1666
|
}
|
|
2218
|
-
const message = response.message || response.Message || errorCode;
|
|
2219
|
-
response.message = message;
|
|
2220
|
-
delete response.Message;
|
|
2221
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2222
1667
|
};
|
|
2223
1668
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2224
|
-
const contents = {
|
|
2225
|
-
name: "AccessDeniedException",
|
|
2226
|
-
$fault: "client",
|
|
2227
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2228
|
-
message: undefined,
|
|
2229
|
-
};
|
|
1669
|
+
const contents = {};
|
|
2230
1670
|
const data = parsedOutput.body;
|
|
2231
1671
|
if (data.message !== undefined && data.message !== null) {
|
|
2232
1672
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2233
1673
|
}
|
|
2234
|
-
|
|
1674
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1675
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1676
|
+
...contents,
|
|
1677
|
+
});
|
|
1678
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2235
1679
|
};
|
|
2236
1680
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2237
|
-
const contents = {
|
|
2238
|
-
name: "ConflictException",
|
|
2239
|
-
$fault: "client",
|
|
2240
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2241
|
-
message: undefined,
|
|
2242
|
-
};
|
|
1681
|
+
const contents = {};
|
|
2243
1682
|
const data = parsedOutput.body;
|
|
2244
1683
|
if (data.message !== undefined && data.message !== null) {
|
|
2245
1684
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2246
1685
|
}
|
|
2247
|
-
|
|
1686
|
+
const exception = new models_0_1.ConflictException({
|
|
1687
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1688
|
+
...contents,
|
|
1689
|
+
});
|
|
1690
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2248
1691
|
};
|
|
2249
1692
|
const deserializeAws_restJson1ConnectorAuthenticationExceptionResponse = async (parsedOutput, context) => {
|
|
2250
|
-
const contents = {
|
|
2251
|
-
name: "ConnectorAuthenticationException",
|
|
2252
|
-
$fault: "client",
|
|
2253
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2254
|
-
message: undefined,
|
|
2255
|
-
};
|
|
1693
|
+
const contents = {};
|
|
2256
1694
|
const data = parsedOutput.body;
|
|
2257
1695
|
if (data.message !== undefined && data.message !== null) {
|
|
2258
1696
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2259
1697
|
}
|
|
2260
|
-
|
|
1698
|
+
const exception = new models_0_1.ConnectorAuthenticationException({
|
|
1699
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1700
|
+
...contents,
|
|
1701
|
+
});
|
|
1702
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2261
1703
|
};
|
|
2262
1704
|
const deserializeAws_restJson1ConnectorServerExceptionResponse = async (parsedOutput, context) => {
|
|
2263
|
-
const contents = {
|
|
2264
|
-
name: "ConnectorServerException",
|
|
2265
|
-
$fault: "client",
|
|
2266
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2267
|
-
message: undefined,
|
|
2268
|
-
};
|
|
1705
|
+
const contents = {};
|
|
2269
1706
|
const data = parsedOutput.body;
|
|
2270
1707
|
if (data.message !== undefined && data.message !== null) {
|
|
2271
1708
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2272
1709
|
}
|
|
2273
|
-
|
|
1710
|
+
const exception = new models_0_1.ConnectorServerException({
|
|
1711
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1712
|
+
...contents,
|
|
1713
|
+
});
|
|
1714
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2274
1715
|
};
|
|
2275
1716
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2276
|
-
const contents = {
|
|
2277
|
-
name: "InternalServerException",
|
|
2278
|
-
$fault: "server",
|
|
2279
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2280
|
-
message: undefined,
|
|
2281
|
-
};
|
|
1717
|
+
const contents = {};
|
|
2282
1718
|
const data = parsedOutput.body;
|
|
2283
1719
|
if (data.message !== undefined && data.message !== null) {
|
|
2284
1720
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2285
1721
|
}
|
|
2286
|
-
|
|
1722
|
+
const exception = new models_0_1.InternalServerException({
|
|
1723
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1724
|
+
...contents,
|
|
1725
|
+
});
|
|
1726
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2287
1727
|
};
|
|
2288
1728
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2289
|
-
const contents = {
|
|
2290
|
-
name: "ResourceNotFoundException",
|
|
2291
|
-
$fault: "client",
|
|
2292
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2293
|
-
message: undefined,
|
|
2294
|
-
};
|
|
1729
|
+
const contents = {};
|
|
2295
1730
|
const data = parsedOutput.body;
|
|
2296
1731
|
if (data.message !== undefined && data.message !== null) {
|
|
2297
1732
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2298
1733
|
}
|
|
2299
|
-
|
|
1734
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1735
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1736
|
+
...contents,
|
|
1737
|
+
});
|
|
1738
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2300
1739
|
};
|
|
2301
1740
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2302
|
-
const contents = {
|
|
2303
|
-
name: "ServiceQuotaExceededException",
|
|
2304
|
-
$fault: "client",
|
|
2305
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2306
|
-
message: undefined,
|
|
2307
|
-
};
|
|
1741
|
+
const contents = {};
|
|
2308
1742
|
const data = parsedOutput.body;
|
|
2309
1743
|
if (data.message !== undefined && data.message !== null) {
|
|
2310
1744
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2311
1745
|
}
|
|
2312
|
-
|
|
1746
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1747
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1748
|
+
...contents,
|
|
1749
|
+
});
|
|
1750
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2313
1751
|
};
|
|
2314
1752
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2315
|
-
const contents = {
|
|
2316
|
-
name: "ThrottlingException",
|
|
2317
|
-
$fault: "client",
|
|
2318
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2319
|
-
message: undefined,
|
|
2320
|
-
};
|
|
1753
|
+
const contents = {};
|
|
2321
1754
|
const data = parsedOutput.body;
|
|
2322
1755
|
if (data.message !== undefined && data.message !== null) {
|
|
2323
1756
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2324
1757
|
}
|
|
2325
|
-
|
|
1758
|
+
const exception = new models_0_1.ThrottlingException({
|
|
1759
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1760
|
+
...contents,
|
|
1761
|
+
});
|
|
1762
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2326
1763
|
};
|
|
2327
1764
|
const deserializeAws_restJson1UnsupportedOperationExceptionResponse = async (parsedOutput, context) => {
|
|
2328
|
-
const contents = {
|
|
2329
|
-
name: "UnsupportedOperationException",
|
|
2330
|
-
$fault: "client",
|
|
2331
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2332
|
-
message: undefined,
|
|
2333
|
-
};
|
|
1765
|
+
const contents = {};
|
|
2334
1766
|
const data = parsedOutput.body;
|
|
2335
1767
|
if (data.message !== undefined && data.message !== null) {
|
|
2336
1768
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2337
1769
|
}
|
|
2338
|
-
|
|
1770
|
+
const exception = new models_0_1.UnsupportedOperationException({
|
|
1771
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1772
|
+
...contents,
|
|
1773
|
+
});
|
|
1774
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2339
1775
|
};
|
|
2340
1776
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2341
|
-
const contents = {
|
|
2342
|
-
name: "ValidationException",
|
|
2343
|
-
$fault: "client",
|
|
2344
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2345
|
-
message: undefined,
|
|
2346
|
-
};
|
|
1777
|
+
const contents = {};
|
|
2347
1778
|
const data = parsedOutput.body;
|
|
2348
1779
|
if (data.message !== undefined && data.message !== null) {
|
|
2349
1780
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2350
1781
|
}
|
|
2351
|
-
|
|
1782
|
+
const exception = new models_0_1.ValidationException({
|
|
1783
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1784
|
+
...contents,
|
|
1785
|
+
});
|
|
1786
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2352
1787
|
};
|
|
2353
1788
|
const serializeAws_restJson1AggregationConfig = (input, context) => {
|
|
2354
1789
|
return {
|
|
@@ -2732,6 +2167,10 @@ const serializeAws_restJson1DestinationConnectorProperties = (input, context) =>
|
|
|
2732
2167
|
}),
|
|
2733
2168
|
...(input.S3 !== undefined &&
|
|
2734
2169
|
input.S3 !== null && { S3: serializeAws_restJson1S3DestinationProperties(input.S3, context) }),
|
|
2170
|
+
...(input.SAPOData !== undefined &&
|
|
2171
|
+
input.SAPOData !== null && {
|
|
2172
|
+
SAPOData: serializeAws_restJson1SAPODataDestinationProperties(input.SAPOData, context),
|
|
2173
|
+
}),
|
|
2735
2174
|
...(input.Salesforce !== undefined &&
|
|
2736
2175
|
input.Salesforce !== null && {
|
|
2737
2176
|
Salesforce: serializeAws_restJson1SalesforceDestinationProperties(input.Salesforce, context),
|
|
@@ -3111,6 +2550,25 @@ const serializeAws_restJson1SAPODataConnectorProfileProperties = (input, context
|
|
|
3111
2550
|
input.privateLinkServiceName !== null && { privateLinkServiceName: input.privateLinkServiceName }),
|
|
3112
2551
|
};
|
|
3113
2552
|
};
|
|
2553
|
+
const serializeAws_restJson1SAPODataDestinationProperties = (input, context) => {
|
|
2554
|
+
return {
|
|
2555
|
+
...(input.errorHandlingConfig !== undefined &&
|
|
2556
|
+
input.errorHandlingConfig !== null && {
|
|
2557
|
+
errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
|
|
2558
|
+
}),
|
|
2559
|
+
...(input.idFieldNames !== undefined &&
|
|
2560
|
+
input.idFieldNames !== null && {
|
|
2561
|
+
idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
|
|
2562
|
+
}),
|
|
2563
|
+
...(input.objectPath !== undefined && input.objectPath !== null && { objectPath: input.objectPath }),
|
|
2564
|
+
...(input.successResponseHandlingConfig !== undefined &&
|
|
2565
|
+
input.successResponseHandlingConfig !== null && {
|
|
2566
|
+
successResponseHandlingConfig: serializeAws_restJson1SuccessResponseHandlingConfig(input.successResponseHandlingConfig, context),
|
|
2567
|
+
}),
|
|
2568
|
+
...(input.writeOperationType !== undefined &&
|
|
2569
|
+
input.writeOperationType !== null && { writeOperationType: input.writeOperationType }),
|
|
2570
|
+
};
|
|
2571
|
+
};
|
|
3114
2572
|
const serializeAws_restJson1SAPODataSourceProperties = (input, context) => {
|
|
3115
2573
|
return {
|
|
3116
2574
|
...(input.objectPath !== undefined && input.objectPath !== null && { objectPath: input.objectPath }),
|
|
@@ -3292,6 +2750,12 @@ const serializeAws_restJson1SourceFlowConfig = (input, context) => {
|
|
|
3292
2750
|
}),
|
|
3293
2751
|
};
|
|
3294
2752
|
};
|
|
2753
|
+
const serializeAws_restJson1SuccessResponseHandlingConfig = (input, context) => {
|
|
2754
|
+
return {
|
|
2755
|
+
...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
|
|
2756
|
+
...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
|
|
2757
|
+
};
|
|
2758
|
+
};
|
|
3295
2759
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
3296
2760
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3297
2761
|
if (value === null) {
|
|
@@ -3468,7 +2932,7 @@ const deserializeAws_restJson1AmplitudeSourceProperties = (output, context) => {
|
|
|
3468
2932
|
};
|
|
3469
2933
|
};
|
|
3470
2934
|
const deserializeAws_restJson1AuthCodeUrlList = (output, context) => {
|
|
3471
|
-
|
|
2935
|
+
const retVal = (output || [])
|
|
3472
2936
|
.filter((e) => e != null)
|
|
3473
2937
|
.map((entry) => {
|
|
3474
2938
|
if (entry === null) {
|
|
@@ -3476,6 +2940,7 @@ const deserializeAws_restJson1AuthCodeUrlList = (output, context) => {
|
|
|
3476
2940
|
}
|
|
3477
2941
|
return smithy_client_1.expectString(entry);
|
|
3478
2942
|
});
|
|
2943
|
+
return retVal;
|
|
3479
2944
|
};
|
|
3480
2945
|
const deserializeAws_restJson1AuthenticationConfig = (output, context) => {
|
|
3481
2946
|
return {
|
|
@@ -3504,7 +2969,7 @@ const deserializeAws_restJson1AuthParameter = (output, context) => {
|
|
|
3504
2969
|
};
|
|
3505
2970
|
};
|
|
3506
2971
|
const deserializeAws_restJson1AuthParameterList = (output, context) => {
|
|
3507
|
-
|
|
2972
|
+
const retVal = (output || [])
|
|
3508
2973
|
.filter((e) => e != null)
|
|
3509
2974
|
.map((entry) => {
|
|
3510
2975
|
if (entry === null) {
|
|
@@ -3512,6 +2977,7 @@ const deserializeAws_restJson1AuthParameterList = (output, context) => {
|
|
|
3512
2977
|
}
|
|
3513
2978
|
return deserializeAws_restJson1AuthParameter(entry, context);
|
|
3514
2979
|
});
|
|
2980
|
+
return retVal;
|
|
3515
2981
|
};
|
|
3516
2982
|
const deserializeAws_restJson1ConnectorConfiguration = (output, context) => {
|
|
3517
2983
|
return {
|
|
@@ -3628,7 +3094,7 @@ const deserializeAws_restJson1ConnectorEntityField = (output, context) => {
|
|
|
3628
3094
|
};
|
|
3629
3095
|
};
|
|
3630
3096
|
const deserializeAws_restJson1ConnectorEntityFieldList = (output, context) => {
|
|
3631
|
-
|
|
3097
|
+
const retVal = (output || [])
|
|
3632
3098
|
.filter((e) => e != null)
|
|
3633
3099
|
.map((entry) => {
|
|
3634
3100
|
if (entry === null) {
|
|
@@ -3636,9 +3102,10 @@ const deserializeAws_restJson1ConnectorEntityFieldList = (output, context) => {
|
|
|
3636
3102
|
}
|
|
3637
3103
|
return deserializeAws_restJson1ConnectorEntityField(entry, context);
|
|
3638
3104
|
});
|
|
3105
|
+
return retVal;
|
|
3639
3106
|
};
|
|
3640
3107
|
const deserializeAws_restJson1ConnectorEntityList = (output, context) => {
|
|
3641
|
-
|
|
3108
|
+
const retVal = (output || [])
|
|
3642
3109
|
.filter((e) => e != null)
|
|
3643
3110
|
.map((entry) => {
|
|
3644
3111
|
if (entry === null) {
|
|
@@ -3646,6 +3113,7 @@ const deserializeAws_restJson1ConnectorEntityList = (output, context) => {
|
|
|
3646
3113
|
}
|
|
3647
3114
|
return deserializeAws_restJson1ConnectorEntity(entry, context);
|
|
3648
3115
|
});
|
|
3116
|
+
return retVal;
|
|
3649
3117
|
};
|
|
3650
3118
|
const deserializeAws_restJson1ConnectorEntityMap = (output, context) => {
|
|
3651
3119
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3659,7 +3127,7 @@ const deserializeAws_restJson1ConnectorEntityMap = (output, context) => {
|
|
|
3659
3127
|
}, {});
|
|
3660
3128
|
};
|
|
3661
3129
|
const deserializeAws_restJson1ConnectorList = (output, context) => {
|
|
3662
|
-
|
|
3130
|
+
const retVal = (output || [])
|
|
3663
3131
|
.filter((e) => e != null)
|
|
3664
3132
|
.map((entry) => {
|
|
3665
3133
|
if (entry === null) {
|
|
@@ -3667,6 +3135,7 @@ const deserializeAws_restJson1ConnectorList = (output, context) => {
|
|
|
3667
3135
|
}
|
|
3668
3136
|
return deserializeAws_restJson1ConnectorDetail(entry, context);
|
|
3669
3137
|
});
|
|
3138
|
+
return retVal;
|
|
3670
3139
|
};
|
|
3671
3140
|
const deserializeAws_restJson1ConnectorMetadata = (output, context) => {
|
|
3672
3141
|
return {
|
|
@@ -3736,7 +3205,7 @@ const deserializeAws_restJson1ConnectorMetadata = (output, context) => {
|
|
|
3736
3205
|
};
|
|
3737
3206
|
};
|
|
3738
3207
|
const deserializeAws_restJson1ConnectorModeList = (output, context) => {
|
|
3739
|
-
|
|
3208
|
+
const retVal = (output || [])
|
|
3740
3209
|
.filter((e) => e != null)
|
|
3741
3210
|
.map((entry) => {
|
|
3742
3211
|
if (entry === null) {
|
|
@@ -3744,6 +3213,7 @@ const deserializeAws_restJson1ConnectorModeList = (output, context) => {
|
|
|
3744
3213
|
}
|
|
3745
3214
|
return smithy_client_1.expectString(entry);
|
|
3746
3215
|
});
|
|
3216
|
+
return retVal;
|
|
3747
3217
|
};
|
|
3748
3218
|
const deserializeAws_restJson1ConnectorOperator = (output, context) => {
|
|
3749
3219
|
return {
|
|
@@ -3788,7 +3258,7 @@ const deserializeAws_restJson1ConnectorProfile = (output, context) => {
|
|
|
3788
3258
|
};
|
|
3789
3259
|
};
|
|
3790
3260
|
const deserializeAws_restJson1ConnectorProfileDetailList = (output, context) => {
|
|
3791
|
-
|
|
3261
|
+
const retVal = (output || [])
|
|
3792
3262
|
.filter((e) => e != null)
|
|
3793
3263
|
.map((entry) => {
|
|
3794
3264
|
if (entry === null) {
|
|
@@ -3796,6 +3266,7 @@ const deserializeAws_restJson1ConnectorProfileDetailList = (output, context) =>
|
|
|
3796
3266
|
}
|
|
3797
3267
|
return deserializeAws_restJson1ConnectorProfile(entry, context);
|
|
3798
3268
|
});
|
|
3269
|
+
return retVal;
|
|
3799
3270
|
};
|
|
3800
3271
|
const deserializeAws_restJson1ConnectorProfileProperties = (output, context) => {
|
|
3801
3272
|
return {
|
|
@@ -3876,7 +3347,7 @@ const deserializeAws_restJson1ConnectorRuntimeSetting = (output, context) => {
|
|
|
3876
3347
|
};
|
|
3877
3348
|
};
|
|
3878
3349
|
const deserializeAws_restJson1ConnectorRuntimeSettingList = (output, context) => {
|
|
3879
|
-
|
|
3350
|
+
const retVal = (output || [])
|
|
3880
3351
|
.filter((e) => e != null)
|
|
3881
3352
|
.map((entry) => {
|
|
3882
3353
|
if (entry === null) {
|
|
@@ -3884,9 +3355,10 @@ const deserializeAws_restJson1ConnectorRuntimeSettingList = (output, context) =>
|
|
|
3884
3355
|
}
|
|
3885
3356
|
return deserializeAws_restJson1ConnectorRuntimeSetting(entry, context);
|
|
3886
3357
|
});
|
|
3358
|
+
return retVal;
|
|
3887
3359
|
};
|
|
3888
3360
|
const deserializeAws_restJson1ConnectorSuppliedValueList = (output, context) => {
|
|
3889
|
-
|
|
3361
|
+
const retVal = (output || [])
|
|
3890
3362
|
.filter((e) => e != null)
|
|
3891
3363
|
.map((entry) => {
|
|
3892
3364
|
if (entry === null) {
|
|
@@ -3894,9 +3366,10 @@ const deserializeAws_restJson1ConnectorSuppliedValueList = (output, context) =>
|
|
|
3894
3366
|
}
|
|
3895
3367
|
return smithy_client_1.expectString(entry);
|
|
3896
3368
|
});
|
|
3369
|
+
return retVal;
|
|
3897
3370
|
};
|
|
3898
3371
|
const deserializeAws_restJson1ConnectorSuppliedValueOptionList = (output, context) => {
|
|
3899
|
-
|
|
3372
|
+
const retVal = (output || [])
|
|
3900
3373
|
.filter((e) => e != null)
|
|
3901
3374
|
.map((entry) => {
|
|
3902
3375
|
if (entry === null) {
|
|
@@ -3904,9 +3377,10 @@ const deserializeAws_restJson1ConnectorSuppliedValueOptionList = (output, contex
|
|
|
3904
3377
|
}
|
|
3905
3378
|
return smithy_client_1.expectString(entry);
|
|
3906
3379
|
});
|
|
3380
|
+
return retVal;
|
|
3907
3381
|
};
|
|
3908
3382
|
const deserializeAws_restJson1ConnectorTypeList = (output, context) => {
|
|
3909
|
-
|
|
3383
|
+
const retVal = (output || [])
|
|
3910
3384
|
.filter((e) => e != null)
|
|
3911
3385
|
.map((entry) => {
|
|
3912
3386
|
if (entry === null) {
|
|
@@ -3914,6 +3388,7 @@ const deserializeAws_restJson1ConnectorTypeList = (output, context) => {
|
|
|
3914
3388
|
}
|
|
3915
3389
|
return smithy_client_1.expectString(entry);
|
|
3916
3390
|
});
|
|
3391
|
+
return retVal;
|
|
3917
3392
|
};
|
|
3918
3393
|
const deserializeAws_restJson1CustomAuthConfig = (output, context) => {
|
|
3919
3394
|
return {
|
|
@@ -3924,7 +3399,7 @@ const deserializeAws_restJson1CustomAuthConfig = (output, context) => {
|
|
|
3924
3399
|
};
|
|
3925
3400
|
};
|
|
3926
3401
|
const deserializeAws_restJson1CustomAuthConfigList = (output, context) => {
|
|
3927
|
-
|
|
3402
|
+
const retVal = (output || [])
|
|
3928
3403
|
.filter((e) => e != null)
|
|
3929
3404
|
.map((entry) => {
|
|
3930
3405
|
if (entry === null) {
|
|
@@ -3932,6 +3407,7 @@ const deserializeAws_restJson1CustomAuthConfigList = (output, context) => {
|
|
|
3932
3407
|
}
|
|
3933
3408
|
return deserializeAws_restJson1CustomAuthConfig(entry, context);
|
|
3934
3409
|
});
|
|
3410
|
+
return retVal;
|
|
3935
3411
|
};
|
|
3936
3412
|
const deserializeAws_restJson1CustomConnectorDestinationProperties = (output, context) => {
|
|
3937
3413
|
return {
|
|
@@ -4022,6 +3498,9 @@ const deserializeAws_restJson1DestinationConnectorProperties = (output, context)
|
|
|
4022
3498
|
S3: output.S3 !== undefined && output.S3 !== null
|
|
4023
3499
|
? deserializeAws_restJson1S3DestinationProperties(output.S3, context)
|
|
4024
3500
|
: undefined,
|
|
3501
|
+
SAPOData: output.SAPOData !== undefined && output.SAPOData !== null
|
|
3502
|
+
? deserializeAws_restJson1SAPODataDestinationProperties(output.SAPOData, context)
|
|
3503
|
+
: undefined,
|
|
4025
3504
|
Salesforce: output.Salesforce !== undefined && output.Salesforce !== null
|
|
4026
3505
|
? deserializeAws_restJson1SalesforceDestinationProperties(output.Salesforce, context)
|
|
4027
3506
|
: undefined,
|
|
@@ -4059,7 +3538,7 @@ const deserializeAws_restJson1DestinationFlowConfig = (output, context) => {
|
|
|
4059
3538
|
};
|
|
4060
3539
|
};
|
|
4061
3540
|
const deserializeAws_restJson1DestinationFlowConfigList = (output, context) => {
|
|
4062
|
-
|
|
3541
|
+
const retVal = (output || [])
|
|
4063
3542
|
.filter((e) => e != null)
|
|
4064
3543
|
.map((entry) => {
|
|
4065
3544
|
if (entry === null) {
|
|
@@ -4067,6 +3546,7 @@ const deserializeAws_restJson1DestinationFlowConfigList = (output, context) => {
|
|
|
4067
3546
|
}
|
|
4068
3547
|
return deserializeAws_restJson1DestinationFlowConfig(entry, context);
|
|
4069
3548
|
});
|
|
3549
|
+
return retVal;
|
|
4070
3550
|
};
|
|
4071
3551
|
const deserializeAws_restJson1DynatraceConnectorProfileProperties = (output, context) => {
|
|
4072
3552
|
return {
|
|
@@ -4165,7 +3645,7 @@ const deserializeAws_restJson1FieldTypeDetails = (output, context) => {
|
|
|
4165
3645
|
};
|
|
4166
3646
|
};
|
|
4167
3647
|
const deserializeAws_restJson1FilterOperatorList = (output, context) => {
|
|
4168
|
-
|
|
3648
|
+
const retVal = (output || [])
|
|
4169
3649
|
.filter((e) => e != null)
|
|
4170
3650
|
.map((entry) => {
|
|
4171
3651
|
if (entry === null) {
|
|
@@ -4173,6 +3653,7 @@ const deserializeAws_restJson1FilterOperatorList = (output, context) => {
|
|
|
4173
3653
|
}
|
|
4174
3654
|
return smithy_client_1.expectString(entry);
|
|
4175
3655
|
});
|
|
3656
|
+
return retVal;
|
|
4176
3657
|
};
|
|
4177
3658
|
const deserializeAws_restJson1FlowDefinition = (output, context) => {
|
|
4178
3659
|
return {
|
|
@@ -4202,7 +3683,7 @@ const deserializeAws_restJson1FlowDefinition = (output, context) => {
|
|
|
4202
3683
|
};
|
|
4203
3684
|
};
|
|
4204
3685
|
const deserializeAws_restJson1FlowExecutionList = (output, context) => {
|
|
4205
|
-
|
|
3686
|
+
const retVal = (output || [])
|
|
4206
3687
|
.filter((e) => e != null)
|
|
4207
3688
|
.map((entry) => {
|
|
4208
3689
|
if (entry === null) {
|
|
@@ -4210,9 +3691,10 @@ const deserializeAws_restJson1FlowExecutionList = (output, context) => {
|
|
|
4210
3691
|
}
|
|
4211
3692
|
return deserializeAws_restJson1ExecutionRecord(entry, context);
|
|
4212
3693
|
});
|
|
3694
|
+
return retVal;
|
|
4213
3695
|
};
|
|
4214
3696
|
const deserializeAws_restJson1FlowList = (output, context) => {
|
|
4215
|
-
|
|
3697
|
+
const retVal = (output || [])
|
|
4216
3698
|
.filter((e) => e != null)
|
|
4217
3699
|
.map((entry) => {
|
|
4218
3700
|
if (entry === null) {
|
|
@@ -4220,6 +3702,7 @@ const deserializeAws_restJson1FlowList = (output, context) => {
|
|
|
4220
3702
|
}
|
|
4221
3703
|
return deserializeAws_restJson1FlowDefinition(entry, context);
|
|
4222
3704
|
});
|
|
3705
|
+
return retVal;
|
|
4223
3706
|
};
|
|
4224
3707
|
const deserializeAws_restJson1GoogleAnalyticsConnectorProfileProperties = (output, context) => {
|
|
4225
3708
|
return {};
|
|
@@ -4255,7 +3738,7 @@ const deserializeAws_restJson1HoneycodeMetadata = (output, context) => {
|
|
|
4255
3738
|
};
|
|
4256
3739
|
};
|
|
4257
3740
|
const deserializeAws_restJson1IdFieldNameList = (output, context) => {
|
|
4258
|
-
|
|
3741
|
+
const retVal = (output || [])
|
|
4259
3742
|
.filter((e) => e != null)
|
|
4260
3743
|
.map((entry) => {
|
|
4261
3744
|
if (entry === null) {
|
|
@@ -4263,6 +3746,7 @@ const deserializeAws_restJson1IdFieldNameList = (output, context) => {
|
|
|
4263
3746
|
}
|
|
4264
3747
|
return smithy_client_1.expectString(entry);
|
|
4265
3748
|
});
|
|
3749
|
+
return retVal;
|
|
4266
3750
|
};
|
|
4267
3751
|
const deserializeAws_restJson1IncrementalPullConfig = (output, context) => {
|
|
4268
3752
|
return {
|
|
@@ -4320,7 +3804,7 @@ const deserializeAws_restJson1OAuth2Defaults = (output, context) => {
|
|
|
4320
3804
|
};
|
|
4321
3805
|
};
|
|
4322
3806
|
const deserializeAws_restJson1OAuth2GrantTypeSupportedList = (output, context) => {
|
|
4323
|
-
|
|
3807
|
+
const retVal = (output || [])
|
|
4324
3808
|
.filter((e) => e != null)
|
|
4325
3809
|
.map((entry) => {
|
|
4326
3810
|
if (entry === null) {
|
|
@@ -4328,6 +3812,7 @@ const deserializeAws_restJson1OAuth2GrantTypeSupportedList = (output, context) =
|
|
|
4328
3812
|
}
|
|
4329
3813
|
return smithy_client_1.expectString(entry);
|
|
4330
3814
|
});
|
|
3815
|
+
return retVal;
|
|
4331
3816
|
};
|
|
4332
3817
|
const deserializeAws_restJson1OAuth2Properties = (output, context) => {
|
|
4333
3818
|
return {
|
|
@@ -4345,7 +3830,7 @@ const deserializeAws_restJson1OAuthProperties = (output, context) => {
|
|
|
4345
3830
|
};
|
|
4346
3831
|
};
|
|
4347
3832
|
const deserializeAws_restJson1OAuthScopeList = (output, context) => {
|
|
4348
|
-
|
|
3833
|
+
const retVal = (output || [])
|
|
4349
3834
|
.filter((e) => e != null)
|
|
4350
3835
|
.map((entry) => {
|
|
4351
3836
|
if (entry === null) {
|
|
@@ -4353,6 +3838,7 @@ const deserializeAws_restJson1OAuthScopeList = (output, context) => {
|
|
|
4353
3838
|
}
|
|
4354
3839
|
return smithy_client_1.expectString(entry);
|
|
4355
3840
|
});
|
|
3841
|
+
return retVal;
|
|
4356
3842
|
};
|
|
4357
3843
|
const deserializeAws_restJson1PrefixConfig = (output, context) => {
|
|
4358
3844
|
return {
|
|
@@ -4406,7 +3892,7 @@ const deserializeAws_restJson1RedshiftMetadata = (output, context) => {
|
|
|
4406
3892
|
return {};
|
|
4407
3893
|
};
|
|
4408
3894
|
const deserializeAws_restJson1RegionList = (output, context) => {
|
|
4409
|
-
|
|
3895
|
+
const retVal = (output || [])
|
|
4410
3896
|
.filter((e) => e != null)
|
|
4411
3897
|
.map((entry) => {
|
|
4412
3898
|
if (entry === null) {
|
|
@@ -4414,6 +3900,7 @@ const deserializeAws_restJson1RegionList = (output, context) => {
|
|
|
4414
3900
|
}
|
|
4415
3901
|
return smithy_client_1.expectString(entry);
|
|
4416
3902
|
});
|
|
3903
|
+
return retVal;
|
|
4417
3904
|
};
|
|
4418
3905
|
const deserializeAws_restJson1S3DestinationProperties = (output, context) => {
|
|
4419
3906
|
return {
|
|
@@ -4497,6 +3984,21 @@ const deserializeAws_restJson1SAPODataConnectorProfileProperties = (output, cont
|
|
|
4497
3984
|
privateLinkServiceName: smithy_client_1.expectString(output.privateLinkServiceName),
|
|
4498
3985
|
};
|
|
4499
3986
|
};
|
|
3987
|
+
const deserializeAws_restJson1SAPODataDestinationProperties = (output, context) => {
|
|
3988
|
+
return {
|
|
3989
|
+
errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
|
|
3990
|
+
? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
|
|
3991
|
+
: undefined,
|
|
3992
|
+
idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
|
|
3993
|
+
? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
|
|
3994
|
+
: undefined,
|
|
3995
|
+
objectPath: smithy_client_1.expectString(output.objectPath),
|
|
3996
|
+
successResponseHandlingConfig: output.successResponseHandlingConfig !== undefined && output.successResponseHandlingConfig !== null
|
|
3997
|
+
? deserializeAws_restJson1SuccessResponseHandlingConfig(output.successResponseHandlingConfig, context)
|
|
3998
|
+
: undefined,
|
|
3999
|
+
writeOperationType: smithy_client_1.expectString(output.writeOperationType),
|
|
4000
|
+
};
|
|
4001
|
+
};
|
|
4500
4002
|
const deserializeAws_restJson1SAPODataMetadata = (output, context) => {
|
|
4501
4003
|
return {};
|
|
4502
4004
|
};
|
|
@@ -4523,7 +4025,7 @@ const deserializeAws_restJson1ScheduledTriggerProperties = (output, context) =>
|
|
|
4523
4025
|
};
|
|
4524
4026
|
};
|
|
4525
4027
|
const deserializeAws_restJson1SchedulingFrequencyTypeList = (output, context) => {
|
|
4526
|
-
|
|
4028
|
+
const retVal = (output || [])
|
|
4527
4029
|
.filter((e) => e != null)
|
|
4528
4030
|
.map((entry) => {
|
|
4529
4031
|
if (entry === null) {
|
|
@@ -4531,6 +4033,7 @@ const deserializeAws_restJson1SchedulingFrequencyTypeList = (output, context) =>
|
|
|
4531
4033
|
}
|
|
4532
4034
|
return smithy_client_1.expectString(entry);
|
|
4533
4035
|
});
|
|
4036
|
+
return retVal;
|
|
4534
4037
|
};
|
|
4535
4038
|
const deserializeAws_restJson1ServiceNowConnectorProfileProperties = (output, context) => {
|
|
4536
4039
|
return {
|
|
@@ -4661,7 +4164,7 @@ const deserializeAws_restJson1SourceFieldProperties = (output, context) => {
|
|
|
4661
4164
|
};
|
|
4662
4165
|
};
|
|
4663
4166
|
const deserializeAws_restJson1SourceFields = (output, context) => {
|
|
4664
|
-
|
|
4167
|
+
const retVal = (output || [])
|
|
4665
4168
|
.filter((e) => e != null)
|
|
4666
4169
|
.map((entry) => {
|
|
4667
4170
|
if (entry === null) {
|
|
@@ -4669,6 +4172,7 @@ const deserializeAws_restJson1SourceFields = (output, context) => {
|
|
|
4669
4172
|
}
|
|
4670
4173
|
return smithy_client_1.expectString(entry);
|
|
4671
4174
|
});
|
|
4175
|
+
return retVal;
|
|
4672
4176
|
};
|
|
4673
4177
|
const deserializeAws_restJson1SourceFlowConfig = (output, context) => {
|
|
4674
4178
|
return {
|
|
@@ -4683,8 +4187,14 @@ const deserializeAws_restJson1SourceFlowConfig = (output, context) => {
|
|
|
4683
4187
|
: undefined,
|
|
4684
4188
|
};
|
|
4685
4189
|
};
|
|
4190
|
+
const deserializeAws_restJson1SuccessResponseHandlingConfig = (output, context) => {
|
|
4191
|
+
return {
|
|
4192
|
+
bucketName: smithy_client_1.expectString(output.bucketName),
|
|
4193
|
+
bucketPrefix: smithy_client_1.expectString(output.bucketPrefix),
|
|
4194
|
+
};
|
|
4195
|
+
};
|
|
4686
4196
|
const deserializeAws_restJson1SupportedApiVersionList = (output, context) => {
|
|
4687
|
-
|
|
4197
|
+
const retVal = (output || [])
|
|
4688
4198
|
.filter((e) => e != null)
|
|
4689
4199
|
.map((entry) => {
|
|
4690
4200
|
if (entry === null) {
|
|
@@ -4692,6 +4202,7 @@ const deserializeAws_restJson1SupportedApiVersionList = (output, context) => {
|
|
|
4692
4202
|
}
|
|
4693
4203
|
return smithy_client_1.expectString(entry);
|
|
4694
4204
|
});
|
|
4205
|
+
return retVal;
|
|
4695
4206
|
};
|
|
4696
4207
|
const deserializeAws_restJson1SupportedFieldTypeDetails = (output, context) => {
|
|
4697
4208
|
return {
|
|
@@ -4701,7 +4212,7 @@ const deserializeAws_restJson1SupportedFieldTypeDetails = (output, context) => {
|
|
|
4701
4212
|
};
|
|
4702
4213
|
};
|
|
4703
4214
|
const deserializeAws_restJson1SupportedOperatorList = (output, context) => {
|
|
4704
|
-
|
|
4215
|
+
const retVal = (output || [])
|
|
4705
4216
|
.filter((e) => e != null)
|
|
4706
4217
|
.map((entry) => {
|
|
4707
4218
|
if (entry === null) {
|
|
@@ -4709,9 +4220,10 @@ const deserializeAws_restJson1SupportedOperatorList = (output, context) => {
|
|
|
4709
4220
|
}
|
|
4710
4221
|
return smithy_client_1.expectString(entry);
|
|
4711
4222
|
});
|
|
4223
|
+
return retVal;
|
|
4712
4224
|
};
|
|
4713
4225
|
const deserializeAws_restJson1SupportedValueList = (output, context) => {
|
|
4714
|
-
|
|
4226
|
+
const retVal = (output || [])
|
|
4715
4227
|
.filter((e) => e != null)
|
|
4716
4228
|
.map((entry) => {
|
|
4717
4229
|
if (entry === null) {
|
|
@@ -4719,9 +4231,10 @@ const deserializeAws_restJson1SupportedValueList = (output, context) => {
|
|
|
4719
4231
|
}
|
|
4720
4232
|
return smithy_client_1.expectString(entry);
|
|
4721
4233
|
});
|
|
4234
|
+
return retVal;
|
|
4722
4235
|
};
|
|
4723
4236
|
const deserializeAws_restJson1SupportedWriteOperationList = (output, context) => {
|
|
4724
|
-
|
|
4237
|
+
const retVal = (output || [])
|
|
4725
4238
|
.filter((e) => e != null)
|
|
4726
4239
|
.map((entry) => {
|
|
4727
4240
|
if (entry === null) {
|
|
@@ -4729,6 +4242,7 @@ const deserializeAws_restJson1SupportedWriteOperationList = (output, context) =>
|
|
|
4729
4242
|
}
|
|
4730
4243
|
return smithy_client_1.expectString(entry);
|
|
4731
4244
|
});
|
|
4245
|
+
return retVal;
|
|
4732
4246
|
};
|
|
4733
4247
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
4734
4248
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -4768,7 +4282,7 @@ const deserializeAws_restJson1TaskPropertiesMap = (output, context) => {
|
|
|
4768
4282
|
}, {});
|
|
4769
4283
|
};
|
|
4770
4284
|
const deserializeAws_restJson1Tasks = (output, context) => {
|
|
4771
|
-
|
|
4285
|
+
const retVal = (output || [])
|
|
4772
4286
|
.filter((e) => e != null)
|
|
4773
4287
|
.map((entry) => {
|
|
4774
4288
|
if (entry === null) {
|
|
@@ -4776,9 +4290,10 @@ const deserializeAws_restJson1Tasks = (output, context) => {
|
|
|
4776
4290
|
}
|
|
4777
4291
|
return deserializeAws_restJson1Task(entry, context);
|
|
4778
4292
|
});
|
|
4293
|
+
return retVal;
|
|
4779
4294
|
};
|
|
4780
4295
|
const deserializeAws_restJson1TokenUrlList = (output, context) => {
|
|
4781
|
-
|
|
4296
|
+
const retVal = (output || [])
|
|
4782
4297
|
.filter((e) => e != null)
|
|
4783
4298
|
.map((entry) => {
|
|
4784
4299
|
if (entry === null) {
|
|
@@ -4786,6 +4301,7 @@ const deserializeAws_restJson1TokenUrlList = (output, context) => {
|
|
|
4786
4301
|
}
|
|
4787
4302
|
return smithy_client_1.expectString(entry);
|
|
4788
4303
|
});
|
|
4304
|
+
return retVal;
|
|
4789
4305
|
};
|
|
4790
4306
|
const deserializeAws_restJson1TrendmicroConnectorProfileProperties = (output, context) => {
|
|
4791
4307
|
return {};
|
|
@@ -4814,7 +4330,7 @@ const deserializeAws_restJson1TriggerProperties = (output, context) => {
|
|
|
4814
4330
|
};
|
|
4815
4331
|
};
|
|
4816
4332
|
const deserializeAws_restJson1TriggerTypeList = (output, context) => {
|
|
4817
|
-
|
|
4333
|
+
const retVal = (output || [])
|
|
4818
4334
|
.filter((e) => e != null)
|
|
4819
4335
|
.map((entry) => {
|
|
4820
4336
|
if (entry === null) {
|
|
@@ -4822,6 +4338,7 @@ const deserializeAws_restJson1TriggerTypeList = (output, context) => {
|
|
|
4822
4338
|
}
|
|
4823
4339
|
return smithy_client_1.expectString(entry);
|
|
4824
4340
|
});
|
|
4341
|
+
return retVal;
|
|
4825
4342
|
};
|
|
4826
4343
|
const deserializeAws_restJson1UpsolverDestinationProperties = (output, context) => {
|
|
4827
4344
|
return {
|