@aws-sdk/client-codeguru-reviewer 3.933.0 → 3.935.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/index.js +67 -66
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +66 -0
- package/dist-es/models/errors.js +99 -0
- package/dist-es/models/models_0.js +1 -165
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +154 -0
- package/dist-types/models/errors.d.ts +95 -0
- package/dist-types/models/models_0.d.ts +1 -249
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +81 -0
- package/dist-types/ts3.4/models/errors.d.ts +54 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -135
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -132,28 +132,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends CodeGuruReview
|
|
|
132
132
|
this.Message = opts.Message;
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
|
-
const AnalysisType = {
|
|
136
|
-
CODE_QUALITY: "CodeQuality",
|
|
137
|
-
SECURITY: "Security",
|
|
138
|
-
};
|
|
139
|
-
const EncryptionOption = {
|
|
140
|
-
AoCmk: "AWS_OWNED_CMK",
|
|
141
|
-
CmCmk: "CUSTOMER_MANAGED_CMK",
|
|
142
|
-
};
|
|
143
|
-
const ProviderType = {
|
|
144
|
-
BITBUCKET: "Bitbucket",
|
|
145
|
-
CODE_COMMIT: "CodeCommit",
|
|
146
|
-
GIT_HUB: "GitHub",
|
|
147
|
-
GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer",
|
|
148
|
-
S3_BUCKET: "S3Bucket",
|
|
149
|
-
};
|
|
150
|
-
const RepositoryAssociationState = {
|
|
151
|
-
ASSOCIATED: "Associated",
|
|
152
|
-
ASSOCIATING: "Associating",
|
|
153
|
-
DISASSOCIATED: "Disassociated",
|
|
154
|
-
DISASSOCIATING: "Disassociating",
|
|
155
|
-
FAILED: "Failed",
|
|
156
|
-
};
|
|
157
135
|
let ConflictException$1 = class ConflictException extends CodeGuruReviewerServiceException$1 {
|
|
158
136
|
name = "ConflictException";
|
|
159
137
|
$fault = "client";
|
|
@@ -210,26 +188,6 @@ let ValidationException$1 = class ValidationException extends CodeGuruReviewerSe
|
|
|
210
188
|
this.Message = opts.Message;
|
|
211
189
|
}
|
|
212
190
|
};
|
|
213
|
-
const VendorName = {
|
|
214
|
-
GITHUB: "GitHub",
|
|
215
|
-
GITLAB: "GitLab",
|
|
216
|
-
NATIVE_S3: "NativeS3",
|
|
217
|
-
};
|
|
218
|
-
const ConfigFileState = {
|
|
219
|
-
ABSENT: "Absent",
|
|
220
|
-
PRESENT: "Present",
|
|
221
|
-
PRESENT_WITH_ERRORS: "PresentWithErrors",
|
|
222
|
-
};
|
|
223
|
-
const JobState = {
|
|
224
|
-
COMPLETED: "Completed",
|
|
225
|
-
DELETING: "Deleting",
|
|
226
|
-
FAILED: "Failed",
|
|
227
|
-
PENDING: "Pending",
|
|
228
|
-
};
|
|
229
|
-
const Type = {
|
|
230
|
-
PULL_REQUEST: "PullRequest",
|
|
231
|
-
REPOSITORY_ANALYSIS: "RepositoryAnalysis",
|
|
232
|
-
};
|
|
233
191
|
let ResourceNotFoundException$1 = class ResourceNotFoundException extends CodeGuruReviewerServiceException$1 {
|
|
234
192
|
name = "ResourceNotFoundException";
|
|
235
193
|
$fault = "client";
|
|
@@ -244,10 +202,6 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends CodeGu
|
|
|
244
202
|
this.Message = opts.Message;
|
|
245
203
|
}
|
|
246
204
|
};
|
|
247
|
-
const Reaction = {
|
|
248
|
-
THUMBS_DOWN: "ThumbsDown",
|
|
249
|
-
THUMBS_UP: "ThumbsUp",
|
|
250
|
-
};
|
|
251
205
|
let NotFoundException$1 = class NotFoundException extends CodeGuruReviewerServiceException$1 {
|
|
252
206
|
name = "NotFoundException";
|
|
253
207
|
$fault = "client";
|
|
@@ -262,26 +216,6 @@ let NotFoundException$1 = class NotFoundException extends CodeGuruReviewerServic
|
|
|
262
216
|
this.Message = opts.Message;
|
|
263
217
|
}
|
|
264
218
|
};
|
|
265
|
-
const RecommendationCategory = {
|
|
266
|
-
AWS_BEST_PRACTICES: "AWSBestPractices",
|
|
267
|
-
AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues",
|
|
268
|
-
CODE_INCONSISTENCIES: "CodeInconsistencies",
|
|
269
|
-
CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues",
|
|
270
|
-
CONCURRENCY_ISSUES: "ConcurrencyIssues",
|
|
271
|
-
DUPLICATE_CODE: "DuplicateCode",
|
|
272
|
-
INPUT_VALIDATIONS: "InputValidations",
|
|
273
|
-
JAVA_BEST_PRACTICES: "JavaBestPractices",
|
|
274
|
-
PYTHON_BEST_PRACTICES: "PythonBestPractices",
|
|
275
|
-
RESOURCE_LEAKS: "ResourceLeaks",
|
|
276
|
-
SECURITY_ISSUES: "SecurityIssues",
|
|
277
|
-
};
|
|
278
|
-
const Severity = {
|
|
279
|
-
CRITICAL: "Critical",
|
|
280
|
-
HIGH: "High",
|
|
281
|
-
INFO: "Info",
|
|
282
|
-
LOW: "Low",
|
|
283
|
-
MEDIUM: "Medium",
|
|
284
|
-
};
|
|
285
219
|
|
|
286
220
|
const _AA = "AssociationArn";
|
|
287
221
|
const _ADE = "AccessDeniedException";
|
|
@@ -1356,6 +1290,73 @@ const waitUntilRepositoryAssociationSucceeded = async (params, input) => {
|
|
|
1356
1290
|
return utilWaiter.checkExceptions(result);
|
|
1357
1291
|
};
|
|
1358
1292
|
|
|
1293
|
+
const AnalysisType = {
|
|
1294
|
+
CODE_QUALITY: "CodeQuality",
|
|
1295
|
+
SECURITY: "Security",
|
|
1296
|
+
};
|
|
1297
|
+
const EncryptionOption = {
|
|
1298
|
+
AoCmk: "AWS_OWNED_CMK",
|
|
1299
|
+
CmCmk: "CUSTOMER_MANAGED_CMK",
|
|
1300
|
+
};
|
|
1301
|
+
const ProviderType = {
|
|
1302
|
+
BITBUCKET: "Bitbucket",
|
|
1303
|
+
CODE_COMMIT: "CodeCommit",
|
|
1304
|
+
GIT_HUB: "GitHub",
|
|
1305
|
+
GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer",
|
|
1306
|
+
S3_BUCKET: "S3Bucket",
|
|
1307
|
+
};
|
|
1308
|
+
const RepositoryAssociationState = {
|
|
1309
|
+
ASSOCIATED: "Associated",
|
|
1310
|
+
ASSOCIATING: "Associating",
|
|
1311
|
+
DISASSOCIATED: "Disassociated",
|
|
1312
|
+
DISASSOCIATING: "Disassociating",
|
|
1313
|
+
FAILED: "Failed",
|
|
1314
|
+
};
|
|
1315
|
+
const VendorName = {
|
|
1316
|
+
GITHUB: "GitHub",
|
|
1317
|
+
GITLAB: "GitLab",
|
|
1318
|
+
NATIVE_S3: "NativeS3",
|
|
1319
|
+
};
|
|
1320
|
+
const ConfigFileState = {
|
|
1321
|
+
ABSENT: "Absent",
|
|
1322
|
+
PRESENT: "Present",
|
|
1323
|
+
PRESENT_WITH_ERRORS: "PresentWithErrors",
|
|
1324
|
+
};
|
|
1325
|
+
const JobState = {
|
|
1326
|
+
COMPLETED: "Completed",
|
|
1327
|
+
DELETING: "Deleting",
|
|
1328
|
+
FAILED: "Failed",
|
|
1329
|
+
PENDING: "Pending",
|
|
1330
|
+
};
|
|
1331
|
+
const Type = {
|
|
1332
|
+
PULL_REQUEST: "PullRequest",
|
|
1333
|
+
REPOSITORY_ANALYSIS: "RepositoryAnalysis",
|
|
1334
|
+
};
|
|
1335
|
+
const Reaction = {
|
|
1336
|
+
THUMBS_DOWN: "ThumbsDown",
|
|
1337
|
+
THUMBS_UP: "ThumbsUp",
|
|
1338
|
+
};
|
|
1339
|
+
const RecommendationCategory = {
|
|
1340
|
+
AWS_BEST_PRACTICES: "AWSBestPractices",
|
|
1341
|
+
AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues",
|
|
1342
|
+
CODE_INCONSISTENCIES: "CodeInconsistencies",
|
|
1343
|
+
CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues",
|
|
1344
|
+
CONCURRENCY_ISSUES: "ConcurrencyIssues",
|
|
1345
|
+
DUPLICATE_CODE: "DuplicateCode",
|
|
1346
|
+
INPUT_VALIDATIONS: "InputValidations",
|
|
1347
|
+
JAVA_BEST_PRACTICES: "JavaBestPractices",
|
|
1348
|
+
PYTHON_BEST_PRACTICES: "PythonBestPractices",
|
|
1349
|
+
RESOURCE_LEAKS: "ResourceLeaks",
|
|
1350
|
+
SECURITY_ISSUES: "SecurityIssues",
|
|
1351
|
+
};
|
|
1352
|
+
const Severity = {
|
|
1353
|
+
CRITICAL: "Critical",
|
|
1354
|
+
HIGH: "High",
|
|
1355
|
+
INFO: "Info",
|
|
1356
|
+
LOW: "Low",
|
|
1357
|
+
MEDIUM: "Medium",
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1359
1360
|
Object.defineProperty(exports, "$Command", {
|
|
1360
1361
|
enumerable: true,
|
|
1361
1362
|
get: function () { return smithyClient.Command; }
|
package/dist-es/index.js
CHANGED
|
@@ -3,5 +3,6 @@ export * from "./CodeGuruReviewer";
|
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
5
|
export * from "./waiters";
|
|
6
|
-
export * from "./models";
|
|
6
|
+
export * from "./models/enums";
|
|
7
|
+
export * from "./models/errors";
|
|
7
8
|
export { CodeGuruReviewerServiceException } from "./models/CodeGuruReviewerServiceException";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export const AnalysisType = {
|
|
2
|
+
CODE_QUALITY: "CodeQuality",
|
|
3
|
+
SECURITY: "Security",
|
|
4
|
+
};
|
|
5
|
+
export const EncryptionOption = {
|
|
6
|
+
AoCmk: "AWS_OWNED_CMK",
|
|
7
|
+
CmCmk: "CUSTOMER_MANAGED_CMK",
|
|
8
|
+
};
|
|
9
|
+
export const ProviderType = {
|
|
10
|
+
BITBUCKET: "Bitbucket",
|
|
11
|
+
CODE_COMMIT: "CodeCommit",
|
|
12
|
+
GIT_HUB: "GitHub",
|
|
13
|
+
GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer",
|
|
14
|
+
S3_BUCKET: "S3Bucket",
|
|
15
|
+
};
|
|
16
|
+
export const RepositoryAssociationState = {
|
|
17
|
+
ASSOCIATED: "Associated",
|
|
18
|
+
ASSOCIATING: "Associating",
|
|
19
|
+
DISASSOCIATED: "Disassociated",
|
|
20
|
+
DISASSOCIATING: "Disassociating",
|
|
21
|
+
FAILED: "Failed",
|
|
22
|
+
};
|
|
23
|
+
export const VendorName = {
|
|
24
|
+
GITHUB: "GitHub",
|
|
25
|
+
GITLAB: "GitLab",
|
|
26
|
+
NATIVE_S3: "NativeS3",
|
|
27
|
+
};
|
|
28
|
+
export const ConfigFileState = {
|
|
29
|
+
ABSENT: "Absent",
|
|
30
|
+
PRESENT: "Present",
|
|
31
|
+
PRESENT_WITH_ERRORS: "PresentWithErrors",
|
|
32
|
+
};
|
|
33
|
+
export const JobState = {
|
|
34
|
+
COMPLETED: "Completed",
|
|
35
|
+
DELETING: "Deleting",
|
|
36
|
+
FAILED: "Failed",
|
|
37
|
+
PENDING: "Pending",
|
|
38
|
+
};
|
|
39
|
+
export const Type = {
|
|
40
|
+
PULL_REQUEST: "PullRequest",
|
|
41
|
+
REPOSITORY_ANALYSIS: "RepositoryAnalysis",
|
|
42
|
+
};
|
|
43
|
+
export const Reaction = {
|
|
44
|
+
THUMBS_DOWN: "ThumbsDown",
|
|
45
|
+
THUMBS_UP: "ThumbsUp",
|
|
46
|
+
};
|
|
47
|
+
export const RecommendationCategory = {
|
|
48
|
+
AWS_BEST_PRACTICES: "AWSBestPractices",
|
|
49
|
+
AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues",
|
|
50
|
+
CODE_INCONSISTENCIES: "CodeInconsistencies",
|
|
51
|
+
CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues",
|
|
52
|
+
CONCURRENCY_ISSUES: "ConcurrencyIssues",
|
|
53
|
+
DUPLICATE_CODE: "DuplicateCode",
|
|
54
|
+
INPUT_VALIDATIONS: "InputValidations",
|
|
55
|
+
JAVA_BEST_PRACTICES: "JavaBestPractices",
|
|
56
|
+
PYTHON_BEST_PRACTICES: "PythonBestPractices",
|
|
57
|
+
RESOURCE_LEAKS: "ResourceLeaks",
|
|
58
|
+
SECURITY_ISSUES: "SecurityIssues",
|
|
59
|
+
};
|
|
60
|
+
export const Severity = {
|
|
61
|
+
CRITICAL: "Critical",
|
|
62
|
+
HIGH: "High",
|
|
63
|
+
INFO: "Info",
|
|
64
|
+
LOW: "Low",
|
|
65
|
+
MEDIUM: "Medium",
|
|
66
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { CodeGuruReviewerServiceException as __BaseException } from "./CodeGuruReviewerServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
Message;
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "AccessDeniedException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
this.Message = opts.Message;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class ConflictException extends __BaseException {
|
|
17
|
+
name = "ConflictException";
|
|
18
|
+
$fault = "client";
|
|
19
|
+
Message;
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "ConflictException",
|
|
23
|
+
$fault: "client",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
27
|
+
this.Message = opts.Message;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class InternalServerException extends __BaseException {
|
|
31
|
+
name = "InternalServerException";
|
|
32
|
+
$fault = "server";
|
|
33
|
+
Message;
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "InternalServerException",
|
|
37
|
+
$fault: "server",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
41
|
+
this.Message = opts.Message;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export class ThrottlingException extends __BaseException {
|
|
45
|
+
name = "ThrottlingException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
Message;
|
|
48
|
+
constructor(opts) {
|
|
49
|
+
super({
|
|
50
|
+
name: "ThrottlingException",
|
|
51
|
+
$fault: "client",
|
|
52
|
+
...opts,
|
|
53
|
+
});
|
|
54
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
55
|
+
this.Message = opts.Message;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class ValidationException extends __BaseException {
|
|
59
|
+
name = "ValidationException";
|
|
60
|
+
$fault = "client";
|
|
61
|
+
Message;
|
|
62
|
+
constructor(opts) {
|
|
63
|
+
super({
|
|
64
|
+
name: "ValidationException",
|
|
65
|
+
$fault: "client",
|
|
66
|
+
...opts,
|
|
67
|
+
});
|
|
68
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
69
|
+
this.Message = opts.Message;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
73
|
+
name = "ResourceNotFoundException";
|
|
74
|
+
$fault = "client";
|
|
75
|
+
Message;
|
|
76
|
+
constructor(opts) {
|
|
77
|
+
super({
|
|
78
|
+
name: "ResourceNotFoundException",
|
|
79
|
+
$fault: "client",
|
|
80
|
+
...opts,
|
|
81
|
+
});
|
|
82
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
83
|
+
this.Message = opts.Message;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export class NotFoundException extends __BaseException {
|
|
87
|
+
name = "NotFoundException";
|
|
88
|
+
$fault = "client";
|
|
89
|
+
Message;
|
|
90
|
+
constructor(opts) {
|
|
91
|
+
super({
|
|
92
|
+
name: "NotFoundException",
|
|
93
|
+
$fault: "client",
|
|
94
|
+
...opts,
|
|
95
|
+
});
|
|
96
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
97
|
+
this.Message = opts.Message;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -1,165 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
Message;
|
|
6
|
-
constructor(opts) {
|
|
7
|
-
super({
|
|
8
|
-
name: "AccessDeniedException",
|
|
9
|
-
$fault: "client",
|
|
10
|
-
...opts,
|
|
11
|
-
});
|
|
12
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
-
this.Message = opts.Message;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export const AnalysisType = {
|
|
17
|
-
CODE_QUALITY: "CodeQuality",
|
|
18
|
-
SECURITY: "Security",
|
|
19
|
-
};
|
|
20
|
-
export const EncryptionOption = {
|
|
21
|
-
AoCmk: "AWS_OWNED_CMK",
|
|
22
|
-
CmCmk: "CUSTOMER_MANAGED_CMK",
|
|
23
|
-
};
|
|
24
|
-
export const ProviderType = {
|
|
25
|
-
BITBUCKET: "Bitbucket",
|
|
26
|
-
CODE_COMMIT: "CodeCommit",
|
|
27
|
-
GIT_HUB: "GitHub",
|
|
28
|
-
GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer",
|
|
29
|
-
S3_BUCKET: "S3Bucket",
|
|
30
|
-
};
|
|
31
|
-
export const RepositoryAssociationState = {
|
|
32
|
-
ASSOCIATED: "Associated",
|
|
33
|
-
ASSOCIATING: "Associating",
|
|
34
|
-
DISASSOCIATED: "Disassociated",
|
|
35
|
-
DISASSOCIATING: "Disassociating",
|
|
36
|
-
FAILED: "Failed",
|
|
37
|
-
};
|
|
38
|
-
export class ConflictException extends __BaseException {
|
|
39
|
-
name = "ConflictException";
|
|
40
|
-
$fault = "client";
|
|
41
|
-
Message;
|
|
42
|
-
constructor(opts) {
|
|
43
|
-
super({
|
|
44
|
-
name: "ConflictException",
|
|
45
|
-
$fault: "client",
|
|
46
|
-
...opts,
|
|
47
|
-
});
|
|
48
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
49
|
-
this.Message = opts.Message;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
export class InternalServerException extends __BaseException {
|
|
53
|
-
name = "InternalServerException";
|
|
54
|
-
$fault = "server";
|
|
55
|
-
Message;
|
|
56
|
-
constructor(opts) {
|
|
57
|
-
super({
|
|
58
|
-
name: "InternalServerException",
|
|
59
|
-
$fault: "server",
|
|
60
|
-
...opts,
|
|
61
|
-
});
|
|
62
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
63
|
-
this.Message = opts.Message;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export class ThrottlingException extends __BaseException {
|
|
67
|
-
name = "ThrottlingException";
|
|
68
|
-
$fault = "client";
|
|
69
|
-
Message;
|
|
70
|
-
constructor(opts) {
|
|
71
|
-
super({
|
|
72
|
-
name: "ThrottlingException",
|
|
73
|
-
$fault: "client",
|
|
74
|
-
...opts,
|
|
75
|
-
});
|
|
76
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
77
|
-
this.Message = opts.Message;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
export class ValidationException extends __BaseException {
|
|
81
|
-
name = "ValidationException";
|
|
82
|
-
$fault = "client";
|
|
83
|
-
Message;
|
|
84
|
-
constructor(opts) {
|
|
85
|
-
super({
|
|
86
|
-
name: "ValidationException",
|
|
87
|
-
$fault: "client",
|
|
88
|
-
...opts,
|
|
89
|
-
});
|
|
90
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
91
|
-
this.Message = opts.Message;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
export const VendorName = {
|
|
95
|
-
GITHUB: "GitHub",
|
|
96
|
-
GITLAB: "GitLab",
|
|
97
|
-
NATIVE_S3: "NativeS3",
|
|
98
|
-
};
|
|
99
|
-
export const ConfigFileState = {
|
|
100
|
-
ABSENT: "Absent",
|
|
101
|
-
PRESENT: "Present",
|
|
102
|
-
PRESENT_WITH_ERRORS: "PresentWithErrors",
|
|
103
|
-
};
|
|
104
|
-
export const JobState = {
|
|
105
|
-
COMPLETED: "Completed",
|
|
106
|
-
DELETING: "Deleting",
|
|
107
|
-
FAILED: "Failed",
|
|
108
|
-
PENDING: "Pending",
|
|
109
|
-
};
|
|
110
|
-
export const Type = {
|
|
111
|
-
PULL_REQUEST: "PullRequest",
|
|
112
|
-
REPOSITORY_ANALYSIS: "RepositoryAnalysis",
|
|
113
|
-
};
|
|
114
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
115
|
-
name = "ResourceNotFoundException";
|
|
116
|
-
$fault = "client";
|
|
117
|
-
Message;
|
|
118
|
-
constructor(opts) {
|
|
119
|
-
super({
|
|
120
|
-
name: "ResourceNotFoundException",
|
|
121
|
-
$fault: "client",
|
|
122
|
-
...opts,
|
|
123
|
-
});
|
|
124
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
125
|
-
this.Message = opts.Message;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
export const Reaction = {
|
|
129
|
-
THUMBS_DOWN: "ThumbsDown",
|
|
130
|
-
THUMBS_UP: "ThumbsUp",
|
|
131
|
-
};
|
|
132
|
-
export class NotFoundException extends __BaseException {
|
|
133
|
-
name = "NotFoundException";
|
|
134
|
-
$fault = "client";
|
|
135
|
-
Message;
|
|
136
|
-
constructor(opts) {
|
|
137
|
-
super({
|
|
138
|
-
name: "NotFoundException",
|
|
139
|
-
$fault: "client",
|
|
140
|
-
...opts,
|
|
141
|
-
});
|
|
142
|
-
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
143
|
-
this.Message = opts.Message;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
export const RecommendationCategory = {
|
|
147
|
-
AWS_BEST_PRACTICES: "AWSBestPractices",
|
|
148
|
-
AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues",
|
|
149
|
-
CODE_INCONSISTENCIES: "CodeInconsistencies",
|
|
150
|
-
CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues",
|
|
151
|
-
CONCURRENCY_ISSUES: "ConcurrencyIssues",
|
|
152
|
-
DUPLICATE_CODE: "DuplicateCode",
|
|
153
|
-
INPUT_VALIDATIONS: "InputValidations",
|
|
154
|
-
JAVA_BEST_PRACTICES: "JavaBestPractices",
|
|
155
|
-
PYTHON_BEST_PRACTICES: "PythonBestPractices",
|
|
156
|
-
RESOURCE_LEAKS: "ResourceLeaks",
|
|
157
|
-
SECURITY_ISSUES: "SecurityIssues",
|
|
158
|
-
};
|
|
159
|
-
export const Severity = {
|
|
160
|
-
CRITICAL: "Critical",
|
|
161
|
-
HIGH: "High",
|
|
162
|
-
INFO: "Info",
|
|
163
|
-
LOW: "Low",
|
|
164
|
-
MEDIUM: "Medium",
|
|
165
|
-
};
|
|
1
|
+
export {};
|
|
@@ -158,7 +158,7 @@ const _tK = "tagKeys";
|
|
|
158
158
|
const n0 = "com.amazonaws.codegurureviewer";
|
|
159
159
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
160
160
|
import { CodeGuruReviewerServiceException as __CodeGuruReviewerServiceException } from "../models/CodeGuruReviewerServiceException";
|
|
161
|
-
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, NotFoundException as __NotFoundException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/
|
|
161
|
+
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, NotFoundException as __NotFoundException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
|
|
162
162
|
export var AccessDeniedException = [
|
|
163
163
|
-3,
|
|
164
164
|
n0,
|
package/dist-types/index.d.ts
CHANGED
|
@@ -25,5 +25,7 @@ export type { CodeGuruReviewerExtensionConfiguration } from "./extensionConfigur
|
|
|
25
25
|
export * from "./commands";
|
|
26
26
|
export * from "./pagination";
|
|
27
27
|
export * from "./waiters";
|
|
28
|
-
export * from "./models";
|
|
28
|
+
export * from "./models/enums";
|
|
29
|
+
export * from "./models/errors";
|
|
30
|
+
export type * from "./models/models_0";
|
|
29
31
|
export { CodeGuruReviewerServiceException } from "./models/CodeGuruReviewerServiceException";
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const AnalysisType: {
|
|
6
|
+
readonly CODE_QUALITY: "CodeQuality";
|
|
7
|
+
readonly SECURITY: "Security";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType];
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
* @enum
|
|
16
|
+
*/
|
|
17
|
+
export declare const EncryptionOption: {
|
|
18
|
+
readonly AoCmk: "AWS_OWNED_CMK";
|
|
19
|
+
readonly CmCmk: "CUSTOMER_MANAGED_CMK";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export type EncryptionOption = (typeof EncryptionOption)[keyof typeof EncryptionOption];
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
* @enum
|
|
28
|
+
*/
|
|
29
|
+
export declare const ProviderType: {
|
|
30
|
+
readonly BITBUCKET: "Bitbucket";
|
|
31
|
+
readonly CODE_COMMIT: "CodeCommit";
|
|
32
|
+
readonly GIT_HUB: "GitHub";
|
|
33
|
+
readonly GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer";
|
|
34
|
+
readonly S3_BUCKET: "S3Bucket";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export type ProviderType = (typeof ProviderType)[keyof typeof ProviderType];
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* @enum
|
|
43
|
+
*/
|
|
44
|
+
export declare const RepositoryAssociationState: {
|
|
45
|
+
readonly ASSOCIATED: "Associated";
|
|
46
|
+
readonly ASSOCIATING: "Associating";
|
|
47
|
+
readonly DISASSOCIATED: "Disassociated";
|
|
48
|
+
readonly DISASSOCIATING: "Disassociating";
|
|
49
|
+
readonly FAILED: "Failed";
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export type RepositoryAssociationState = (typeof RepositoryAssociationState)[keyof typeof RepositoryAssociationState];
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
* @enum
|
|
58
|
+
*/
|
|
59
|
+
export declare const VendorName: {
|
|
60
|
+
readonly GITHUB: "GitHub";
|
|
61
|
+
readonly GITLAB: "GitLab";
|
|
62
|
+
readonly NATIVE_S3: "NativeS3";
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export type VendorName = (typeof VendorName)[keyof typeof VendorName];
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
* @enum
|
|
71
|
+
*/
|
|
72
|
+
export declare const ConfigFileState: {
|
|
73
|
+
readonly ABSENT: "Absent";
|
|
74
|
+
readonly PRESENT: "Present";
|
|
75
|
+
readonly PRESENT_WITH_ERRORS: "PresentWithErrors";
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export type ConfigFileState = (typeof ConfigFileState)[keyof typeof ConfigFileState];
|
|
81
|
+
/**
|
|
82
|
+
* @public
|
|
83
|
+
* @enum
|
|
84
|
+
*/
|
|
85
|
+
export declare const JobState: {
|
|
86
|
+
readonly COMPLETED: "Completed";
|
|
87
|
+
readonly DELETING: "Deleting";
|
|
88
|
+
readonly FAILED: "Failed";
|
|
89
|
+
readonly PENDING: "Pending";
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export type JobState = (typeof JobState)[keyof typeof JobState];
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
* @enum
|
|
98
|
+
*/
|
|
99
|
+
export declare const Type: {
|
|
100
|
+
readonly PULL_REQUEST: "PullRequest";
|
|
101
|
+
readonly REPOSITORY_ANALYSIS: "RepositoryAnalysis";
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
export type Type = (typeof Type)[keyof typeof Type];
|
|
107
|
+
/**
|
|
108
|
+
* @public
|
|
109
|
+
* @enum
|
|
110
|
+
*/
|
|
111
|
+
export declare const Reaction: {
|
|
112
|
+
readonly THUMBS_DOWN: "ThumbsDown";
|
|
113
|
+
readonly THUMBS_UP: "ThumbsUp";
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export type Reaction = (typeof Reaction)[keyof typeof Reaction];
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
* @enum
|
|
122
|
+
*/
|
|
123
|
+
export declare const RecommendationCategory: {
|
|
124
|
+
readonly AWS_BEST_PRACTICES: "AWSBestPractices";
|
|
125
|
+
readonly AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues";
|
|
126
|
+
readonly CODE_INCONSISTENCIES: "CodeInconsistencies";
|
|
127
|
+
readonly CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues";
|
|
128
|
+
readonly CONCURRENCY_ISSUES: "ConcurrencyIssues";
|
|
129
|
+
readonly DUPLICATE_CODE: "DuplicateCode";
|
|
130
|
+
readonly INPUT_VALIDATIONS: "InputValidations";
|
|
131
|
+
readonly JAVA_BEST_PRACTICES: "JavaBestPractices";
|
|
132
|
+
readonly PYTHON_BEST_PRACTICES: "PythonBestPractices";
|
|
133
|
+
readonly RESOURCE_LEAKS: "ResourceLeaks";
|
|
134
|
+
readonly SECURITY_ISSUES: "SecurityIssues";
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
export type RecommendationCategory = (typeof RecommendationCategory)[keyof typeof RecommendationCategory];
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
* @enum
|
|
143
|
+
*/
|
|
144
|
+
export declare const Severity: {
|
|
145
|
+
readonly CRITICAL: "Critical";
|
|
146
|
+
readonly HIGH: "High";
|
|
147
|
+
readonly INFO: "Info";
|
|
148
|
+
readonly LOW: "Low";
|
|
149
|
+
readonly MEDIUM: "Medium";
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* @public
|
|
153
|
+
*/
|
|
154
|
+
export type Severity = (typeof Severity)[keyof typeof Severity];
|