@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.
@@ -0,0 +1,95 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { CodeGuruReviewerServiceException as __BaseException } from "./CodeGuruReviewerServiceException";
3
+ /**
4
+ * <p>You do not have sufficient access to perform this action.</p>
5
+ * @public
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ Message?: string | undefined;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>The requested operation would cause a conflict with the current state of a service
18
+ * resource associated with the request. Resolve the conflict before retrying this request.
19
+ * </p>
20
+ * @public
21
+ */
22
+ export declare class ConflictException extends __BaseException {
23
+ readonly name: "ConflictException";
24
+ readonly $fault: "client";
25
+ Message?: string | undefined;
26
+ /**
27
+ * @internal
28
+ */
29
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
30
+ }
31
+ /**
32
+ * <p>The server encountered an internal error and is unable to complete the request.</p>
33
+ * @public
34
+ */
35
+ export declare class InternalServerException extends __BaseException {
36
+ readonly name: "InternalServerException";
37
+ readonly $fault: "server";
38
+ Message?: string | undefined;
39
+ /**
40
+ * @internal
41
+ */
42
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
43
+ }
44
+ /**
45
+ * <p>The request was denied due to request throttling.</p>
46
+ * @public
47
+ */
48
+ export declare class ThrottlingException extends __BaseException {
49
+ readonly name: "ThrottlingException";
50
+ readonly $fault: "client";
51
+ Message?: string | undefined;
52
+ /**
53
+ * @internal
54
+ */
55
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
56
+ }
57
+ /**
58
+ * <p>The input fails to satisfy the specified constraints.</p>
59
+ * @public
60
+ */
61
+ export declare class ValidationException extends __BaseException {
62
+ readonly name: "ValidationException";
63
+ readonly $fault: "client";
64
+ Message?: string | undefined;
65
+ /**
66
+ * @internal
67
+ */
68
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
69
+ }
70
+ /**
71
+ * <p> The resource specified in the request was not found. </p>
72
+ * @public
73
+ */
74
+ export declare class ResourceNotFoundException extends __BaseException {
75
+ readonly name: "ResourceNotFoundException";
76
+ readonly $fault: "client";
77
+ Message?: string | undefined;
78
+ /**
79
+ * @internal
80
+ */
81
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
82
+ }
83
+ /**
84
+ * <p>The resource specified in the request was not found.</p>
85
+ * @public
86
+ */
87
+ export declare class NotFoundException extends __BaseException {
88
+ readonly name: "NotFoundException";
89
+ readonly $fault: "client";
90
+ Message?: string | undefined;
91
+ /**
92
+ * @internal
93
+ */
94
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
95
+ }
@@ -1,42 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { CodeGuruReviewerServiceException as __BaseException } from "./CodeGuruReviewerServiceException";
3
- /**
4
- * <p>You do not have sufficient access to perform this action.</p>
5
- * @public
6
- */
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- Message?: string | undefined;
11
- /**
12
- * @internal
13
- */
14
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
- }
16
- /**
17
- * @public
18
- * @enum
19
- */
20
- export declare const AnalysisType: {
21
- readonly CODE_QUALITY: "CodeQuality";
22
- readonly SECURITY: "Security";
23
- };
24
- /**
25
- * @public
26
- */
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];
1
+ import { AnalysisType, ConfigFileState, EncryptionOption, JobState, ProviderType, Reaction, RecommendationCategory, RepositoryAssociationState, Severity, Type, VendorName } from "./enums";
40
2
  /**
41
3
  * <p>An object that contains:</p>
42
4
  * <ul>
@@ -198,21 +160,6 @@ export interface AssociateRepositoryRequest {
198
160
  */
199
161
  KMSKeyDetails?: KMSKeyDetails | undefined;
200
162
  }
