@aws-sdk/client-detective 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 +30 -24
- package/dist-es/Detective.js +98 -105
- package/dist-es/DetectiveClient.js +22 -28
- package/dist-es/commands/AcceptInvitationCommand.js +22 -29
- package/dist-es/commands/BatchGetGraphMemberDatasourcesCommand.js +21 -28
- package/dist-es/commands/BatchGetMembershipDatasourcesCommand.js +21 -28
- package/dist-es/commands/CreateGraphCommand.js +21 -28
- package/dist-es/commands/CreateMembersCommand.js +21 -28
- package/dist-es/commands/DeleteGraphCommand.js +22 -29
- package/dist-es/commands/DeleteMembersCommand.js +21 -28
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +23 -30
- package/dist-es/commands/DisassociateMembershipCommand.js +22 -29
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +22 -29
- package/dist-es/commands/GetMembersCommand.js +21 -28
- package/dist-es/commands/ListDatasourcePackagesCommand.js +21 -28
- package/dist-es/commands/ListGraphsCommand.js +21 -28
- package/dist-es/commands/ListInvitationsCommand.js +21 -28
- package/dist-es/commands/ListMembersCommand.js +21 -28
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/RejectInvitationCommand.js +22 -29
- package/dist-es/commands/StartMonitoringMemberCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateDatasourcePackagesCommand.js +22 -29
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DetectiveServiceException.js +5 -10
- package/dist-es/models/models_0.js +219 -124
- package/dist-es/pagination/ListDatasourcePackagesPaginator.js +25 -68
- package/dist-es/pagination/ListGraphsPaginator.js +25 -68
- package/dist-es/pagination/ListInvitationsPaginator.js +25 -68
- package/dist-es/pagination/ListMembersPaginator.js +25 -68
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1605 -2271
- 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-detective
|
|
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-detective
|
|
@@ -538,7 +538,7 @@ exports.deserializeAws_restJson1AcceptInvitationCommand = deserializeAws_restJso
|
|
|
538
538
|
const deserializeAws_restJson1AcceptInvitationCommandError = async (output, context) => {
|
|
539
539
|
const parsedOutput = {
|
|
540
540
|
...output,
|
|
541
|
-
body: await
|
|
541
|
+
body: await parseErrorBody(output.body, context),
|
|
542
542
|
};
|
|
543
543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
544
544
|
switch (errorCode) {
|
|
@@ -584,7 +584,7 @@ exports.deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = deserial
|
|
|
584
584
|
const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = async (output, context) => {
|
|
585
585
|
const parsedOutput = {
|
|
586
586
|
...output,
|
|
587
|
-
body: await
|
|
587
|
+
body: await parseErrorBody(output.body, context),
|
|
588
588
|
};
|
|
589
589
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
590
590
|
switch (errorCode) {
|
|
@@ -627,7 +627,7 @@ exports.deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = deseriali
|
|
|
627
627
|
const deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = async (output, context) => {
|
|
628
628
|
const parsedOutput = {
|
|
629
629
|
...output,
|
|
630
|
-
body: await
|
|
630
|
+
body: await parseErrorBody(output.body, context),
|
|
631
631
|
};
|
|
632
632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
633
|
switch (errorCode) {
|
|
@@ -667,7 +667,7 @@ exports.deserializeAws_restJson1CreateGraphCommand = deserializeAws_restJson1Cre
|
|
|
667
667
|
const deserializeAws_restJson1CreateGraphCommandError = async (output, context) => {
|
|
668
668
|
const parsedOutput = {
|
|
669
669
|
...output,
|
|
670
|
-
body: await
|
|
670
|
+
body: await parseErrorBody(output.body, context),
|
|
671
671
|
};
|
|
672
672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
673
|
switch (errorCode) {
|
|
@@ -710,7 +710,7 @@ exports.deserializeAws_restJson1CreateMembersCommand = deserializeAws_restJson1C
|
|
|
710
710
|
const deserializeAws_restJson1CreateMembersCommandError = async (output, context) => {
|
|
711
711
|
const parsedOutput = {
|
|
712
712
|
...output,
|
|
713
|
-
body: await
|
|
713
|
+
body: await parseErrorBody(output.body, context),
|
|
714
714
|
};
|
|
715
715
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
716
|
switch (errorCode) {
|
|
@@ -750,7 +750,7 @@ exports.deserializeAws_restJson1DeleteGraphCommand = deserializeAws_restJson1Del
|
|
|
750
750
|
const deserializeAws_restJson1DeleteGraphCommandError = async (output, context) => {
|
|
751
751
|
const parsedOutput = {
|
|
752
752
|
...output,
|
|
753
|
-
body: await
|
|
753
|
+
body: await parseErrorBody(output.body, context),
|
|
754
754
|
};
|
|
755
755
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
756
|
switch (errorCode) {
|
|
@@ -793,7 +793,7 @@ exports.deserializeAws_restJson1DeleteMembersCommand = deserializeAws_restJson1D
|
|
|
793
793
|
const deserializeAws_restJson1DeleteMembersCommandError = async (output, context) => {
|
|
794
794
|
const parsedOutput = {
|
|
795
795
|
...output,
|
|
796
|
-
body: await
|
|
796
|
+
body: await parseErrorBody(output.body, context),
|
|
797
797
|
};
|
|
798
798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
799
|
switch (errorCode) {
|
|
@@ -836,7 +836,7 @@ exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = deser
|
|
|
836
836
|
const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
837
837
|
const parsedOutput = {
|
|
838
838
|
...output,
|
|
839
|
-
body: await
|
|
839
|
+
body: await parseErrorBody(output.body, context),
|
|
840
840
|
};
|
|
841
841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
842
|
switch (errorCode) {
|
|
@@ -873,7 +873,7 @@ exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = deseria
|
|
|
873
873
|
const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
874
874
|
const parsedOutput = {
|
|
875
875
|
...output,
|
|
876
|
-
body: await
|
|
876
|
+
body: await parseErrorBody(output.body, context),
|
|
877
877
|
};
|
|
878
878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
879
|
switch (errorCode) {
|
|
@@ -910,7 +910,7 @@ exports.deserializeAws_restJson1DisassociateMembershipCommand = deserializeAws_r
|
|
|
910
910
|
const deserializeAws_restJson1DisassociateMembershipCommandError = async (output, context) => {
|
|
911
911
|
const parsedOutput = {
|
|
912
912
|
...output,
|
|
913
|
-
body: await
|
|
913
|
+
body: await parseErrorBody(output.body, context),
|
|
914
914
|
};
|
|
915
915
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
916
|
switch (errorCode) {
|
|
@@ -950,7 +950,7 @@ exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = deserial
|
|
|
950
950
|
const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
951
951
|
const parsedOutput = {
|
|
952
952
|
...output,
|
|
953
|
-
body: await
|
|
953
|
+
body: await parseErrorBody(output.body, context),
|
|
954
954
|
};
|
|
955
955
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
956
|
switch (errorCode) {
|
|
@@ -993,7 +993,7 @@ exports.deserializeAws_restJson1GetMembersCommand = deserializeAws_restJson1GetM
|
|
|
993
993
|
const deserializeAws_restJson1GetMembersCommandError = async (output, context) => {
|
|
994
994
|
const parsedOutput = {
|
|
995
995
|
...output,
|
|
996
|
-
body: await
|
|
996
|
+
body: await parseErrorBody(output.body, context),
|
|
997
997
|
};
|
|
998
998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
999
|
switch (errorCode) {
|
|
@@ -1036,7 +1036,7 @@ exports.deserializeAws_restJson1ListDatasourcePackagesCommand = deserializeAws_r
|
|
|
1036
1036
|
const deserializeAws_restJson1ListDatasourcePackagesCommandError = async (output, context) => {
|
|
1037
1037
|
const parsedOutput = {
|
|
1038
1038
|
...output,
|
|
1039
|
-
body: await
|
|
1039
|
+
body: await parseErrorBody(output.body, context),
|
|
1040
1040
|
};
|
|
1041
1041
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
1042
|
switch (errorCode) {
|
|
@@ -1079,7 +1079,7 @@ exports.deserializeAws_restJson1ListGraphsCommand = deserializeAws_restJson1List
|
|
|
1079
1079
|
const deserializeAws_restJson1ListGraphsCommandError = async (output, context) => {
|
|
1080
1080
|
const parsedOutput = {
|
|
1081
1081
|
...output,
|
|
1082
|
-
body: await
|
|
1082
|
+
body: await parseErrorBody(output.body, context),
|
|
1083
1083
|
};
|
|
1084
1084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
1085
|
switch (errorCode) {
|
|
@@ -1119,7 +1119,7 @@ exports.deserializeAws_restJson1ListInvitationsCommand = deserializeAws_restJson
|
|
|
1119
1119
|
const deserializeAws_restJson1ListInvitationsCommandError = 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) {
|
|
@@ -1159,7 +1159,7 @@ exports.deserializeAws_restJson1ListMembersCommand = deserializeAws_restJson1Lis
|
|
|
1159
1159
|
const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
|
|
1160
1160
|
const parsedOutput = {
|
|
1161
1161
|
...output,
|
|
1162
|
-
body: await
|
|
1162
|
+
body: await parseErrorBody(output.body, context),
|
|
1163
1163
|
};
|
|
1164
1164
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1165
1165
|
switch (errorCode) {
|
|
@@ -1202,7 +1202,7 @@ exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = deseriali
|
|
|
1202
1202
|
const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async (output, context) => {
|
|
1203
1203
|
const parsedOutput = {
|
|
1204
1204
|
...output,
|
|
1205
|
-
body: await
|
|
1205
|
+
body: await parseErrorBody(output.body, context),
|
|
1206
1206
|
};
|
|
1207
1207
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
1208
|
switch (errorCode) {
|
|
@@ -1242,7 +1242,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1242
1242
|
const deserializeAws_restJson1ListTagsForResourceCommandError = 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) {
|
|
@@ -1279,7 +1279,7 @@ exports.deserializeAws_restJson1RejectInvitationCommand = deserializeAws_restJso
|
|
|
1279
1279
|
const deserializeAws_restJson1RejectInvitationCommandError = async (output, context) => {
|
|
1280
1280
|
const parsedOutput = {
|
|
1281
1281
|
...output,
|
|
1282
|
-
body: await
|
|
1282
|
+
body: await parseErrorBody(output.body, context),
|
|
1283
1283
|
};
|
|
1284
1284
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
1285
|
switch (errorCode) {
|
|
@@ -1319,7 +1319,7 @@ exports.deserializeAws_restJson1StartMonitoringMemberCommand = deserializeAws_re
|
|
|
1319
1319
|
const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output, context) => {
|
|
1320
1320
|
const parsedOutput = {
|
|
1321
1321
|
...output,
|
|
1322
|
-
body: await
|
|
1322
|
+
body: await parseErrorBody(output.body, context),
|
|
1323
1323
|
};
|
|
1324
1324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1325
1325
|
switch (errorCode) {
|
|
@@ -1362,7 +1362,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1362
1362
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1363
1363
|
const parsedOutput = {
|
|
1364
1364
|
...output,
|
|
1365
|
-
body: await
|
|
1365
|
+
body: await parseErrorBody(output.body, context),
|
|
1366
1366
|
};
|
|
1367
1367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
1368
|
switch (errorCode) {
|
|
@@ -1399,7 +1399,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1399
1399
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1400
1400
|
const parsedOutput = {
|
|
1401
1401
|
...output,
|
|
1402
|
-
body: await
|
|
1402
|
+
body: await parseErrorBody(output.body, context),
|
|
1403
1403
|
};
|
|
1404
1404
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
1405
|
switch (errorCode) {
|
|
@@ -1436,7 +1436,7 @@ exports.deserializeAws_restJson1UpdateDatasourcePackagesCommand = deserializeAws
|
|
|
1436
1436
|
const deserializeAws_restJson1UpdateDatasourcePackagesCommandError = async (output, context) => {
|
|
1437
1437
|
const parsedOutput = {
|
|
1438
1438
|
...output,
|
|
1439
|
-
body: await
|
|
1439
|
+
body: await parseErrorBody(output.body, context),
|
|
1440
1440
|
};
|
|
1441
1441
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
1442
|
switch (errorCode) {
|
|
@@ -1476,7 +1476,7 @@ exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = deseria
|
|
|
1476
1476
|
const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
1477
1477
|
const parsedOutput = {
|
|
1478
1478
|
...output,
|
|
1479
|
-
body: await
|
|
1479
|
+
body: await parseErrorBody(output.body, context),
|
|
1480
1480
|
};
|
|
1481
1481
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1482
1482
|
switch (errorCode) {
|
|
@@ -1897,6 +1897,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1897
1897
|
}
|
|
1898
1898
|
return {};
|
|
1899
1899
|
});
|
|
1900
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1901
|
+
var _a;
|
|
1902
|
+
const value = await parseBody(errorBody, context);
|
|
1903
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1904
|
+
return value;
|
|
1905
|
+
};
|
|
1900
1906
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1901
1907
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1902
1908
|
const sanitizeErrorCode = (rawValue) => {
|