@aws-sdk/client-codeguru-reviewer 3.301.0 → 3.303.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.
@@ -16,32 +16,28 @@ class AccessDeniedException extends CodeGuruReviewerServiceException_1.CodeGuruR
16
16
  }
17
17
  }
18
18
  exports.AccessDeniedException = AccessDeniedException;
19
- var AnalysisType;
20
- (function (AnalysisType) {
21
- AnalysisType["CODE_QUALITY"] = "CodeQuality";
22
- AnalysisType["SECURITY"] = "Security";
23
- })(AnalysisType = exports.AnalysisType || (exports.AnalysisType = {}));
24
- var EncryptionOption;
25
- (function (EncryptionOption) {
26
- EncryptionOption["AoCmk"] = "AWS_OWNED_CMK";
27
- EncryptionOption["CmCmk"] = "CUSTOMER_MANAGED_CMK";
28
- })(EncryptionOption = exports.EncryptionOption || (exports.EncryptionOption = {}));
29
- var ProviderType;
30
- (function (ProviderType) {
31
- ProviderType["BITBUCKET"] = "Bitbucket";
32
- ProviderType["CODE_COMMIT"] = "CodeCommit";
33
- ProviderType["GIT_HUB"] = "GitHub";
34
- ProviderType["GIT_HUB_ENTERPRISE_SERVER"] = "GitHubEnterpriseServer";
35
- ProviderType["S3_BUCKET"] = "S3Bucket";
36
- })(ProviderType = exports.ProviderType || (exports.ProviderType = {}));
37
- var RepositoryAssociationState;
38
- (function (RepositoryAssociationState) {
39
- RepositoryAssociationState["ASSOCIATED"] = "Associated";
40
- RepositoryAssociationState["ASSOCIATING"] = "Associating";
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
- var VendorName;
102
- (function (VendorName) {
103
- VendorName["GITHUB"] = "GitHub";
104
- VendorName["GITLAB"] = "GitLab";
105
- VendorName["NATIVE_S3"] = "NativeS3";
106
- })(VendorName = exports.VendorName || (exports.VendorName = {}));
107
- var ConfigFileState;
108
- (function (ConfigFileState) {
109
- ConfigFileState["ABSENT"] = "Absent";
110
- ConfigFileState["PRESENT"] = "Present";
111
- ConfigFileState["PRESENT_WITH_ERRORS"] = "PresentWithErrors";
112
- })(ConfigFileState = exports.ConfigFileState || (exports.ConfigFileState = {}));
113
- var JobState;
114
- (function (JobState) {
115
- JobState["COMPLETED"] = "Completed";
116
- JobState["DELETING"] = "Deleting";
117
- JobState["FAILED"] = "Failed";
118
- JobState["PENDING"] = "Pending";
119
- })(JobState = exports.JobState || (exports.JobState = {}));
120
- var Type;
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
- var Reaction;
140
- (function (Reaction) {
141
- Reaction["THUMBS_DOWN"] = "ThumbsDown";
142
- Reaction["THUMBS_UP"] = "ThumbsUp";
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
- var RecommendationCategory;
159
- (function (RecommendationCategory) {
160
- RecommendationCategory["AWS_BEST_PRACTICES"] = "AWSBestPractices";
161
- RecommendationCategory["AWS_CLOUDFORMATION_ISSUES"] = "AWSCloudFormationIssues";
162
- RecommendationCategory["CODE_INCONSISTENCIES"] = "CodeInconsistencies";
163
- RecommendationCategory["CODE_MAINTENANCE_ISSUES"] = "CodeMaintenanceIssues";
164
- RecommendationCategory["CONCURRENCY_ISSUES"] = "ConcurrencyIssues";
165
- RecommendationCategory["DUPLICATE_CODE"] = "DuplicateCode";
166
- RecommendationCategory["INPUT_VALIDATIONS"] = "InputValidations";
167
- RecommendationCategory["JAVA_BEST_PRACTICES"] = "JavaBestPractices";
168
- RecommendationCategory["PYTHON_BEST_PRACTICES"] = "PythonBestPractices";
169
- RecommendationCategory["RESOURCE_LEAKS"] = "ResourceLeaks";
170
- RecommendationCategory["SECURITY_ISSUES"] = "SecurityIssues";
171
- })(RecommendationCategory = exports.RecommendationCategory || (exports.RecommendationCategory = {}));
172
- var Severity;
173
- (function (Severity) {
174
- Severity["CRITICAL"] = "Critical";
175
- Severity["HIGH"] = "High";
176
- Severity["INFO"] = "Info";
177
- Severity["LOW"] = "Low";
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 var AnalysisType;
16
- (function (AnalysisType) {
17
- AnalysisType["CODE_QUALITY"] = "CodeQuality";
18
- AnalysisType["SECURITY"] = "Security";
19
- })(AnalysisType || (AnalysisType = {}));
20
- export var EncryptionOption;
21
- (function (EncryptionOption) {
22
- EncryptionOption["AoCmk"] = "AWS_OWNED_CMK";
23
- EncryptionOption["CmCmk"] = "CUSTOMER_MANAGED_CMK";
24
- })(EncryptionOption || (EncryptionOption = {}));
25
- export var ProviderType;
26
- (function (ProviderType) {
27
- ProviderType["BITBUCKET"] = "Bitbucket";
28
- ProviderType["CODE_COMMIT"] = "CodeCommit";
29
- ProviderType["GIT_HUB"] = "GitHub";
30
- ProviderType["GIT_HUB_ENTERPRISE_SERVER"] = "GitHubEnterpriseServer";
31
- ProviderType["S3_BUCKET"] = "S3Bucket";
32
- })(ProviderType || (ProviderType = {}));
33
- export var RepositoryAssociationState;
34
- (function (RepositoryAssociationState) {
35
- RepositoryAssociationState["ASSOCIATED"] = "Associated";
36
- RepositoryAssociationState["ASSOCIATING"] = "Associating";
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 var VendorName;
94
- (function (VendorName) {
95
- VendorName["GITHUB"] = "GitHub";
96
- VendorName["GITLAB"] = "GitLab";
97
- VendorName["NATIVE_S3"] = "NativeS3";
98
- })(VendorName || (VendorName = {}));
99
- export var ConfigFileState;
100
- (function (ConfigFileState) {
101
- ConfigFileState["ABSENT"] = "Absent";
102
- ConfigFileState["PRESENT"] = "Present";
103
- ConfigFileState["PRESENT_WITH_ERRORS"] = "PresentWithErrors";
104
- })(ConfigFileState || (ConfigFileState = {}));
105
- export var JobState;
106
- (function (JobState) {
107
- JobState["COMPLETED"] = "Completed";
108
- JobState["DELETING"] = "Deleting";
109
- JobState["FAILED"] = "Failed";
110
- JobState["PENDING"] = "Pending";
111
- })(JobState || (JobState = {}));
112
- export var Type;
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 var Reaction;
131
- (function (Reaction) {
132
- Reaction["THUMBS_DOWN"] = "ThumbsDown";
133
- Reaction["THUMBS_UP"] = "ThumbsUp";
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 var RecommendationCategory;
149
- (function (RecommendationCategory) {
150
- RecommendationCategory["AWS_BEST_PRACTICES"] = "AWSBestPractices";
151
- RecommendationCategory["AWS_CLOUDFORMATION_ISSUES"] = "AWSCloudFormationIssues";
152
- RecommendationCategory["CODE_INCONSISTENCIES"] = "CodeInconsistencies";
153
- RecommendationCategory["CODE_MAINTENANCE_ISSUES"] = "CodeMaintenanceIssues";
154
- RecommendationCategory["CONCURRENCY_ISSUES"] = "ConcurrencyIssues";
155
- RecommendationCategory["DUPLICATE_CODE"] = "DuplicateCode";
156
- RecommendationCategory["INPUT_VALIDATIONS"] = "InputValidations";
157
- RecommendationCategory["JAVA_BEST_PRACTICES"] = "JavaBestPractices";
158
- RecommendationCategory["PYTHON_BEST_PRACTICES"] = "PythonBestPractices";
159
- RecommendationCategory["RESOURCE_LEAKS"] = "ResourceLeaks";
160
- RecommendationCategory["SECURITY_ISSUES"] = "SecurityIssues";
161
- })(RecommendationCategory || (RecommendationCategory = {}));
162
- export var Severity;
163
- (function (Severity) {
164
- Severity["CRITICAL"] = "Critical";
165
- Severity["HIGH"] = "High";
166
- Severity["INFO"] = "Info";
167
- Severity["LOW"] = "Low";
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 enum AnalysisType {
20
- CODE_QUALITY = "CodeQuality",
21
- SECURITY = "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 declare enum EncryptionOption {
27
- AoCmk = "AWS_OWNED_CMK",
28
- CmCmk = "CUSTOMER_MANAGED_CMK"
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 enum ProviderType {
179
- BITBUCKET = "Bitbucket",
180
- CODE_COMMIT = "CodeCommit",
181
- GIT_HUB = "GitHub",
182
- GIT_HUB_ENTERPRISE_SERVER = "GitHubEnterpriseServer",
183
- S3_BUCKET = "S3Bucket"
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 enum RepositoryAssociationState {
236
- ASSOCIATED = "Associated",
237
- ASSOCIATING = "Associating",
238
- DISASSOCIATED = "Disassociated",
239
- DISASSOCIATING = "Disassociating",
240
- FAILED = "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 enum VendorName {
501
- GITHUB = "GitHub",
502
- GITLAB = "GitLab",
503
- NATIVE_S3 = "NativeS3"
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 enum ConfigFileState {
659
- ABSENT = "Absent",
660
- PRESENT = "Present",
661
- PRESENT_WITH_ERRORS = "PresentWithErrors"
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 enum JobState {
693
- COMPLETED = "Completed",
694
- DELETING = "Deleting",
695
- FAILED = "Failed",
696
- PENDING = "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 declare enum Type {
702
- PULL_REQUEST = "PullRequest",
703
- REPOSITORY_ANALYSIS = "RepositoryAnalysis"
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 enum Reaction {
872
- THUMBS_DOWN = "ThumbsDown",
873
- THUMBS_UP = "ThumbsUp"
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 enum RecommendationCategory {
1283
- AWS_BEST_PRACTICES = "AWSBestPractices",
1284
- AWS_CLOUDFORMATION_ISSUES = "AWSCloudFormationIssues",
1285
- CODE_INCONSISTENCIES = "CodeInconsistencies",
1286
- CODE_MAINTENANCE_ISSUES = "CodeMaintenanceIssues",
1287
- CONCURRENCY_ISSUES = "ConcurrencyIssues",
1288
- DUPLICATE_CODE = "DuplicateCode",
1289
- INPUT_VALIDATIONS = "InputValidations",
1290
- JAVA_BEST_PRACTICES = "JavaBestPractices",
1291
- PYTHON_BEST_PRACTICES = "PythonBestPractices",
1292
- RESOURCE_LEAKS = "ResourceLeaks",
1293
- SECURITY_ISSUES = "SecurityIssues"
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 enum Severity {
1325
- CRITICAL = "Critical",
1326
- HIGH = "High",
1327
- INFO = "Info",
1328
- LOW = "Low",
1329
- MEDIUM = "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 enum AnalysisType {
12
- CODE_QUALITY = "CodeQuality",
13
- SECURITY = "Security",
14
- }
15
- export declare enum EncryptionOption {
16
- AoCmk = "AWS_OWNED_CMK",
17
- CmCmk = "CUSTOMER_MANAGED_CMK",
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 enum ProviderType {
48
- BITBUCKET = "Bitbucket",
49
- CODE_COMMIT = "CodeCommit",
50
- GIT_HUB = "GitHub",
51
- GIT_HUB_ENTERPRISE_SERVER = "GitHubEnterpriseServer",
52
- S3_BUCKET = "S3Bucket",
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 enum RepositoryAssociationState {
63
- ASSOCIATED = "Associated",
64
- ASSOCIATING = "Associating",
65
- DISASSOCIATED = "Disassociated",
66
- DISASSOCIATING = "Disassociating",
67
- FAILED = "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 enum VendorName {
134
- GITHUB = "GitHub",
135
- GITLAB = "GitLab",
136
- NATIVE_S3 = "NativeS3",
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 enum ConfigFileState {
170
- ABSENT = "Absent",
171
- PRESENT = "Present",
172
- PRESENT_WITH_ERRORS = "PresentWithErrors",
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 enum JobState {
180
- COMPLETED = "Completed",
181
- DELETING = "Deleting",
182
- FAILED = "Failed",
183
- PENDING = "Pending",
184
- }
185
- export declare enum Type {
186
- PULL_REQUEST = "PullRequest",
187
- REPOSITORY_ANALYSIS = "RepositoryAnalysis",
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 enum Reaction {
230
- THUMBS_DOWN = "ThumbsDown",
231
- THUMBS_UP = "ThumbsUp",
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 enum RecommendationCategory {
317
- AWS_BEST_PRACTICES = "AWSBestPractices",
318
- AWS_CLOUDFORMATION_ISSUES = "AWSCloudFormationIssues",
319
- CODE_INCONSISTENCIES = "CodeInconsistencies",
320
- CODE_MAINTENANCE_ISSUES = "CodeMaintenanceIssues",
321
- CONCURRENCY_ISSUES = "ConcurrencyIssues",
322
- DUPLICATE_CODE = "DuplicateCode",
323
- INPUT_VALIDATIONS = "InputValidations",
324
- JAVA_BEST_PRACTICES = "JavaBestPractices",
325
- PYTHON_BEST_PRACTICES = "PythonBestPractices",
326
- RESOURCE_LEAKS = "ResourceLeaks",
327
- SECURITY_ISSUES = "SecurityIssues",
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 enum Severity {
337
- CRITICAL = "Critical",
338
- HIGH = "High",
339
- INFO = "Info",
340
- LOW = "Low",
341
- MEDIUM = "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.301.0",
4
+ "version": "3.303.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.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
56
- "@aws-sdk/util-waiter": "3.296.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.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.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
+ "@aws-sdk/util-waiter": "3.303.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.295.0",
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",