201
- /**
202
- * @public
203
- * @enum
204
- */
205
- export declare const ProviderType: {
206
- readonly BITBUCKET: "Bitbucket";
207
- readonly CODE_COMMIT: "CodeCommit";
208
- readonly GIT_HUB: "GitHub";
209
- readonly GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer";
210
- readonly S3_BUCKET: "S3Bucket";
211
- };
212
- /**
213
- * @public
214
- */
215
- export type ProviderType = (typeof ProviderType)[keyof typeof ProviderType];
216
163
  /**
217
164
  * <p>Code artifacts are source code artifacts and build artifacts used in a repository
218
165
  * analysis or a pull request review.</p>
@@ -264,21 +211,6 @@ export interface S3RepositoryDetails {
264
211
  */
265
212
  CodeArtifacts?: CodeArtifacts | undefined;
266
213
  }
267
- /**
268
- * @public
269
- * @enum
270
- */
271
- export declare const RepositoryAssociationState: {
272
- readonly ASSOCIATED: "Associated";
273
- readonly ASSOCIATING: "Associating";
274
- readonly DISASSOCIATED: "Disassociated";
275
- readonly DISASSOCIATING: "Disassociating";
276
- readonly FAILED: "Failed";
277
- };
278
- /**
279
- * @public
280
- */
281
- export type RepositoryAssociationState = (typeof RepositoryAssociationState)[keyof typeof RepositoryAssociationState];
282
214
  /**
283
215
  * <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
284
216
  * <code>RepositoryAssociation</code> object.</p>
@@ -426,60 +358,6 @@ export interface AssociateRepositoryResponse {
426
358
  */
427
359
  Tags?: Record<string, string> | undefined;
428
360
  }
429
- /**
430
- * <p>The requested operation would cause a conflict with the current state of a service
431
- * resource associated with the request. Resolve the conflict before retrying this request.
432
- * </p>
433
- * @public
434
- */
435
- export declare class ConflictException extends __BaseException {
436
- readonly name: "ConflictException";
437
- readonly $fault: "client";
438
- Message?: string | undefined;
439
- /**
440
- * @internal
441
- */
442
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
443
- }
444
- /**
445
- * <p>The server encountered an internal error and is unable to complete the request.</p>
446
- * @public
447
- */
448
- export declare class InternalServerException extends __BaseException {
449
- readonly name: "InternalServerException";
450
- readonly $fault: "server";
451
- Message?: string | undefined;
452
- /**
453
- * @internal
454
- */
455
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
456
- }
457
- /**
458
- * <p>The request was denied due to request throttling.</p>
459
- * @public
460
- */
461
- export declare class ThrottlingException extends __BaseException {
462
- readonly name: "ThrottlingException";
463
- readonly $fault: "client";
464
- Message?: string | undefined;
465
- /**
466
- * @internal
467
- */
468
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
469
- }
470
- /**
471
- * <p>The input fails to satisfy the specified constraints.</p>
472
- * @public
473
- */
474
- export declare class ValidationException extends __BaseException {
475
- readonly name: "ValidationException";
476
- readonly $fault: "client";
477
- Message?: string | undefined;
478
- /**
479
- * @internal
480
- */
481
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
482
- }
483
361
  /**
484
362
  * <p>A <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType">SourceCodeType</a> that specifies the tip of a branch in an associated
485
363
  * repository.</p>
@@ -556,19 +434,6 @@ export interface EventInfo {
556
434
  */
557
435
  State?: string | undefined;
558
436
  }
559
- /**
560
- * @public
561
- * @enum
562
- */
563
- export declare const VendorName: {
564
- readonly GITHUB: "GitHub";
565
- readonly GITLAB: "GitLab";
566
- readonly NATIVE_S3: "NativeS3";
567
- };
568
- /**
569
- * @public
570
- */
571
- export type VendorName = (typeof VendorName)[keyof typeof VendorName];
572
437
  /**
573
438
  * <p>Metadata that is associated with a code review. This applies to both pull request and
574
439
  * repository analysis code reviews.</p>
@@ -738,19 +603,6 @@ export interface CreateCodeReviewRequest {
738
603
  */
739
604
  ClientRequestToken?: string | undefined;
740
605
  }
