@aws-sdk/client-codeguruprofiler 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +29 -23
- package/dist-es/CodeGuruProfiler.js +94 -101
- package/dist-es/CodeGuruProfilerClient.js +22 -28
- package/dist-es/commands/AddNotificationChannelsCommand.js +21 -28
- package/dist-es/commands/BatchGetFrameMetricDataCommand.js +21 -28
- package/dist-es/commands/ConfigureAgentCommand.js +21 -28
- package/dist-es/commands/CreateProfilingGroupCommand.js +21 -28
- package/dist-es/commands/DeleteProfilingGroupCommand.js +21 -28
- package/dist-es/commands/DescribeProfilingGroupCommand.js +21 -28
- package/dist-es/commands/GetFindingsReportAccountSummaryCommand.js +21 -28
- package/dist-es/commands/GetNotificationConfigurationCommand.js +21 -28
- package/dist-es/commands/GetPolicyCommand.js +21 -28
- package/dist-es/commands/GetProfileCommand.js +21 -28
- package/dist-es/commands/GetRecommendationsCommand.js +21 -28
- package/dist-es/commands/ListFindingsReportsCommand.js +21 -28
- package/dist-es/commands/ListProfileTimesCommand.js +21 -28
- package/dist-es/commands/ListProfilingGroupsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PostAgentProfileCommand.js +21 -28
- package/dist-es/commands/PutPermissionCommand.js +21 -28
- package/dist-es/commands/RemoveNotificationChannelCommand.js +21 -28
- package/dist-es/commands/RemovePermissionCommand.js +21 -28
- package/dist-es/commands/SubmitFeedbackCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateProfilingGroupCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CodeGuruProfilerServiceException.js +5 -10
- package/dist-es/models/models_0.js +264 -135
- package/dist-es/pagination/GetFindingsReportAccountSummaryPaginator.js +25 -68
- package/dist-es/pagination/ListFindingsReportsPaginator.js +25 -68
- package/dist-es/pagination/ListProfileTimesPaginator.js +25 -68
- package/dist-es/pagination/ListProfilingGroupsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1718 -2407
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-codeguruprofiler
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-codeguruprofiler
|
|
@@ -567,7 +567,7 @@ exports.deserializeAws_restJson1AddNotificationChannelsCommand = deserializeAws_
|
|
|
567
567
|
const deserializeAws_restJson1AddNotificationChannelsCommandError = async (output, context) => {
|
|
568
568
|
const parsedOutput = {
|
|
569
569
|
...output,
|
|
570
|
-
body: await
|
|
570
|
+
body: await parseErrorBody(output.body, context),
|
|
571
571
|
};
|
|
572
572
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
573
|
switch (errorCode) {
|
|
@@ -631,7 +631,7 @@ exports.deserializeAws_restJson1BatchGetFrameMetricDataCommand = deserializeAws_
|
|
|
631
631
|
const deserializeAws_restJson1BatchGetFrameMetricDataCommandError = async (output, context) => {
|
|
632
632
|
const parsedOutput = {
|
|
633
633
|
...output,
|
|
634
|
-
body: await
|
|
634
|
+
body: await parseErrorBody(output.body, context),
|
|
635
635
|
};
|
|
636
636
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
637
|
switch (errorCode) {
|
|
@@ -672,7 +672,7 @@ exports.deserializeAws_restJson1ConfigureAgentCommand = deserializeAws_restJson1
|
|
|
672
672
|
const deserializeAws_restJson1ConfigureAgentCommandError = async (output, context) => {
|
|
673
673
|
const parsedOutput = {
|
|
674
674
|
...output,
|
|
675
|
-
body: await
|
|
675
|
+
body: await parseErrorBody(output.body, context),
|
|
676
676
|
};
|
|
677
677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
678
|
switch (errorCode) {
|
|
@@ -713,7 +713,7 @@ exports.deserializeAws_restJson1CreateProfilingGroupCommand = deserializeAws_res
|
|
|
713
713
|
const deserializeAws_restJson1CreateProfilingGroupCommandError = async (output, context) => {
|
|
714
714
|
const parsedOutput = {
|
|
715
715
|
...output,
|
|
716
|
-
body: await
|
|
716
|
+
body: await parseErrorBody(output.body, context),
|
|
717
717
|
};
|
|
718
718
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
719
719
|
switch (errorCode) {
|
|
@@ -756,7 +756,7 @@ exports.deserializeAws_restJson1DeleteProfilingGroupCommand = deserializeAws_res
|
|
|
756
756
|
const deserializeAws_restJson1DeleteProfilingGroupCommandError = async (output, context) => {
|
|
757
757
|
const parsedOutput = {
|
|
758
758
|
...output,
|
|
759
|
-
body: await
|
|
759
|
+
body: await parseErrorBody(output.body, context),
|
|
760
760
|
};
|
|
761
761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
762
762
|
switch (errorCode) {
|
|
@@ -800,7 +800,7 @@ exports.deserializeAws_restJson1DescribeProfilingGroupCommand = deserializeAws_r
|
|
|
800
800
|
const deserializeAws_restJson1DescribeProfilingGroupCommandError = async (output, context) => {
|
|
801
801
|
const parsedOutput = {
|
|
802
802
|
...output,
|
|
803
|
-
body: await
|
|
803
|
+
body: await parseErrorBody(output.body, context),
|
|
804
804
|
};
|
|
805
805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
806
806
|
switch (errorCode) {
|
|
@@ -846,7 +846,7 @@ exports.deserializeAws_restJson1GetFindingsReportAccountSummaryCommand = deseria
|
|
|
846
846
|
const deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = async (output, context) => {
|
|
847
847
|
const parsedOutput = {
|
|
848
848
|
...output,
|
|
849
|
-
body: await
|
|
849
|
+
body: await parseErrorBody(output.body, context),
|
|
850
850
|
};
|
|
851
851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
852
|
switch (errorCode) {
|
|
@@ -886,7 +886,7 @@ exports.deserializeAws_restJson1GetNotificationConfigurationCommand = deserializ
|
|
|
886
886
|
const deserializeAws_restJson1GetNotificationConfigurationCommandError = async (output, context) => {
|
|
887
887
|
const parsedOutput = {
|
|
888
888
|
...output,
|
|
889
|
-
body: await
|
|
889
|
+
body: await parseErrorBody(output.body, context),
|
|
890
890
|
};
|
|
891
891
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
892
892
|
switch (errorCode) {
|
|
@@ -932,7 +932,7 @@ exports.deserializeAws_restJson1GetPolicyCommand = deserializeAws_restJson1GetPo
|
|
|
932
932
|
const deserializeAws_restJson1GetPolicyCommandError = async (output, context) => {
|
|
933
933
|
const parsedOutput = {
|
|
934
934
|
...output,
|
|
935
|
-
body: await
|
|
935
|
+
body: await parseErrorBody(output.body, context),
|
|
936
936
|
};
|
|
937
937
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
938
938
|
switch (errorCode) {
|
|
@@ -972,7 +972,7 @@ exports.deserializeAws_restJson1GetProfileCommand = deserializeAws_restJson1GetP
|
|
|
972
972
|
const deserializeAws_restJson1GetProfileCommandError = async (output, context) => {
|
|
973
973
|
const parsedOutput = {
|
|
974
974
|
...output,
|
|
975
|
-
body: await
|
|
975
|
+
body: await parseErrorBody(output.body, context),
|
|
976
976
|
};
|
|
977
977
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
978
|
switch (errorCode) {
|
|
@@ -1027,7 +1027,7 @@ exports.deserializeAws_restJson1GetRecommendationsCommand = deserializeAws_restJ
|
|
|
1027
1027
|
const deserializeAws_restJson1GetRecommendationsCommandError = async (output, context) => {
|
|
1028
1028
|
const parsedOutput = {
|
|
1029
1029
|
...output,
|
|
1030
|
-
body: await
|
|
1030
|
+
body: await parseErrorBody(output.body, context),
|
|
1031
1031
|
};
|
|
1032
1032
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
1033
|
switch (errorCode) {
|
|
@@ -1073,7 +1073,7 @@ exports.deserializeAws_restJson1ListFindingsReportsCommand = deserializeAws_rest
|
|
|
1073
1073
|
const deserializeAws_restJson1ListFindingsReportsCommandError = async (output, context) => {
|
|
1074
1074
|
const parsedOutput = {
|
|
1075
1075
|
...output,
|
|
1076
|
-
body: await
|
|
1076
|
+
body: await parseErrorBody(output.body, context),
|
|
1077
1077
|
};
|
|
1078
1078
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1079
|
switch (errorCode) {
|
|
@@ -1119,7 +1119,7 @@ exports.deserializeAws_restJson1ListProfileTimesCommand = deserializeAws_restJso
|
|
|
1119
1119
|
const deserializeAws_restJson1ListProfileTimesCommandError = async (output, context) => {
|
|
1120
1120
|
const parsedOutput = {
|
|
1121
1121
|
...output,
|
|
1122
|
-
body: await
|
|
1122
|
+
body: await parseErrorBody(output.body, context),
|
|
1123
1123
|
};
|
|
1124
1124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
1125
|
switch (errorCode) {
|
|
@@ -1168,7 +1168,7 @@ exports.deserializeAws_restJson1ListProfilingGroupsCommand = deserializeAws_rest
|
|
|
1168
1168
|
const deserializeAws_restJson1ListProfilingGroupsCommandError = async (output, context) => {
|
|
1169
1169
|
const parsedOutput = {
|
|
1170
1170
|
...output,
|
|
1171
|
-
body: await
|
|
1171
|
+
body: await parseErrorBody(output.body, context),
|
|
1172
1172
|
};
|
|
1173
1173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
1174
|
switch (errorCode) {
|
|
@@ -1205,7 +1205,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1205
1205
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1206
1206
|
const parsedOutput = {
|
|
1207
1207
|
...output,
|
|
1208
|
-
body: await
|
|
1208
|
+
body: await parseErrorBody(output.body, context),
|
|
1209
1209
|
};
|
|
1210
1210
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
1211
|
switch (errorCode) {
|
|
@@ -1242,7 +1242,7 @@ exports.deserializeAws_restJson1PostAgentProfileCommand = deserializeAws_restJso
|
|
|
1242
1242
|
const deserializeAws_restJson1PostAgentProfileCommandError = async (output, context) => {
|
|
1243
1243
|
const parsedOutput = {
|
|
1244
1244
|
...output,
|
|
1245
|
-
body: await
|
|
1245
|
+
body: await parseErrorBody(output.body, context),
|
|
1246
1246
|
};
|
|
1247
1247
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
1248
|
switch (errorCode) {
|
|
@@ -1288,7 +1288,7 @@ exports.deserializeAws_restJson1PutPermissionCommand = deserializeAws_restJson1P
|
|
|
1288
1288
|
const deserializeAws_restJson1PutPermissionCommandError = async (output, context) => {
|
|
1289
1289
|
const parsedOutput = {
|
|
1290
1290
|
...output,
|
|
1291
|
-
body: await
|
|
1291
|
+
body: await parseErrorBody(output.body, context),
|
|
1292
1292
|
};
|
|
1293
1293
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
1294
|
switch (errorCode) {
|
|
@@ -1334,7 +1334,7 @@ exports.deserializeAws_restJson1RemoveNotificationChannelCommand = deserializeAw
|
|
|
1334
1334
|
const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (output, context) => {
|
|
1335
1335
|
const parsedOutput = {
|
|
1336
1336
|
...output,
|
|
1337
|
-
body: await
|
|
1337
|
+
body: await parseErrorBody(output.body, context),
|
|
1338
1338
|
};
|
|
1339
1339
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
1340
|
switch (errorCode) {
|
|
@@ -1380,7 +1380,7 @@ exports.deserializeAws_restJson1RemovePermissionCommand = deserializeAws_restJso
|
|
|
1380
1380
|
const deserializeAws_restJson1RemovePermissionCommandError = async (output, context) => {
|
|
1381
1381
|
const parsedOutput = {
|
|
1382
1382
|
...output,
|
|
1383
|
-
body: await
|
|
1383
|
+
body: await parseErrorBody(output.body, context),
|
|
1384
1384
|
};
|
|
1385
1385
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
1386
|
switch (errorCode) {
|
|
@@ -1423,7 +1423,7 @@ exports.deserializeAws_restJson1SubmitFeedbackCommand = deserializeAws_restJson1
|
|
|
1423
1423
|
const deserializeAws_restJson1SubmitFeedbackCommandError = async (output, context) => {
|
|
1424
1424
|
const parsedOutput = {
|
|
1425
1425
|
...output,
|
|
1426
|
-
body: await
|
|
1426
|
+
body: await parseErrorBody(output.body, context),
|
|
1427
1427
|
};
|
|
1428
1428
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
1429
|
switch (errorCode) {
|
|
@@ -1463,7 +1463,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1463
1463
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1464
1464
|
const parsedOutput = {
|
|
1465
1465
|
...output,
|
|
1466
|
-
body: await
|
|
1466
|
+
body: await parseErrorBody(output.body, context),
|
|
1467
1467
|
};
|
|
1468
1468
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
1469
|
switch (errorCode) {
|
|
@@ -1500,7 +1500,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1500
1500
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1501
1501
|
const parsedOutput = {
|
|
1502
1502
|
...output,
|
|
1503
|
-
body: await
|
|
1503
|
+
body: await parseErrorBody(output.body, context),
|
|
1504
1504
|
};
|
|
1505
1505
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
1506
|
switch (errorCode) {
|
|
@@ -1538,7 +1538,7 @@ exports.deserializeAws_restJson1UpdateProfilingGroupCommand = deserializeAws_res
|
|
|
1538
1538
|
const deserializeAws_restJson1UpdateProfilingGroupCommandError = async (output, context) => {
|
|
1539
1539
|
const parsedOutput = {
|
|
1540
1540
|
...output,
|
|
1541
|
-
body: await
|
|
1541
|
+
body: await parseErrorBody(output.body, context),
|
|
1542
1542
|
};
|
|
1543
1543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1544
1544
|
switch (errorCode) {
|
|
@@ -2119,6 +2119,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2119
2119
|
}
|
|
2120
2120
|
return {};
|
|
2121
2121
|
});
|
|
2122
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2123
|
+
var _a;
|
|
2124
|
+
const value = await parseBody(errorBody, context);
|
|
2125
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2126
|
+
return value;
|
|
2127
|
+
};
|
|
2122
2128
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2123
2129
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2124
2130
|
const sanitizeErrorCode = (rawValue) => {
|