@aws-sdk/client-codeguruprofiler 3.51.0 → 3.54.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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/CodeGuruProfilerServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +84 -2
- package/dist-cjs/protocols/Aws_restJson1.js +258 -862
- package/dist-es/index.js +1 -0
- package/dist-es/models/CodeGuruProfilerServiceException.js +12 -0
- package/dist-es/models/models_0.js +77 -1
- package/dist-es/protocols/Aws_restJson1.js +523 -961
- package/dist-types/CodeGuruProfilerClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CodeGuruProfilerServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +44 -25
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CodeGuruProfilerClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CodeGuruProfilerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +32 -25
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1UpdateProfilingGroupCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SubmitFeedbackCommand = exports.deserializeAws_restJson1RemovePermissionCommand = exports.deserializeAws_restJson1RemoveNotificationChannelCommand = exports.deserializeAws_restJson1PutPermissionCommand = exports.deserializeAws_restJson1PostAgentProfileCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProfilingGroupsCommand = exports.deserializeAws_restJson1ListProfileTimesCommand = exports.deserializeAws_restJson1ListFindingsReportsCommand = exports.deserializeAws_restJson1GetRecommendationsCommand = exports.deserializeAws_restJson1GetProfileCommand = exports.deserializeAws_restJson1GetPolicyCommand = exports.deserializeAws_restJson1GetNotificationConfigurationCommand = exports.deserializeAws_restJson1GetFindingsReportAccountSummaryCommand = exports.deserializeAws_restJson1DescribeProfilingGroupCommand = exports.deserializeAws_restJson1DeleteProfilingGroupCommand = exports.deserializeAws_restJson1CreateProfilingGroupCommand = exports.deserializeAws_restJson1ConfigureAgentCommand = exports.deserializeAws_restJson1BatchGetFrameMetricDataCommand = exports.deserializeAws_restJson1AddNotificationChannelsCommand = exports.serializeAws_restJson1UpdateProfilingGroupCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SubmitFeedbackCommand = exports.serializeAws_restJson1RemovePermissionCommand = exports.serializeAws_restJson1RemoveNotificationChannelCommand = exports.serializeAws_restJson1PutPermissionCommand = exports.serializeAws_restJson1PostAgentProfileCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListProfilingGroupsCommand = exports.serializeAws_restJson1ListProfileTimesCommand = exports.serializeAws_restJson1ListFindingsReportsCommand = exports.serializeAws_restJson1GetRecommendationsCommand = exports.serializeAws_restJson1GetProfileCommand = exports.serializeAws_restJson1GetPolicyCommand = exports.serializeAws_restJson1GetNotificationConfigurationCommand = exports.serializeAws_restJson1GetFindingsReportAccountSummaryCommand = exports.serializeAws_restJson1DescribeProfilingGroupCommand = exports.serializeAws_restJson1DeleteProfilingGroupCommand = exports.serializeAws_restJson1CreateProfilingGroupCommand = exports.serializeAws_restJson1ConfigureAgentCommand = exports.serializeAws_restJson1BatchGetFrameMetricDataCommand = exports.serializeAws_restJson1AddNotificationChannelsCommand = 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 CodeGuruProfilerServiceException_1 = require("../models/CodeGuruProfilerServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_restJson1AddNotificationChannelsCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -785,67 +787,31 @@ const deserializeAws_restJson1AddNotificationChannelsCommandError = async (outpu
|
|
|
785
787
|
switch (errorCode) {
|
|
786
788
|
case "ConflictException":
|
|
787
789
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
788
|
-
|
|
789
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
790
|
-
name: errorCode,
|
|
791
|
-
$metadata: deserializeMetadata(output),
|
|
792
|
-
};
|
|
793
|
-
break;
|
|
790
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
794
791
|
case "InternalServerException":
|
|
795
792
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
796
|
-
|
|
797
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
798
|
-
name: errorCode,
|
|
799
|
-
$metadata: deserializeMetadata(output),
|
|
800
|
-
};
|
|
801
|
-
break;
|
|
793
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
802
794
|
case "ResourceNotFoundException":
|
|
803
795
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
804
|
-
|
|
805
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
806
|
-
name: errorCode,
|
|
807
|
-
$metadata: deserializeMetadata(output),
|
|
808
|
-
};
|
|
809
|
-
break;
|
|
796
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
810
797
|
case "ServiceQuotaExceededException":
|
|
811
798
|
case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
|
|
812
|
-
|
|
813
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
814
|
-
name: errorCode,
|
|
815
|
-
$metadata: deserializeMetadata(output),
|
|
816
|
-
};
|
|
817
|
-
break;
|
|
799
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
818
800
|
case "ThrottlingException":
|
|
819
801
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
820
|
-
|
|
821
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
822
|
-
name: errorCode,
|
|
823
|
-
$metadata: deserializeMetadata(output),
|
|
824
|
-
};
|
|
825
|
-
break;
|
|
802
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
826
803
|
case "ValidationException":
|
|
827
804
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
828
|
-
|
|
829
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
830
|
-
name: errorCode,
|
|
831
|
-
$metadata: deserializeMetadata(output),
|
|
832
|
-
};
|
|
833
|
-
break;
|
|
805
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
834
806
|
default:
|
|
835
807
|
const parsedBody = parsedOutput.body;
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
...parsedBody,
|
|
839
|
-
name: `${errorCode}`,
|
|
840
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
808
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
809
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
841
810
|
$fault: "client",
|
|
842
811
|
$metadata: deserializeMetadata(output),
|
|
843
|
-
};
|
|
812
|
+
});
|
|
813
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
844
814
|
}
|
|
845
|
-
const message = response.message || response.Message || errorCode;
|
|
846
|
-
response.message = message;
|
|
847
|
-
delete response.Message;
|
|
848
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
849
815
|
};
|
|
850
816
|
const deserializeAws_restJson1BatchGetFrameMetricDataCommand = async (output, context) => {
|
|
851
817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -893,51 +859,25 @@ const deserializeAws_restJson1BatchGetFrameMetricDataCommandError = async (outpu
|
|
|
893
859
|
switch (errorCode) {
|
|
894
860
|
case "InternalServerException":
|
|
895
861
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
896
|
-
|
|
897
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
898
|
-
name: errorCode,
|
|
899
|
-
$metadata: deserializeMetadata(output),
|
|
900
|
-
};
|
|
901
|
-
break;
|
|
862
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
902
863
|
case "ResourceNotFoundException":
|
|
903
864
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
904
|
-
|
|
905
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
906
|
-
name: errorCode,
|
|
907
|
-
$metadata: deserializeMetadata(output),
|
|
908
|
-
};
|
|
909
|
-
break;
|
|
865
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
910
866
|
case "ThrottlingException":
|
|
911
867
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
912
|
-
|
|
913
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
914
|
-
name: errorCode,
|
|
915
|
-
$metadata: deserializeMetadata(output),
|
|
916
|
-
};
|
|
917
|
-
break;
|
|
868
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
918
869
|
case "ValidationException":
|
|
919
870
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
920
|
-
|
|
921
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
922
|
-
name: errorCode,
|
|
923
|
-
$metadata: deserializeMetadata(output),
|
|
924
|
-
};
|
|
925
|
-
break;
|
|
871
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
926
872
|
default:
|
|
927
873
|
const parsedBody = parsedOutput.body;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
...parsedBody,
|
|
931
|
-
name: `${errorCode}`,
|
|
932
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
874
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
875
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
933
876
|
$fault: "client",
|
|
934
877
|
$metadata: deserializeMetadata(output),
|
|
935
|
-
};
|
|
878
|
+
});
|
|
879
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
936
880
|
}
|
|
937
|
-
const message = response.message || response.Message || errorCode;
|
|
938
|
-
response.message = message;
|
|
939
|
-
delete response.Message;
|
|
940
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
941
881
|
};
|
|
942
882
|
const deserializeAws_restJson1ConfigureAgentCommand = async (output, context) => {
|
|
943
883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -963,51 +903,25 @@ const deserializeAws_restJson1ConfigureAgentCommandError = async (output, contex
|
|
|
963
903
|
switch (errorCode) {
|
|
964
904
|
case "InternalServerException":
|
|
965
905
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
966
|
-
|
|
967
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
968
|
-
name: errorCode,
|
|
969
|
-
$metadata: deserializeMetadata(output),
|
|
970
|
-
};
|
|
971
|
-
break;
|
|
906
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
972
907
|
case "ResourceNotFoundException":
|
|
973
908
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
974
|
-
|
|
975
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
976
|
-
name: errorCode,
|
|
977
|
-
$metadata: deserializeMetadata(output),
|
|
978
|
-
};
|
|
979
|
-
break;
|
|
909
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
980
910
|
case "ThrottlingException":
|
|
981
911
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
982
|
-
|
|
983
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
984
|
-
name: errorCode,
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
986
|
-
};
|
|
987
|
-
break;
|
|
912
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
988
913
|
case "ValidationException":
|
|
989
914
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
990
|
-
|
|
991
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
992
|
-
name: errorCode,
|
|
993
|
-
$metadata: deserializeMetadata(output),
|
|
994
|
-
};
|
|
995
|
-
break;
|
|
915
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
996
916
|
default:
|
|
997
917
|
const parsedBody = parsedOutput.body;
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
...parsedBody,
|
|
1001
|
-
name: `${errorCode}`,
|
|
1002
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
918
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
919
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1003
920
|
$fault: "client",
|
|
1004
921
|
$metadata: deserializeMetadata(output),
|
|
1005
|
-
};
|
|
922
|
+
});
|
|
923
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1006
924
|
}
|
|
1007
|
-
const message = response.message || response.Message || errorCode;
|
|
1008
|
-
response.message = message;
|
|
1009
|
-
delete response.Message;
|
|
1010
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1011
925
|
};
|
|
1012
926
|
const deserializeAws_restJson1CreateProfilingGroupCommand = async (output, context) => {
|
|
1013
927
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1033,59 +947,28 @@ const deserializeAws_restJson1CreateProfilingGroupCommandError = async (output,
|
|
|
1033
947
|
switch (errorCode) {
|
|
1034
948
|
case "ConflictException":
|
|
1035
949
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
1036
|
-
|
|
1037
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1038
|
-
name: errorCode,
|
|
1039
|
-
$metadata: deserializeMetadata(output),
|
|
1040
|
-
};
|
|
1041
|
-
break;
|
|
950
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1042
951
|
case "InternalServerException":
|
|
1043
952
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1044
|
-
|
|
1045
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1046
|
-
name: errorCode,
|
|
1047
|
-
$metadata: deserializeMetadata(output),
|
|
1048
|
-
};
|
|
1049
|
-
break;
|
|
953
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1050
954
|
case "ServiceQuotaExceededException":
|
|
1051
955
|
case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
|
|
1052
|
-
|
|
1053
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1054
|
-
name: errorCode,
|
|
1055
|
-
$metadata: deserializeMetadata(output),
|
|
1056
|
-
};
|
|
1057
|
-
break;
|
|
956
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1058
957
|
case "ThrottlingException":
|
|
1059
958
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1060
|
-
|
|
1061
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1062
|
-
name: errorCode,
|
|
1063
|
-
$metadata: deserializeMetadata(output),
|
|
1064
|
-
};
|
|
1065
|
-
break;
|
|
959
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1066
960
|
case "ValidationException":
|
|
1067
961
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1068
|
-
|
|
1069
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1070
|
-
name: errorCode,
|
|
1071
|
-
$metadata: deserializeMetadata(output),
|
|
1072
|
-
};
|
|
1073
|
-
break;
|
|
962
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1074
963
|
default:
|
|
1075
964
|
const parsedBody = parsedOutput.body;
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
...parsedBody,
|
|
1079
|
-
name: `${errorCode}`,
|
|
1080
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
965
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
966
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1081
967
|
$fault: "client",
|
|
1082
968
|
$metadata: deserializeMetadata(output),
|
|
1083
|
-
};
|
|
969
|
+
});
|
|
970
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1084
971
|
}
|
|
1085
|
-
const message = response.message || response.Message || errorCode;
|
|
1086
|
-
response.message = message;
|
|
1087
|
-
delete response.Message;
|
|
1088
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1089
972
|
};
|
|
1090
973
|
const deserializeAws_restJson1DeleteProfilingGroupCommand = async (output, context) => {
|
|
1091
974
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1109,59 +992,28 @@ const deserializeAws_restJson1DeleteProfilingGroupCommandError = async (output,
|
|
|
1109
992
|
switch (errorCode) {
|
|
1110
993
|
case "ConflictException":
|
|
1111
994
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
1112
|
-
|
|
1113
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1114
|
-
name: errorCode,
|
|
1115
|
-
$metadata: deserializeMetadata(output),
|
|
1116
|
-
};
|
|
1117
|
-
break;
|
|
995
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1118
996
|
case "InternalServerException":
|
|
1119
997
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1120
|
-
|
|
1121
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1122
|
-
name: errorCode,
|
|
1123
|
-
$metadata: deserializeMetadata(output),
|
|
1124
|
-
};
|
|
1125
|
-
break;
|
|
998
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1126
999
|
case "ResourceNotFoundException":
|
|
1127
1000
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1128
|
-
|
|
1129
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1130
|
-
name: errorCode,
|
|
1131
|
-
$metadata: deserializeMetadata(output),
|
|
1132
|
-
};
|
|
1133
|
-
break;
|
|
1001
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1134
1002
|
case "ThrottlingException":
|
|
1135
1003
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1136
|
-
|
|
1137
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1138
|
-
name: errorCode,
|
|
1139
|
-
$metadata: deserializeMetadata(output),
|
|
1140
|
-
};
|
|
1141
|
-
break;
|
|
1004
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1142
1005
|
case "ValidationException":
|
|
1143
1006
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1144
|
-
|
|
1145
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1146
|
-
name: errorCode,
|
|
1147
|
-
$metadata: deserializeMetadata(output),
|
|
1148
|
-
};
|
|
1149
|
-
break;
|
|
1007
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1150
1008
|
default:
|
|
1151
1009
|
const parsedBody = parsedOutput.body;
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
...parsedBody,
|
|
1155
|
-
name: `${errorCode}`,
|
|
1156
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1010
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1011
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1157
1012
|
$fault: "client",
|
|
1158
1013
|
$metadata: deserializeMetadata(output),
|
|
1159
|
-
};
|
|
1014
|
+
});
|
|
1015
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1160
1016
|
}
|
|
1161
|
-
const message = response.message || response.Message || errorCode;
|
|
1162
|
-
response.message = message;
|
|
1163
|
-
delete response.Message;
|
|
1164
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1165
1017
|
};
|
|
1166
1018
|
const deserializeAws_restJson1DescribeProfilingGroupCommand = async (output, context) => {
|
|
1167
1019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1187,51 +1039,25 @@ const deserializeAws_restJson1DescribeProfilingGroupCommandError = async (output
|
|
|
1187
1039
|
switch (errorCode) {
|
|
1188
1040
|
case "InternalServerException":
|
|
1189
1041
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1190
|
-
|
|
1191
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1192
|
-
name: errorCode,
|
|
1193
|
-
$metadata: deserializeMetadata(output),
|
|
1194
|
-
};
|
|
1195
|
-
break;
|
|
1042
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1196
1043
|
case "ResourceNotFoundException":
|
|
1197
1044
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1198
|
-
|
|
1199
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1200
|
-
name: errorCode,
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
};
|
|
1203
|
-
break;
|
|
1045
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1204
1046
|
case "ThrottlingException":
|
|
1205
1047
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1206
|
-
|
|
1207
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1208
|
-
name: errorCode,
|
|
1209
|
-
$metadata: deserializeMetadata(output),
|
|
1210
|
-
};
|
|
1211
|
-
break;
|
|
1048
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1212
1049
|
case "ValidationException":
|
|
1213
1050
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1214
|
-
|
|
1215
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1216
|
-
name: errorCode,
|
|
1217
|
-
$metadata: deserializeMetadata(output),
|
|
1218
|
-
};
|
|
1219
|
-
break;
|
|
1051
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1220
1052
|
default:
|
|
1221
1053
|
const parsedBody = parsedOutput.body;
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
...parsedBody,
|
|
1225
|
-
name: `${errorCode}`,
|
|
1226
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1054
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1055
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1227
1056
|
$fault: "client",
|
|
1228
1057
|
$metadata: deserializeMetadata(output),
|
|
1229
|
-
};
|
|
1058
|
+
});
|
|
1059
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1230
1060
|
}
|
|
1231
|
-
const message = response.message || response.Message || errorCode;
|
|
1232
|
-
response.message = message;
|
|
1233
|
-
delete response.Message;
|
|
1234
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1235
1061
|
};
|
|
1236
1062
|
const deserializeAws_restJson1GetFindingsReportAccountSummaryCommand = async (output, context) => {
|
|
1237
1063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1263,43 +1089,22 @@ const deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = asyn
|
|
|
1263
1089
|
switch (errorCode) {
|
|
1264
1090
|
case "InternalServerException":
|
|
1265
1091
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1266
|
-
|
|
1267
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1268
|
-
name: errorCode,
|
|
1269
|
-
$metadata: deserializeMetadata(output),
|
|
1270
|
-
};
|
|
1271
|
-
break;
|
|
1092
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1272
1093
|
case "ThrottlingException":
|
|
1273
1094
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1274
|
-
|
|
1275
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1276
|
-
name: errorCode,
|
|
1277
|
-
$metadata: deserializeMetadata(output),
|
|
1278
|
-
};
|
|
1279
|
-
break;
|
|
1095
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1280
1096
|
case "ValidationException":
|
|
1281
1097
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1282
|
-
|
|
1283
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1284
|
-
name: errorCode,
|
|
1285
|
-
$metadata: deserializeMetadata(output),
|
|
1286
|
-
};
|
|
1287
|
-
break;
|
|
1098
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1288
1099
|
default:
|
|
1289
1100
|
const parsedBody = parsedOutput.body;
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
...parsedBody,
|
|
1293
|
-
name: `${errorCode}`,
|
|
1294
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1101
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1102
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1295
1103
|
$fault: "client",
|
|
1296
1104
|
$metadata: deserializeMetadata(output),
|
|
1297
|
-
};
|
|
1105
|
+
});
|
|
1106
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1298
1107
|
}
|
|
1299
|
-
const message = response.message || response.Message || errorCode;
|
|
1300
|
-
response.message = message;
|
|
1301
|
-
delete response.Message;
|
|
1302
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1303
1108
|
};
|
|
1304
1109
|
const deserializeAws_restJson1GetNotificationConfigurationCommand = async (output, context) => {
|
|
1305
1110
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1327,51 +1132,25 @@ const deserializeAws_restJson1GetNotificationConfigurationCommandError = async (
|
|
|
1327
1132
|
switch (errorCode) {
|
|
1328
1133
|
case "InternalServerException":
|
|
1329
1134
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1330
|
-
|
|
1331
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1332
|
-
name: errorCode,
|
|
1333
|
-
$metadata: deserializeMetadata(output),
|
|
1334
|
-
};
|
|
1335
|
-
break;
|
|
1135
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1336
1136
|
case "ResourceNotFoundException":
|
|
1337
1137
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1338
|
-
|
|
1339
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1340
|
-
name: errorCode,
|
|
1341
|
-
$metadata: deserializeMetadata(output),
|
|
1342
|
-
};
|
|
1343
|
-
break;
|
|
1138
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1344
1139
|
case "ThrottlingException":
|
|
1345
1140
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1346
|
-
|
|
1347
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1348
|
-
name: errorCode,
|
|
1349
|
-
$metadata: deserializeMetadata(output),
|
|
1350
|
-
};
|
|
1351
|
-
break;
|
|
1141
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1352
1142
|
case "ValidationException":
|
|
1353
1143
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1354
|
-
|
|
1355
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1356
|
-
name: errorCode,
|
|
1357
|
-
$metadata: deserializeMetadata(output),
|
|
1358
|
-
};
|
|
1359
|
-
break;
|
|
1144
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1360
1145
|
default:
|
|
1361
1146
|
const parsedBody = parsedOutput.body;
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
...parsedBody,
|
|
1365
|
-
name: `${errorCode}`,
|
|
1366
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1147
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1148
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1367
1149
|
$fault: "client",
|
|
1368
1150
|
$metadata: deserializeMetadata(output),
|
|
1369
|
-
};
|
|
1151
|
+
});
|
|
1152
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1370
1153
|
}
|
|
1371
|
-
const message = response.message || response.Message || errorCode;
|
|
1372
|
-
response.message = message;
|
|
1373
|
-
delete response.Message;
|
|
1374
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1375
1154
|
};
|
|
1376
1155
|
const deserializeAws_restJson1GetPolicyCommand = async (output, context) => {
|
|
1377
1156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1403,43 +1182,22 @@ const deserializeAws_restJson1GetPolicyCommandError = async (output, context) =>
|
|
|
1403
1182
|
switch (errorCode) {
|
|
1404
1183
|
case "InternalServerException":
|
|
1405
1184
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1406
|
-
|
|
1407
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1408
|
-
name: errorCode,
|
|
1409
|
-
$metadata: deserializeMetadata(output),
|
|
1410
|
-
};
|
|
1411
|
-
break;
|
|
1185
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1412
1186
|
case "ResourceNotFoundException":
|
|
1413
1187
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1414
|
-
|
|
1415
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1416
|
-
name: errorCode,
|
|
1417
|
-
$metadata: deserializeMetadata(output),
|
|
1418
|
-
};
|
|
1419
|
-
break;
|
|
1188
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1420
1189
|
case "ThrottlingException":
|
|
1421
1190
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1422
|
-
|
|
1423
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1424
|
-
name: errorCode,
|
|
1425
|
-
$metadata: deserializeMetadata(output),
|
|
1426
|
-
};
|
|
1427
|
-
break;
|
|
1191
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1428
1192
|
default:
|
|
1429
1193
|
const parsedBody = parsedOutput.body;
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
...parsedBody,
|
|
1433
|
-
name: `${errorCode}`,
|
|
1434
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1194
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1195
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1435
1196
|
$fault: "client",
|
|
1436
1197
|
$metadata: deserializeMetadata(output),
|
|
1437
|
-
};
|
|
1198
|
+
});
|
|
1199
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1438
1200
|
}
|
|
1439
|
-
const message = response.message || response.Message || errorCode;
|
|
1440
|
-
response.message = message;
|
|
1441
|
-
delete response.Message;
|
|
1442
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1443
1201
|
};
|
|
1444
1202
|
const deserializeAws_restJson1GetProfileCommand = async (output, context) => {
|
|
1445
1203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1473,51 +1231,25 @@ const deserializeAws_restJson1GetProfileCommandError = async (output, context) =
|
|
|
1473
1231
|
switch (errorCode) {
|
|
1474
1232
|
case "InternalServerException":
|
|
1475
1233
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1476
|
-
|
|
1477
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1478
|
-
name: errorCode,
|
|
1479
|
-
$metadata: deserializeMetadata(output),
|
|
1480
|
-
};
|
|
1481
|
-
break;
|
|
1234
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1482
1235
|
case "ResourceNotFoundException":
|
|
1483
1236
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1484
|
-
|
|
1485
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1486
|
-
name: errorCode,
|
|
1487
|
-
$metadata: deserializeMetadata(output),
|
|
1488
|
-
};
|
|
1489
|
-
break;
|
|
1237
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1490
1238
|
case "ThrottlingException":
|
|
1491
1239
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1492
|
-
|
|
1493
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1494
|
-
name: errorCode,
|
|
1495
|
-
$metadata: deserializeMetadata(output),
|
|
1496
|
-
};
|
|
1497
|
-
break;
|
|
1240
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1498
1241
|
case "ValidationException":
|
|
1499
1242
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1500
|
-
|
|
1501
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1502
|
-
name: errorCode,
|
|
1503
|
-
$metadata: deserializeMetadata(output),
|
|
1504
|
-
};
|
|
1505
|
-
break;
|
|
1243
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1506
1244
|
default:
|
|
1507
1245
|
const parsedBody = parsedOutput.body;
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
...parsedBody,
|
|
1511
|
-
name: `${errorCode}`,
|
|
1512
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1246
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1247
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1513
1248
|
$fault: "client",
|
|
1514
1249
|
$metadata: deserializeMetadata(output),
|
|
1515
|
-
};
|
|
1250
|
+
});
|
|
1251
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1516
1252
|
}
|
|
1517
|
-
const message = response.message || response.Message || errorCode;
|
|
1518
|
-
response.message = message;
|
|
1519
|
-
delete response.Message;
|
|
1520
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1521
1253
|
};
|
|
1522
1254
|
const deserializeAws_restJson1GetRecommendationsCommand = async (output, context) => {
|
|
1523
1255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1561,51 +1293,25 @@ const deserializeAws_restJson1GetRecommendationsCommandError = async (output, co
|
|
|
1561
1293
|
switch (errorCode) {
|
|
1562
1294
|
case "InternalServerException":
|
|
1563
1295
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1564
|
-
|
|
1565
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1566
|
-
name: errorCode,
|
|
1567
|
-
$metadata: deserializeMetadata(output),
|
|
1568
|
-
};
|
|
1569
|
-
break;
|
|
1296
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1570
1297
|
case "ResourceNotFoundException":
|
|
1571
1298
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1572
|
-
|
|
1573
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1574
|
-
name: errorCode,
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
};
|
|
1577
|
-
break;
|
|
1299
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1578
1300
|
case "ThrottlingException":
|
|
1579
1301
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1580
|
-
|
|
1581
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1582
|
-
name: errorCode,
|
|
1583
|
-
$metadata: deserializeMetadata(output),
|
|
1584
|
-
};
|
|
1585
|
-
break;
|
|
1302
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1586
1303
|
case "ValidationException":
|
|
1587
1304
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1588
|
-
|
|
1589
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1590
|
-
name: errorCode,
|
|
1591
|
-
$metadata: deserializeMetadata(output),
|
|
1592
|
-
};
|
|
1593
|
-
break;
|
|
1305
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1594
1306
|
default:
|
|
1595
1307
|
const parsedBody = parsedOutput.body;
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
...parsedBody,
|
|
1599
|
-
name: `${errorCode}`,
|
|
1600
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1308
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1309
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1601
1310
|
$fault: "client",
|
|
1602
1311
|
$metadata: deserializeMetadata(output),
|
|
1603
|
-
};
|
|
1312
|
+
});
|
|
1313
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1604
1314
|
}
|
|
1605
|
-
const message = response.message || response.Message || errorCode;
|
|
1606
|
-
response.message = message;
|
|
1607
|
-
delete response.Message;
|
|
1608
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1609
1315
|
};
|
|
1610
1316
|
const deserializeAws_restJson1ListFindingsReportsCommand = async (output, context) => {
|
|
1611
1317
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1637,51 +1343,25 @@ const deserializeAws_restJson1ListFindingsReportsCommandError = async (output, c
|
|
|
1637
1343
|
switch (errorCode) {
|
|
1638
1344
|
case "InternalServerException":
|
|
1639
1345
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1640
|
-
|
|
1641
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1642
|
-
name: errorCode,
|
|
1643
|
-
$metadata: deserializeMetadata(output),
|
|
1644
|
-
};
|
|
1645
|
-
break;
|
|
1346
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1646
1347
|
case "ResourceNotFoundException":
|
|
1647
1348
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1648
|
-
|
|
1649
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1650
|
-
name: errorCode,
|
|
1651
|
-
$metadata: deserializeMetadata(output),
|
|
1652
|
-
};
|
|
1653
|
-
break;
|
|
1349
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1654
1350
|
case "ThrottlingException":
|
|
1655
1351
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1656
|
-
|
|
1657
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1658
|
-
name: errorCode,
|
|
1659
|
-
$metadata: deserializeMetadata(output),
|
|
1660
|
-
};
|
|
1661
|
-
break;
|
|
1352
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1662
1353
|
case "ValidationException":
|
|
1663
1354
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1664
|
-
|
|
1665
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1666
|
-
name: errorCode,
|
|
1667
|
-
$metadata: deserializeMetadata(output),
|
|
1668
|
-
};
|
|
1669
|
-
break;
|
|
1355
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1670
1356
|
default:
|
|
1671
1357
|
const parsedBody = parsedOutput.body;
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
...parsedBody,
|
|
1675
|
-
name: `${errorCode}`,
|
|
1676
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1358
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1359
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1677
1360
|
$fault: "client",
|
|
1678
1361
|
$metadata: deserializeMetadata(output),
|
|
1679
|
-
};
|
|
1362
|
+
});
|
|
1363
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1680
1364
|
}
|
|
1681
|
-
const message = response.message || response.Message || errorCode;
|
|
1682
|
-
response.message = message;
|
|
1683
|
-
delete response.Message;
|
|
1684
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1685
1365
|
};
|
|
1686
1366
|
const deserializeAws_restJson1ListProfileTimesCommand = async (output, context) => {
|
|
1687
1367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1713,51 +1393,25 @@ const deserializeAws_restJson1ListProfileTimesCommandError = async (output, cont
|
|
|
1713
1393
|
switch (errorCode) {
|
|
1714
1394
|
case "InternalServerException":
|
|
1715
1395
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1716
|
-
|
|
1717
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1718
|
-
name: errorCode,
|
|
1719
|
-
$metadata: deserializeMetadata(output),
|
|
1720
|
-
};
|
|
1721
|
-
break;
|
|
1396
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1722
1397
|
case "ResourceNotFoundException":
|
|
1723
1398
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1724
|
-
|
|
1725
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1726
|
-
name: errorCode,
|
|
1727
|
-
$metadata: deserializeMetadata(output),
|
|
1728
|
-
};
|
|
1729
|
-
break;
|
|
1399
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1730
1400
|
case "ThrottlingException":
|
|
1731
1401
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1732
|
-
|
|
1733
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1734
|
-
name: errorCode,
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
};
|
|
1737
|
-
break;
|
|
1402
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1738
1403
|
case "ValidationException":
|
|
1739
1404
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1740
|
-
|
|
1741
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1742
|
-
name: errorCode,
|
|
1743
|
-
$metadata: deserializeMetadata(output),
|
|
1744
|
-
};
|
|
1745
|
-
break;
|
|
1405
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1746
1406
|
default:
|
|
1747
1407
|
const parsedBody = parsedOutput.body;
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
...parsedBody,
|
|
1751
|
-
name: `${errorCode}`,
|
|
1752
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1408
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1409
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1753
1410
|
$fault: "client",
|
|
1754
1411
|
$metadata: deserializeMetadata(output),
|
|
1755
|
-
};
|
|
1412
|
+
});
|
|
1413
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1756
1414
|
}
|
|
1757
|
-
const message = response.message || response.Message || errorCode;
|
|
1758
|
-
response.message = message;
|
|
1759
|
-
delete response.Message;
|
|
1760
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1761
1415
|
};
|
|
1762
1416
|
const deserializeAws_restJson1ListProfilingGroupsCommand = async (output, context) => {
|
|
1763
1417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1793,35 +1447,19 @@ const deserializeAws_restJson1ListProfilingGroupsCommandError = async (output, c
|
|
|
1793
1447
|
switch (errorCode) {
|
|
1794
1448
|
case "InternalServerException":
|
|
1795
1449
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1796
|
-
|
|
1797
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1798
|
-
name: errorCode,
|
|
1799
|
-
$metadata: deserializeMetadata(output),
|
|
1800
|
-
};
|
|
1801
|
-
break;
|
|
1450
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1802
1451
|
case "ThrottlingException":
|
|
1803
1452
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1804
|
-
|
|
1805
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1806
|
-
name: errorCode,
|
|
1807
|
-
$metadata: deserializeMetadata(output),
|
|
1808
|
-
};
|
|
1809
|
-
break;
|
|
1453
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1810
1454
|
default:
|
|
1811
1455
|
const parsedBody = parsedOutput.body;
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
...parsedBody,
|
|
1815
|
-
name: `${errorCode}`,
|
|
1816
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1456
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1457
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1817
1458
|
$fault: "client",
|
|
1818
1459
|
$metadata: deserializeMetadata(output),
|
|
1819
|
-
};
|
|
1460
|
+
});
|
|
1461
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1820
1462
|
}
|
|
1821
|
-
const message = response.message || response.Message || errorCode;
|
|
1822
|
-
response.message = message;
|
|
1823
|
-
delete response.Message;
|
|
1824
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1825
1463
|
};
|
|
1826
1464
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1827
1465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1849,43 +1487,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1849
1487
|
switch (errorCode) {
|
|
1850
1488
|
case "InternalServerException":
|
|
1851
1489
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1852
|
-
|
|
1853
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1854
|
-
name: errorCode,
|
|
1855
|
-
$metadata: deserializeMetadata(output),
|
|
1856
|
-
};
|
|
1857
|
-
break;
|
|
1490
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1858
1491
|
case "ResourceNotFoundException":
|
|
1859
1492
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1860
|
-
|
|
1861
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1862
|
-
name: errorCode,
|
|
1863
|
-
$metadata: deserializeMetadata(output),
|
|
1864
|
-
};
|
|
1865
|
-
break;
|
|
1493
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1866
1494
|
case "ValidationException":
|
|
1867
1495
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1868
|
-
|
|
1869
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1870
|
-
name: errorCode,
|
|
1871
|
-
$metadata: deserializeMetadata(output),
|
|
1872
|
-
};
|
|
1873
|
-
break;
|
|
1496
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1874
1497
|
default:
|
|
1875
1498
|
const parsedBody = parsedOutput.body;
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
...parsedBody,
|
|
1879
|
-
name: `${errorCode}`,
|
|
1880
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1499
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1500
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1881
1501
|
$fault: "client",
|
|
1882
1502
|
$metadata: deserializeMetadata(output),
|
|
1883
|
-
};
|
|
1503
|
+
});
|
|
1504
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1884
1505
|
}
|
|
1885
|
-
const message = response.message || response.Message || errorCode;
|
|
1886
|
-
response.message = message;
|
|
1887
|
-
delete response.Message;
|
|
1888
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1889
1506
|
};
|
|
1890
1507
|
const deserializeAws_restJson1PostAgentProfileCommand = async (output, context) => {
|
|
1891
1508
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1909,51 +1526,25 @@ const deserializeAws_restJson1PostAgentProfileCommandError = async (output, cont
|
|
|
1909
1526
|
switch (errorCode) {
|
|
1910
1527
|
case "InternalServerException":
|
|
1911
1528
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1912
|
-
|
|
1913
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1914
|
-
name: errorCode,
|
|
1915
|
-
$metadata: deserializeMetadata(output),
|
|
1916
|
-
};
|
|
1917
|
-
break;
|
|
1529
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1918
1530
|
case "ResourceNotFoundException":
|
|
1919
1531
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1920
|
-
|
|
1921
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1922
|
-
name: errorCode,
|
|
1923
|
-
$metadata: deserializeMetadata(output),
|
|
1924
|
-
};
|
|
1925
|
-
break;
|
|
1532
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1926
1533
|
case "ThrottlingException":
|
|
1927
1534
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1928
|
-
|
|
1929
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1930
|
-
name: errorCode,
|
|
1931
|
-
$metadata: deserializeMetadata(output),
|
|
1932
|
-
};
|
|
1933
|
-
break;
|
|
1535
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1934
1536
|
case "ValidationException":
|
|
1935
1537
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1936
|
-
|
|
1937
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1938
|
-
name: errorCode,
|
|
1939
|
-
$metadata: deserializeMetadata(output),
|
|
1940
|
-
};
|
|
1941
|
-
break;
|
|
1538
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1942
1539
|
default:
|
|
1943
1540
|
const parsedBody = parsedOutput.body;
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
...parsedBody,
|
|
1947
|
-
name: `${errorCode}`,
|
|
1948
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1541
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1542
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1949
1543
|
$fault: "client",
|
|
1950
1544
|
$metadata: deserializeMetadata(output),
|
|
1951
|
-
};
|
|
1545
|
+
});
|
|
1546
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1952
1547
|
}
|
|
1953
|
-
const message = response.message || response.Message || errorCode;
|
|
1954
|
-
response.message = message;
|
|
1955
|
-
delete response.Message;
|
|
1956
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1957
1548
|
};
|
|
1958
1549
|
const deserializeAws_restJson1PutPermissionCommand = async (output, context) => {
|
|
1959
1550
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1985,59 +1576,28 @@ const deserializeAws_restJson1PutPermissionCommandError = async (output, context
|
|
|
1985
1576
|
switch (errorCode) {
|
|
1986
1577
|
case "ConflictException":
|
|
1987
1578
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
1988
|
-
|
|
1989
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1990
|
-
name: errorCode,
|
|
1991
|
-
$metadata: deserializeMetadata(output),
|
|
1992
|
-
};
|
|
1993
|
-
break;
|
|
1579
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1994
1580
|
case "InternalServerException":
|
|
1995
1581
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1996
|
-
|
|
1997
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1998
|
-
name: errorCode,
|
|
1999
|
-
$metadata: deserializeMetadata(output),
|
|
2000
|
-
};
|
|
2001
|
-
break;
|
|
1582
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2002
1583
|
case "ResourceNotFoundException":
|
|
2003
1584
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
2004
|
-
|
|
2005
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2006
|
-
name: errorCode,
|
|
2007
|
-
$metadata: deserializeMetadata(output),
|
|
2008
|
-
};
|
|
2009
|
-
break;
|
|
1585
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2010
1586
|
case "ThrottlingException":
|
|
2011
1587
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
2012
|
-
|
|
2013
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2014
|
-
name: errorCode,
|
|
2015
|
-
$metadata: deserializeMetadata(output),
|
|
2016
|
-
};
|
|
2017
|
-
break;
|
|
1588
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2018
1589
|
case "ValidationException":
|
|
2019
1590
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
2020
|
-
|
|
2021
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2022
|
-
name: errorCode,
|
|
2023
|
-
$metadata: deserializeMetadata(output),
|
|
2024
|
-
};
|
|
2025
|
-
break;
|
|
1591
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2026
1592
|
default:
|
|
2027
1593
|
const parsedBody = parsedOutput.body;
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
...parsedBody,
|
|
2031
|
-
name: `${errorCode}`,
|
|
2032
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1594
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1595
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2033
1596
|
$fault: "client",
|
|
2034
1597
|
$metadata: deserializeMetadata(output),
|
|
2035
|
-
};
|
|
1598
|
+
});
|
|
1599
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2036
1600
|
}
|
|
2037
|
-
const message = response.message || response.Message || errorCode;
|
|
2038
|
-
response.message = message;
|
|
2039
|
-
delete response.Message;
|
|
2040
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2041
1601
|
};
|
|
2042
1602
|
const deserializeAws_restJson1RemoveNotificationChannelCommand = async (output, context) => {
|
|
2043
1603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2065,51 +1625,25 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
|
|
|
2065
1625
|
switch (errorCode) {
|
|
2066
1626
|
case "InternalServerException":
|
|
2067
1627
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
2068
|
-
|
|
2069
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2070
|
-
name: errorCode,
|
|
2071
|
-
$metadata: deserializeMetadata(output),
|
|
2072
|
-
};
|
|
2073
|
-
break;
|
|
1628
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2074
1629
|
case "ResourceNotFoundException":
|
|
2075
1630
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
2076
|
-
|
|
2077
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2078
|
-
name: errorCode,
|
|
2079
|
-
$metadata: deserializeMetadata(output),
|
|
2080
|
-
};
|
|
2081
|
-
break;
|
|
1631
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2082
1632
|
case "ThrottlingException":
|
|
2083
1633
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
2084
|
-
|
|
2085
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2086
|
-
name: errorCode,
|
|
2087
|
-
$metadata: deserializeMetadata(output),
|
|
2088
|
-
};
|
|
2089
|
-
break;
|
|
1634
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2090
1635
|
case "ValidationException":
|
|
2091
1636
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
2092
|
-
|
|
2093
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2094
|
-
name: errorCode,
|
|
2095
|
-
$metadata: deserializeMetadata(output),
|
|
2096
|
-
};
|
|
2097
|
-
break;
|
|
1637
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2098
1638
|
default:
|
|
2099
1639
|
const parsedBody = parsedOutput.body;
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
...parsedBody,
|
|
2103
|
-
name: `${errorCode}`,
|
|
2104
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1640
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1641
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2105
1642
|
$fault: "client",
|
|
2106
1643
|
$metadata: deserializeMetadata(output),
|
|
2107
|
-
};
|
|
1644
|
+
});
|
|
1645
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2108
1646
|
}
|
|
2109
|
-
const message = response.message || response.Message || errorCode;
|
|
2110
|
-
response.message = message;
|
|
2111
|
-
delete response.Message;
|
|
2112
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2113
1647
|
};
|
|
2114
1648
|
const deserializeAws_restJson1RemovePermissionCommand = async (output, context) => {
|
|
2115
1649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2141,59 +1675,28 @@ const deserializeAws_restJson1RemovePermissionCommandError = async (output, cont
|
|
|
2141
1675
|
switch (errorCode) {
|
|
2142
1676
|
case "ConflictException":
|
|
2143
1677
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
2144
|
-
|
|
2145
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2146
|
-
name: errorCode,
|
|
2147
|
-
$metadata: deserializeMetadata(output),
|
|
2148
|
-
};
|
|
2149
|
-
break;
|
|
1678
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2150
1679
|
case "InternalServerException":
|
|
2151
1680
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
2152
|
-
|
|
2153
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2154
|
-
name: errorCode,
|
|
2155
|
-
$metadata: deserializeMetadata(output),
|
|
2156
|
-
};
|
|
2157
|
-
break;
|
|
1681
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2158
1682
|
case "ResourceNotFoundException":
|
|
2159
1683
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
2160
|
-
|
|
2161
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2162
|
-
name: errorCode,
|
|
2163
|
-
$metadata: deserializeMetadata(output),
|
|
2164
|
-
};
|
|
2165
|
-
break;
|
|
1684
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2166
1685
|
case "ThrottlingException":
|
|
2167
1686
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
2168
|
-
|
|
2169
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2170
|
-
name: errorCode,
|
|
2171
|
-
$metadata: deserializeMetadata(output),
|
|
2172
|
-
};
|
|
2173
|
-
break;
|
|
1687
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2174
1688
|
case "ValidationException":
|
|
2175
1689
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
2176
|
-
|
|
2177
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2178
|
-
name: errorCode,
|
|
2179
|
-
$metadata: deserializeMetadata(output),
|
|
2180
|
-
};
|
|
2181
|
-
break;
|
|
1690
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2182
1691
|
default:
|
|
2183
1692
|
const parsedBody = parsedOutput.body;
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
...parsedBody,
|
|
2187
|
-
name: `${errorCode}`,
|
|
2188
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1693
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1694
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2189
1695
|
$fault: "client",
|
|
2190
1696
|
$metadata: deserializeMetadata(output),
|
|
2191
|
-
};
|
|
1697
|
+
});
|
|
1698
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2192
1699
|
}
|
|
2193
|
-
const message = response.message || response.Message || errorCode;
|
|
2194
|
-
response.message = message;
|
|
2195
|
-
delete response.Message;
|
|
2196
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2197
1700
|
};
|
|
2198
1701
|
const deserializeAws_restJson1SubmitFeedbackCommand = async (output, context) => {
|
|
2199
1702
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -2217,51 +1720,25 @@ const deserializeAws_restJson1SubmitFeedbackCommandError = async (output, contex
|
|
|
2217
1720
|
switch (errorCode) {
|
|
2218
1721
|
case "InternalServerException":
|
|
2219
1722
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
2220
|
-
|
|
2221
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2222
|
-
name: errorCode,
|
|
2223
|
-
$metadata: deserializeMetadata(output),
|
|
2224
|
-
};
|
|
2225
|
-
break;
|
|
1723
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2226
1724
|
case "ResourceNotFoundException":
|
|
2227
1725
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
2228
|
-
|
|
2229
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2230
|
-
name: errorCode,
|
|
2231
|
-
$metadata: deserializeMetadata(output),
|
|
2232
|
-
};
|
|
2233
|
-
break;
|
|
1726
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2234
1727
|
case "ThrottlingException":
|
|
2235
1728
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
2236
|
-
|
|
2237
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2238
|
-
name: errorCode,
|
|
2239
|
-
$metadata: deserializeMetadata(output),
|
|
2240
|
-
};
|
|
2241
|
-
break;
|
|
1729
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2242
1730
|
case "ValidationException":
|
|
2243
1731
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
2244
|
-
|
|
2245
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2246
|
-
name: errorCode,
|
|
2247
|
-
$metadata: deserializeMetadata(output),
|
|
2248
|
-
};
|
|
2249
|
-
break;
|
|
1732
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2250
1733
|
default:
|
|
2251
1734
|
const parsedBody = parsedOutput.body;
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
...parsedBody,
|
|
2255
|
-
name: `${errorCode}`,
|
|
2256
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1735
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1736
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2257
1737
|
$fault: "client",
|
|
2258
1738
|
$metadata: deserializeMetadata(output),
|
|
2259
|
-
};
|
|
1739
|
+
});
|
|
1740
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2260
1741
|
}
|
|
2261
|
-
const message = response.message || response.Message || errorCode;
|
|
2262
|
-
response.message = message;
|
|
2263
|
-
delete response.Message;
|
|
2264
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2265
1742
|
};
|
|
2266
1743
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2267
1744
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -2285,43 +1762,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2285
1762
|
switch (errorCode) {
|
|
2286
1763
|
case "InternalServerException":
|
|
2287
1764
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
2288
|
-
|
|
2289
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2290
|
-
name: errorCode,
|
|
2291
|
-
$metadata: deserializeMetadata(output),
|
|
2292
|
-
};
|
|
2293
|
-
break;
|
|
1765
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2294
1766
|
case "ResourceNotFoundException":
|
|
2295
1767
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
2296
|
-
|
|
2297
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2298
|
-
name: errorCode,
|
|
2299
|
-
$metadata: deserializeMetadata(output),
|
|
2300
|
-
};
|
|
2301
|
-
break;
|
|
1768
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2302
1769
|
case "ValidationException":
|
|
2303
1770
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
2304
|
-
|
|
2305
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2306
|
-
name: errorCode,
|
|
2307
|
-
$metadata: deserializeMetadata(output),
|
|
2308
|
-
};
|
|
2309
|
-
break;
|
|
1771
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2310
1772
|
default:
|
|
2311
1773
|
const parsedBody = parsedOutput.body;
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
...parsedBody,
|
|
2315
|
-
name: `${errorCode}`,
|
|
2316
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1774
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1775
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2317
1776
|
$fault: "client",
|
|
2318
1777
|
$metadata: deserializeMetadata(output),
|
|
2319
|
-
};
|
|
1778
|
+
});
|
|
1779
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2320
1780
|
}
|
|
2321
|
-
const message = response.message || response.Message || errorCode;
|
|
2322
|
-
response.message = message;
|
|
2323
|
-
delete response.Message;
|
|
2324
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2325
1781
|
};
|
|
2326
1782
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2327
1783
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -2345,43 +1801,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2345
1801
|
switch (errorCode) {
|
|
2346
1802
|
case "InternalServerException":
|
|
2347
1803
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
2348
|
-
|
|
2349
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2350
|
-
name: errorCode,
|
|
2351
|
-
$metadata: deserializeMetadata(output),
|
|
2352
|
-
};
|
|
2353
|
-
break;
|
|
1804
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2354
1805
|
case "ResourceNotFoundException":
|
|
2355
1806
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
2356
|
-
|
|
2357
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2358
|
-
name: errorCode,
|
|
2359
|
-
$metadata: deserializeMetadata(output),
|
|
2360
|
-
};
|
|
2361
|
-
break;
|
|
1807
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2362
1808
|
case "ValidationException":
|
|
2363
1809
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
2364
|
-
|
|
2365
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2366
|
-
name: errorCode,
|
|
2367
|
-
$metadata: deserializeMetadata(output),
|
|
2368
|
-
};
|
|
2369
|
-
break;
|
|
1810
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2370
1811
|
default:
|
|
2371
1812
|
const parsedBody = parsedOutput.body;
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
...parsedBody,
|
|
2375
|
-
name: `${errorCode}`,
|
|
2376
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1813
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1814
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2377
1815
|
$fault: "client",
|
|
2378
1816
|
$metadata: deserializeMetadata(output),
|
|
2379
|
-
};
|
|
1817
|
+
});
|
|
1818
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2380
1819
|
}
|
|
2381
|
-
const message = response.message || response.Message || errorCode;
|
|
2382
|
-
response.message = message;
|
|
2383
|
-
delete response.Message;
|
|
2384
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2385
1820
|
};
|
|
2386
1821
|
const deserializeAws_restJson1UpdateProfilingGroupCommand = async (output, context) => {
|
|
2387
1822
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2407,140 +1842,100 @@ const deserializeAws_restJson1UpdateProfilingGroupCommandError = async (output,
|
|
|
2407
1842
|
switch (errorCode) {
|
|
2408
1843
|
case "ConflictException":
|
|
2409
1844
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
2410
|
-
|
|
2411
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2412
|
-
name: errorCode,
|
|
2413
|
-
$metadata: deserializeMetadata(output),
|
|
2414
|
-
};
|
|
2415
|
-
break;
|
|
1845
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2416
1846
|
case "InternalServerException":
|
|
2417
1847
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
2418
|
-
|
|
2419
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2420
|
-
name: errorCode,
|
|
2421
|
-
$metadata: deserializeMetadata(output),
|
|
2422
|
-
};
|
|
2423
|
-
break;
|
|
1848
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2424
1849
|
case "ResourceNotFoundException":
|
|
2425
1850
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
2426
|
-
|
|
2427
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2428
|
-
name: errorCode,
|
|
2429
|
-
$metadata: deserializeMetadata(output),
|
|
2430
|
-
};
|
|
2431
|
-
break;
|
|
1851
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2432
1852
|
case "ThrottlingException":
|
|
2433
1853
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
2434
|
-
|
|
2435
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2436
|
-
name: errorCode,
|
|
2437
|
-
$metadata: deserializeMetadata(output),
|
|
2438
|
-
};
|
|
2439
|
-
break;
|
|
1854
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2440
1855
|
case "ValidationException":
|
|
2441
1856
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
2442
|
-
|
|
2443
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2444
|
-
name: errorCode,
|
|
2445
|
-
$metadata: deserializeMetadata(output),
|
|
2446
|
-
};
|
|
2447
|
-
break;
|
|
1857
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2448
1858
|
default:
|
|
2449
1859
|
const parsedBody = parsedOutput.body;
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
...parsedBody,
|
|
2453
|
-
name: `${errorCode}`,
|
|
2454
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1860
|
+
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1861
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2455
1862
|
$fault: "client",
|
|
2456
1863
|
$metadata: deserializeMetadata(output),
|
|
2457
|
-
};
|
|
1864
|
+
});
|
|
1865
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2458
1866
|
}
|
|
2459
|
-
const message = response.message || response.Message || errorCode;
|
|
2460
|
-
response.message = message;
|
|
2461
|
-
delete response.Message;
|
|
2462
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2463
1867
|
};
|
|
2464
1868
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2465
|
-
const contents = {
|
|
2466
|
-
name: "ConflictException",
|
|
2467
|
-
$fault: "client",
|
|
2468
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2469
|
-
message: undefined,
|
|
2470
|
-
};
|
|
1869
|
+
const contents = {};
|
|
2471
1870
|
const data = parsedOutput.body;
|
|
2472
1871
|
if (data.message !== undefined && data.message !== null) {
|
|
2473
1872
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2474
1873
|
}
|
|
2475
|
-
|
|
1874
|
+
const exception = new models_0_1.ConflictException({
|
|
1875
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1876
|
+
...contents,
|
|
1877
|
+
});
|
|
1878
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2476
1879
|
};
|
|
2477
1880
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2478
|
-
const contents = {
|
|
2479
|
-
name: "InternalServerException",
|
|
2480
|
-
$fault: "server",
|
|
2481
|
-
$retryable: {},
|
|
2482
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2483
|
-
message: undefined,
|
|
2484
|
-
};
|
|
1881
|
+
const contents = {};
|
|
2485
1882
|
const data = parsedOutput.body;
|
|
2486
1883
|
if (data.message !== undefined && data.message !== null) {
|
|
2487
1884
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2488
1885
|
}
|
|
2489
|
-
|
|
1886
|
+
const exception = new models_0_1.InternalServerException({
|
|
1887
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1888
|
+
...contents,
|
|
1889
|
+
});
|
|
1890
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2490
1891
|
};
|
|
2491
1892
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2492
|
-
const contents = {
|
|
2493
|
-
name: "ResourceNotFoundException",
|
|
2494
|
-
$fault: "client",
|
|
2495
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2496
|
-
message: undefined,
|
|
2497
|
-
};
|
|
1893
|
+
const contents = {};
|
|
2498
1894
|
const data = parsedOutput.body;
|
|
2499
1895
|
if (data.message !== undefined && data.message !== null) {
|
|
2500
1896
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2501
1897
|
}
|
|
2502
|
-
|
|
1898
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1899
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1900
|
+
...contents,
|
|
1901
|
+
});
|
|
1902
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2503
1903
|
};
|
|
2504
1904
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2505
|
-
const contents = {
|
|
2506
|
-
name: "ServiceQuotaExceededException",
|
|
2507
|
-
$fault: "client",
|
|
2508
|
-
$retryable: {},
|
|
2509
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2510
|
-
message: undefined,
|
|
2511
|
-
};
|
|
1905
|
+
const contents = {};
|
|
2512
1906
|
const data = parsedOutput.body;
|
|
2513
1907
|
if (data.message !== undefined && data.message !== null) {
|
|
2514
1908
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2515
1909
|
}
|
|
2516
|
-
|
|
1910
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1911
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1912
|
+
...contents,
|
|
1913
|
+
});
|
|
1914
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2517
1915
|
};
|
|
2518
1916
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2519
|
-
const contents = {
|
|
2520
|
-
name: "ThrottlingException",
|
|
2521
|
-
$fault: "client",
|
|
2522
|
-
$retryable: {},
|
|
2523
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2524
|
-
message: undefined,
|
|
2525
|
-
};
|
|
1917
|
+
const contents = {};
|
|
2526
1918
|
const data = parsedOutput.body;
|
|
2527
1919
|
if (data.message !== undefined && data.message !== null) {
|
|
2528
1920
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2529
1921
|
}
|
|
2530
|
-
|
|
1922
|
+
const exception = new models_0_1.ThrottlingException({
|
|
1923
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1924
|
+
...contents,
|
|
1925
|
+
});
|
|
1926
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2531
1927
|
};
|
|
2532
1928
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2533
|
-
const contents = {
|
|
2534
|
-
name: "ValidationException",
|
|
2535
|
-
$fault: "client",
|
|
2536
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2537
|
-
message: undefined,
|
|
2538
|
-
};
|
|
1929
|
+
const contents = {};
|
|
2539
1930
|
const data = parsedOutput.body;
|
|
2540
1931
|
if (data.message !== undefined && data.message !== null) {
|
|
2541
1932
|
contents.message = smithy_client_1.expectString(data.message);
|
|
2542
1933
|
}
|
|
2543
|
-
|
|
1934
|
+
const exception = new models_0_1.ValidationException({
|
|
1935
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1936
|
+
...contents,
|
|
1937
|
+
});
|
|
1938
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2544
1939
|
};
|
|
2545
1940
|
const serializeAws_restJson1AgentOrchestrationConfig = (input, context) => {
|
|
2546
1941
|
return {
|
|
@@ -2672,7 +2067,7 @@ const deserializeAws_restJson1AggregatedProfileTime = (output, context) => {
|
|
|
2672
2067
|
};
|
|
2673
2068
|
};
|
|
2674
2069
|
const deserializeAws_restJson1Anomalies = (output, context) => {
|
|
2675
|
-
|
|
2070
|
+
const retVal = (output || [])
|
|
2676
2071
|
.filter((e) => e != null)
|
|
2677
2072
|
.map((entry) => {
|
|
2678
2073
|
if (entry === null) {
|
|
@@ -2680,6 +2075,7 @@ const deserializeAws_restJson1Anomalies = (output, context) => {
|
|
|
2680
2075
|
}
|
|
2681
2076
|
return deserializeAws_restJson1Anomaly(entry, context);
|
|
2682
2077
|
});
|
|
2078
|
+
return retVal;
|
|
2683
2079
|
};
|
|
2684
2080
|
const deserializeAws_restJson1Anomaly = (output, context) => {
|
|
2685
2081
|
return {
|
|
@@ -2707,7 +2103,7 @@ const deserializeAws_restJson1AnomalyInstance = (output, context) => {
|
|
|
2707
2103
|
};
|
|
2708
2104
|
};
|
|
2709
2105
|
const deserializeAws_restJson1AnomalyInstances = (output, context) => {
|
|
2710
|
-
|
|
2106
|
+
const retVal = (output || [])
|
|
2711
2107
|
.filter((e) => e != null)
|
|
2712
2108
|
.map((entry) => {
|
|
2713
2109
|
if (entry === null) {
|
|
@@ -2715,6 +2111,7 @@ const deserializeAws_restJson1AnomalyInstances = (output, context) => {
|
|
|
2715
2111
|
}
|
|
2716
2112
|
return deserializeAws_restJson1AnomalyInstance(entry, context);
|
|
2717
2113
|
});
|
|
2114
|
+
return retVal;
|
|
2718
2115
|
};
|
|
2719
2116
|
const deserializeAws_restJson1Channel = (output, context) => {
|
|
2720
2117
|
return {
|
|
@@ -2726,43 +2123,29 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
2726
2123
|
};
|
|
2727
2124
|
};
|
|
2728
2125
|
const deserializeAws_restJson1Channels = (output, context) => {
|
|
2729
|
-
const
|
|
2730
|
-
return (output || [])
|
|
2126
|
+
const retVal = (output || [])
|
|
2731
2127
|
.filter((e) => e != null)
|
|
2732
2128
|
.map((entry) => {
|
|
2733
2129
|
if (entry === null) {
|
|
2734
2130
|
return null;
|
|
2735
2131
|
}
|
|
2736
|
-
|
|
2737
|
-
if (uniqueValues.has(parsedEntry)) {
|
|
2738
|
-
throw new TypeError('All elements of the set "com.amazonaws.codeguruprofiler#Channels" must be unique.');
|
|
2739
|
-
}
|
|
2740
|
-
else {
|
|
2741
|
-
uniqueValues.add(parsedEntry);
|
|
2742
|
-
return parsedEntry;
|
|
2743
|
-
}
|
|
2132
|
+
return deserializeAws_restJson1Channel(entry, context);
|
|
2744
2133
|
});
|
|
2134
|
+
return retVal;
|
|
2745
2135
|
};
|
|
2746
2136
|
const deserializeAws_restJson1EventPublishers = (output, context) => {
|
|
2747
|
-
const
|
|
2748
|
-
return (output || [])
|
|
2137
|
+
const retVal = (output || [])
|
|
2749
2138
|
.filter((e) => e != null)
|
|
2750
2139
|
.map((entry) => {
|
|
2751
2140
|
if (entry === null) {
|
|
2752
2141
|
return null;
|
|
2753
2142
|
}
|
|
2754
|
-
|
|
2755
|
-
if (uniqueValues.has(parsedEntry)) {
|
|
2756
|
-
throw new TypeError('All elements of the set "com.amazonaws.codeguruprofiler#EventPublishers" must be unique.');
|
|
2757
|
-
}
|
|
2758
|
-
else {
|
|
2759
|
-
uniqueValues.add(parsedEntry);
|
|
2760
|
-
return parsedEntry;
|
|
2761
|
-
}
|
|
2143
|
+
return smithy_client_1.expectString(entry);
|
|
2762
2144
|
});
|
|
2145
|
+
return retVal;
|
|
2763
2146
|
};
|
|
2764
2147
|
const deserializeAws_restJson1FindingsReportSummaries = (output, context) => {
|
|
2765
|
-
|
|
2148
|
+
const retVal = (output || [])
|
|
2766
2149
|
.filter((e) => e != null)
|
|
2767
2150
|
.map((entry) => {
|
|
2768
2151
|
if (entry === null) {
|
|
@@ -2770,6 +2153,7 @@ const deserializeAws_restJson1FindingsReportSummaries = (output, context) => {
|
|
|
2770
2153
|
}
|
|
2771
2154
|
return deserializeAws_restJson1FindingsReportSummary(entry, context);
|
|
2772
2155
|
});
|
|
2156
|
+
return retVal;
|
|
2773
2157
|
};
|
|
2774
2158
|
const deserializeAws_restJson1FindingsReportSummary = (output, context) => {
|
|
2775
2159
|
return {
|
|
@@ -2794,7 +2178,7 @@ const deserializeAws_restJson1FrameMetric = (output, context) => {
|
|
|
2794
2178
|
};
|
|
2795
2179
|
};
|
|
2796
2180
|
const deserializeAws_restJson1FrameMetricData = (output, context) => {
|
|
2797
|
-
|
|
2181
|
+
const retVal = (output || [])
|
|
2798
2182
|
.filter((e) => e != null)
|
|
2799
2183
|
.map((entry) => {
|
|
2800
2184
|
if (entry === null) {
|
|
@@ -2802,6 +2186,7 @@ const deserializeAws_restJson1FrameMetricData = (output, context) => {
|
|
|
2802
2186
|
}
|
|
2803
2187
|
return deserializeAws_restJson1FrameMetricDatum(entry, context);
|
|
2804
2188
|
});
|
|
2189
|
+
return retVal;
|
|
2805
2190
|
};
|
|
2806
2191
|
const deserializeAws_restJson1FrameMetricDatum = (output, context) => {
|
|
2807
2192
|
return {
|
|
@@ -2814,7 +2199,7 @@ const deserializeAws_restJson1FrameMetricDatum = (output, context) => {
|
|
|
2814
2199
|
};
|
|
2815
2200
|
};
|
|
2816
2201
|
const deserializeAws_restJson1FrameMetricValues = (output, context) => {
|
|
2817
|
-
|
|
2202
|
+
const retVal = (output || [])
|
|
2818
2203
|
.filter((e) => e != null)
|
|
2819
2204
|
.map((entry) => {
|
|
2820
2205
|
if (entry === null) {
|
|
@@ -2822,9 +2207,10 @@ const deserializeAws_restJson1FrameMetricValues = (output, context) => {
|
|
|
2822
2207
|
}
|
|
2823
2208
|
return smithy_client_1.limitedParseDouble(entry);
|
|
2824
2209
|
});
|
|
2210
|
+
return retVal;
|
|
2825
2211
|
};
|
|
2826
2212
|
const deserializeAws_restJson1ListOfTimestamps = (output, context) => {
|
|
2827
|
-
|
|
2213
|
+
const retVal = (output || [])
|
|
2828
2214
|
.filter((e) => e != null)
|
|
2829
2215
|
.map((entry) => {
|
|
2830
2216
|
if (entry === null) {
|
|
@@ -2832,6 +2218,7 @@ const deserializeAws_restJson1ListOfTimestamps = (output, context) => {
|
|
|
2832
2218
|
}
|
|
2833
2219
|
return deserializeAws_restJson1TimestampStructure(entry, context);
|
|
2834
2220
|
});
|
|
2221
|
+
return retVal;
|
|
2835
2222
|
};
|
|
2836
2223
|
const deserializeAws_restJson1Match = (output, context) => {
|
|
2837
2224
|
return {
|
|
@@ -2841,7 +2228,7 @@ const deserializeAws_restJson1Match = (output, context) => {
|
|
|
2841
2228
|
};
|
|
2842
2229
|
};
|
|
2843
2230
|
const deserializeAws_restJson1Matches = (output, context) => {
|
|
2844
|
-
|
|
2231
|
+
const retVal = (output || [])
|
|
2845
2232
|
.filter((e) => e != null)
|
|
2846
2233
|
.map((entry) => {
|
|
2847
2234
|
if (entry === null) {
|
|
@@ -2849,6 +2236,7 @@ const deserializeAws_restJson1Matches = (output, context) => {
|
|
|
2849
2236
|
}
|
|
2850
2237
|
return deserializeAws_restJson1Match(entry, context);
|
|
2851
2238
|
});
|
|
2239
|
+
return retVal;
|
|
2852
2240
|
};
|
|
2853
2241
|
const deserializeAws_restJson1Metric = (output, context) => {
|
|
2854
2242
|
return {
|
|
@@ -2889,7 +2277,7 @@ const deserializeAws_restJson1ProfileTime = (output, context) => {
|
|
|
2889
2277
|
};
|
|
2890
2278
|
};
|
|
2891
2279
|
const deserializeAws_restJson1ProfileTimes = (output, context) => {
|
|
2892
|
-
|
|
2280
|
+
const retVal = (output || [])
|
|
2893
2281
|
.filter((e) => e != null)
|
|
2894
2282
|
.map((entry) => {
|
|
2895
2283
|
if (entry === null) {
|
|
@@ -2897,6 +2285,7 @@ const deserializeAws_restJson1ProfileTimes = (output, context) => {
|
|
|
2897
2285
|
}
|
|
2898
2286
|
return deserializeAws_restJson1ProfileTime(entry, context);
|
|
2899
2287
|
});
|
|
2288
|
+
return retVal;
|
|
2900
2289
|
};
|
|
2901
2290
|
const deserializeAws_restJson1ProfilingGroupDescription = (output, context) => {
|
|
2902
2291
|
return {
|
|
@@ -2921,7 +2310,7 @@ const deserializeAws_restJson1ProfilingGroupDescription = (output, context) => {
|
|
|
2921
2310
|
};
|
|
2922
2311
|
};
|
|
2923
2312
|
const deserializeAws_restJson1ProfilingGroupDescriptions = (output, context) => {
|
|
2924
|
-
|
|
2313
|
+
const retVal = (output || [])
|
|
2925
2314
|
.filter((e) => e != null)
|
|
2926
2315
|
.map((entry) => {
|
|
2927
2316
|
if (entry === null) {
|
|
@@ -2929,9 +2318,10 @@ const deserializeAws_restJson1ProfilingGroupDescriptions = (output, context) =>
|
|
|
2929
2318
|
}
|
|
2930
2319
|
return deserializeAws_restJson1ProfilingGroupDescription(entry, context);
|
|
2931
2320
|
});
|
|
2321
|
+
return retVal;
|
|
2932
2322
|
};
|
|
2933
2323
|
const deserializeAws_restJson1ProfilingGroupNames = (output, context) => {
|
|
2934
|
-
|
|
2324
|
+
const retVal = (output || [])
|
|
2935
2325
|
.filter((e) => e != null)
|
|
2936
2326
|
.map((entry) => {
|
|
2937
2327
|
if (entry === null) {
|
|
@@ -2939,6 +2329,7 @@ const deserializeAws_restJson1ProfilingGroupNames = (output, context) => {
|
|
|
2939
2329
|
}
|
|
2940
2330
|
return smithy_client_1.expectString(entry);
|
|
2941
2331
|
});
|
|
2332
|
+
return retVal;
|
|
2942
2333
|
};
|
|
2943
2334
|
const deserializeAws_restJson1ProfilingStatus = (output, context) => {
|
|
2944
2335
|
return {
|
|
@@ -2972,7 +2363,7 @@ const deserializeAws_restJson1Recommendation = (output, context) => {
|
|
|
2972
2363
|
};
|
|
2973
2364
|
};
|
|
2974
2365
|
const deserializeAws_restJson1Recommendations = (output, context) => {
|
|
2975
|
-
|
|
2366
|
+
const retVal = (output || [])
|
|
2976
2367
|
.filter((e) => e != null)
|
|
2977
2368
|
.map((entry) => {
|
|
2978
2369
|
if (entry === null) {
|
|
@@ -2980,9 +2371,10 @@ const deserializeAws_restJson1Recommendations = (output, context) => {
|
|
|
2980
2371
|
}
|
|
2981
2372
|
return deserializeAws_restJson1Recommendation(entry, context);
|
|
2982
2373
|
});
|
|
2374
|
+
return retVal;
|
|
2983
2375
|
};
|
|
2984
2376
|
const deserializeAws_restJson1Strings = (output, context) => {
|
|
2985
|
-
|
|
2377
|
+
const retVal = (output || [])
|
|
2986
2378
|
.filter((e) => e != null)
|
|
2987
2379
|
.map((entry) => {
|
|
2988
2380
|
if (entry === null) {
|
|
@@ -2990,6 +2382,7 @@ const deserializeAws_restJson1Strings = (output, context) => {
|
|
|
2990
2382
|
}
|
|
2991
2383
|
return smithy_client_1.expectString(entry);
|
|
2992
2384
|
});
|
|
2385
|
+
return retVal;
|
|
2993
2386
|
};
|
|
2994
2387
|
const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
2995
2388
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3003,7 +2396,7 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
|
3003
2396
|
}, {});
|
|
3004
2397
|
};
|
|
3005
2398
|
const deserializeAws_restJson1TargetFrame = (output, context) => {
|
|
3006
|
-
|
|
2399
|
+
const retVal = (output || [])
|
|
3007
2400
|
.filter((e) => e != null)
|
|
3008
2401
|
.map((entry) => {
|
|
3009
2402
|
if (entry === null) {
|
|
@@ -3011,9 +2404,10 @@ const deserializeAws_restJson1TargetFrame = (output, context) => {
|
|
|
3011
2404
|
}
|
|
3012
2405
|
return smithy_client_1.expectString(entry);
|
|
3013
2406
|
});
|
|
2407
|
+
return retVal;
|
|
3014
2408
|
};
|
|
3015
2409
|
const deserializeAws_restJson1TargetFrames = (output, context) => {
|
|
3016
|
-
|
|
2410
|
+
const retVal = (output || [])
|
|
3017
2411
|
.filter((e) => e != null)
|
|
3018
2412
|
.map((entry) => {
|
|
3019
2413
|
if (entry === null) {
|
|
@@ -3021,9 +2415,10 @@ const deserializeAws_restJson1TargetFrames = (output, context) => {
|
|
|
3021
2415
|
}
|
|
3022
2416
|
return deserializeAws_restJson1TargetFrame(entry, context);
|
|
3023
2417
|
});
|
|
2418
|
+
return retVal;
|
|
3024
2419
|
};
|
|
3025
2420
|
const deserializeAws_restJson1ThreadStates = (output, context) => {
|
|
3026
|
-
|
|
2421
|
+
const retVal = (output || [])
|
|
3027
2422
|
.filter((e) => e != null)
|
|
3028
2423
|
.map((entry) => {
|
|
3029
2424
|
if (entry === null) {
|
|
@@ -3031,6 +2426,7 @@ const deserializeAws_restJson1ThreadStates = (output, context) => {
|
|
|
3031
2426
|
}
|
|
3032
2427
|
return smithy_client_1.expectString(entry);
|
|
3033
2428
|
});
|
|
2429
|
+
return retVal;
|
|
3034
2430
|
};
|
|
3035
2431
|
const deserializeAws_restJson1TimestampStructure = (output, context) => {
|
|
3036
2432
|
return {
|