741
- /**
742
- * @public
743
- * @enum
744
- */
745
- export declare const ConfigFileState: {
746
- readonly ABSENT: "Absent";
747
- readonly PRESENT: "Present";
748
- readonly PRESENT_WITH_ERRORS: "PresentWithErrors";
749
- };
750
- /**
751
- * @public
752
- */
753
- export type ConfigFileState = (typeof ConfigFileState)[keyof typeof ConfigFileState];
754
606
  /**
755
607
  * <p>Information about the statistics from the code review.</p>
756
608
  * @public
@@ -780,32 +632,6 @@ export interface Metrics {
780
632
  */
781
633
  FindingsCount?: number | undefined;
782
634
  }
783
- /**
784
- * @public
785
- * @enum
786
- */
787
- export declare const JobState: {
788
- readonly COMPLETED: "Completed";
789
- readonly DELETING: "Deleting";
790
- readonly FAILED: "Failed";
791
- readonly PENDING: "Pending";
792
- };
793
- /**
794
- * @public
795
- */
796
- export type JobState = (typeof JobState)[keyof typeof JobState];
797
- /**
798
- * @public
799
- * @enum
800
- */
801
- export declare const Type: {
802
- readonly PULL_REQUEST: "PullRequest";
803
- readonly REPOSITORY_ANALYSIS: "RepositoryAnalysis";
804
- };
805
- /**
806
- * @public
807
- */
808
- export type Type = (typeof Type)[keyof typeof Type];
809
635
  /**
810
636
  * <p>Information about a code review. A code review belongs to the associated repository that
811
637
  * contains the reviewed code.</p>
@@ -930,19 +756,6 @@ export interface CreateCodeReviewResponse {
930
756
  */
931
757
  CodeReview?: CodeReview | undefined;
932
758
  }
933
- /**
934
- * <p> The resource specified in the request was not found. </p>
935
- * @public
936
- */
937
- export declare class ResourceNotFoundException extends __BaseException {
938
- readonly name: "ResourceNotFoundException";
939
- readonly $fault: "client";
940
- Message?: string | undefined;
941
- /**
942
- * @internal
943
- */
944
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
945
- }
946
759
  /**
947
760
  * @public
948
761
  */
@@ -991,18 +804,6 @@ export interface DescribeRecommendationFeedbackRequest {
991
804
  */
992
805
  UserId?: string | undefined;
993
806
  }
994
- /**
995
- * @public
996
- * @enum
997
- */
998
- export declare const Reaction: {
999
- readonly THUMBS_DOWN: "ThumbsDown";
1000
- readonly THUMBS_UP: "ThumbsUp";
1001
- };
1002
- /**
1003
- * @public
1004
- */
1005
- export type Reaction = (typeof Reaction)[keyof typeof Reaction];
1006
807
  /**
1007
808
  * <p>Information about the recommendation feedback.</p>
1008
809
  * @public
@@ -1094,19 +895,6 @@ export interface DescribeRepositoryAssociationResponse {
1094
895
  */
1095
896
  Tags?: Record<string, string> | undefined;
1096
897
  }
1097
- /**
1098
- * <p>The resource specified in the request was not found.</p>
1099
- * @public
1100
- */
1101
- export declare class NotFoundException extends __BaseException {
1102
- readonly name: "NotFoundException";
1103
- readonly $fault: "client";
1104
- Message?: string | undefined;
1105
- /**
1106
- * @internal
1107
- */
1108
- constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
1109
- }
1110
898
  /**
1111
899
  * @public
1112
900
  */
@@ -1456,27 +1244,6 @@ export interface ListRecommendationsRequest {
1456
1244
  */
1457
1245
  CodeReviewArn: string | undefined;
1458
1246
  }
