@aws-sdk/client-detective 3.235.0 → 3.238.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/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +26 -8
- package/dist-cjs/protocols/Aws_restJson1.js +96 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +23 -6
- package/dist-es/protocols/Aws_restJson1.js +97 -1
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +34 -5
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +17 -5
- package/package.json +5 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: {
|
|
4
|
+
const q = "fn", r = "argv", s = "ref";
|
|
5
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://api.detective-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://api.detective-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://api.detective.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://api.detective.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateOrganizationConfigurationRequestFilterSensitiveLog = exports.UpdateDatasourcePackagesRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartMonitoringMemberRequestFilterSensitiveLog = exports.RejectInvitationRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = void 0;
|
|
3
|
+
exports.ListOrganizationAdminAccountsRequestFilterSensitiveLog = exports.ListMembersResponseFilterSensitiveLog = exports.ListMembersRequestFilterSensitiveLog = exports.ListInvitationsResponseFilterSensitiveLog = exports.ListInvitationsRequestFilterSensitiveLog = exports.ListGraphsResponseFilterSensitiveLog = exports.GraphFilterSensitiveLog = exports.ListGraphsRequestFilterSensitiveLog = exports.ListDatasourcePackagesResponseFilterSensitiveLog = exports.DatasourcePackageIngestDetailFilterSensitiveLog = exports.ListDatasourcePackagesRequestFilterSensitiveLog = exports.GetMembersResponseFilterSensitiveLog = exports.GetMembersRequestFilterSensitiveLog = exports.EnableOrganizationAdminAccountRequestFilterSensitiveLog = exports.DisassociateMembershipRequestFilterSensitiveLog = exports.DescribeOrganizationConfigurationResponseFilterSensitiveLog = exports.DescribeOrganizationConfigurationRequestFilterSensitiveLog = exports.DeleteMembersResponseFilterSensitiveLog = exports.DeleteMembersRequestFilterSensitiveLog = exports.DeleteGraphRequestFilterSensitiveLog = exports.CreateMembersResponseFilterSensitiveLog = exports.MemberDetailFilterSensitiveLog = exports.DatasourcePackageUsageInfoFilterSensitiveLog = exports.CreateMembersRequestFilterSensitiveLog = exports.CreateGraphResponseFilterSensitiveLog = exports.CreateGraphRequestFilterSensitiveLog = exports.BatchGetMembershipDatasourcesResponseFilterSensitiveLog = exports.UnprocessedGraphFilterSensitiveLog = exports.BatchGetMembershipDatasourcesRequestFilterSensitiveLog = exports.BatchGetGraphMemberDatasourcesResponseFilterSensitiveLog = exports.UnprocessedAccountFilterSensitiveLog = exports.MembershipDatasourcesFilterSensitiveLog = exports.TimestampForCollectionFilterSensitiveLog = exports.BatchGetGraphMemberDatasourcesRequestFilterSensitiveLog = exports.AdministratorFilterSensitiveLog = exports.AccountFilterSensitiveLog = exports.AcceptInvitationRequestFilterSensitiveLog = exports.TooManyRequestsException = exports.MemberStatus = exports.InvitationType = exports.MemberDisabledReason = exports.ServiceQuotaExceededException = exports.DatasourcePackageIngestState = exports.DatasourcePackage = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = exports.ErrorCode = void 0;
|
|
4
|
+
exports.UpdateOrganizationConfigurationRequestFilterSensitiveLog = exports.UpdateDatasourcePackagesRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartMonitoringMemberRequestFilterSensitiveLog = exports.RejectInvitationRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListOrganizationAdminAccountsResponseFilterSensitiveLog = void 0;
|
|
5
5
|
const DetectiveServiceException_1 = require("./DetectiveServiceException");
|
|
6
|
+
var ErrorCode;
|
|
7
|
+
(function (ErrorCode) {
|
|
8
|
+
ErrorCode["InternalError"] = "INTERNAL_ERROR";
|
|
9
|
+
ErrorCode["InvalidGraphArn"] = "INVALID_GRAPH_ARN";
|
|
10
|
+
ErrorCode["InvalidRequestBody"] = "INVALID_REQUEST_BODY";
|
|
11
|
+
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
|
|
12
|
+
class AccessDeniedException extends DetectiveServiceException_1.DetectiveServiceException {
|
|
13
|
+
constructor(opts) {
|
|
14
|
+
super({
|
|
15
|
+
name: "AccessDeniedException",
|
|
16
|
+
$fault: "client",
|
|
17
|
+
...opts,
|
|
18
|
+
});
|
|
19
|
+
this.name = "AccessDeniedException";
|
|
20
|
+
this.$fault = "client";
|
|
21
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
22
|
+
this.Message = opts.Message;
|
|
23
|
+
this.ErrorCode = opts.ErrorCode;
|
|
24
|
+
this.ErrorCodeReason = opts.ErrorCodeReason;
|
|
25
|
+
this.SubErrorCode = opts.SubErrorCode;
|
|
26
|
+
this.SubErrorCodeReason = opts.SubErrorCodeReason;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
6
30
|
class ConflictException extends DetectiveServiceException_1.DetectiveServiceException {
|
|
7
31
|
constructor(opts) {
|
|
8
32
|
super({
|
|
@@ -45,12 +69,6 @@ class ResourceNotFoundException extends DetectiveServiceException_1.DetectiveSer
|
|
|
45
69
|
}
|
|
46
70
|
}
|
|
47
71
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
48
|
-
var ErrorCode;
|
|
49
|
-
(function (ErrorCode) {
|
|
50
|
-
ErrorCode["InternalError"] = "INTERNAL_ERROR";
|
|
51
|
-
ErrorCode["InvalidGraphArn"] = "INVALID_GRAPH_ARN";
|
|
52
|
-
ErrorCode["InvalidRequestBody"] = "INVALID_REQUEST_BODY";
|
|
53
|
-
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
|
|
54
72
|
class ValidationException extends DetectiveServiceException_1.DetectiveServiceException {
|
|
55
73
|
constructor(opts) {
|
|
56
74
|
super({
|
|
@@ -545,6 +545,9 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
545
545
|
};
|
|
546
546
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
547
|
switch (errorCode) {
|
|
548
|
+
case "AccessDeniedException":
|
|
549
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
550
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
548
551
|
case "ConflictException":
|
|
549
552
|
case "com.amazonaws.detective#ConflictException":
|
|
550
553
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -591,6 +594,9 @@ const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = async
|
|
|
591
594
|
};
|
|
592
595
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
596
|
switch (errorCode) {
|
|
597
|
+
case "AccessDeniedException":
|
|
598
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
599
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
594
600
|
case "InternalServerException":
|
|
595
601
|
case "com.amazonaws.detective#InternalServerException":
|
|
596
602
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -634,6 +640,9 @@ const deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = async
|
|
|
634
640
|
};
|
|
635
641
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
636
642
|
switch (errorCode) {
|
|
643
|
+
case "AccessDeniedException":
|
|
644
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
645
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
637
646
|
case "InternalServerException":
|
|
638
647
|
case "com.amazonaws.detective#InternalServerException":
|
|
639
648
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -674,6 +683,9 @@ const deserializeAws_restJson1CreateGraphCommandError = async (output, context)
|
|
|
674
683
|
};
|
|
675
684
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
676
685
|
switch (errorCode) {
|
|
686
|
+
case "AccessDeniedException":
|
|
687
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
688
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
677
689
|
case "ConflictException":
|
|
678
690
|
case "com.amazonaws.detective#ConflictException":
|
|
679
691
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -717,6 +729,9 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
|
|
|
717
729
|
};
|
|
718
730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
719
731
|
switch (errorCode) {
|
|
732
|
+
case "AccessDeniedException":
|
|
733
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
734
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
720
735
|
case "InternalServerException":
|
|
721
736
|
case "com.amazonaws.detective#InternalServerException":
|
|
722
737
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -757,6 +772,9 @@ const deserializeAws_restJson1DeleteGraphCommandError = async (output, context)
|
|
|
757
772
|
};
|
|
758
773
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
774
|
switch (errorCode) {
|
|
775
|
+
case "AccessDeniedException":
|
|
776
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
777
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
760
778
|
case "InternalServerException":
|
|
761
779
|
case "com.amazonaws.detective#InternalServerException":
|
|
762
780
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -800,6 +818,9 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
|
|
|
800
818
|
};
|
|
801
819
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
820
|
switch (errorCode) {
|
|
821
|
+
case "AccessDeniedException":
|
|
822
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
823
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
803
824
|
case "ConflictException":
|
|
804
825
|
case "com.amazonaws.detective#ConflictException":
|
|
805
826
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -843,6 +864,9 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
843
864
|
};
|
|
844
865
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
866
|
switch (errorCode) {
|
|
867
|
+
case "AccessDeniedException":
|
|
868
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
869
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
846
870
|
case "InternalServerException":
|
|
847
871
|
case "com.amazonaws.detective#InternalServerException":
|
|
848
872
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -880,6 +904,9 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
880
904
|
};
|
|
881
905
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
906
|
switch (errorCode) {
|
|
907
|
+
case "AccessDeniedException":
|
|
908
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
909
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
883
910
|
case "InternalServerException":
|
|
884
911
|
case "com.amazonaws.detective#InternalServerException":
|
|
885
912
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -917,6 +944,9 @@ const deserializeAws_restJson1DisassociateMembershipCommandError = async (output
|
|
|
917
944
|
};
|
|
918
945
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
946
|
switch (errorCode) {
|
|
947
|
+
case "AccessDeniedException":
|
|
948
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
949
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
920
950
|
case "ConflictException":
|
|
921
951
|
case "com.amazonaws.detective#ConflictException":
|
|
922
952
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -957,6 +987,9 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
957
987
|
};
|
|
958
988
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
989
|
switch (errorCode) {
|
|
990
|
+
case "AccessDeniedException":
|
|
991
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
992
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
960
993
|
case "InternalServerException":
|
|
961
994
|
case "com.amazonaws.detective#InternalServerException":
|
|
962
995
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1000,6 +1033,9 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
1000
1033
|
};
|
|
1001
1034
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
1035
|
switch (errorCode) {
|
|
1036
|
+
case "AccessDeniedException":
|
|
1037
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1038
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1003
1039
|
case "InternalServerException":
|
|
1004
1040
|
case "com.amazonaws.detective#InternalServerException":
|
|
1005
1041
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1043,6 +1079,9 @@ const deserializeAws_restJson1ListDatasourcePackagesCommandError = async (output
|
|
|
1043
1079
|
};
|
|
1044
1080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1045
1081
|
switch (errorCode) {
|
|
1082
|
+
case "AccessDeniedException":
|
|
1083
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1084
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1046
1085
|
case "InternalServerException":
|
|
1047
1086
|
case "com.amazonaws.detective#InternalServerException":
|
|
1048
1087
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1086,6 +1125,9 @@ const deserializeAws_restJson1ListGraphsCommandError = async (output, context) =
|
|
|
1086
1125
|
};
|
|
1087
1126
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
1127
|
switch (errorCode) {
|
|
1128
|
+
case "AccessDeniedException":
|
|
1129
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1130
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1089
1131
|
case "InternalServerException":
|
|
1090
1132
|
case "com.amazonaws.detective#InternalServerException":
|
|
1091
1133
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1126,6 +1168,9 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
1126
1168
|
};
|
|
1127
1169
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
1170
|
switch (errorCode) {
|
|
1171
|
+
case "AccessDeniedException":
|
|
1172
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1173
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1129
1174
|
case "InternalServerException":
|
|
1130
1175
|
case "com.amazonaws.detective#InternalServerException":
|
|
1131
1176
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1166,6 +1211,9 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
1166
1211
|
};
|
|
1167
1212
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
1213
|
switch (errorCode) {
|
|
1214
|
+
case "AccessDeniedException":
|
|
1215
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1216
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1169
1217
|
case "InternalServerException":
|
|
1170
1218
|
case "com.amazonaws.detective#InternalServerException":
|
|
1171
1219
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1209,6 +1257,9 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
1209
1257
|
};
|
|
1210
1258
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
1259
|
switch (errorCode) {
|
|
1260
|
+
case "AccessDeniedException":
|
|
1261
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1262
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1212
1263
|
case "InternalServerException":
|
|
1213
1264
|
case "com.amazonaws.detective#InternalServerException":
|
|
1214
1265
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1249,6 +1300,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1249
1300
|
};
|
|
1250
1301
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
1302
|
switch (errorCode) {
|
|
1303
|
+
case "AccessDeniedException":
|
|
1304
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1305
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1252
1306
|
case "InternalServerException":
|
|
1253
1307
|
case "com.amazonaws.detective#InternalServerException":
|
|
1254
1308
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1286,6 +1340,9 @@ const deserializeAws_restJson1RejectInvitationCommandError = async (output, cont
|
|
|
1286
1340
|
};
|
|
1287
1341
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
1342
|
switch (errorCode) {
|
|
1343
|
+
case "AccessDeniedException":
|
|
1344
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1345
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1289
1346
|
case "ConflictException":
|
|
1290
1347
|
case "com.amazonaws.detective#ConflictException":
|
|
1291
1348
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -1326,6 +1383,9 @@ const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output,
|
|
|
1326
1383
|
};
|
|
1327
1384
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1328
1385
|
switch (errorCode) {
|
|
1386
|
+
case "AccessDeniedException":
|
|
1387
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1388
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1329
1389
|
case "ConflictException":
|
|
1330
1390
|
case "com.amazonaws.detective#ConflictException":
|
|
1331
1391
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -1369,6 +1429,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1369
1429
|
};
|
|
1370
1430
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1371
1431
|
switch (errorCode) {
|
|
1432
|
+
case "AccessDeniedException":
|
|
1433
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1434
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1372
1435
|
case "InternalServerException":
|
|
1373
1436
|
case "com.amazonaws.detective#InternalServerException":
|
|
1374
1437
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1406,6 +1469,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1406
1469
|
};
|
|
1407
1470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
1471
|
switch (errorCode) {
|
|
1472
|
+
case "AccessDeniedException":
|
|
1473
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1474
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1409
1475
|
case "InternalServerException":
|
|
1410
1476
|
case "com.amazonaws.detective#InternalServerException":
|
|
1411
1477
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1443,6 +1509,9 @@ const deserializeAws_restJson1UpdateDatasourcePackagesCommandError = async (outp
|
|
|
1443
1509
|
};
|
|
1444
1510
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
1511
|
switch (errorCode) {
|
|
1512
|
+
case "AccessDeniedException":
|
|
1513
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1514
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1446
1515
|
case "InternalServerException":
|
|
1447
1516
|
case "com.amazonaws.detective#InternalServerException":
|
|
1448
1517
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1483,6 +1552,9 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
1483
1552
|
};
|
|
1484
1553
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
1554
|
switch (errorCode) {
|
|
1555
|
+
case "AccessDeniedException":
|
|
1556
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1557
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1486
1558
|
case "InternalServerException":
|
|
1487
1559
|
case "com.amazonaws.detective#InternalServerException":
|
|
1488
1560
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1503,6 +1575,30 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
1503
1575
|
}
|
|
1504
1576
|
};
|
|
1505
1577
|
const map = smithy_client_1.map;
|
|
1578
|
+
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1579
|
+
const contents = map({});
|
|
1580
|
+
const data = parsedOutput.body;
|
|
1581
|
+
if (data.ErrorCode != null) {
|
|
1582
|
+
contents.ErrorCode = (0, smithy_client_1.expectString)(data.ErrorCode);
|
|
1583
|
+
}
|
|
1584
|
+
if (data.ErrorCodeReason != null) {
|
|
1585
|
+
contents.ErrorCodeReason = (0, smithy_client_1.expectString)(data.ErrorCodeReason);
|
|
1586
|
+
}
|
|
1587
|
+
if (data.Message != null) {
|
|
1588
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1589
|
+
}
|
|
1590
|
+
if (data.SubErrorCode != null) {
|
|
1591
|
+
contents.SubErrorCode = (0, smithy_client_1.expectString)(data.SubErrorCode);
|
|
1592
|
+
}
|
|
1593
|
+
if (data.SubErrorCodeReason != null) {
|
|
1594
|
+
contents.SubErrorCodeReason = (0, smithy_client_1.expectString)(data.SubErrorCodeReason);
|
|
1595
|
+
}
|
|
1596
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1597
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1598
|
+
...contents,
|
|
1599
|
+
});
|
|
1600
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1601
|
+
};
|
|
1506
1602
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1507
1603
|
const contents = map({});
|
|
1508
1604
|
const data = parsedOutput.body;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: {
|
|
1
|
+
const q = "fn", r = "argv", s = "ref";
|
|
2
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://api.detective-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://api.detective-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://api.detective.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://api.detective.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
import { DetectiveServiceException as __BaseException } from "./DetectiveServiceException";
|
|
2
|
+
export var ErrorCode;
|
|
3
|
+
(function (ErrorCode) {
|
|
4
|
+
ErrorCode["InternalError"] = "INTERNAL_ERROR";
|
|
5
|
+
ErrorCode["InvalidGraphArn"] = "INVALID_GRAPH_ARN";
|
|
6
|
+
ErrorCode["InvalidRequestBody"] = "INVALID_REQUEST_BODY";
|
|
7
|
+
})(ErrorCode || (ErrorCode = {}));
|
|
8
|
+
export class AccessDeniedException extends __BaseException {
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "AccessDeniedException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
this.name = "AccessDeniedException";
|
|
16
|
+
this.$fault = "client";
|
|
17
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
18
|
+
this.Message = opts.Message;
|
|
19
|
+
this.ErrorCode = opts.ErrorCode;
|
|
20
|
+
this.ErrorCodeReason = opts.ErrorCodeReason;
|
|
21
|
+
this.SubErrorCode = opts.SubErrorCode;
|
|
22
|
+
this.SubErrorCodeReason = opts.SubErrorCodeReason;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
2
25
|
export class ConflictException extends __BaseException {
|
|
3
26
|
constructor(opts) {
|
|
4
27
|
super({
|
|
@@ -38,12 +61,6 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
38
61
|
this.Message = opts.Message;
|
|
39
62
|
}
|
|
40
63
|
}
|
|
41
|
-
export var ErrorCode;
|
|
42
|
-
(function (ErrorCode) {
|
|
43
|
-
ErrorCode["InternalError"] = "INTERNAL_ERROR";
|
|
44
|
-
ErrorCode["InvalidGraphArn"] = "INVALID_GRAPH_ARN";
|
|
45
|
-
ErrorCode["InvalidRequestBody"] = "INVALID_REQUEST_BODY";
|
|
46
|
-
})(ErrorCode || (ErrorCode = {}));
|
|
47
64
|
export class ValidationException extends __BaseException {
|
|
48
65
|
constructor(opts) {
|
|
49
66
|
super({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { DetectiveServiceException as __BaseException } from "../models/DetectiveServiceException";
|
|
4
|
-
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const serializeAws_restJson1AcceptInvitationCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
@@ -517,6 +517,9 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
517
517
|
};
|
|
518
518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
519
519
|
switch (errorCode) {
|
|
520
|
+
case "AccessDeniedException":
|
|
521
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
522
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
520
523
|
case "ConflictException":
|
|
521
524
|
case "com.amazonaws.detective#ConflictException":
|
|
522
525
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -562,6 +565,9 @@ const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = async
|
|
|
562
565
|
};
|
|
563
566
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
567
|
switch (errorCode) {
|
|
568
|
+
case "AccessDeniedException":
|
|
569
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
570
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
565
571
|
case "InternalServerException":
|
|
566
572
|
case "com.amazonaws.detective#InternalServerException":
|
|
567
573
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -604,6 +610,9 @@ const deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = async
|
|
|
604
610
|
};
|
|
605
611
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
606
612
|
switch (errorCode) {
|
|
613
|
+
case "AccessDeniedException":
|
|
614
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
615
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
607
616
|
case "InternalServerException":
|
|
608
617
|
case "com.amazonaws.detective#InternalServerException":
|
|
609
618
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -643,6 +652,9 @@ const deserializeAws_restJson1CreateGraphCommandError = async (output, context)
|
|
|
643
652
|
};
|
|
644
653
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
654
|
switch (errorCode) {
|
|
655
|
+
case "AccessDeniedException":
|
|
656
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
657
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
646
658
|
case "ConflictException":
|
|
647
659
|
case "com.amazonaws.detective#ConflictException":
|
|
648
660
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -685,6 +697,9 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
|
|
|
685
697
|
};
|
|
686
698
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
699
|
switch (errorCode) {
|
|
700
|
+
case "AccessDeniedException":
|
|
701
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
702
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
688
703
|
case "InternalServerException":
|
|
689
704
|
case "com.amazonaws.detective#InternalServerException":
|
|
690
705
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -724,6 +739,9 @@ const deserializeAws_restJson1DeleteGraphCommandError = async (output, context)
|
|
|
724
739
|
};
|
|
725
740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
726
741
|
switch (errorCode) {
|
|
742
|
+
case "AccessDeniedException":
|
|
743
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
744
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
727
745
|
case "InternalServerException":
|
|
728
746
|
case "com.amazonaws.detective#InternalServerException":
|
|
729
747
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -766,6 +784,9 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
|
|
|
766
784
|
};
|
|
767
785
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
786
|
switch (errorCode) {
|
|
787
|
+
case "AccessDeniedException":
|
|
788
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
789
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
769
790
|
case "ConflictException":
|
|
770
791
|
case "com.amazonaws.detective#ConflictException":
|
|
771
792
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -808,6 +829,9 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
808
829
|
};
|
|
809
830
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
831
|
switch (errorCode) {
|
|
832
|
+
case "AccessDeniedException":
|
|
833
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
834
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
811
835
|
case "InternalServerException":
|
|
812
836
|
case "com.amazonaws.detective#InternalServerException":
|
|
813
837
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -844,6 +868,9 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
844
868
|
};
|
|
845
869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
870
|
switch (errorCode) {
|
|
871
|
+
case "AccessDeniedException":
|
|
872
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
873
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
847
874
|
case "InternalServerException":
|
|
848
875
|
case "com.amazonaws.detective#InternalServerException":
|
|
849
876
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -880,6 +907,9 @@ const deserializeAws_restJson1DisassociateMembershipCommandError = async (output
|
|
|
880
907
|
};
|
|
881
908
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
909
|
switch (errorCode) {
|
|
910
|
+
case "AccessDeniedException":
|
|
911
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
912
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
883
913
|
case "ConflictException":
|
|
884
914
|
case "com.amazonaws.detective#ConflictException":
|
|
885
915
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -919,6 +949,9 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
919
949
|
};
|
|
920
950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
951
|
switch (errorCode) {
|
|
952
|
+
case "AccessDeniedException":
|
|
953
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
954
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
922
955
|
case "InternalServerException":
|
|
923
956
|
case "com.amazonaws.detective#InternalServerException":
|
|
924
957
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -961,6 +994,9 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
961
994
|
};
|
|
962
995
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
996
|
switch (errorCode) {
|
|
997
|
+
case "AccessDeniedException":
|
|
998
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
999
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
964
1000
|
case "InternalServerException":
|
|
965
1001
|
case "com.amazonaws.detective#InternalServerException":
|
|
966
1002
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1003,6 +1039,9 @@ const deserializeAws_restJson1ListDatasourcePackagesCommandError = async (output
|
|
|
1003
1039
|
};
|
|
1004
1040
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
1041
|
switch (errorCode) {
|
|
1042
|
+
case "AccessDeniedException":
|
|
1043
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1044
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1006
1045
|
case "InternalServerException":
|
|
1007
1046
|
case "com.amazonaws.detective#InternalServerException":
|
|
1008
1047
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1045,6 +1084,9 @@ const deserializeAws_restJson1ListGraphsCommandError = async (output, context) =
|
|
|
1045
1084
|
};
|
|
1046
1085
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
1086
|
switch (errorCode) {
|
|
1087
|
+
case "AccessDeniedException":
|
|
1088
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1089
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1048
1090
|
case "InternalServerException":
|
|
1049
1091
|
case "com.amazonaws.detective#InternalServerException":
|
|
1050
1092
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1084,6 +1126,9 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
1084
1126
|
};
|
|
1085
1127
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
1128
|
switch (errorCode) {
|
|
1129
|
+
case "AccessDeniedException":
|
|
1130
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1131
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1087
1132
|
case "InternalServerException":
|
|
1088
1133
|
case "com.amazonaws.detective#InternalServerException":
|
|
1089
1134
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1123,6 +1168,9 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
1123
1168
|
};
|
|
1124
1169
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
1170
|
switch (errorCode) {
|
|
1171
|
+
case "AccessDeniedException":
|
|
1172
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1173
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1126
1174
|
case "InternalServerException":
|
|
1127
1175
|
case "com.amazonaws.detective#InternalServerException":
|
|
1128
1176
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1165,6 +1213,9 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
1165
1213
|
};
|
|
1166
1214
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
1215
|
switch (errorCode) {
|
|
1216
|
+
case "AccessDeniedException":
|
|
1217
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1218
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1168
1219
|
case "InternalServerException":
|
|
1169
1220
|
case "com.amazonaws.detective#InternalServerException":
|
|
1170
1221
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1204,6 +1255,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1204
1255
|
};
|
|
1205
1256
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
1257
|
switch (errorCode) {
|
|
1258
|
+
case "AccessDeniedException":
|
|
1259
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1260
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1207
1261
|
case "InternalServerException":
|
|
1208
1262
|
case "com.amazonaws.detective#InternalServerException":
|
|
1209
1263
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1240,6 +1294,9 @@ const deserializeAws_restJson1RejectInvitationCommandError = async (output, cont
|
|
|
1240
1294
|
};
|
|
1241
1295
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
1296
|
switch (errorCode) {
|
|
1297
|
+
case "AccessDeniedException":
|
|
1298
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1299
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1243
1300
|
case "ConflictException":
|
|
1244
1301
|
case "com.amazonaws.detective#ConflictException":
|
|
1245
1302
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -1279,6 +1336,9 @@ const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output,
|
|
|
1279
1336
|
};
|
|
1280
1337
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
1338
|
switch (errorCode) {
|
|
1339
|
+
case "AccessDeniedException":
|
|
1340
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1341
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1282
1342
|
case "ConflictException":
|
|
1283
1343
|
case "com.amazonaws.detective#ConflictException":
|
|
1284
1344
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -1321,6 +1381,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1321
1381
|
};
|
|
1322
1382
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
1383
|
switch (errorCode) {
|
|
1384
|
+
case "AccessDeniedException":
|
|
1385
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1386
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1324
1387
|
case "InternalServerException":
|
|
1325
1388
|
case "com.amazonaws.detective#InternalServerException":
|
|
1326
1389
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1357,6 +1420,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1357
1420
|
};
|
|
1358
1421
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
1422
|
switch (errorCode) {
|
|
1423
|
+
case "AccessDeniedException":
|
|
1424
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1425
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1360
1426
|
case "InternalServerException":
|
|
1361
1427
|
case "com.amazonaws.detective#InternalServerException":
|
|
1362
1428
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1393,6 +1459,9 @@ const deserializeAws_restJson1UpdateDatasourcePackagesCommandError = async (outp
|
|
|
1393
1459
|
};
|
|
1394
1460
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
1461
|
switch (errorCode) {
|
|
1462
|
+
case "AccessDeniedException":
|
|
1463
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1464
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1396
1465
|
case "InternalServerException":
|
|
1397
1466
|
case "com.amazonaws.detective#InternalServerException":
|
|
1398
1467
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1432,6 +1501,9 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
1432
1501
|
};
|
|
1433
1502
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
1503
|
switch (errorCode) {
|
|
1504
|
+
case "AccessDeniedException":
|
|
1505
|
+
case "com.amazonaws.detective#AccessDeniedException":
|
|
1506
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1435
1507
|
case "InternalServerException":
|
|
1436
1508
|
case "com.amazonaws.detective#InternalServerException":
|
|
1437
1509
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1452,6 +1524,30 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
1452
1524
|
}
|
|
1453
1525
|
};
|
|
1454
1526
|
const map = __map;
|
|
1527
|
+
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1528
|
+
const contents = map({});
|
|
1529
|
+
const data = parsedOutput.body;
|
|
1530
|
+
if (data.ErrorCode != null) {
|
|
1531
|
+
contents.ErrorCode = __expectString(data.ErrorCode);
|
|
1532
|
+
}
|
|
1533
|
+
if (data.ErrorCodeReason != null) {
|
|
1534
|
+
contents.ErrorCodeReason = __expectString(data.ErrorCodeReason);
|
|
1535
|
+
}
|
|
1536
|
+
if (data.Message != null) {
|
|
1537
|
+
contents.Message = __expectString(data.Message);
|
|
1538
|
+
}
|
|
1539
|
+
if (data.SubErrorCode != null) {
|
|
1540
|
+
contents.SubErrorCode = __expectString(data.SubErrorCode);
|
|
1541
|
+
}
|
|
1542
|
+
if (data.SubErrorCodeReason != null) {
|
|
1543
|
+
contents.SubErrorCodeReason = __expectString(data.SubErrorCodeReason);
|
|
1544
|
+
}
|
|
1545
|
+
const exception = new AccessDeniedException({
|
|
1546
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1547
|
+
...contents,
|
|
1548
|
+
});
|
|
1549
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1550
|
+
};
|
|
1455
1551
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1456
1552
|
const contents = map({});
|
|
1457
1553
|
const data = parsedOutput.body;
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -8,6 +8,40 @@ export interface AcceptInvitationRequest {
|
|
|
8
8
|
*/
|
|
9
9
|
GraphArn: string | undefined;
|
|
10
10
|
}
|
|
11
|
+
export declare enum ErrorCode {
|
|
12
|
+
InternalError = "INTERNAL_ERROR",
|
|
13
|
+
InvalidGraphArn = "INVALID_GRAPH_ARN",
|
|
14
|
+
InvalidRequestBody = "INVALID_REQUEST_BODY"
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* <p>The request issuer does not have permission to access this resource or perform this
|
|
18
|
+
* operation.</p>
|
|
19
|
+
*/
|
|
20
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
21
|
+
readonly name: "AccessDeniedException";
|
|
22
|
+
readonly $fault: "client";
|
|
23
|
+
Message?: string;
|
|
24
|
+
/**
|
|
25
|
+
* <p>The SDK default error code associated with the access denied exception.</p>
|
|
26
|
+
*/
|
|
27
|
+
ErrorCode?: ErrorCode | string;
|
|
28
|
+
/**
|
|
29
|
+
* <p>The SDK default explanation of why access was denied.</p>
|
|
30
|
+
*/
|
|
31
|
+
ErrorCodeReason?: string;
|
|
32
|
+
/**
|
|
33
|
+
* <p>The error code associated with the access denied exception.</p>
|
|
34
|
+
*/
|
|
35
|
+
SubErrorCode?: ErrorCode | string;
|
|
36
|
+
/**
|
|
37
|
+
* <p> An explanation of why access was denied.</p>
|
|
38
|
+
*/
|
|
39
|
+
SubErrorCodeReason?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
44
|
+
}
|
|
11
45
|
/**
|
|
12
46
|
* <p>The request attempted an invalid action.</p>
|
|
13
47
|
*/
|
|
@@ -44,11 +78,6 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
44
78
|
*/
|
|
45
79
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
46
80
|
}
|
|
47
|
-
export declare enum ErrorCode {
|
|
48
|
-
InternalError = "INTERNAL_ERROR",
|
|
49
|
-
InvalidGraphArn = "INVALID_GRAPH_ARN",
|
|
50
|
-
InvalidRequestBody = "INVALID_REQUEST_BODY"
|
|
51
|
-
}
|
|
52
81
|
/**
|
|
53
82
|
* <p>The request parameters are invalid.</p>
|
|
54
83
|
*/
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
|
@@ -3,6 +3,23 @@ import { DetectiveServiceException as __BaseException } from "./DetectiveService
|
|
|
3
3
|
export interface AcceptInvitationRequest {
|
|
4
4
|
GraphArn: string | undefined;
|
|
5
5
|
}
|
|
6
|
+
export declare enum ErrorCode {
|
|
7
|
+
InternalError = "INTERNAL_ERROR",
|
|
8
|
+
InvalidGraphArn = "INVALID_GRAPH_ARN",
|
|
9
|
+
InvalidRequestBody = "INVALID_REQUEST_BODY",
|
|
10
|
+
}
|
|
11
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
12
|
+
readonly name: "AccessDeniedException";
|
|
13
|
+
readonly $fault: "client";
|
|
14
|
+
Message?: string;
|
|
15
|
+
ErrorCode?: ErrorCode | string;
|
|
16
|
+
ErrorCodeReason?: string;
|
|
17
|
+
SubErrorCode?: ErrorCode | string;
|
|
18
|
+
SubErrorCodeReason?: string;
|
|
19
|
+
constructor(
|
|
20
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
6
23
|
export declare class ConflictException extends __BaseException {
|
|
7
24
|
readonly name: "ConflictException";
|
|
8
25
|
readonly $fault: "client";
|
|
@@ -25,11 +42,6 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
25
42
|
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
26
43
|
);
|
|
27
44
|
}
|
|
28
|
-
export declare enum ErrorCode {
|
|
29
|
-
InternalError = "INTERNAL_ERROR",
|
|
30
|
-
InvalidGraphArn = "INVALID_GRAPH_ARN",
|
|
31
|
-
InvalidRequestBody = "INVALID_REQUEST_BODY",
|
|
32
|
-
}
|
|
33
45
|
export declare class ValidationException extends __BaseException {
|
|
34
46
|
readonly name: "ValidationException";
|
|
35
47
|
readonly $fault: "client";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-detective",
|
|
3
3
|
"description": "AWS SDK for JavaScript Detective Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.238.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
11
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
|
-
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
|
|
13
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
+
"generate:client": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/detective.json --keepFiles)"
|
|
14
15
|
},
|
|
15
16
|
"main": "./dist-cjs/index.js",
|
|
16
17
|
"types": "./dist-types/index.d.ts",
|
|
@@ -19,9 +20,9 @@
|
|
|
19
20
|
"dependencies": {
|
|
20
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.238.0",
|
|
23
24
|
"@aws-sdk/config-resolver": "3.234.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.238.0",
|
|
25
26
|
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
26
27
|
"@aws-sdk/hash-node": "3.226.0",
|
|
27
28
|
"@aws-sdk/invalid-dependency": "3.226.0",
|