@aws-sdk/client-codeguruprofiler 3.118.1 → 3.128.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/protocols/Aws_restJson1.js +171 -205
- package/dist-es/protocols/Aws_restJson1.js +163 -197
- package/package.json +26 -26
|
@@ -24,8 +24,7 @@ const serializeAws_restJson1AddNotificationChannelsCommand = async (input, conte
|
|
|
24
24
|
}
|
|
25
25
|
let body;
|
|
26
26
|
body = JSON.stringify({
|
|
27
|
-
...(input.channels
|
|
28
|
-
input.channels !== null && { channels: serializeAws_restJson1Channels(input.channels, context) }),
|
|
27
|
+
...(input.channels != null && { channels: serializeAws_restJson1Channels(input.channels, context) }),
|
|
29
28
|
});
|
|
30
29
|
return new protocol_http_1.HttpRequest({
|
|
31
30
|
protocol,
|
|
@@ -63,8 +62,9 @@ const serializeAws_restJson1BatchGetFrameMetricDataCommand = async (input, conte
|
|
|
63
62
|
};
|
|
64
63
|
let body;
|
|
65
64
|
body = JSON.stringify({
|
|
66
|
-
...(input.frameMetrics
|
|
67
|
-
|
|
65
|
+
...(input.frameMetrics != null && {
|
|
66
|
+
frameMetrics: serializeAws_restJson1FrameMetrics(input.frameMetrics, context),
|
|
67
|
+
}),
|
|
68
68
|
});
|
|
69
69
|
return new protocol_http_1.HttpRequest({
|
|
70
70
|
protocol,
|
|
@@ -97,10 +97,8 @@ const serializeAws_restJson1ConfigureAgentCommand = async (input, context) => {
|
|
|
97
97
|
}
|
|
98
98
|
let body;
|
|
99
99
|
body = JSON.stringify({
|
|
100
|
-
...(input.fleetInstanceId
|
|
101
|
-
|
|
102
|
-
...(input.metadata !== undefined &&
|
|
103
|
-
input.metadata !== null && { metadata: serializeAws_restJson1Metadata(input.metadata, context) }),
|
|
100
|
+
...(input.fleetInstanceId != null && { fleetInstanceId: input.fleetInstanceId }),
|
|
101
|
+
...(input.metadata != null && { metadata: serializeAws_restJson1Metadata(input.metadata, context) }),
|
|
104
102
|
});
|
|
105
103
|
return new protocol_http_1.HttpRequest({
|
|
106
104
|
protocol,
|
|
@@ -124,16 +122,12 @@ const serializeAws_restJson1CreateProfilingGroupCommand = async (input, context)
|
|
|
124
122
|
};
|
|
125
123
|
let body;
|
|
126
124
|
body = JSON.stringify({
|
|
127
|
-
...(input.agentOrchestrationConfig
|
|
128
|
-
input.agentOrchestrationConfig !== null && {
|
|
125
|
+
...(input.agentOrchestrationConfig != null && {
|
|
129
126
|
agentOrchestrationConfig: serializeAws_restJson1AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
|
|
130
127
|
}),
|
|
131
|
-
...(input.computePlatform
|
|
132
|
-
|
|
133
|
-
...(input.
|
|
134
|
-
input.profilingGroupName !== null && { profilingGroupName: input.profilingGroupName }),
|
|
135
|
-
...(input.tags !== undefined &&
|
|
136
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
128
|
+
...(input.computePlatform != null && { computePlatform: input.computePlatform }),
|
|
129
|
+
...(input.profilingGroupName != null && { profilingGroupName: input.profilingGroupName }),
|
|
130
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
137
131
|
});
|
|
138
132
|
return new protocol_http_1.HttpRequest({
|
|
139
133
|
protocol,
|
|
@@ -529,9 +523,8 @@ const serializeAws_restJson1PutPermissionCommand = async (input, context) => {
|
|
|
529
523
|
}
|
|
530
524
|
let body;
|
|
531
525
|
body = JSON.stringify({
|
|
532
|
-
...(input.principals
|
|
533
|
-
|
|
534
|
-
...(input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }),
|
|
526
|
+
...(input.principals != null && { principals: serializeAws_restJson1Principals(input.principals, context) }),
|
|
527
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
535
528
|
});
|
|
536
529
|
return new protocol_http_1.HttpRequest({
|
|
537
530
|
protocol,
|
|
@@ -651,8 +644,8 @@ const serializeAws_restJson1SubmitFeedbackCommand = async (input, context) => {
|
|
|
651
644
|
}
|
|
652
645
|
let body;
|
|
653
646
|
body = JSON.stringify({
|
|
654
|
-
...(input.comment
|
|
655
|
-
...(input.type
|
|
647
|
+
...(input.comment != null && { comment: input.comment }),
|
|
648
|
+
...(input.type != null && { type: input.type }),
|
|
656
649
|
});
|
|
657
650
|
return new protocol_http_1.HttpRequest({
|
|
658
651
|
protocol,
|
|
@@ -683,8 +676,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
683
676
|
}
|
|
684
677
|
let body;
|
|
685
678
|
body = JSON.stringify({
|
|
686
|
-
...(input.tags
|
|
687
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
679
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
688
680
|
});
|
|
689
681
|
return new protocol_http_1.HttpRequest({
|
|
690
682
|
protocol,
|
|
@@ -745,8 +737,7 @@ const serializeAws_restJson1UpdateProfilingGroupCommand = async (input, context)
|
|
|
745
737
|
}
|
|
746
738
|
let body;
|
|
747
739
|
body = JSON.stringify({
|
|
748
|
-
...(input.agentOrchestrationConfig
|
|
749
|
-
input.agentOrchestrationConfig !== null && {
|
|
740
|
+
...(input.agentOrchestrationConfig != null && {
|
|
750
741
|
agentOrchestrationConfig: serializeAws_restJson1AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
|
|
751
742
|
}),
|
|
752
743
|
});
|
|
@@ -782,8 +773,7 @@ const deserializeAws_restJson1AddNotificationChannelsCommandError = async (outpu
|
|
|
782
773
|
body: await parseBody(output.body, context),
|
|
783
774
|
};
|
|
784
775
|
let response;
|
|
785
|
-
|
|
786
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
787
777
|
switch (errorCode) {
|
|
788
778
|
case "ConflictException":
|
|
789
779
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
@@ -805,10 +795,12 @@ const deserializeAws_restJson1AddNotificationChannelsCommandError = async (outpu
|
|
|
805
795
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
806
796
|
default:
|
|
807
797
|
const parsedBody = parsedOutput.body;
|
|
798
|
+
const $metadata = deserializeMetadata(output);
|
|
799
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
808
800
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
809
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
810
802
|
$fault: "client",
|
|
811
|
-
$metadata
|
|
803
|
+
$metadata,
|
|
812
804
|
});
|
|
813
805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
814
806
|
}
|
|
@@ -854,8 +846,7 @@ const deserializeAws_restJson1BatchGetFrameMetricDataCommandError = async (outpu
|
|
|
854
846
|
body: await parseBody(output.body, context),
|
|
855
847
|
};
|
|
856
848
|
let response;
|
|
857
|
-
|
|
858
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
850
|
switch (errorCode) {
|
|
860
851
|
case "InternalServerException":
|
|
861
852
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -871,10 +862,12 @@ const deserializeAws_restJson1BatchGetFrameMetricDataCommandError = async (outpu
|
|
|
871
862
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
872
863
|
default:
|
|
873
864
|
const parsedBody = parsedOutput.body;
|
|
865
|
+
const $metadata = deserializeMetadata(output);
|
|
866
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
874
867
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
875
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
868
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
876
869
|
$fault: "client",
|
|
877
|
-
$metadata
|
|
870
|
+
$metadata,
|
|
878
871
|
});
|
|
879
872
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
880
873
|
}
|
|
@@ -898,8 +891,7 @@ const deserializeAws_restJson1ConfigureAgentCommandError = async (output, contex
|
|
|
898
891
|
body: await parseBody(output.body, context),
|
|
899
892
|
};
|
|
900
893
|
let response;
|
|
901
|
-
|
|
902
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
903
895
|
switch (errorCode) {
|
|
904
896
|
case "InternalServerException":
|
|
905
897
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -915,10 +907,12 @@ const deserializeAws_restJson1ConfigureAgentCommandError = async (output, contex
|
|
|
915
907
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
916
908
|
default:
|
|
917
909
|
const parsedBody = parsedOutput.body;
|
|
910
|
+
const $metadata = deserializeMetadata(output);
|
|
911
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
918
912
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
919
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
913
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
920
914
|
$fault: "client",
|
|
921
|
-
$metadata
|
|
915
|
+
$metadata,
|
|
922
916
|
});
|
|
923
917
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
924
918
|
}
|
|
@@ -942,8 +936,7 @@ const deserializeAws_restJson1CreateProfilingGroupCommandError = async (output,
|
|
|
942
936
|
body: await parseBody(output.body, context),
|
|
943
937
|
};
|
|
944
938
|
let response;
|
|
945
|
-
|
|
946
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
940
|
switch (errorCode) {
|
|
948
941
|
case "ConflictException":
|
|
949
942
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
@@ -962,10 +955,12 @@ const deserializeAws_restJson1CreateProfilingGroupCommandError = async (output,
|
|
|
962
955
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
963
956
|
default:
|
|
964
957
|
const parsedBody = parsedOutput.body;
|
|
958
|
+
const $metadata = deserializeMetadata(output);
|
|
959
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
965
960
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
966
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
961
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
967
962
|
$fault: "client",
|
|
968
|
-
$metadata
|
|
963
|
+
$metadata,
|
|
969
964
|
});
|
|
970
965
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
971
966
|
}
|
|
@@ -987,8 +982,7 @@ const deserializeAws_restJson1DeleteProfilingGroupCommandError = async (output,
|
|
|
987
982
|
body: await parseBody(output.body, context),
|
|
988
983
|
};
|
|
989
984
|
let response;
|
|
990
|
-
|
|
991
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
986
|
switch (errorCode) {
|
|
993
987
|
case "ConflictException":
|
|
994
988
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
@@ -1007,10 +1001,12 @@ const deserializeAws_restJson1DeleteProfilingGroupCommandError = async (output,
|
|
|
1007
1001
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1008
1002
|
default:
|
|
1009
1003
|
const parsedBody = parsedOutput.body;
|
|
1004
|
+
const $metadata = deserializeMetadata(output);
|
|
1005
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1010
1006
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1011
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1007
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1012
1008
|
$fault: "client",
|
|
1013
|
-
$metadata
|
|
1009
|
+
$metadata,
|
|
1014
1010
|
});
|
|
1015
1011
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1016
1012
|
}
|
|
@@ -1034,8 +1030,7 @@ const deserializeAws_restJson1DescribeProfilingGroupCommandError = async (output
|
|
|
1034
1030
|
body: await parseBody(output.body, context),
|
|
1035
1031
|
};
|
|
1036
1032
|
let response;
|
|
1037
|
-
|
|
1038
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
1034
|
switch (errorCode) {
|
|
1040
1035
|
case "InternalServerException":
|
|
1041
1036
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1051,10 +1046,12 @@ const deserializeAws_restJson1DescribeProfilingGroupCommandError = async (output
|
|
|
1051
1046
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1052
1047
|
default:
|
|
1053
1048
|
const parsedBody = parsedOutput.body;
|
|
1049
|
+
const $metadata = deserializeMetadata(output);
|
|
1050
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1054
1051
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1055
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1052
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1056
1053
|
$fault: "client",
|
|
1057
|
-
$metadata
|
|
1054
|
+
$metadata,
|
|
1058
1055
|
});
|
|
1059
1056
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1060
1057
|
}
|
|
@@ -1084,8 +1081,7 @@ const deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = asyn
|
|
|
1084
1081
|
body: await parseBody(output.body, context),
|
|
1085
1082
|
};
|
|
1086
1083
|
let response;
|
|
1087
|
-
|
|
1088
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
1085
|
switch (errorCode) {
|
|
1090
1086
|
case "InternalServerException":
|
|
1091
1087
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1098,10 +1094,12 @@ const deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = asyn
|
|
|
1098
1094
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1099
1095
|
default:
|
|
1100
1096
|
const parsedBody = parsedOutput.body;
|
|
1097
|
+
const $metadata = deserializeMetadata(output);
|
|
1098
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1101
1099
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1102
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1100
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1103
1101
|
$fault: "client",
|
|
1104
|
-
$metadata
|
|
1102
|
+
$metadata,
|
|
1105
1103
|
});
|
|
1106
1104
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1107
1105
|
}
|
|
@@ -1127,8 +1125,7 @@ const deserializeAws_restJson1GetNotificationConfigurationCommandError = async (
|
|
|
1127
1125
|
body: await parseBody(output.body, context),
|
|
1128
1126
|
};
|
|
1129
1127
|
let response;
|
|
1130
|
-
|
|
1131
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1132
1129
|
switch (errorCode) {
|
|
1133
1130
|
case "InternalServerException":
|
|
1134
1131
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1144,10 +1141,12 @@ const deserializeAws_restJson1GetNotificationConfigurationCommandError = async (
|
|
|
1144
1141
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1145
1142
|
default:
|
|
1146
1143
|
const parsedBody = parsedOutput.body;
|
|
1144
|
+
const $metadata = deserializeMetadata(output);
|
|
1145
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1147
1146
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1148
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1147
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1149
1148
|
$fault: "client",
|
|
1150
|
-
$metadata
|
|
1149
|
+
$metadata,
|
|
1151
1150
|
});
|
|
1152
1151
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1153
1152
|
}
|
|
@@ -1177,8 +1176,7 @@ const deserializeAws_restJson1GetPolicyCommandError = async (output, context) =>
|
|
|
1177
1176
|
body: await parseBody(output.body, context),
|
|
1178
1177
|
};
|
|
1179
1178
|
let response;
|
|
1180
|
-
|
|
1181
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1182
1180
|
switch (errorCode) {
|
|
1183
1181
|
case "InternalServerException":
|
|
1184
1182
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1191,10 +1189,12 @@ const deserializeAws_restJson1GetPolicyCommandError = async (output, context) =>
|
|
|
1191
1189
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1192
1190
|
default:
|
|
1193
1191
|
const parsedBody = parsedOutput.body;
|
|
1192
|
+
const $metadata = deserializeMetadata(output);
|
|
1193
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1194
1194
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1195
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1195
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1196
1196
|
$fault: "client",
|
|
1197
|
-
$metadata
|
|
1197
|
+
$metadata,
|
|
1198
1198
|
});
|
|
1199
1199
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1200
1200
|
}
|
|
@@ -1226,8 +1226,7 @@ const deserializeAws_restJson1GetProfileCommandError = async (output, context) =
|
|
|
1226
1226
|
body: await parseBody(output.body, context),
|
|
1227
1227
|
};
|
|
1228
1228
|
let response;
|
|
1229
|
-
|
|
1230
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
1230
|
switch (errorCode) {
|
|
1232
1231
|
case "InternalServerException":
|
|
1233
1232
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1243,10 +1242,12 @@ const deserializeAws_restJson1GetProfileCommandError = async (output, context) =
|
|
|
1243
1242
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1244
1243
|
default:
|
|
1245
1244
|
const parsedBody = parsedOutput.body;
|
|
1245
|
+
const $metadata = deserializeMetadata(output);
|
|
1246
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1246
1247
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1247
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1248
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1248
1249
|
$fault: "client",
|
|
1249
|
-
$metadata
|
|
1250
|
+
$metadata,
|
|
1250
1251
|
});
|
|
1251
1252
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1252
1253
|
}
|
|
@@ -1288,8 +1289,7 @@ const deserializeAws_restJson1GetRecommendationsCommandError = async (output, co
|
|
|
1288
1289
|
body: await parseBody(output.body, context),
|
|
1289
1290
|
};
|
|
1290
1291
|
let response;
|
|
1291
|
-
|
|
1292
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
1293
|
switch (errorCode) {
|
|
1294
1294
|
case "InternalServerException":
|
|
1295
1295
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1305,10 +1305,12 @@ const deserializeAws_restJson1GetRecommendationsCommandError = async (output, co
|
|
|
1305
1305
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1306
1306
|
default:
|
|
1307
1307
|
const parsedBody = parsedOutput.body;
|
|
1308
|
+
const $metadata = deserializeMetadata(output);
|
|
1309
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1308
1310
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1309
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1311
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1310
1312
|
$fault: "client",
|
|
1311
|
-
$metadata
|
|
1313
|
+
$metadata,
|
|
1312
1314
|
});
|
|
1313
1315
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1314
1316
|
}
|
|
@@ -1338,8 +1340,7 @@ const deserializeAws_restJson1ListFindingsReportsCommandError = async (output, c
|
|
|
1338
1340
|
body: await parseBody(output.body, context),
|
|
1339
1341
|
};
|
|
1340
1342
|
let response;
|
|
1341
|
-
|
|
1342
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
1344
|
switch (errorCode) {
|
|
1344
1345
|
case "InternalServerException":
|
|
1345
1346
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1355,10 +1356,12 @@ const deserializeAws_restJson1ListFindingsReportsCommandError = async (output, c
|
|
|
1355
1356
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1356
1357
|
default:
|
|
1357
1358
|
const parsedBody = parsedOutput.body;
|
|
1359
|
+
const $metadata = deserializeMetadata(output);
|
|
1360
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1358
1361
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1359
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1360
1363
|
$fault: "client",
|
|
1361
|
-
$metadata
|
|
1364
|
+
$metadata,
|
|
1362
1365
|
});
|
|
1363
1366
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1364
1367
|
}
|
|
@@ -1388,8 +1391,7 @@ const deserializeAws_restJson1ListProfileTimesCommandError = async (output, cont
|
|
|
1388
1391
|
body: await parseBody(output.body, context),
|
|
1389
1392
|
};
|
|
1390
1393
|
let response;
|
|
1391
|
-
|
|
1392
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1393
1395
|
switch (errorCode) {
|
|
1394
1396
|
case "InternalServerException":
|
|
1395
1397
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1405,10 +1407,12 @@ const deserializeAws_restJson1ListProfileTimesCommandError = async (output, cont
|
|
|
1405
1407
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1406
1408
|
default:
|
|
1407
1409
|
const parsedBody = parsedOutput.body;
|
|
1410
|
+
const $metadata = deserializeMetadata(output);
|
|
1411
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1408
1412
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1409
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1413
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1410
1414
|
$fault: "client",
|
|
1411
|
-
$metadata
|
|
1415
|
+
$metadata,
|
|
1412
1416
|
});
|
|
1413
1417
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1414
1418
|
}
|
|
@@ -1442,8 +1446,7 @@ const deserializeAws_restJson1ListProfilingGroupsCommandError = async (output, c
|
|
|
1442
1446
|
body: await parseBody(output.body, context),
|
|
1443
1447
|
};
|
|
1444
1448
|
let response;
|
|
1445
|
-
|
|
1446
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1447
1450
|
switch (errorCode) {
|
|
1448
1451
|
case "InternalServerException":
|
|
1449
1452
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1453,10 +1456,12 @@ const deserializeAws_restJson1ListProfilingGroupsCommandError = async (output, c
|
|
|
1453
1456
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1454
1457
|
default:
|
|
1455
1458
|
const parsedBody = parsedOutput.body;
|
|
1459
|
+
const $metadata = deserializeMetadata(output);
|
|
1460
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1456
1461
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1457
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1462
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1458
1463
|
$fault: "client",
|
|
1459
|
-
$metadata
|
|
1464
|
+
$metadata,
|
|
1460
1465
|
});
|
|
1461
1466
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1462
1467
|
}
|
|
@@ -1482,8 +1487,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1482
1487
|
body: await parseBody(output.body, context),
|
|
1483
1488
|
};
|
|
1484
1489
|
let response;
|
|
1485
|
-
|
|
1486
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1487
1491
|
switch (errorCode) {
|
|
1488
1492
|
case "InternalServerException":
|
|
1489
1493
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1496,10 +1500,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1496
1500
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1497
1501
|
default:
|
|
1498
1502
|
const parsedBody = parsedOutput.body;
|
|
1503
|
+
const $metadata = deserializeMetadata(output);
|
|
1504
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1499
1505
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1500
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1506
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1501
1507
|
$fault: "client",
|
|
1502
|
-
$metadata
|
|
1508
|
+
$metadata,
|
|
1503
1509
|
});
|
|
1504
1510
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1505
1511
|
}
|
|
@@ -1521,8 +1527,7 @@ const deserializeAws_restJson1PostAgentProfileCommandError = async (output, cont
|
|
|
1521
1527
|
body: await parseBody(output.body, context),
|
|
1522
1528
|
};
|
|
1523
1529
|
let response;
|
|
1524
|
-
|
|
1525
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1530
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
1531
|
switch (errorCode) {
|
|
1527
1532
|
case "InternalServerException":
|
|
1528
1533
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1538,10 +1543,12 @@ const deserializeAws_restJson1PostAgentProfileCommandError = async (output, cont
|
|
|
1538
1543
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1539
1544
|
default:
|
|
1540
1545
|
const parsedBody = parsedOutput.body;
|
|
1546
|
+
const $metadata = deserializeMetadata(output);
|
|
1547
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1541
1548
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1542
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1549
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1543
1550
|
$fault: "client",
|
|
1544
|
-
$metadata
|
|
1551
|
+
$metadata,
|
|
1545
1552
|
});
|
|
1546
1553
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1547
1554
|
}
|
|
@@ -1571,8 +1578,7 @@ const deserializeAws_restJson1PutPermissionCommandError = async (output, context
|
|
|
1571
1578
|
body: await parseBody(output.body, context),
|
|
1572
1579
|
};
|
|
1573
1580
|
let response;
|
|
1574
|
-
|
|
1575
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1581
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
1582
|
switch (errorCode) {
|
|
1577
1583
|
case "ConflictException":
|
|
1578
1584
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
@@ -1591,10 +1597,12 @@ const deserializeAws_restJson1PutPermissionCommandError = async (output, context
|
|
|
1591
1597
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1592
1598
|
default:
|
|
1593
1599
|
const parsedBody = parsedOutput.body;
|
|
1600
|
+
const $metadata = deserializeMetadata(output);
|
|
1601
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1594
1602
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1595
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1603
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1596
1604
|
$fault: "client",
|
|
1597
|
-
$metadata
|
|
1605
|
+
$metadata,
|
|
1598
1606
|
});
|
|
1599
1607
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1600
1608
|
}
|
|
@@ -1620,8 +1628,7 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
|
|
|
1620
1628
|
body: await parseBody(output.body, context),
|
|
1621
1629
|
};
|
|
1622
1630
|
let response;
|
|
1623
|
-
|
|
1624
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
1632
|
switch (errorCode) {
|
|
1626
1633
|
case "InternalServerException":
|
|
1627
1634
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1637,10 +1644,12 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
|
|
|
1637
1644
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1638
1645
|
default:
|
|
1639
1646
|
const parsedBody = parsedOutput.body;
|
|
1647
|
+
const $metadata = deserializeMetadata(output);
|
|
1648
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1640
1649
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1641
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1650
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1642
1651
|
$fault: "client",
|
|
1643
|
-
$metadata
|
|
1652
|
+
$metadata,
|
|
1644
1653
|
});
|
|
1645
1654
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1646
1655
|
}
|
|
@@ -1670,8 +1679,7 @@ const deserializeAws_restJson1RemovePermissionCommandError = async (output, cont
|
|
|
1670
1679
|
body: await parseBody(output.body, context),
|
|
1671
1680
|
};
|
|
1672
1681
|
let response;
|
|
1673
|
-
|
|
1674
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1682
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
1683
|
switch (errorCode) {
|
|
1676
1684
|
case "ConflictException":
|
|
1677
1685
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
@@ -1690,10 +1698,12 @@ const deserializeAws_restJson1RemovePermissionCommandError = async (output, cont
|
|
|
1690
1698
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1691
1699
|
default:
|
|
1692
1700
|
const parsedBody = parsedOutput.body;
|
|
1701
|
+
const $metadata = deserializeMetadata(output);
|
|
1702
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1693
1703
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1704
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1695
1705
|
$fault: "client",
|
|
1696
|
-
$metadata
|
|
1706
|
+
$metadata,
|
|
1697
1707
|
});
|
|
1698
1708
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1699
1709
|
}
|
|
@@ -1715,8 +1725,7 @@ const deserializeAws_restJson1SubmitFeedbackCommandError = async (output, contex
|
|
|
1715
1725
|
body: await parseBody(output.body, context),
|
|
1716
1726
|
};
|
|
1717
1727
|
let response;
|
|
1718
|
-
|
|
1719
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1728
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
1729
|
switch (errorCode) {
|
|
1721
1730
|
case "InternalServerException":
|
|
1722
1731
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1732,10 +1741,12 @@ const deserializeAws_restJson1SubmitFeedbackCommandError = async (output, contex
|
|
|
1732
1741
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1733
1742
|
default:
|
|
1734
1743
|
const parsedBody = parsedOutput.body;
|
|
1744
|
+
const $metadata = deserializeMetadata(output);
|
|
1745
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1735
1746
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1736
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1747
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1737
1748
|
$fault: "client",
|
|
1738
|
-
$metadata
|
|
1749
|
+
$metadata,
|
|
1739
1750
|
});
|
|
1740
1751
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1741
1752
|
}
|
|
@@ -1757,8 +1768,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1757
1768
|
body: await parseBody(output.body, context),
|
|
1758
1769
|
};
|
|
1759
1770
|
let response;
|
|
1760
|
-
|
|
1761
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
1772
|
switch (errorCode) {
|
|
1763
1773
|
case "InternalServerException":
|
|
1764
1774
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1771,10 +1781,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1771
1781
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1772
1782
|
default:
|
|
1773
1783
|
const parsedBody = parsedOutput.body;
|
|
1784
|
+
const $metadata = deserializeMetadata(output);
|
|
1785
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1774
1786
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1775
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1787
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1776
1788
|
$fault: "client",
|
|
1777
|
-
$metadata
|
|
1789
|
+
$metadata,
|
|
1778
1790
|
});
|
|
1779
1791
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1780
1792
|
}
|
|
@@ -1796,8 +1808,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1796
1808
|
body: await parseBody(output.body, context),
|
|
1797
1809
|
};
|
|
1798
1810
|
let response;
|
|
1799
|
-
|
|
1800
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1811
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
1812
|
switch (errorCode) {
|
|
1802
1813
|
case "InternalServerException":
|
|
1803
1814
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
@@ -1810,10 +1821,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1810
1821
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1811
1822
|
default:
|
|
1812
1823
|
const parsedBody = parsedOutput.body;
|
|
1824
|
+
const $metadata = deserializeMetadata(output);
|
|
1825
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1813
1826
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1814
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1827
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1815
1828
|
$fault: "client",
|
|
1816
|
-
$metadata
|
|
1829
|
+
$metadata,
|
|
1817
1830
|
});
|
|
1818
1831
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1819
1832
|
}
|
|
@@ -1837,8 +1850,7 @@ const deserializeAws_restJson1UpdateProfilingGroupCommandError = async (output,
|
|
|
1837
1850
|
body: await parseBody(output.body, context),
|
|
1838
1851
|
};
|
|
1839
1852
|
let response;
|
|
1840
|
-
|
|
1841
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
1854
|
switch (errorCode) {
|
|
1843
1855
|
case "ConflictException":
|
|
1844
1856
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
@@ -1857,10 +1869,12 @@ const deserializeAws_restJson1UpdateProfilingGroupCommandError = async (output,
|
|
|
1857
1869
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1858
1870
|
default:
|
|
1859
1871
|
const parsedBody = parsedOutput.body;
|
|
1872
|
+
const $metadata = deserializeMetadata(output);
|
|
1873
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1860
1874
|
response = new CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException({
|
|
1861
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1875
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1862
1876
|
$fault: "client",
|
|
1863
|
-
$metadata
|
|
1877
|
+
$metadata,
|
|
1864
1878
|
});
|
|
1865
1879
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1866
1880
|
}
|
|
@@ -1939,18 +1953,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1939
1953
|
};
|
|
1940
1954
|
const serializeAws_restJson1AgentOrchestrationConfig = (input, context) => {
|
|
1941
1955
|
return {
|
|
1942
|
-
...(input.profilingEnabled
|
|
1943
|
-
input.profilingEnabled !== null && { profilingEnabled: input.profilingEnabled }),
|
|
1956
|
+
...(input.profilingEnabled != null && { profilingEnabled: input.profilingEnabled }),
|
|
1944
1957
|
};
|
|
1945
1958
|
};
|
|
1946
1959
|
const serializeAws_restJson1Channel = (input, context) => {
|
|
1947
1960
|
return {
|
|
1948
|
-
...(input.eventPublishers
|
|
1949
|
-
input.eventPublishers !== null && {
|
|
1961
|
+
...(input.eventPublishers != null && {
|
|
1950
1962
|
eventPublishers: serializeAws_restJson1EventPublishers(input.eventPublishers, context),
|
|
1951
1963
|
}),
|
|
1952
|
-
...(input.id
|
|
1953
|
-
...(input.uri
|
|
1964
|
+
...(input.id != null && { id: input.id }),
|
|
1965
|
+
...(input.uri != null && { uri: input.uri }),
|
|
1954
1966
|
};
|
|
1955
1967
|
};
|
|
1956
1968
|
const serializeAws_restJson1Channels = (input, context) => {
|
|
@@ -1975,10 +1987,11 @@ const serializeAws_restJson1EventPublishers = (input, context) => {
|
|
|
1975
1987
|
};
|
|
1976
1988
|
const serializeAws_restJson1FrameMetric = (input, context) => {
|
|
1977
1989
|
return {
|
|
1978
|
-
...(input.frameName
|
|
1979
|
-
...(input.threadStates
|
|
1980
|
-
|
|
1981
|
-
|
|
1990
|
+
...(input.frameName != null && { frameName: input.frameName }),
|
|
1991
|
+
...(input.threadStates != null && {
|
|
1992
|
+
threadStates: serializeAws_restJson1ThreadStates(input.threadStates, context),
|
|
1993
|
+
}),
|
|
1994
|
+
...(input.type != null && { type: input.type }),
|
|
1982
1995
|
};
|
|
1983
1996
|
};
|
|
1984
1997
|
const serializeAws_restJson1FrameMetrics = (input, context) => {
|
|
@@ -2035,7 +2048,7 @@ const serializeAws_restJson1ThreadStates = (input, context) => {
|
|
|
2035
2048
|
};
|
|
2036
2049
|
const deserializeAws_restJson1AgentConfiguration = (output, context) => {
|
|
2037
2050
|
return {
|
|
2038
|
-
agentParameters: output.agentParameters
|
|
2051
|
+
agentParameters: output.agentParameters != null
|
|
2039
2052
|
? deserializeAws_restJson1AgentParameters(output.agentParameters, context)
|
|
2040
2053
|
: undefined,
|
|
2041
2054
|
periodInSeconds: (0, smithy_client_1.expectInt32)(output.periodInSeconds),
|
|
@@ -2061,9 +2074,7 @@ const deserializeAws_restJson1AgentParameters = (output, context) => {
|
|
|
2061
2074
|
const deserializeAws_restJson1AggregatedProfileTime = (output, context) => {
|
|
2062
2075
|
return {
|
|
2063
2076
|
period: (0, smithy_client_1.expectString)(output.period),
|
|
2064
|
-
start: output.start
|
|
2065
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.start))
|
|
2066
|
-
: undefined,
|
|
2077
|
+
start: output.start != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.start)) : undefined,
|
|
2067
2078
|
};
|
|
2068
2079
|
};
|
|
2069
2080
|
const deserializeAws_restJson1Anomalies = (output, context) => {
|
|
@@ -2079,27 +2090,17 @@ const deserializeAws_restJson1Anomalies = (output, context) => {
|
|
|
2079
2090
|
};
|
|
2080
2091
|
const deserializeAws_restJson1Anomaly = (output, context) => {
|
|
2081
2092
|
return {
|
|
2082
|
-
instances: output.instances
|
|
2083
|
-
|
|
2084
|
-
: undefined,
|
|
2085
|
-
metric: output.metric !== undefined && output.metric !== null
|
|
2086
|
-
? deserializeAws_restJson1Metric(output.metric, context)
|
|
2087
|
-
: undefined,
|
|
2093
|
+
instances: output.instances != null ? deserializeAws_restJson1AnomalyInstances(output.instances, context) : undefined,
|
|
2094
|
+
metric: output.metric != null ? deserializeAws_restJson1Metric(output.metric, context) : undefined,
|
|
2088
2095
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2089
2096
|
};
|
|
2090
2097
|
};
|
|
2091
2098
|
const deserializeAws_restJson1AnomalyInstance = (output, context) => {
|
|
2092
2099
|
return {
|
|
2093
|
-
endTime: output.endTime
|
|
2094
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime))
|
|
2095
|
-
: undefined,
|
|
2100
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime)) : undefined,
|
|
2096
2101
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2097
|
-
startTime: output.startTime
|
|
2098
|
-
|
|
2099
|
-
: undefined,
|
|
2100
|
-
userFeedback: output.userFeedback !== undefined && output.userFeedback !== null
|
|
2101
|
-
? deserializeAws_restJson1UserFeedback(output.userFeedback, context)
|
|
2102
|
-
: undefined,
|
|
2102
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
|
|
2103
|
+
userFeedback: output.userFeedback != null ? deserializeAws_restJson1UserFeedback(output.userFeedback, context) : undefined,
|
|
2103
2104
|
};
|
|
2104
2105
|
};
|
|
2105
2106
|
const deserializeAws_restJson1AnomalyInstances = (output, context) => {
|
|
@@ -2115,7 +2116,7 @@ const deserializeAws_restJson1AnomalyInstances = (output, context) => {
|
|
|
2115
2116
|
};
|
|
2116
2117
|
const deserializeAws_restJson1Channel = (output, context) => {
|
|
2117
2118
|
return {
|
|
2118
|
-
eventPublishers: output.eventPublishers
|
|
2119
|
+
eventPublishers: output.eventPublishers != null
|
|
2119
2120
|
? deserializeAws_restJson1EventPublishers(output.eventPublishers, context)
|
|
2120
2121
|
: undefined,
|
|
2121
2122
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
@@ -2158,12 +2159,8 @@ const deserializeAws_restJson1FindingsReportSummaries = (output, context) => {
|
|
|
2158
2159
|
const deserializeAws_restJson1FindingsReportSummary = (output, context) => {
|
|
2159
2160
|
return {
|
|
2160
2161
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2161
|
-
profileEndTime: output.profileEndTime
|
|
2162
|
-
|
|
2163
|
-
: undefined,
|
|
2164
|
-
profileStartTime: output.profileStartTime !== undefined && output.profileStartTime !== null
|
|
2165
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.profileStartTime))
|
|
2166
|
-
: undefined,
|
|
2162
|
+
profileEndTime: output.profileEndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.profileEndTime)) : undefined,
|
|
2163
|
+
profileStartTime: output.profileStartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.profileStartTime)) : undefined,
|
|
2167
2164
|
profilingGroupName: (0, smithy_client_1.expectString)(output.profilingGroupName),
|
|
2168
2165
|
totalNumberOfFindings: (0, smithy_client_1.expectInt32)(output.totalNumberOfFindings),
|
|
2169
2166
|
};
|
|
@@ -2171,9 +2168,7 @@ const deserializeAws_restJson1FindingsReportSummary = (output, context) => {
|
|
|
2171
2168
|
const deserializeAws_restJson1FrameMetric = (output, context) => {
|
|
2172
2169
|
return {
|
|
2173
2170
|
frameName: (0, smithy_client_1.expectString)(output.frameName),
|
|
2174
|
-
threadStates: output.threadStates
|
|
2175
|
-
? deserializeAws_restJson1ThreadStates(output.threadStates, context)
|
|
2176
|
-
: undefined,
|
|
2171
|
+
threadStates: output.threadStates != null ? deserializeAws_restJson1ThreadStates(output.threadStates, context) : undefined,
|
|
2177
2172
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2178
2173
|
};
|
|
2179
2174
|
};
|
|
@@ -2190,12 +2185,8 @@ const deserializeAws_restJson1FrameMetricData = (output, context) => {
|
|
|
2190
2185
|
};
|
|
2191
2186
|
const deserializeAws_restJson1FrameMetricDatum = (output, context) => {
|
|
2192
2187
|
return {
|
|
2193
|
-
frameMetric: output.frameMetric
|
|
2194
|
-
|
|
2195
|
-
: undefined,
|
|
2196
|
-
values: output.values !== undefined && output.values !== null
|
|
2197
|
-
? deserializeAws_restJson1FrameMetricValues(output.values, context)
|
|
2198
|
-
: undefined,
|
|
2188
|
+
frameMetric: output.frameMetric != null ? deserializeAws_restJson1FrameMetric(output.frameMetric, context) : undefined,
|
|
2189
|
+
values: output.values != null ? deserializeAws_restJson1FrameMetricValues(output.values, context) : undefined,
|
|
2199
2190
|
};
|
|
2200
2191
|
};
|
|
2201
2192
|
const deserializeAws_restJson1FrameMetricValues = (output, context) => {
|
|
@@ -2241,39 +2232,31 @@ const deserializeAws_restJson1Matches = (output, context) => {
|
|
|
2241
2232
|
const deserializeAws_restJson1Metric = (output, context) => {
|
|
2242
2233
|
return {
|
|
2243
2234
|
frameName: (0, smithy_client_1.expectString)(output.frameName),
|
|
2244
|
-
threadStates: output.threadStates
|
|
2245
|
-
? deserializeAws_restJson1Strings(output.threadStates, context)
|
|
2246
|
-
: undefined,
|
|
2235
|
+
threadStates: output.threadStates != null ? deserializeAws_restJson1Strings(output.threadStates, context) : undefined,
|
|
2247
2236
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2248
2237
|
};
|
|
2249
2238
|
};
|
|
2250
2239
|
const deserializeAws_restJson1NotificationConfiguration = (output, context) => {
|
|
2251
2240
|
return {
|
|
2252
|
-
channels: output.channels
|
|
2253
|
-
? deserializeAws_restJson1Channels(output.channels, context)
|
|
2254
|
-
: undefined,
|
|
2241
|
+
channels: output.channels != null ? deserializeAws_restJson1Channels(output.channels, context) : undefined,
|
|
2255
2242
|
};
|
|
2256
2243
|
};
|
|
2257
2244
|
const deserializeAws_restJson1Pattern = (output, context) => {
|
|
2258
2245
|
return {
|
|
2259
|
-
countersToAggregate: output.countersToAggregate
|
|
2246
|
+
countersToAggregate: output.countersToAggregate != null
|
|
2260
2247
|
? deserializeAws_restJson1Strings(output.countersToAggregate, context)
|
|
2261
2248
|
: undefined,
|
|
2262
2249
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
2263
2250
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2264
2251
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2265
2252
|
resolutionSteps: (0, smithy_client_1.expectString)(output.resolutionSteps),
|
|
2266
|
-
targetFrames: output.targetFrames
|
|
2267
|
-
? deserializeAws_restJson1TargetFrames(output.targetFrames, context)
|
|
2268
|
-
: undefined,
|
|
2253
|
+
targetFrames: output.targetFrames != null ? deserializeAws_restJson1TargetFrames(output.targetFrames, context) : undefined,
|
|
2269
2254
|
thresholdPercent: (0, smithy_client_1.limitedParseDouble)(output.thresholdPercent),
|
|
2270
2255
|
};
|
|
2271
2256
|
};
|
|
2272
2257
|
const deserializeAws_restJson1ProfileTime = (output, context) => {
|
|
2273
2258
|
return {
|
|
2274
|
-
start: output.start
|
|
2275
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.start))
|
|
2276
|
-
: undefined,
|
|
2259
|
+
start: output.start != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.start)) : undefined,
|
|
2277
2260
|
};
|
|
2278
2261
|
};
|
|
2279
2262
|
const deserializeAws_restJson1ProfileTimes = (output, context) => {
|
|
@@ -2289,24 +2272,18 @@ const deserializeAws_restJson1ProfileTimes = (output, context) => {
|
|
|
2289
2272
|
};
|
|
2290
2273
|
const deserializeAws_restJson1ProfilingGroupDescription = (output, context) => {
|
|
2291
2274
|
return {
|
|
2292
|
-
agentOrchestrationConfig: output.agentOrchestrationConfig
|
|
2275
|
+
agentOrchestrationConfig: output.agentOrchestrationConfig != null
|
|
2293
2276
|
? deserializeAws_restJson1AgentOrchestrationConfig(output.agentOrchestrationConfig, context)
|
|
2294
2277
|
: undefined,
|
|
2295
2278
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2296
2279
|
computePlatform: (0, smithy_client_1.expectString)(output.computePlatform),
|
|
2297
|
-
createdAt: output.createdAt
|
|
2298
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
2299
|
-
: undefined,
|
|
2280
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
2300
2281
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2301
|
-
profilingStatus: output.profilingStatus
|
|
2282
|
+
profilingStatus: output.profilingStatus != null
|
|
2302
2283
|
? deserializeAws_restJson1ProfilingStatus(output.profilingStatus, context)
|
|
2303
2284
|
: undefined,
|
|
2304
|
-
tags: output.tags
|
|
2305
|
-
|
|
2306
|
-
: undefined,
|
|
2307
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
2308
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
2309
|
-
: undefined,
|
|
2285
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
2286
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
|
|
2310
2287
|
};
|
|
2311
2288
|
};
|
|
2312
2289
|
const deserializeAws_restJson1ProfilingGroupDescriptions = (output, context) => {
|
|
@@ -2333,13 +2310,13 @@ const deserializeAws_restJson1ProfilingGroupNames = (output, context) => {
|
|
|
2333
2310
|
};
|
|
2334
2311
|
const deserializeAws_restJson1ProfilingStatus = (output, context) => {
|
|
2335
2312
|
return {
|
|
2336
|
-
latestAgentOrchestratedAt: output.latestAgentOrchestratedAt
|
|
2313
|
+
latestAgentOrchestratedAt: output.latestAgentOrchestratedAt != null
|
|
2337
2314
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.latestAgentOrchestratedAt))
|
|
2338
2315
|
: undefined,
|
|
2339
|
-
latestAgentProfileReportedAt: output.latestAgentProfileReportedAt
|
|
2316
|
+
latestAgentProfileReportedAt: output.latestAgentProfileReportedAt != null
|
|
2340
2317
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.latestAgentProfileReportedAt))
|
|
2341
2318
|
: undefined,
|
|
2342
|
-
latestAggregatedProfile: output.latestAggregatedProfile
|
|
2319
|
+
latestAggregatedProfile: output.latestAggregatedProfile != null
|
|
2343
2320
|
? deserializeAws_restJson1AggregatedProfileTime(output.latestAggregatedProfile, context)
|
|
2344
2321
|
: undefined,
|
|
2345
2322
|
};
|
|
@@ -2348,18 +2325,10 @@ const deserializeAws_restJson1Recommendation = (output, context) => {
|
|
|
2348
2325
|
return {
|
|
2349
2326
|
allMatchesCount: (0, smithy_client_1.expectInt32)(output.allMatchesCount),
|
|
2350
2327
|
allMatchesSum: (0, smithy_client_1.limitedParseDouble)(output.allMatchesSum),
|
|
2351
|
-
endTime: output.endTime
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
? deserializeAws_restJson1Pattern(output.pattern, context)
|
|
2356
|
-
: undefined,
|
|
2357
|
-
startTime: output.startTime !== undefined && output.startTime !== null
|
|
2358
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
|
|
2359
|
-
: undefined,
|
|
2360
|
-
topMatches: output.topMatches !== undefined && output.topMatches !== null
|
|
2361
|
-
? deserializeAws_restJson1Matches(output.topMatches, context)
|
|
2362
|
-
: undefined,
|
|
2328
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime)) : undefined,
|
|
2329
|
+
pattern: output.pattern != null ? deserializeAws_restJson1Pattern(output.pattern, context) : undefined,
|
|
2330
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
|
|
2331
|
+
topMatches: output.topMatches != null ? deserializeAws_restJson1Matches(output.topMatches, context) : undefined,
|
|
2363
2332
|
};
|
|
2364
2333
|
};
|
|
2365
2334
|
const deserializeAws_restJson1Recommendations = (output, context) => {
|
|
@@ -2430,9 +2399,7 @@ const deserializeAws_restJson1ThreadStates = (output, context) => {
|
|
|
2430
2399
|
};
|
|
2431
2400
|
const deserializeAws_restJson1TimestampStructure = (output, context) => {
|
|
2432
2401
|
return {
|
|
2433
|
-
value: output.value
|
|
2434
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.value))
|
|
2435
|
-
: undefined,
|
|
2402
|
+
value: output.value != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.value)) : undefined,
|
|
2436
2403
|
};
|
|
2437
2404
|
};
|
|
2438
2405
|
const deserializeAws_restJson1UnprocessedEndTimeMap = (output, context) => {
|
|
@@ -2500,5 +2467,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2500
2467
|
if (data["__type"] !== undefined) {
|
|
2501
2468
|
return sanitizeErrorCode(data["__type"]);
|
|
2502
2469
|
}
|
|
2503
|
-
return "";
|
|
2504
2470
|
};
|