1459
- /**
1460
- * @public
1461
- * @enum
1462
- */
1463
- export declare const RecommendationCategory: {
1464
- readonly AWS_BEST_PRACTICES: "AWSBestPractices";
1465
- readonly AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues";
1466
- readonly CODE_INCONSISTENCIES: "CodeInconsistencies";
1467
- readonly CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues";
1468
- readonly CONCURRENCY_ISSUES: "ConcurrencyIssues";
1469
- readonly DUPLICATE_CODE: "DuplicateCode";
1470
- readonly INPUT_VALIDATIONS: "InputValidations";
1471
- readonly JAVA_BEST_PRACTICES: "JavaBestPractices";
1472
- readonly PYTHON_BEST_PRACTICES: "PythonBestPractices";
1473
- readonly RESOURCE_LEAKS: "ResourceLeaks";
1474
- readonly SECURITY_ISSUES: "SecurityIssues";
1475
- };
1476
- /**
1477
- * @public
1478
- */
1479
- export type RecommendationCategory = (typeof RecommendationCategory)[keyof typeof RecommendationCategory];
1480
1247
  /**
1481
1248
  * <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>
1482
1249
  * @public
@@ -1508,21 +1275,6 @@ export interface RuleMetadata {
1508
1275
  */
1509
1276
  RuleTags?: string[] | undefined;
1510
1277
  }
