@aws-sdk/client-codeguru-reviewer 3.301.0 → 3.306.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/models/models_0.js +66 -77
- package/dist-es/models/models_0.js +66 -77
- package/dist-types/models/models_0.d.ts +121 -66
- package/dist-types/ts3.4/models/models_0.d.ts +81 -66
- package/package.json +35 -35
|
@@ -16,32 +16,28 @@ class AccessDeniedException extends CodeGuruReviewerServiceException_1.CodeGuruR
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
exports.AccessDeniedException = AccessDeniedException;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
RepositoryAssociationState["DISASSOCIATED"] = "Disassociated";
|
|
42
|
-
RepositoryAssociationState["DISASSOCIATING"] = "Disassociating";
|
|
43
|
-
RepositoryAssociationState["FAILED"] = "Failed";
|
|
44
|
-
})(RepositoryAssociationState = exports.RepositoryAssociationState || (exports.RepositoryAssociationState = {}));
|
|
19
|
+
exports.AnalysisType = {
|
|
20
|
+
CODE_QUALITY: "CodeQuality",
|
|
21
|
+
SECURITY: "Security",
|
|
22
|
+
};
|
|
23
|
+
exports.EncryptionOption = {
|
|
24
|
+
AoCmk: "AWS_OWNED_CMK",
|
|
25
|
+
CmCmk: "CUSTOMER_MANAGED_CMK",
|
|
26
|
+
};
|
|
27
|
+
exports.ProviderType = {
|
|
28
|
+
BITBUCKET: "Bitbucket",
|
|
29
|
+
CODE_COMMIT: "CodeCommit",
|
|
30
|
+
GIT_HUB: "GitHub",
|
|
31
|
+
GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer",
|
|
32
|
+
S3_BUCKET: "S3Bucket",
|
|
33
|
+
};
|
|
34
|
+
exports.RepositoryAssociationState = {
|
|
35
|
+
ASSOCIATED: "Associated",
|
|
36
|
+
ASSOCIATING: "Associating",
|
|
37
|
+
DISASSOCIATED: "Disassociated",
|
|
38
|
+
DISASSOCIATING: "Disassociating",
|
|
39
|
+
FAILED: "Failed",
|
|
40
|
+
};
|
|
45
41
|
class ConflictException extends CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException {
|
|
46
42
|
constructor(opts) {
|
|
47
43
|
super({
|
|
@@ -98,30 +94,26 @@ class ValidationException extends CodeGuruReviewerServiceException_1.CodeGuruRev
|
|
|
98
94
|
}
|
|
99
95
|
}
|
|
100
96
|
exports.ValidationException = ValidationException;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
(function (Type) {
|
|
122
|
-
Type["PULL_REQUEST"] = "PullRequest";
|
|
123
|
-
Type["REPOSITORY_ANALYSIS"] = "RepositoryAnalysis";
|
|
124
|
-
})(Type = exports.Type || (exports.Type = {}));
|
|
97
|
+
exports.VendorName = {
|
|
98
|
+
GITHUB: "GitHub",
|
|
99
|
+
GITLAB: "GitLab",
|
|
100
|
+
NATIVE_S3: "NativeS3",
|
|
101
|
+
};
|
|
102
|
+
exports.ConfigFileState = {
|
|
103
|
+
ABSENT: "Absent",
|
|
104
|
+
PRESENT: "Present",
|
|
105
|
+
PRESENT_WITH_ERRORS: "PresentWithErrors",
|
|
106
|
+
};
|
|
107
|
+
exports.JobState = {
|
|
108
|
+
COMPLETED: "Completed",
|
|
109
|
+
DELETING: "Deleting",
|
|
110
|
+
FAILED: "Failed",
|
|
111
|
+
PENDING: "Pending",
|
|
112
|
+
};
|
|
113
|
+
exports.Type = {
|
|
114
|
+
PULL_REQUEST: "PullRequest",
|
|
115
|
+
REPOSITORY_ANALYSIS: "RepositoryAnalysis",
|
|
116
|
+
};
|
|
125
117
|
class ResourceNotFoundException extends CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException {
|
|
126
118
|
constructor(opts) {
|
|
127
119
|
super({
|
|
@@ -136,11 +128,10 @@ class ResourceNotFoundException extends CodeGuruReviewerServiceException_1.CodeG
|
|
|
136
128
|
}
|
|
137
129
|
}
|
|
138
130
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
})(Reaction = exports.Reaction || (exports.Reaction = {}));
|
|
131
|
+
exports.Reaction = {
|
|
132
|
+
THUMBS_DOWN: "ThumbsDown",
|
|
133
|
+
THUMBS_UP: "ThumbsUp",
|
|
134
|
+
};
|
|
144
135
|
class NotFoundException extends CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException {
|
|
145
136
|
constructor(opts) {
|
|
146
137
|
super({
|
|
@@ -155,25 +146,23 @@ class NotFoundException extends CodeGuruReviewerServiceException_1.CodeGuruRevie
|
|
|
155
146
|
}
|
|
156
147
|
}
|
|
157
148
|
exports.NotFoundException = NotFoundException;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
Severity["MEDIUM"] = "Medium";
|
|
179
|
-
})(Severity = exports.Severity || (exports.Severity = {}));
|
|
149
|
+
exports.RecommendationCategory = {
|
|
150
|
+
AWS_BEST_PRACTICES: "AWSBestPractices",
|
|
151
|
+
AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues",
|
|
152
|
+
CODE_INCONSISTENCIES: "CodeInconsistencies",
|
|
153
|
+
CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues",
|
|
154
|
+
CONCURRENCY_ISSUES: "ConcurrencyIssues",
|
|
155
|
+
DUPLICATE_CODE: "DuplicateCode",
|
|
156
|
+
INPUT_VALIDATIONS: "InputValidations",
|
|
157
|
+
JAVA_BEST_PRACTICES: "JavaBestPractices",
|
|
158
|
+
PYTHON_BEST_PRACTICES: "PythonBestPractices",
|
|
159
|
+
RESOURCE_LEAKS: "ResourceLeaks",
|
|
160
|
+
SECURITY_ISSUES: "SecurityIssues",
|
|
161
|
+
};
|
|
162
|
+
exports.Severity = {
|
|
163
|
+
CRITICAL: "Critical",
|
|
164
|
+
HIGH: "High",
|
|
165
|
+
INFO: "Info",
|
|
166
|
+
LOW: "Low",
|
|
167
|
+
MEDIUM: "Medium",
|
|
168
|
+
};
|
|
@@ -12,32 +12,28 @@ export class AccessDeniedException extends __BaseException {
|
|
|
12
12
|
this.Message = opts.Message;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
RepositoryAssociationState["DISASSOCIATED"] = "Disassociated";
|
|
38
|
-
RepositoryAssociationState["DISASSOCIATING"] = "Disassociating";
|
|
39
|
-
RepositoryAssociationState["FAILED"] = "Failed";
|
|
40
|
-
})(RepositoryAssociationState || (RepositoryAssociationState = {}));
|
|
15
|
+
export const AnalysisType = {
|
|
16
|
+
CODE_QUALITY: "CodeQuality",
|
|
17
|
+
SECURITY: "Security",
|
|
18
|
+
};
|
|
19
|
+
export const EncryptionOption = {
|
|
20
|
+
AoCmk: "AWS_OWNED_CMK",
|
|
21
|
+
CmCmk: "CUSTOMER_MANAGED_CMK",
|
|
22
|
+
};
|
|
23
|
+
export const ProviderType = {
|
|
24
|
+
BITBUCKET: "Bitbucket",
|
|
25
|
+
CODE_COMMIT: "CodeCommit",
|
|
26
|
+
GIT_HUB: "GitHub",
|
|
27
|
+
GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer",
|
|
28
|
+
S3_BUCKET: "S3Bucket",
|
|
29
|
+
};
|
|
30
|
+
export const RepositoryAssociationState = {
|
|
31
|
+
ASSOCIATED: "Associated",
|
|
32
|
+
ASSOCIATING: "Associating",
|
|
33
|
+
DISASSOCIATED: "Disassociated",
|
|
34
|
+
DISASSOCIATING: "Disassociating",
|
|
35
|
+
FAILED: "Failed",
|
|
36
|
+
};
|
|
41
37
|
export class ConflictException extends __BaseException {
|
|
42
38
|
constructor(opts) {
|
|
43
39
|
super({
|
|
@@ -90,30 +86,26 @@ export class ValidationException extends __BaseException {
|
|
|
90
86
|
this.Message = opts.Message;
|
|
91
87
|
}
|
|
92
88
|
}
|
|
93
|
-
export
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
(function (Type) {
|
|
114
|
-
Type["PULL_REQUEST"] = "PullRequest";
|
|
115
|
-
Type["REPOSITORY_ANALYSIS"] = "RepositoryAnalysis";
|
|
116
|
-
})(Type || (Type = {}));
|
|
89
|
+
export const VendorName = {
|
|
90
|
+
GITHUB: "GitHub",
|
|
91
|
+
GITLAB: "GitLab",
|
|
92
|
+
NATIVE_S3: "NativeS3",
|
|
93
|
+
};
|
|
94
|
+
export const ConfigFileState = {
|
|
95
|
+
ABSENT: "Absent",
|
|
96
|
+
PRESENT: "Present",
|
|
97
|
+
PRESENT_WITH_ERRORS: "PresentWithErrors",
|
|
98
|
+
};
|
|
99
|
+
export const JobState = {
|
|
100
|
+
COMPLETED: "Completed",
|
|
101
|
+
DELETING: "Deleting",
|
|
102
|
+
FAILED: "Failed",
|
|
103
|
+
PENDING: "Pending",
|
|
104
|
+
};
|
|
105
|
+
export const Type = {
|
|
106
|
+
PULL_REQUEST: "PullRequest",
|
|
107
|
+
REPOSITORY_ANALYSIS: "RepositoryAnalysis",
|
|
108
|
+
};
|
|
117
109
|
export class ResourceNotFoundException extends __BaseException {
|
|
118
110
|
constructor(opts) {
|
|
119
111
|
super({
|
|
@@ -127,11 +119,10 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
127
119
|
this.Message = opts.Message;
|
|
128
120
|
}
|
|
129
121
|
}
|
|
130
|
-
export
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
})(Reaction || (Reaction = {}));
|
|
122
|
+
export const Reaction = {
|
|
123
|
+
THUMBS_DOWN: "ThumbsDown",
|
|
124
|
+
THUMBS_UP: "ThumbsUp",
|
|
125
|
+
};
|
|
135
126
|
export class NotFoundException extends __BaseException {
|
|
136
127
|
constructor(opts) {
|
|
137
128
|
super({
|
|
@@ -145,25 +136,23 @@ export class NotFoundException extends __BaseException {
|
|
|
145
136
|
this.Message = opts.Message;
|
|
146
137
|
}
|
|
147
138
|
}
|
|
148
|
-
export
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
Severity["MEDIUM"] = "Medium";
|
|
169
|
-
})(Severity || (Severity = {}));
|
|
139
|
+
export const RecommendationCategory = {
|
|
140
|
+
AWS_BEST_PRACTICES: "AWSBestPractices",
|
|
141
|
+
AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues",
|
|
142
|
+
CODE_INCONSISTENCIES: "CodeInconsistencies",
|
|
143
|
+
CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues",
|
|
144
|
+
CONCURRENCY_ISSUES: "ConcurrencyIssues",
|
|
145
|
+
DUPLICATE_CODE: "DuplicateCode",
|
|
146
|
+
INPUT_VALIDATIONS: "InputValidations",
|
|
147
|
+
JAVA_BEST_PRACTICES: "JavaBestPractices",
|
|
148
|
+
PYTHON_BEST_PRACTICES: "PythonBestPractices",
|
|
149
|
+
RESOURCE_LEAKS: "ResourceLeaks",
|
|
150
|
+
SECURITY_ISSUES: "SecurityIssues",
|
|
151
|
+
};
|
|
152
|
+
export const Severity = {
|
|
153
|
+
CRITICAL: "Critical",
|
|
154
|
+
HIGH: "High",
|
|
155
|
+
INFO: "Info",
|
|
156
|
+
LOW: "Low",
|
|
157
|
+
MEDIUM: "Medium",
|
|
158
|
+
};
|
|
@@ -15,18 +15,28 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* @public
|
|
18
|
+
* @enum
|
|
18
19
|
*/
|
|
19
|
-
export declare
|
|
20
|
-
CODE_QUALITY
|
|
21
|
-
SECURITY
|
|
22
|
-
}
|
|
20
|
+
export declare const AnalysisType: {
|
|
21
|
+
readonly CODE_QUALITY: "CodeQuality";
|
|
22
|
+
readonly SECURITY: "Security";
|
|
23
|
+
};
|
|
23
24
|
/**
|
|
24
25
|
* @public
|
|
25
26
|
*/
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType];
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
* @enum
|
|
31
|
+
*/
|
|
32
|
+
export declare const EncryptionOption: {
|
|
33
|
+
readonly AoCmk: "AWS_OWNED_CMK";
|
|
34
|
+
readonly CmCmk: "CUSTOMER_MANAGED_CMK";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export type EncryptionOption = (typeof EncryptionOption)[keyof typeof EncryptionOption];
|
|
30
40
|
/**
|
|
31
41
|
* @public
|
|
32
42
|
* <p>An object that contains:</p>
|
|
@@ -174,14 +184,19 @@ export interface AssociateRepositoryRequest {
|
|
|
174
184
|
}
|
|
175
185
|
/**
|
|
176
186
|
* @public
|
|
187
|
+
* @enum
|
|
177
188
|
*/
|
|
178
|
-
export declare
|
|
179
|
-
BITBUCKET
|
|
180
|
-
CODE_COMMIT
|
|
181
|
-
GIT_HUB
|
|
182
|
-
GIT_HUB_ENTERPRISE_SERVER
|
|
183
|
-
S3_BUCKET
|
|
184
|
-
}
|
|
189
|
+
export declare const ProviderType: {
|
|
190
|
+
readonly BITBUCKET: "Bitbucket";
|
|
191
|
+
readonly CODE_COMMIT: "CodeCommit";
|
|
192
|
+
readonly GIT_HUB: "GitHub";
|
|
193
|
+
readonly GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer";
|
|
194
|
+
readonly S3_BUCKET: "S3Bucket";
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
export type ProviderType = (typeof ProviderType)[keyof typeof ProviderType];
|
|
185
200
|
/**
|
|
186
201
|
* @public
|
|
187
202
|
* <p>Code artifacts are source code artifacts and build artifacts used in a repository
|
|
@@ -231,14 +246,19 @@ export interface S3RepositoryDetails {
|
|
|
231
246
|
}
|
|
232
247
|
/**
|
|
233
248
|
* @public
|
|
249
|
+
* @enum
|
|
234
250
|
*/
|
|
235
|
-
export declare
|
|
236
|
-
ASSOCIATED
|
|
237
|
-
ASSOCIATING
|
|
238
|
-
DISASSOCIATED
|
|
239
|
-
DISASSOCIATING
|
|
240
|
-
FAILED
|
|
241
|
-
}
|
|
251
|
+
export declare const RepositoryAssociationState: {
|
|
252
|
+
readonly ASSOCIATED: "Associated";
|
|
253
|
+
readonly ASSOCIATING: "Associating";
|
|
254
|
+
readonly DISASSOCIATED: "Disassociated";
|
|
255
|
+
readonly DISASSOCIATING: "Disassociating";
|
|
256
|
+
readonly FAILED: "Failed";
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* @public
|
|
260
|
+
*/
|
|
261
|
+
export type RepositoryAssociationState = (typeof RepositoryAssociationState)[keyof typeof RepositoryAssociationState];
|
|
242
262
|
/**
|
|
243
263
|
* @public
|
|
244
264
|
* <p>Information about a repository association. The <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_DescribeRepositoryAssociation.html">DescribeRepositoryAssociation</a> operation returns a
|
|
@@ -496,12 +516,17 @@ export interface EventInfo {
|
|
|
496
516
|
}
|
|
497
517
|
/**
|
|
498
518
|
* @public
|
|
519
|
+
* @enum
|
|
499
520
|
*/
|
|
500
|
-
export declare
|
|
501
|
-
GITHUB
|
|
502
|
-
GITLAB
|
|
503
|
-
NATIVE_S3
|
|
504
|
-
}
|
|
521
|
+
export declare const VendorName: {
|
|
522
|
+
readonly GITHUB: "GitHub";
|
|
523
|
+
readonly GITLAB: "GitLab";
|
|
524
|
+
readonly NATIVE_S3: "NativeS3";
|
|
525
|
+
};
|
|
526
|
+
/**
|
|
527
|
+
* @public
|
|
528
|
+
*/
|
|
529
|
+
export type VendorName = (typeof VendorName)[keyof typeof VendorName];
|
|
505
530
|
/**
|
|
506
531
|
* @public
|
|
507
532
|
* <p>Metadata that is associated with a code review. This applies to both pull request and
|
|
@@ -654,12 +679,17 @@ export interface CreateCodeReviewRequest {
|
|
|
654
679
|
}
|
|
655
680
|
/**
|
|
656
681
|
* @public
|
|
682
|
+
* @enum
|
|
657
683
|
*/
|
|
658
|
-
export declare
|
|
659
|
-
ABSENT
|
|
660
|
-
PRESENT
|
|
661
|
-
PRESENT_WITH_ERRORS
|
|
662
|
-
}
|
|
684
|
+
export declare const ConfigFileState: {
|
|
685
|
+
readonly ABSENT: "Absent";
|
|
686
|
+
readonly PRESENT: "Present";
|
|
687
|
+
readonly PRESENT_WITH_ERRORS: "PresentWithErrors";
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* @public
|
|
691
|
+
*/
|
|
692
|
+
export type ConfigFileState = (typeof ConfigFileState)[keyof typeof ConfigFileState];
|
|
663
693
|
/**
|
|
664
694
|
* @public
|
|
665
695
|
* <p>Information about the statistics from the code review.</p>
|
|
@@ -688,20 +718,30 @@ export interface Metrics {
|
|
|
688
718
|
}
|
|
689
719
|
/**
|
|
690
720
|
* @public
|
|
721
|
+
* @enum
|
|
691
722
|
*/
|
|
692
|
-
export declare
|
|
693
|
-
COMPLETED
|
|
694
|
-
DELETING
|
|
695
|
-
FAILED
|
|
696
|
-
PENDING
|
|
697
|
-
}
|
|
723
|
+
export declare const JobState: {
|
|
724
|
+
readonly COMPLETED: "Completed";
|
|
725
|
+
readonly DELETING: "Deleting";
|
|
726
|
+
readonly FAILED: "Failed";
|
|
727
|
+
readonly PENDING: "Pending";
|
|
728
|
+
};
|
|
698
729
|
/**
|
|
699
730
|
* @public
|
|
700
731
|
*/
|
|
701
|
-
export
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
732
|
+
export type JobState = (typeof JobState)[keyof typeof JobState];
|
|
733
|
+
/**
|
|
734
|
+
* @public
|
|
735
|
+
* @enum
|
|
736
|
+
*/
|
|
737
|
+
export declare const Type: {
|
|
738
|
+
readonly PULL_REQUEST: "PullRequest";
|
|
739
|
+
readonly REPOSITORY_ANALYSIS: "RepositoryAnalysis";
|
|
740
|
+
};
|
|
741
|
+
/**
|
|
742
|
+
* @public
|
|
743
|
+
*/
|
|
744
|
+
export type Type = (typeof Type)[keyof typeof Type];
|
|
705
745
|
/**
|
|
706
746
|
* @public
|
|
707
747
|
* <p>Information about a code review. A code review belongs to the associated repository that
|
|
@@ -867,11 +907,16 @@ export interface DescribeRecommendationFeedbackRequest {
|
|
|
867
907
|
}
|
|
868
908
|
/**
|
|
869
909
|
* @public
|
|
910
|
+
* @enum
|
|
870
911
|
*/
|
|
871
|
-
export declare
|
|
872
|
-
THUMBS_DOWN
|
|
873
|
-
THUMBS_UP
|
|
874
|
-
}
|
|
912
|
+
export declare const Reaction: {
|
|
913
|
+
readonly THUMBS_DOWN: "ThumbsDown";
|
|
914
|
+
readonly THUMBS_UP: "ThumbsUp";
|
|
915
|
+
};
|
|
916
|
+
/**
|
|
917
|
+
* @public
|
|
918
|
+
*/
|
|
919
|
+
export type Reaction = (typeof Reaction)[keyof typeof Reaction];
|
|
875
920
|
/**
|
|
876
921
|
* @public
|
|
877
922
|
* <p>Information about the recommendation feedback.</p>
|
|
@@ -1278,20 +1323,25 @@ export interface ListRecommendationsRequest {
|
|
|
1278
1323
|
}
|
|
1279
1324
|
/**
|
|
1280
1325
|
* @public
|
|
1326
|
+
* @enum
|
|
1281
1327
|
*/
|
|
1282
|
-
export declare
|
|
1283
|
-
AWS_BEST_PRACTICES
|
|
1284
|
-
AWS_CLOUDFORMATION_ISSUES
|
|
1285
|
-
CODE_INCONSISTENCIES
|
|
1286
|
-
CODE_MAINTENANCE_ISSUES
|
|
1287
|
-
CONCURRENCY_ISSUES
|
|
1288
|
-
DUPLICATE_CODE
|
|
1289
|
-
INPUT_VALIDATIONS
|
|
1290
|
-
JAVA_BEST_PRACTICES
|
|
1291
|
-
PYTHON_BEST_PRACTICES
|
|
1292
|
-
RESOURCE_LEAKS
|
|
1293
|
-
SECURITY_ISSUES
|
|
1294
|
-
}
|
|
1328
|
+
export declare const RecommendationCategory: {
|
|
1329
|
+
readonly AWS_BEST_PRACTICES: "AWSBestPractices";
|
|
1330
|
+
readonly AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues";
|
|
1331
|
+
readonly CODE_INCONSISTENCIES: "CodeInconsistencies";
|
|
1332
|
+
readonly CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues";
|
|
1333
|
+
readonly CONCURRENCY_ISSUES: "ConcurrencyIssues";
|
|
1334
|
+
readonly DUPLICATE_CODE: "DuplicateCode";
|
|
1335
|
+
readonly INPUT_VALIDATIONS: "InputValidations";
|
|
1336
|
+
readonly JAVA_BEST_PRACTICES: "JavaBestPractices";
|
|
1337
|
+
readonly PYTHON_BEST_PRACTICES: "PythonBestPractices";
|
|
1338
|
+
readonly RESOURCE_LEAKS: "ResourceLeaks";
|
|
1339
|
+
readonly SECURITY_ISSUES: "SecurityIssues";
|
|
1340
|
+
};
|
|
1341
|
+
/**
|
|
1342
|
+
* @public
|
|
1343
|
+
*/
|
|
1344
|
+
export type RecommendationCategory = (typeof RecommendationCategory)[keyof typeof RecommendationCategory];
|
|
1295
1345
|
/**
|
|
1296
1346
|
* @public
|
|
1297
1347
|
* <p>Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is detected that violates the rule.</p>
|
|
@@ -1320,14 +1370,19 @@ export interface RuleMetadata {
|
|
|
1320
1370
|
}
|
|
1321
1371
|
/**
|
|
1322
1372
|
* @public
|
|
1373
|
+
* @enum
|
|
1323
1374
|
*/
|
|
1324
|
-
export declare
|
|
1325
|
-
CRITICAL
|
|
1326
|
-
HIGH
|
|
1327
|
-
INFO
|
|
1328
|
-
LOW
|
|
1329
|
-
MEDIUM
|
|
1330
|
-
}
|
|
1375
|
+
export declare const Severity: {
|
|
1376
|
+
readonly CRITICAL: "Critical";
|
|
1377
|
+
readonly HIGH: "High";
|
|
1378
|
+
readonly INFO: "Info";
|
|
1379
|
+
readonly LOW: "Low";
|
|
1380
|
+
readonly MEDIUM: "Medium";
|
|
1381
|
+
};
|
|
1382
|
+
/**
|
|
1383
|
+
* @public
|
|
1384
|
+
*/
|
|
1385
|
+
export type Severity = (typeof Severity)[keyof typeof Severity];
|
|
1331
1386
|
/**
|
|
1332
1387
|
* @public
|
|
1333
1388
|
* <p>Information about recommendations.</p>
|
|
@@ -8,14 +8,17 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
8
8
|
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
12
|
-
CODE_QUALITY
|
|
13
|
-
SECURITY
|
|
14
|
-
}
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
export declare const AnalysisType: {
|
|
12
|
+
readonly CODE_QUALITY: "CodeQuality";
|
|
13
|
+
readonly SECURITY: "Security";
|
|
14
|
+
};
|
|
15
|
+
export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType];
|
|
16
|
+
export declare const EncryptionOption: {
|
|
17
|
+
readonly AoCmk: "AWS_OWNED_CMK";
|
|
18
|
+
readonly CmCmk: "CUSTOMER_MANAGED_CMK";
|
|
19
|
+
};
|
|
20
|
+
export type EncryptionOption =
|
|
21
|
+
(typeof EncryptionOption)[keyof typeof EncryptionOption];
|
|
19
22
|
export interface KMSKeyDetails {
|
|
20
23
|
KMSKeyId?: string;
|
|
21
24
|
EncryptionOption?: EncryptionOption | string;
|
|
@@ -44,13 +47,14 @@ export interface AssociateRepositoryRequest {
|
|
|
44
47
|
Tags?: Record<string, string>;
|
|
45
48
|
KMSKeyDetails?: KMSKeyDetails;
|
|
46
49
|
}
|
|
47
|
-
export declare
|
|
48
|
-
BITBUCKET
|
|
49
|
-
CODE_COMMIT
|
|
50
|
-
GIT_HUB
|
|
51
|
-
GIT_HUB_ENTERPRISE_SERVER
|
|
52
|
-
S3_BUCKET
|
|
53
|
-
}
|
|
50
|
+
export declare const ProviderType: {
|
|
51
|
+
readonly BITBUCKET: "Bitbucket";
|
|
52
|
+
readonly CODE_COMMIT: "CodeCommit";
|
|
53
|
+
readonly GIT_HUB: "GitHub";
|
|
54
|
+
readonly GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer";
|
|
55
|
+
readonly S3_BUCKET: "S3Bucket";
|
|
56
|
+
};
|
|
57
|
+
export type ProviderType = (typeof ProviderType)[keyof typeof ProviderType];
|
|
54
58
|
export interface CodeArtifacts {
|
|
55
59
|
SourceCodeArtifactsObjectKey: string | undefined;
|
|
56
60
|
BuildArtifactsObjectKey?: string;
|
|
@@ -59,13 +63,15 @@ export interface S3RepositoryDetails {
|
|
|
59
63
|
BucketName?: string;
|
|
60
64
|
CodeArtifacts?: CodeArtifacts;
|
|
61
65
|
}
|
|
62
|
-
export declare
|
|
63
|
-
ASSOCIATED
|
|
64
|
-
ASSOCIATING
|
|
65
|
-
DISASSOCIATED
|
|
66
|
-
DISASSOCIATING
|
|
67
|
-
FAILED
|
|
68
|
-
}
|
|
66
|
+
export declare const RepositoryAssociationState: {
|
|
67
|
+
readonly ASSOCIATED: "Associated";
|
|
68
|
+
readonly ASSOCIATING: "Associating";
|
|
69
|
+
readonly DISASSOCIATED: "Disassociated";
|
|
70
|
+
readonly DISASSOCIATING: "Disassociating";
|
|
71
|
+
readonly FAILED: "Failed";
|
|
72
|
+
};
|
|
73
|
+
export type RepositoryAssociationState =
|
|
74
|
+
(typeof RepositoryAssociationState)[keyof typeof RepositoryAssociationState];
|
|
69
75
|
export interface RepositoryAssociation {
|
|
70
76
|
AssociationId?: string;
|
|
71
77
|
AssociationArn?: string;
|
|
@@ -130,11 +136,12 @@ export interface EventInfo {
|
|
|
130
136
|
Name?: string;
|
|
131
137
|
State?: string;
|
|
132
138
|
}
|
|
133
|
-
export declare
|
|
134
|
-
GITHUB
|
|
135
|
-
GITLAB
|
|
136
|
-
NATIVE_S3
|
|
137
|
-
}
|
|
139
|
+
export declare const VendorName: {
|
|
140
|
+
readonly GITHUB: "GitHub";
|
|
141
|
+
readonly GITLAB: "GitLab";
|
|
142
|
+
readonly NATIVE_S3: "NativeS3";
|
|
143
|
+
};
|
|
144
|
+
export type VendorName = (typeof VendorName)[keyof typeof VendorName];
|
|
138
145
|
export interface RequestMetadata {
|
|
139
146
|
RequestId?: string;
|
|
140
147
|
Requester?: string;
|
|
@@ -166,26 +173,30 @@ export interface CreateCodeReviewRequest {
|
|
|
166
173
|
Type: CodeReviewType | undefined;
|
|
167
174
|
ClientRequestToken?: string;
|
|
168
175
|
}
|
|
169
|
-
export declare
|
|
170
|
-
ABSENT
|
|
171
|
-
PRESENT
|
|
172
|
-
PRESENT_WITH_ERRORS
|
|
173
|
-
}
|
|
176
|
+
export declare const ConfigFileState: {
|
|
177
|
+
readonly ABSENT: "Absent";
|
|
178
|
+
readonly PRESENT: "Present";
|
|
179
|
+
readonly PRESENT_WITH_ERRORS: "PresentWithErrors";
|
|
180
|
+
};
|
|
181
|
+
export type ConfigFileState =
|
|
182
|
+
(typeof ConfigFileState)[keyof typeof ConfigFileState];
|
|
174
183
|
export interface Metrics {
|
|
175
184
|
MeteredLinesOfCodeCount?: number;
|
|
176
185
|
SuppressedLinesOfCodeCount?: number;
|
|
177
186
|
FindingsCount?: number;
|
|
178
187
|
}
|
|
179
|
-
export declare
|
|
180
|
-
COMPLETED
|
|
181
|
-
DELETING
|
|
182
|
-
FAILED
|
|
183
|
-
PENDING
|
|
184
|
-
}
|
|
185
|
-
export
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
188
|
+
export declare const JobState: {
|
|
189
|
+
readonly COMPLETED: "Completed";
|
|
190
|
+
readonly DELETING: "Deleting";
|
|
191
|
+
readonly FAILED: "Failed";
|
|
192
|
+
readonly PENDING: "Pending";
|
|
193
|
+
};
|
|
194
|
+
export type JobState = (typeof JobState)[keyof typeof JobState];
|
|
195
|
+
export declare const Type: {
|
|
196
|
+
readonly PULL_REQUEST: "PullRequest";
|
|
197
|
+
readonly REPOSITORY_ANALYSIS: "RepositoryAnalysis";
|
|
198
|
+
};
|
|
199
|
+
export type Type = (typeof Type)[keyof typeof Type];
|
|
189
200
|
export interface CodeReview {
|
|
190
201
|
Name?: string;
|
|
191
202
|
CodeReviewArn?: string;
|
|
@@ -226,10 +237,11 @@ export interface DescribeRecommendationFeedbackRequest {
|
|
|
226
237
|
RecommendationId: string | undefined;
|
|
227
238
|
UserId?: string;
|
|
228
239
|
}
|
|
229
|
-
export declare
|
|
230
|
-
THUMBS_DOWN
|
|
231
|
-
THUMBS_UP
|
|
232
|
-
}
|
|
240
|
+
export declare const Reaction: {
|
|
241
|
+
readonly THUMBS_DOWN: "ThumbsDown";
|
|
242
|
+
readonly THUMBS_UP: "ThumbsUp";
|
|
243
|
+
};
|
|
244
|
+
export type Reaction = (typeof Reaction)[keyof typeof Reaction];
|
|
233
245
|
export interface RecommendationFeedback {
|
|
234
246
|
CodeReviewArn?: string;
|
|
235
247
|
RecommendationId?: string;
|
|
@@ -313,19 +325,21 @@ export interface ListRecommendationsRequest {
|
|
|
313
325
|
MaxResults?: number;
|
|
314
326
|
CodeReviewArn: string | undefined;
|
|
315
327
|
}
|
|
316
|
-
export declare
|
|
317
|
-
AWS_BEST_PRACTICES
|
|
318
|
-
AWS_CLOUDFORMATION_ISSUES
|
|
319
|
-
CODE_INCONSISTENCIES
|
|
320
|
-
CODE_MAINTENANCE_ISSUES
|
|
321
|
-
CONCURRENCY_ISSUES
|
|
322
|
-
DUPLICATE_CODE
|
|
323
|
-
INPUT_VALIDATIONS
|
|
324
|
-
JAVA_BEST_PRACTICES
|
|
325
|
-
PYTHON_BEST_PRACTICES
|
|
326
|
-
RESOURCE_LEAKS
|
|
327
|
-
SECURITY_ISSUES
|
|
328
|
-
}
|
|
328
|
+
export declare const RecommendationCategory: {
|
|
329
|
+
readonly AWS_BEST_PRACTICES: "AWSBestPractices";
|
|
330
|
+
readonly AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues";
|
|
331
|
+
readonly CODE_INCONSISTENCIES: "CodeInconsistencies";
|
|
332
|
+
readonly CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues";
|
|
333
|
+
readonly CONCURRENCY_ISSUES: "ConcurrencyIssues";
|
|
334
|
+
readonly DUPLICATE_CODE: "DuplicateCode";
|
|
335
|
+
readonly INPUT_VALIDATIONS: "InputValidations";
|
|
336
|
+
readonly JAVA_BEST_PRACTICES: "JavaBestPractices";
|
|
337
|
+
readonly PYTHON_BEST_PRACTICES: "PythonBestPractices";
|
|
338
|
+
readonly RESOURCE_LEAKS: "ResourceLeaks";
|
|
339
|
+
readonly SECURITY_ISSUES: "SecurityIssues";
|
|
340
|
+
};
|
|
341
|
+
export type RecommendationCategory =
|
|
342
|
+
(typeof RecommendationCategory)[keyof typeof RecommendationCategory];
|
|
329
343
|
export interface RuleMetadata {
|
|
330
344
|
RuleId?: string;
|
|
331
345
|
RuleName?: string;
|
|
@@ -333,13 +347,14 @@ export interface RuleMetadata {
|
|
|
333
347
|
LongDescription?: string;
|
|
334
348
|
RuleTags?: string[];
|
|
335
349
|
}
|
|
336
|
-
export declare
|
|
337
|
-
CRITICAL
|
|
338
|
-
HIGH
|
|
339
|
-
INFO
|
|
340
|
-
LOW
|
|
341
|
-
MEDIUM
|
|
342
|
-
}
|
|
350
|
+
export declare const Severity: {
|
|
351
|
+
readonly CRITICAL: "Critical";
|
|
352
|
+
readonly HIGH: "High";
|
|
353
|
+
readonly INFO: "Info";
|
|
354
|
+
readonly LOW: "Low";
|
|
355
|
+
readonly MEDIUM: "Medium";
|
|
356
|
+
};
|
|
357
|
+
export type Severity = (typeof Severity)[keyof typeof Severity];
|
|
343
358
|
export interface RecommendationSummary {
|
|
344
359
|
FilePath?: string;
|
|
345
360
|
RecommendationId?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codeguru-reviewer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codeguru Reviewer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.306.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",
|
|
@@ -21,44 +21,44 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
56
|
-
"@aws-sdk/util-waiter": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.306.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.306.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.306.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.306.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.306.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.306.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.306.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.306.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.306.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.306.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.306.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.306.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.306.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.306.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.306.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.306.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.306.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.306.0",
|
|
44
|
+
"@aws-sdk/types": "3.306.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.306.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.303.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.306.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.306.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.306.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.306.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.306.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.306.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
|
+
"@aws-sdk/util-waiter": "3.306.0",
|
|
57
57
|
"tslib": "^2.5.0",
|
|
58
58
|
"uuid": "^8.3.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
61
|
+
"@aws-sdk/service-client-documentation-generator": "3.303.0",
|
|
62
62
|
"@tsconfig/node14": "1.0.3",
|
|
63
63
|
"@types/node": "^14.14.31",
|
|
64
64
|
"@types/uuid": "^8.3.0",
|