@aws-sdk/client-codeguru-security 3.934.0 → 3.936.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 +40 -39
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +39 -0
- package/dist-es/models/errors.js +109 -0
- package/dist-es/models/models_0.js +1 -148
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +95 -0
- package/dist-types/models/errors.d.ts +160 -0
- package/dist-types/models/models_0.d.ts +1 -253
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +47 -0
- package/dist-types/ts3.4/models/errors.d.ts +64 -0
- package/dist-types/ts3.4/models/models_0.d.ts +8 -109
- package/package.json +19 -19
- 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
|
@@ -135,29 +135,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends CodeGuruSecuri
|
|
|
135
135
|
this.resourceType = opts.resourceType;
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
|
-
const AnalysisType = {
|
|
139
|
-
ALL: "All",
|
|
140
|
-
SECURITY: "Security",
|
|
141
|
-
};
|
|
142
|
-
const ErrorCode = {
|
|
143
|
-
DUPLICATE_IDENTIFIER: "DUPLICATE_IDENTIFIER",
|
|
144
|
-
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
145
|
-
INVALID_FINDING_ID: "INVALID_FINDING_ID",
|
|
146
|
-
INVALID_SCAN_NAME: "INVALID_SCAN_NAME",
|
|
147
|
-
ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST",
|
|
148
|
-
};
|
|
149
|
-
const Severity = {
|
|
150
|
-
CRITICAL: "Critical",
|
|
151
|
-
HIGH: "High",
|
|
152
|
-
INFO: "Info",
|
|
153
|
-
LOW: "Low",
|
|
154
|
-
MEDIUM: "Medium",
|
|
155
|
-
};
|
|
156
|
-
const Status = {
|
|
157
|
-
ALL: "All",
|
|
158
|
-
CLOSED: "Closed",
|
|
159
|
-
OPEN: "Open",
|
|
160
|
-
};
|
|
161
138
|
let InternalServerException$1 = class InternalServerException extends CodeGuruSecurityServiceException$1 {
|
|
162
139
|
name = "InternalServerException";
|
|
163
140
|
$fault = "server";
|
|
@@ -194,13 +171,6 @@ let ThrottlingException$1 = class ThrottlingException extends CodeGuruSecuritySe
|
|
|
194
171
|
this.quotaCode = opts.quotaCode;
|
|
195
172
|
}
|
|
196
173
|
};
|
|
197
|
-
const ValidationExceptionReason = {
|
|
198
|
-
CANNOT_PARSE: "cannotParse",
|
|
199
|
-
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
200
|
-
LAMBDA_CODE_SHA_MISMATCH: "lambdaCodeShaMisMatch",
|
|
201
|
-
OTHER: "other",
|
|
202
|
-
UNKNOWN_OPERATION: "unknownOperation",
|
|
203
|
-
};
|
|
204
174
|
let ValidationException$1 = class ValidationException extends CodeGuruSecurityServiceException$1 {
|
|
205
175
|
name = "ValidationException";
|
|
206
176
|
$fault = "client";
|
|
@@ -237,15 +207,6 @@ let ConflictException$1 = class ConflictException extends CodeGuruSecurityServic
|
|
|
237
207
|
this.resourceType = opts.resourceType;
|
|
238
208
|
}
|
|
239
209
|
};
|
|
240
|
-
const ScanType = {
|
|
241
|
-
EXPRESS: "Express",
|
|
242
|
-
STANDARD: "Standard",
|
|
243
|
-
};
|
|
244
|
-
const ScanState = {
|
|
245
|
-
FAILED: "Failed",
|
|
246
|
-
IN_PROGRESS: "InProgress",
|
|
247
|
-
SUCCESSFUL: "Successful",
|
|
248
|
-
};
|
|
249
210
|
let ResourceNotFoundException$1 = class ResourceNotFoundException extends CodeGuruSecurityServiceException$1 {
|
|
250
211
|
name = "ResourceNotFoundException";
|
|
251
212
|
$fault = "client";
|
|
@@ -1125,6 +1086,46 @@ const paginateListFindingsMetrics = core.createPaginator(CodeGuruSecurityClient,
|
|
|
1125
1086
|
|
|
1126
1087
|
const paginateListScans = core.createPaginator(CodeGuruSecurityClient, ListScansCommand, "nextToken", "nextToken", "maxResults");
|
|
1127
1088
|
|
|
1089
|
+
const AnalysisType = {
|
|
1090
|
+
ALL: "All",
|
|
1091
|
+
SECURITY: "Security",
|
|
1092
|
+
};
|
|
1093
|
+
const ErrorCode = {
|
|
1094
|
+
DUPLICATE_IDENTIFIER: "DUPLICATE_IDENTIFIER",
|
|
1095
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
1096
|
+
INVALID_FINDING_ID: "INVALID_FINDING_ID",
|
|
1097
|
+
INVALID_SCAN_NAME: "INVALID_SCAN_NAME",
|
|
1098
|
+
ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST",
|
|
1099
|
+
};
|
|
1100
|
+
const Severity = {
|
|
1101
|
+
CRITICAL: "Critical",
|
|
1102
|
+
HIGH: "High",
|
|
1103
|
+
INFO: "Info",
|
|
1104
|
+
LOW: "Low",
|
|
1105
|
+
MEDIUM: "Medium",
|
|
1106
|
+
};
|
|
1107
|
+
const Status = {
|
|
1108
|
+
ALL: "All",
|
|
1109
|
+
CLOSED: "Closed",
|
|
1110
|
+
OPEN: "Open",
|
|
1111
|
+
};
|
|
1112
|
+
const ValidationExceptionReason = {
|
|
1113
|
+
CANNOT_PARSE: "cannotParse",
|
|
1114
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
1115
|
+
LAMBDA_CODE_SHA_MISMATCH: "lambdaCodeShaMisMatch",
|
|
1116
|
+
OTHER: "other",
|
|
1117
|
+
UNKNOWN_OPERATION: "unknownOperation",
|
|
1118
|
+
};
|
|
1119
|
+
const ScanType = {
|
|
1120
|
+
EXPRESS: "Express",
|
|
1121
|
+
STANDARD: "Standard",
|
|
1122
|
+
};
|
|
1123
|
+
const ScanState = {
|
|
1124
|
+
FAILED: "Failed",
|
|
1125
|
+
IN_PROGRESS: "InProgress",
|
|
1126
|
+
SUCCESSFUL: "Successful",
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1128
1129
|
Object.defineProperty(exports, "$Command", {
|
|
1129
1130
|
enumerable: true,
|
|
1130
1131
|
get: function () { return smithyClient.Command; }
|
package/dist-es/index.js
CHANGED
|
@@ -2,5 +2,6 @@ export * from "./CodeGuruSecurityClient";
|
|
|
2
2
|
export * from "./CodeGuruSecurity";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
|
-
export * from "./models";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
6
7
|
export { CodeGuruSecurityServiceException } from "./models/CodeGuruSecurityServiceException";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export const AnalysisType = {
|
|
2
|
+
ALL: "All",
|
|
3
|
+
SECURITY: "Security",
|
|
4
|
+
};
|
|
5
|
+
export const ErrorCode = {
|
|
6
|
+
DUPLICATE_IDENTIFIER: "DUPLICATE_IDENTIFIER",
|
|
7
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
8
|
+
INVALID_FINDING_ID: "INVALID_FINDING_ID",
|
|
9
|
+
INVALID_SCAN_NAME: "INVALID_SCAN_NAME",
|
|
10
|
+
ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST",
|
|
11
|
+
};
|
|
12
|
+
export const Severity = {
|
|
13
|
+
CRITICAL: "Critical",
|
|
14
|
+
HIGH: "High",
|
|
15
|
+
INFO: "Info",
|
|
16
|
+
LOW: "Low",
|
|
17
|
+
MEDIUM: "Medium",
|
|
18
|
+
};
|
|
19
|
+
export const Status = {
|
|
20
|
+
ALL: "All",
|
|
21
|
+
CLOSED: "Closed",
|
|
22
|
+
OPEN: "Open",
|
|
23
|
+
};
|
|
24
|
+
export const ValidationExceptionReason = {
|
|
25
|
+
CANNOT_PARSE: "cannotParse",
|
|
26
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
27
|
+
LAMBDA_CODE_SHA_MISMATCH: "lambdaCodeShaMisMatch",
|
|
28
|
+
OTHER: "other",
|
|
29
|
+
UNKNOWN_OPERATION: "unknownOperation",
|
|
30
|
+
};
|
|
31
|
+
export const ScanType = {
|
|
32
|
+
EXPRESS: "Express",
|
|
33
|
+
STANDARD: "Standard",
|
|
34
|
+
};
|
|
35
|
+
export const ScanState = {
|
|
36
|
+
FAILED: "Failed",
|
|
37
|
+
IN_PROGRESS: "InProgress",
|
|
38
|
+
SUCCESSFUL: "Successful",
|
|
39
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { CodeGuruSecurityServiceException as __BaseException } from "./CodeGuruSecurityServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
errorCode;
|
|
6
|
+
resourceId;
|
|
7
|
+
resourceType;
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "AccessDeniedException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
this.errorCode = opts.errorCode;
|
|
16
|
+
this.resourceId = opts.resourceId;
|
|
17
|
+
this.resourceType = opts.resourceType;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export class InternalServerException extends __BaseException {
|
|
21
|
+
name = "InternalServerException";
|
|
22
|
+
$fault = "server";
|
|
23
|
+
$retryable = {};
|
|
24
|
+
error;
|
|
25
|
+
constructor(opts) {
|
|
26
|
+
super({
|
|
27
|
+
name: "InternalServerException",
|
|
28
|
+
$fault: "server",
|
|
29
|
+
...opts,
|
|
30
|
+
});
|
|
31
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
32
|
+
this.error = opts.error;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export class ThrottlingException extends __BaseException {
|
|
36
|
+
name = "ThrottlingException";
|
|
37
|
+
$fault = "client";
|
|
38
|
+
$retryable = {
|
|
39
|
+
throttling: true,
|
|
40
|
+
};
|
|
41
|
+
errorCode;
|
|
42
|
+
serviceCode;
|
|
43
|
+
quotaCode;
|
|
44
|
+
constructor(opts) {
|
|
45
|
+
super({
|
|
46
|
+
name: "ThrottlingException",
|
|
47
|
+
$fault: "client",
|
|
48
|
+
...opts,
|
|
49
|
+
});
|
|
50
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
51
|
+
this.errorCode = opts.errorCode;
|
|
52
|
+
this.serviceCode = opts.serviceCode;
|
|
53
|
+
this.quotaCode = opts.quotaCode;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export class ValidationException extends __BaseException {
|
|
57
|
+
name = "ValidationException";
|
|
58
|
+
$fault = "client";
|
|
59
|
+
errorCode;
|
|
60
|
+
reason;
|
|
61
|
+
fieldList;
|
|
62
|
+
constructor(opts) {
|
|
63
|
+
super({
|
|
64
|
+
name: "ValidationException",
|
|
65
|
+
$fault: "client",
|
|
66
|
+
...opts,
|
|
67
|
+
});
|
|
68
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
69
|
+
this.errorCode = opts.errorCode;
|
|
70
|
+
this.reason = opts.reason;
|
|
71
|
+
this.fieldList = opts.fieldList;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class ConflictException extends __BaseException {
|
|
75
|
+
name = "ConflictException";
|
|
76
|
+
$fault = "client";
|
|
77
|
+
errorCode;
|
|
78
|
+
resourceId;
|
|
79
|
+
resourceType;
|
|
80
|
+
constructor(opts) {
|
|
81
|
+
super({
|
|
82
|
+
name: "ConflictException",
|
|
83
|
+
$fault: "client",
|
|
84
|
+
...opts,
|
|
85
|
+
});
|
|
86
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
87
|
+
this.errorCode = opts.errorCode;
|
|
88
|
+
this.resourceId = opts.resourceId;
|
|
89
|
+
this.resourceType = opts.resourceType;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
93
|
+
name = "ResourceNotFoundException";
|
|
94
|
+
$fault = "client";
|
|
95
|
+
errorCode;
|
|
96
|
+
resourceId;
|
|
97
|
+
resourceType;
|
|
98
|
+
constructor(opts) {
|
|
99
|
+
super({
|
|
100
|
+
name: "ResourceNotFoundException",
|
|
101
|
+
$fault: "client",
|
|
102
|
+
...opts,
|
|
103
|
+
});
|
|
104
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
105
|
+
this.errorCode = opts.errorCode;
|
|
106
|
+
this.resourceId = opts.resourceId;
|
|
107
|
+
this.resourceType = opts.resourceType;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -1,148 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
errorCode;
|
|
6
|
-
resourceId;
|
|
7
|
-
resourceType;
|
|
8
|
-
constructor(opts) {
|
|
9
|
-
super({
|
|
10
|
-
name: "AccessDeniedException",
|
|
11
|
-
$fault: "client",
|
|
12
|
-
...opts,
|
|
13
|
-
});
|
|
14
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
-
this.errorCode = opts.errorCode;
|
|
16
|
-
this.resourceId = opts.resourceId;
|
|
17
|
-
this.resourceType = opts.resourceType;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export const AnalysisType = {
|
|
21
|
-
ALL: "All",
|
|
22
|
-
SECURITY: "Security",
|
|
23
|
-
};
|
|
24
|
-
export const ErrorCode = {
|
|
25
|
-
DUPLICATE_IDENTIFIER: "DUPLICATE_IDENTIFIER",
|
|
26
|
-
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
27
|
-
INVALID_FINDING_ID: "INVALID_FINDING_ID",
|
|
28
|
-
INVALID_SCAN_NAME: "INVALID_SCAN_NAME",
|
|
29
|
-
ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST",
|
|
30
|
-
};
|
|
31
|
-
export const Severity = {
|
|
32
|
-
CRITICAL: "Critical",
|
|
33
|
-
HIGH: "High",
|
|
34
|
-
INFO: "Info",
|
|
35
|
-
LOW: "Low",
|
|
36
|
-
MEDIUM: "Medium",
|
|
37
|
-
};
|
|
38
|
-
export const Status = {
|
|
39
|
-
ALL: "All",
|
|
40
|
-
CLOSED: "Closed",
|
|
41
|
-
OPEN: "Open",
|
|
42
|
-
};
|
|
43
|
-
export class InternalServerException extends __BaseException {
|
|
44
|
-
name = "InternalServerException";
|
|
45
|
-
$fault = "server";
|
|
46
|
-
$retryable = {};
|
|
47
|
-
error;
|
|
48
|
-
constructor(opts) {
|
|
49
|
-
super({
|
|
50
|
-
name: "InternalServerException",
|
|
51
|
-
$fault: "server",
|
|
52
|
-
...opts,
|
|
53
|
-
});
|
|
54
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
55
|
-
this.error = opts.error;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export class ThrottlingException extends __BaseException {
|
|
59
|
-
name = "ThrottlingException";
|
|
60
|
-
$fault = "client";
|
|
61
|
-
$retryable = {
|
|
62
|
-
throttling: true,
|
|
63
|
-
};
|
|
64
|
-
errorCode;
|
|
65
|
-
serviceCode;
|
|
66
|
-
quotaCode;
|
|
67
|
-
constructor(opts) {
|
|
68
|
-
super({
|
|
69
|
-
name: "ThrottlingException",
|
|
70
|
-
$fault: "client",
|
|
71
|
-
...opts,
|
|
72
|
-
});
|
|
73
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
74
|
-
this.errorCode = opts.errorCode;
|
|
75
|
-
this.serviceCode = opts.serviceCode;
|
|
76
|
-
this.quotaCode = opts.quotaCode;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
export const ValidationExceptionReason = {
|
|
80
|
-
CANNOT_PARSE: "cannotParse",
|
|
81
|
-
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
82
|
-
LAMBDA_CODE_SHA_MISMATCH: "lambdaCodeShaMisMatch",
|
|
83
|
-
OTHER: "other",
|
|
84
|
-
UNKNOWN_OPERATION: "unknownOperation",
|
|
85
|
-
};
|
|
86
|
-
export class ValidationException extends __BaseException {
|
|
87
|
-
name = "ValidationException";
|
|
88
|
-
$fault = "client";
|
|
89
|
-
errorCode;
|
|
90
|
-
reason;
|
|
91
|
-
fieldList;
|
|
92
|
-
constructor(opts) {
|
|
93
|
-
super({
|
|
94
|
-
name: "ValidationException",
|
|
95
|
-
$fault: "client",
|
|
96
|
-
...opts,
|
|
97
|
-
});
|
|
98
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
99
|
-
this.errorCode = opts.errorCode;
|
|
100
|
-
this.reason = opts.reason;
|
|
101
|
-
this.fieldList = opts.fieldList;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
export class ConflictException extends __BaseException {
|
|
105
|
-
name = "ConflictException";
|
|
106
|
-
$fault = "client";
|
|
107
|
-
errorCode;
|
|
108
|
-
resourceId;
|
|
109
|
-
resourceType;
|
|
110
|
-
constructor(opts) {
|
|
111
|
-
super({
|
|
112
|
-
name: "ConflictException",
|
|
113
|
-
$fault: "client",
|
|
114
|
-
...opts,
|
|
115
|
-
});
|
|
116
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
117
|
-
this.errorCode = opts.errorCode;
|
|
118
|
-
this.resourceId = opts.resourceId;
|
|
119
|
-
this.resourceType = opts.resourceType;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
export const ScanType = {
|
|
123
|
-
EXPRESS: "Express",
|
|
124
|
-
STANDARD: "Standard",
|
|
125
|
-
};
|
|
126
|
-
export const ScanState = {
|
|
127
|
-
FAILED: "Failed",
|
|
128
|
-
IN_PROGRESS: "InProgress",
|
|
129
|
-
SUCCESSFUL: "Successful",
|
|
130
|
-
};
|
|
131
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
132
|
-
name = "ResourceNotFoundException";
|
|
133
|
-
$fault = "client";
|
|
134
|
-
errorCode;
|
|
135
|
-
resourceId;
|
|
136
|
-
resourceType;
|
|
137
|
-
constructor(opts) {
|
|
138
|
-
super({
|
|
139
|
-
name: "ResourceNotFoundException",
|
|
140
|
-
$fault: "client",
|
|
141
|
-
...opts,
|
|
142
|
-
});
|
|
143
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
144
|
-
this.errorCode = opts.errorCode;
|
|
145
|
-
this.resourceId = opts.resourceId;
|
|
146
|
-
this.resourceType = opts.resourceType;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
1
|
+
export {};
|
|
@@ -169,7 +169,7 @@ const _v = "vulnerability";
|
|
|
169
169
|
const n0 = "com.amazonaws.codegurusecurity";
|
|
170
170
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
171
171
|
import { CodeGuruSecurityServiceException as __CodeGuruSecurityServiceException } from "../models/CodeGuruSecurityServiceException";
|
|
172
|
-
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/
|
|
172
|
+
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
|
|
173
173
|
export var S3Url = [0, n0, _SU, 8, 0];
|
|
174
174
|
export var AccessDeniedException = [
|
|
175
175
|
-3,
|
package/dist-types/index.d.ts
CHANGED
|
@@ -10,5 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
10
10
|
export type { CodeGuruSecurityExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./pagination";
|
|
13
|
-
export * from "./models";
|
|
13
|
+
export * from "./models/enums";
|
|
14
|
+
export * from "./models/errors";
|
|
15
|
+
export type * from "./models/models_0";
|
|
14
16
|
export { CodeGuruSecurityServiceException } from "./models/CodeGuruSecurityServiceException";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const AnalysisType: {
|
|
6
|
+
readonly ALL: "All";
|
|
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 ErrorCode: {
|
|
18
|
+
readonly DUPLICATE_IDENTIFIER: "DUPLICATE_IDENTIFIER";
|
|
19
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
20
|
+
readonly INVALID_FINDING_ID: "INVALID_FINDING_ID";
|
|
21
|
+
readonly INVALID_SCAN_NAME: "INVALID_SCAN_NAME";
|
|
22
|
+
readonly ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST";
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
* @enum
|
|
31
|
+
*/
|
|
32
|
+
export declare const Severity: {
|
|
33
|
+
readonly CRITICAL: "Critical";
|
|
34
|
+
readonly HIGH: "High";
|
|
35
|
+
readonly INFO: "Info";
|
|
36
|
+
readonly LOW: "Low";
|
|
37
|
+
readonly MEDIUM: "Medium";
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export type Severity = (typeof Severity)[keyof typeof Severity];
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
* @enum
|
|
46
|
+
*/
|
|
47
|
+
export declare const Status: {
|
|
48
|
+
readonly ALL: "All";
|
|
49
|
+
readonly CLOSED: "Closed";
|
|
50
|
+
readonly OPEN: "Open";
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
* @enum
|
|
59
|
+
*/
|
|
60
|
+
export declare const ValidationExceptionReason: {
|
|
61
|
+
readonly CANNOT_PARSE: "cannotParse";
|
|
62
|
+
readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
|
|
63
|
+
readonly LAMBDA_CODE_SHA_MISMATCH: "lambdaCodeShaMisMatch";
|
|
64
|
+
readonly OTHER: "other";
|
|
65
|
+
readonly UNKNOWN_OPERATION: "unknownOperation";
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
* @enum
|
|
74
|
+
*/
|
|
75
|
+
export declare const ScanType: {
|
|
76
|
+
readonly EXPRESS: "Express";
|
|
77
|
+
readonly STANDARD: "Standard";
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export type ScanType = (typeof ScanType)[keyof typeof ScanType];
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
* @enum
|
|
86
|
+
*/
|
|
87
|
+
export declare const ScanState: {
|
|
88
|
+
readonly FAILED: "Failed";
|
|
89
|
+
readonly IN_PROGRESS: "InProgress";
|
|
90
|
+
readonly SUCCESSFUL: "Successful";
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export type ScanState = (typeof ScanState)[keyof typeof ScanState];
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { CodeGuruSecurityServiceException as __BaseException } from "./CodeGuruSecurityServiceException";
|
|
3
|
+
import { ValidationExceptionReason } from "./enums";
|
|
4
|
+
import { ValidationExceptionField } from "./models_0";
|
|
5
|
+
/**
|
|
6
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
10
|
+
readonly name: "AccessDeniedException";
|
|
11
|
+
readonly $fault: "client";
|
|
12
|
+
/**
|
|
13
|
+
* <p>The identifier for the error.</p>
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
errorCode: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* <p>The identifier for the resource you don't have access to.</p>
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
resourceId?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* <p>The type of resource you don't have access to.</p>
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
resourceType?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* <p>The server encountered an internal error and is unable to complete the request.</p>
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export declare class InternalServerException extends __BaseException {
|
|
37
|
+
readonly name: "InternalServerException";
|
|
38
|
+
readonly $fault: "server";
|
|
39
|
+
$retryable: {};
|
|
40
|
+
/**
|
|
41
|
+
* <p>The internal error encountered by the server.</p>
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
error?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* <p>The request was denied due to request throttling.</p>
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export declare class ThrottlingException extends __BaseException {
|
|
55
|
+
readonly name: "ThrottlingException";
|
|
56
|
+
readonly $fault: "client";
|
|
57
|
+
$retryable: {
|
|
58
|
+
throttling: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* <p>The identifier for the error.</p>
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
errorCode: string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* <p>The identifier for the originating service.</p>
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
serviceCode?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* <p>The identifier for the originating quota.</p>
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
quotaCode?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* <p>The input fails to satisfy the specified constraints.</p>
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class ValidationException extends __BaseException {
|
|
85
|
+
readonly name: "ValidationException";
|
|
86
|
+
readonly $fault: "client";
|
|
87
|
+
/**
|
|
88
|
+
* <p>The identifier for the error.</p>
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
errorCode: string | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* <p>The reason the request failed validation.</p>
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
reason: ValidationExceptionReason | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* <p>The field that caused the error, if applicable.</p>
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
fieldList?: ValidationExceptionField[] | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* <p>The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.</p>
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
export declare class ConflictException extends __BaseException {
|
|
112
|
+
readonly name: "ConflictException";
|
|
113
|
+
readonly $fault: "client";
|
|
114
|
+
/**
|
|
115
|
+
* <p>The identifier for the error.</p>
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
errorCode: string | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* <p>The identifier for the service resource associated with the request.</p>
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
resourceId: string | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* <p>The type of resource associated with the request.</p>
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
resourceType: string | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* <p>The resource specified in the request was not found.</p>
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
139
|
+
readonly name: "ResourceNotFoundException";
|
|
140
|
+
readonly $fault: "client";
|
|
141
|
+
/**
|
|
142
|
+
* <p>The identifier for the error.</p>
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
errorCode: string | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* <p>The identifier for the resource that was not found.</p>
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
resourceId: string | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* <p>The type of resource that was not found.</p>
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
resourceType: string | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* @internal
|
|
158
|
+
*/
|
|
159
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
160
|
+
}
|