1511
- /**
1512
- * @public
1513
- * @enum
1514
- */
1515
- export declare const Severity: {
1516
- readonly CRITICAL: "Critical";
1517
- readonly HIGH: "High";
1518
- readonly INFO: "Info";
1519
- readonly LOW: "Low";
1520
- readonly MEDIUM: "Medium";
1521
- };
1522
- /**
1523
- * @public
1524
- */
1525
- export type Severity = (typeof Severity)[keyof typeof Severity];
1526
1278
  /**
1527
1279
  * <p>Information about recommendations.</p>
1528
1280
  * @public
@@ -6,5 +6,7 @@ export { CodeGuruReviewerExtensionConfiguration } from "./extensionConfiguration
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
8
  export * from "./waiters";
9
- export * from "./models";
9
+ export * from "./models/enums";
10
+ export * from "./models/errors";
11
+ export * from "./models/models_0";
10
12
  export { CodeGuruReviewerServiceException } from "./models/CodeGuruReviewerServiceException";
@@ -0,0 +1,81 @@
1
+ export declare const AnalysisType: {
2
+ readonly CODE_QUALITY: "CodeQuality";
3
+ readonly SECURITY: "Security";
4
+ };
5
+ export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType];
6
+ export declare const EncryptionOption: {
7
+ readonly AoCmk: "AWS_OWNED_CMK";
8
+ readonly CmCmk: "CUSTOMER_MANAGED_CMK";
9
+ };
10
+ export type EncryptionOption =
11
+ (typeof EncryptionOption)[keyof typeof EncryptionOption];
12
+ export declare const ProviderType: {
13
+ readonly BITBUCKET: "Bitbucket";
14
+ readonly CODE_COMMIT: "CodeCommit";
15
+ readonly GIT_HUB: "GitHub";
16
+ readonly GIT_HUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer";
17
+ readonly S3_BUCKET: "S3Bucket";
18
+ };
19
+ export type ProviderType = (typeof ProviderType)[keyof typeof ProviderType];
20
+ export declare const RepositoryAssociationState: {
21
+ readonly ASSOCIATED: "Associated";
22
+ readonly ASSOCIATING: "Associating";
23
+ readonly DISASSOCIATED: "Disassociated";
24
+ readonly DISASSOCIATING: "Disassociating";
25
+ readonly FAILED: "Failed";
26
+ };
27
+ export type RepositoryAssociationState =
28
+ (typeof RepositoryAssociationState)[keyof typeof RepositoryAssociationState];
29
+ export declare const VendorName: {
30
+ readonly GITHUB: "GitHub";
31
+ readonly GITLAB: "GitLab";
32
+ readonly NATIVE_S3: "NativeS3";
33
+ };
34
+ export type VendorName = (typeof VendorName)[keyof typeof VendorName];
35
+ export declare const ConfigFileState: {
36
+ readonly ABSENT: "Absent";
37
+ readonly PRESENT: "Present";
38
+ readonly PRESENT_WITH_ERRORS: "PresentWithErrors";
39
+ };
40
+ export type ConfigFileState =
41
+ (typeof ConfigFileState)[keyof typeof ConfigFileState];
42
+ export declare const JobState: {
43
+ readonly COMPLETED: "Completed";
44
+ readonly DELETING: "Deleting";
45
+ readonly FAILED: "Failed";
46
+ readonly PENDING: "Pending";
47
+ };
48
+ export type JobState = (typeof JobState)[keyof typeof JobState];
49
+ export declare const Type: {
50
+ readonly PULL_REQUEST: "PullRequest";
51
+ readonly REPOSITORY_ANALYSIS: "RepositoryAnalysis";
52
+ };
53
+ export type Type = (typeof Type)[keyof typeof Type];
54
+ export declare const Reaction: {
55
+ readonly THUMBS_DOWN: "ThumbsDown";
56
+ readonly THUMBS_UP: "ThumbsUp";
57
+ };
58
+ export type Reaction = (typeof Reaction)[keyof typeof Reaction];
59
+ export declare const RecommendationCategory: {
60
+ readonly AWS_BEST_PRACTICES: "AWSBestPractices";
61
+ readonly AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues";
62
+ readonly CODE_INCONSISTENCIES: "CodeInconsistencies";
63
+ readonly CODE_MAINTENANCE_ISSUES: "CodeMaintenanceIssues";
64
+ readonly CONCURRENCY_ISSUES: "ConcurrencyIssues";
65
+ readonly DUPLICATE_CODE: "DuplicateCode";
66
+ readonly INPUT_VALIDATIONS: "InputValidations";
67
+ readonly JAVA_BEST_PRACTICES: "JavaBestPractices";
68
+ readonly PYTHON_BEST_PRACTICES: "PythonBestPractices";
69
+ readonly RESOURCE_LEAKS: "ResourceLeaks";
70
+ readonly SECURITY_ISSUES: "SecurityIssues";
71
+ };
72
+ export type RecommendationCategory =
73
+ (typeof RecommendationCategory)[keyof typeof RecommendationCategory];
74
+ export declare const Severity: {
75
+ readonly CRITICAL: "Critical";
76
+ readonly HIGH: "High";
77
+ readonly INFO: "Info";
78
+ readonly LOW: "Low";
79
+ readonly MEDIUM: "Medium";
80
+ };
81
+ export type Severity = (typeof Severity)[keyof typeof Severity];
@@ -0,0 +1,54 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { CodeGuruReviewerServiceException as __BaseException } from "./CodeGuruReviewerServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ Message?: string | undefined;
7
+ constructor(
8
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
+ );
10
+ }
11
+ export declare class ConflictException extends __BaseException {
12
+ readonly name: "ConflictException";
13
+ readonly $fault: "client";
14
+ Message?: string | undefined;
15
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
16
+ }
17
+ export declare class InternalServerException extends __BaseException {
18
+ readonly name: "InternalServerException";
19
+ readonly $fault: "server";
20
+ Message?: string | undefined;
21
+ constructor(
22
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
23
+ );
24
+ }
25
+ export declare class ThrottlingException extends __BaseException {
26
+ readonly name: "ThrottlingException";
27
+ readonly $fault: "client";
28
+ Message?: string | undefined;
29
+ constructor(
30
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
31
+ );
32
+ }
33
+ export declare class ValidationException extends __BaseException {
34
+ readonly name: "ValidationException";
35
+ readonly $fault: "client";
36
+ Message?: string | undefined;
37
+ constructor(
38
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
39
+ );
40
+ }
41
+ export declare class ResourceNotFoundException extends __BaseException {
42
+ readonly name: "ResourceNotFoundException";
43
+ readonly $fault: "client";
44
+ Message?: string | undefined;
45
+ constructor(
46
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
47
+ );
48
+ }
49
+ export declare class NotFoundException extends __BaseException {
50
+ readonly name: "NotFoundException";
51
+ readonly $fault: "client";
52
+ Message?: string | undefined;
53
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
54
+ }