@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
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CodeGuruSecurityServiceException as __BaseException } from "./CodeGuruSecurityServiceException";
|
|
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
|
-
/**
|
|
11
|
-
* <p>The identifier for the error.</p>
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
errorCode: string | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* <p>The identifier for the resource you don't have access to.</p>
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
|
-
resourceId?: string | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* <p>The type of resource you don't have access to.</p>
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
24
|
-
resourceType?: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
29
|
-
}
|
|
1
|
+
import { AnalysisType, ErrorCode, ScanState, ScanType, Severity, Status } from "./enums";
|
|
30
2
|
/**
|
|
31
3
|
* <p>A numeric value corresponding to the severity of a finding, such as the number of open findings or the average time it takes to close findings of a given severity.</p>
|
|
32
4
|
* @public
|
|
@@ -89,18 +61,6 @@ export interface AccountFindingsMetric {
|
|
|
89
61
|
*/
|
|
90
62
|
meanTimeToClose?: FindingMetricsValuePerSeverity | undefined;
|
|
91
63
|
}
|
|
92
|
-
/**
|
|
93
|
-
* @public
|
|
94
|
-
* @enum
|
|
95
|
-
*/
|
|
96
|
-
export declare const AnalysisType: {
|
|
97
|
-
readonly ALL: "All";
|
|
98
|
-
readonly SECURITY: "Security";
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* @public
|
|
102
|
-
*/
|
|
103
|
-
export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType];
|
|
104
64
|
/**
|
|
105
65
|
* <p>An object that contains information about a finding and the scan that generated it. </p>
|
|
106
66
|
* @public
|
|
@@ -127,21 +87,6 @@ export interface BatchGetFindingsRequest {
|
|
|
127
87
|
*/
|
|
128
88
|
findingIdentifiers: FindingIdentifier[] | undefined;
|
|
129
89
|
}
|
|
130
|
-
/**
|
|
131
|
-
* @public
|
|
132
|
-
* @enum
|
|
133
|
-
*/
|
|
134
|
-
export declare const ErrorCode: {
|
|
135
|
-
readonly DUPLICATE_IDENTIFIER: "DUPLICATE_IDENTIFIER";
|
|
136
|
-
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
137
|
-
readonly INVALID_FINDING_ID: "INVALID_FINDING_ID";
|
|
138
|
-
readonly INVALID_SCAN_NAME: "INVALID_SCAN_NAME";
|
|
139
|
-
readonly ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST";
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* @public
|
|
143
|
-
*/
|
|
144
|
-
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
145
90
|
/**
|
|
146
91
|
* <p>Contains information about the error that caused a finding to fail to be retrieved.</p>
|
|
147
92
|
* @public
|
|
@@ -232,34 +177,6 @@ export interface Resource {
|
|
|
232
177
|
*/
|
|
233
178
|
subResourceId?: string | undefined;
|
|
234
179
|
}
|
|
235
|
-
/**
|
|
236
|
-
* @public
|
|
237
|
-
* @enum
|
|
238
|
-
*/
|
|
239
|
-
export declare const Severity: {
|
|
240
|
-
readonly CRITICAL: "Critical";
|
|
241
|
-
readonly HIGH: "High";
|
|
242
|
-
readonly INFO: "Info";
|
|
243
|
-
readonly LOW: "Low";
|
|
244
|
-
readonly MEDIUM: "Medium";
|
|
245
|
-
};
|
|
246
|
-
/**
|
|
247
|
-
* @public
|
|
248
|
-
*/
|
|
249
|
-
export type Severity = (typeof Severity)[keyof typeof Severity];
|
|
250
|
-
/**
|
|
251
|
-
* @public
|
|
252
|
-
* @enum
|
|
253
|
-
*/
|
|
254
|
-
export declare const Status: {
|
|
255
|
-
readonly ALL: "All";
|
|
256
|
-
readonly CLOSED: "Closed";
|
|
257
|
-
readonly OPEN: "Open";
|
|
258
|
-
};
|
|
259
|
-
/**
|
|
260
|
-
* @public
|
|
261
|
-
*/
|
|
262
|
-
export type Status = (typeof Status)[keyof typeof Status];
|
|
263
180
|
/**
|
|
264
181
|
* <p>The line of code where a finding was detected.</p>
|
|
265
182
|
* @public
|
|
@@ -441,54 +358,6 @@ export interface BatchGetFindingsResponse {
|
|
|
441
358
|
*/
|
|
442
359
|
failedFindings: BatchGetFindingsError[] | undefined;
|
|
443
360
|
}
|
|
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
|
-
$retryable: {};
|
|
452
|
-
/**
|
|
453
|
-
* <p>The internal error encountered by the server.</p>
|
|
454
|
-
* @public
|
|
455
|
-
*/
|
|
456
|
-
error?: string | undefined;
|
|
457
|
-
/**
|
|
458
|
-
* @internal
|
|
459
|
-
*/
|
|
460
|
-
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
461
|
-
}
|
|
462
|
-
/**
|
|
463
|
-
* <p>The request was denied due to request throttling.</p>
|
|
464
|
-
* @public
|
|
465
|
-
*/
|
|
466
|
-
export declare class ThrottlingException extends __BaseException {
|
|
467
|
-
readonly name: "ThrottlingException";
|
|
468
|
-
readonly $fault: "client";
|
|
469
|
-
$retryable: {
|
|
470
|
-
throttling: boolean;
|
|
471
|
-
};
|
|
472
|
-
/**
|
|
473
|
-
* <p>The identifier for the error.</p>
|
|
474
|
-
* @public
|
|
475
|
-
*/
|
|
476
|
-
errorCode: string | undefined;
|
|
477
|
-
/**
|
|
478
|
-
* <p>The identifier for the originating service.</p>
|
|
479
|
-
* @public
|
|
480
|
-
*/
|
|
481
|
-
serviceCode?: string | undefined;
|
|
482
|
-
/**
|
|
483
|
-
* <p>The identifier for the originating quota.</p>
|
|
484
|
-
* @public
|
|
485
|
-
*/
|
|
486
|
-
quotaCode?: string | undefined;
|
|
487
|
-
/**
|
|
488
|
-
* @internal
|
|
489
|
-
*/
|
|
490
|
-
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
491
|
-
}
|
|
492
361
|
/**
|
|
493
362
|
* <p>Information about a validation exception.</p>
|
|
494
363
|
* @public
|
|
@@ -505,75 +374,6 @@ export interface ValidationExceptionField {
|
|
|
505
374
|
*/
|
|
506
375
|
message: string | undefined;
|
|
507
376
|
}
|
|
508
|
-
/**
|
|
509
|
-
* @public
|
|
510
|
-
* @enum
|
|
511
|
-
*/
|
|
512
|
-
export declare const ValidationExceptionReason: {
|
|
513
|
-
readonly CANNOT_PARSE: "cannotParse";
|
|
514
|
-
readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
|
|
515
|
-
readonly LAMBDA_CODE_SHA_MISMATCH: "lambdaCodeShaMisMatch";
|
|
516
|
-
readonly OTHER: "other";
|
|
517
|
-
readonly UNKNOWN_OPERATION: "unknownOperation";
|
|
518
|
-
};
|
|
519
|
-
/**
|
|
520
|
-
* @public
|
|
521
|
-
*/
|
|
522
|
-
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
523
|
-
/**
|
|
524
|
-
* <p>The input fails to satisfy the specified constraints.</p>
|
|
525
|
-
* @public
|
|
526
|
-
*/
|
|
527
|
-
export declare class ValidationException extends __BaseException {
|
|
528
|
-
readonly name: "ValidationException";
|
|
529
|
-
readonly $fault: "client";
|
|
530
|
-
/**
|
|
531
|
-
* <p>The identifier for the error.</p>
|
|
532
|
-
* @public
|
|
533
|
-
*/
|
|
534
|
-
errorCode: string | undefined;
|
|
535
|
-
/**
|
|
536
|
-
* <p>The reason the request failed validation.</p>
|
|
537
|
-
* @public
|
|
538
|
-
*/
|
|
539
|
-
reason: ValidationExceptionReason | undefined;
|
|
540
|
-
/**
|
|
541
|
-
* <p>The field that caused the error, if applicable.</p>
|
|
542
|
-
* @public
|
|
543
|
-
*/
|
|
544
|
-
fieldList?: ValidationExceptionField[] | undefined;
|
|
545
|
-
/**
|
|
546
|
-
* @internal
|
|
547
|
-
*/
|
|
548
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
549
|
-
}
|
|
550
|
-
/**
|
|
551
|
-
* <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>
|
|
552
|
-
* @public
|
|
553
|
-
*/
|
|
554
|
-
export declare class ConflictException extends __BaseException {
|
|
555
|
-
readonly name: "ConflictException";
|
|
556
|
-
readonly $fault: "client";
|
|
557
|
-
/**
|
|
558
|
-
* <p>The identifier for the error.</p>
|
|
559
|
-
* @public
|
|
560
|
-
*/
|
|
561
|
-
errorCode: string | undefined;
|
|
562
|
-
/**
|
|
563
|
-
* <p>The identifier for the service resource associated with the request.</p>
|
|
564
|
-
* @public
|
|
565
|
-
*/
|
|
566
|
-
resourceId: string | undefined;
|
|
567
|
-
/**
|
|
568
|
-
* <p>The type of resource associated with the request.</p>
|
|
569
|
-
* @public
|
|
570
|
-
*/
|
|
571
|
-
resourceType: string | undefined;
|
|
572
|
-
/**
|
|
573
|
-
* @internal
|
|
574
|
-
*/
|
|
575
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
576
|
-
}
|
|
577
377
|
/**
|
|
578
378
|
* <p>The identifier for a resource object that contains resources to scan. Specifying a codeArtifactId is required to create a scan.</p>
|
|
579
379
|
* @public
|
|
@@ -607,18 +407,6 @@ export declare namespace ResourceId {
|
|
|
607
407
|
_: (name: string, value: any) => T;
|
|
608
408
|
}
|
|
609
409
|
}
|
|
610
|
-
/**
|
|
611
|
-
* @public
|
|
612
|
-
* @enum
|
|
613
|
-
*/
|
|
614
|
-
export declare const ScanType: {
|
|
615
|
-
readonly EXPRESS: "Express";
|
|
616
|
-
readonly STANDARD: "Standard";
|
|
617
|
-
};
|
|
618
|
-
/**
|
|
619
|
-
* @public
|
|
620
|
-
*/
|
|
621
|
-
export type ScanType = (typeof ScanType)[keyof typeof ScanType];
|
|
622
410
|
/**
|
|
623
411
|
* @public
|
|
624
412
|
*/
|
|
@@ -654,19 +442,6 @@ export interface CreateScanRequest {
|
|
|
654
442
|
*/
|
|
655
443
|
tags?: Record<string, string> | undefined;
|
|
656
444
|
}
|
|
657
|
-
/**
|
|
658
|
-
* @public
|
|
659
|
-
* @enum
|
|
660
|
-
*/
|
|
661
|
-
export declare const ScanState: {
|
|
662
|
-
readonly FAILED: "Failed";
|
|
663
|
-
readonly IN_PROGRESS: "InProgress";
|
|
664
|
-
readonly SUCCESSFUL: "Successful";
|
|
665
|
-
};
|
|
666
|
-
/**
|
|
667
|
-
* @public
|
|
668
|
-
*/
|
|
669
|
-
export type ScanState = (typeof ScanState)[keyof typeof ScanState];
|
|
670
445
|
/**
|
|
671
446
|
* @public
|
|
672
447
|
*/
|
|
@@ -697,33 +472,6 @@ export interface CreateScanResponse {
|
|
|
697
472
|
*/
|
|
698
473
|
scanNameArn?: string | undefined;
|
|
699
474
|
}
|
|
700
|
-
/**
|
|
701
|
-
* <p>The resource specified in the request was not found.</p>
|
|
702
|
-
* @public
|
|
703
|
-
*/
|
|
704
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
705
|
-
readonly name: "ResourceNotFoundException";
|
|
706
|
-
readonly $fault: "client";
|
|
707
|
-
/**
|
|
708
|
-
* <p>The identifier for the error.</p>
|
|
709
|
-
* @public
|
|
710
|
-
*/
|
|
711
|
-
errorCode: string | undefined;
|
|
712
|
-
/**
|
|
713
|
-
* <p>The identifier for the resource that was not found.</p>
|
|
714
|
-
* @public
|
|
715
|
-
*/
|
|
716
|
-
resourceId: string | undefined;
|
|
717
|
-
/**
|
|
718
|
-
* <p>The type of resource that was not found.</p>
|
|
719
|
-
* @public
|
|
720
|
-
*/
|
|
721
|
-
resourceType: string | undefined;
|
|
722
|
-
/**
|
|
723
|
-
* @internal
|
|
724
|
-
*/
|
|
725
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
726
|
-
}
|
|
727
475
|
/**
|
|
728
476
|
* @public
|
|
729
477
|
*/
|
|
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { CodeGuruSecurityExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
|
-
export * from "./models";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
9
11
|
export { CodeGuruSecurityServiceException } from "./models/CodeGuruSecurityServiceException";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const AnalysisType: {
|
|
2
|
+
readonly ALL: "All";
|
|
3
|
+
readonly SECURITY: "Security";
|
|
4
|
+
};
|
|
5
|
+
export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType];
|
|
6
|
+
export declare const ErrorCode: {
|
|
7
|
+
readonly DUPLICATE_IDENTIFIER: "DUPLICATE_IDENTIFIER";
|
|
8
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
9
|
+
readonly INVALID_FINDING_ID: "INVALID_FINDING_ID";
|
|
10
|
+
readonly INVALID_SCAN_NAME: "INVALID_SCAN_NAME";
|
|
11
|
+
readonly ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST";
|
|
12
|
+
};
|
|
13
|
+
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
14
|
+
export declare const Severity: {
|
|
15
|
+
readonly CRITICAL: "Critical";
|
|
16
|
+
readonly HIGH: "High";
|
|
17
|
+
readonly INFO: "Info";
|
|
18
|
+
readonly LOW: "Low";
|
|
19
|
+
readonly MEDIUM: "Medium";
|
|
20
|
+
};
|
|
21
|
+
export type Severity = (typeof Severity)[keyof typeof Severity];
|
|
22
|
+
export declare const Status: {
|
|
23
|
+
readonly ALL: "All";
|
|
24
|
+
readonly CLOSED: "Closed";
|
|
25
|
+
readonly OPEN: "Open";
|
|
26
|
+
};
|
|
27
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
28
|
+
export declare const ValidationExceptionReason: {
|
|
29
|
+
readonly CANNOT_PARSE: "cannotParse";
|
|
30
|
+
readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
|
|
31
|
+
readonly LAMBDA_CODE_SHA_MISMATCH: "lambdaCodeShaMisMatch";
|
|
32
|
+
readonly OTHER: "other";
|
|
33
|
+
readonly UNKNOWN_OPERATION: "unknownOperation";
|
|
34
|
+
};
|
|
35
|
+
export type ValidationExceptionReason =
|
|
36
|
+
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
37
|
+
export declare const ScanType: {
|
|
38
|
+
readonly EXPRESS: "Express";
|
|
39
|
+
readonly STANDARD: "Standard";
|
|
40
|
+
};
|
|
41
|
+
export type ScanType = (typeof ScanType)[keyof typeof ScanType];
|
|
42
|
+
export declare const ScanState: {
|
|
43
|
+
readonly FAILED: "Failed";
|
|
44
|
+
readonly IN_PROGRESS: "InProgress";
|
|
45
|
+
readonly SUCCESSFUL: "Successful";
|
|
46
|
+
};
|
|
47
|
+
export type ScanState = (typeof ScanState)[keyof typeof ScanState];
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
6
|
+
readonly name: "AccessDeniedException";
|
|
7
|
+
readonly $fault: "client";
|
|
8
|
+
errorCode: string | undefined;
|
|
9
|
+
resourceId?: string | undefined;
|
|
10
|
+
resourceType?: string | undefined;
|
|
11
|
+
constructor(
|
|
12
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
export declare class InternalServerException extends __BaseException {
|
|
16
|
+
readonly name: "InternalServerException";
|
|
17
|
+
readonly $fault: "server";
|
|
18
|
+
$retryable: {};
|
|
19
|
+
error?: string | undefined;
|
|
20
|
+
constructor(
|
|
21
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
export declare class ThrottlingException extends __BaseException {
|
|
25
|
+
readonly name: "ThrottlingException";
|
|
26
|
+
readonly $fault: "client";
|
|
27
|
+
$retryable: {
|
|
28
|
+
throttling: boolean;
|
|
29
|
+
};
|
|
30
|
+
errorCode: string | undefined;
|
|
31
|
+
serviceCode?: string | undefined;
|
|
32
|
+
quotaCode?: string | undefined;
|
|
33
|
+
constructor(
|
|
34
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
export declare class ValidationException extends __BaseException {
|
|
38
|
+
readonly name: "ValidationException";
|
|
39
|
+
readonly $fault: "client";
|
|
40
|
+
errorCode: string | undefined;
|
|
41
|
+
reason: ValidationExceptionReason | undefined;
|
|
42
|
+
fieldList?: ValidationExceptionField[] | undefined;
|
|
43
|
+
constructor(
|
|
44
|
+
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export declare class ConflictException extends __BaseException {
|
|
48
|
+
readonly name: "ConflictException";
|
|
49
|
+
readonly $fault: "client";
|
|
50
|
+
errorCode: string | undefined;
|
|
51
|
+
resourceId: string | undefined;
|
|
52
|
+
resourceType: string | undefined;
|
|
53
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
54
|
+
}
|
|
55
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
56
|
+
readonly name: "ResourceNotFoundException";
|
|
57
|
+
readonly $fault: "client";
|
|
58
|
+
errorCode: string | undefined;
|
|
59
|
+
resourceId: string | undefined;
|
|
60
|
+
resourceType: string | undefined;
|
|
61
|
+
constructor(
|
|
62
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
constructor(
|
|
10
|
-
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
11
|
-
);
|
|
12
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
AnalysisType,
|
|
3
|
+
ErrorCode,
|
|
4
|
+
ScanState,
|
|
5
|
+
ScanType,
|
|
6
|
+
Severity,
|
|
7
|
+
Status,
|
|
8
|
+
} from "./enums";
|
|
13
9
|
export interface FindingMetricsValuePerSeverity {
|
|
14
10
|
info?: number | undefined;
|
|
15
11
|
low?: number | undefined;
|
|
@@ -24,11 +20,6 @@ export interface AccountFindingsMetric {
|
|
|
24
20
|
openFindings?: FindingMetricsValuePerSeverity | undefined;
|
|
25
21
|
meanTimeToClose?: FindingMetricsValuePerSeverity | undefined;
|
|
26
22
|
}
|
|
27
|
-
export declare const AnalysisType: {
|
|
28
|
-
readonly ALL: "All";
|
|
29
|
-
readonly SECURITY: "Security";
|
|
30
|
-
};
|
|
31
|
-
export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType];
|
|
32
23
|
export interface FindingIdentifier {
|
|
33
24
|
scanName: string | undefined;
|
|
34
25
|
findingId: string | undefined;
|
|
@@ -36,14 +27,6 @@ export interface FindingIdentifier {
|
|
|
36
27
|
export interface BatchGetFindingsRequest {
|
|
37
28
|
findingIdentifiers: FindingIdentifier[] | undefined;
|
|
38
29
|
}
|
|
39
|
-
export declare const ErrorCode: {
|
|
40
|
-
readonly DUPLICATE_IDENTIFIER: "DUPLICATE_IDENTIFIER";
|
|
41
|
-
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
42
|
-
readonly INVALID_FINDING_ID: "INVALID_FINDING_ID";
|
|
43
|
-
readonly INVALID_SCAN_NAME: "INVALID_SCAN_NAME";
|
|
44
|
-
readonly ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST";
|
|
45
|
-
};
|
|
46
|
-
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
47
30
|
export interface BatchGetFindingsError {
|
|
48
31
|
scanName: string | undefined;
|
|
49
32
|
findingId: string | undefined;
|
|
@@ -66,20 +49,6 @@ export interface Resource {
|
|
|
66
49
|
id?: string | undefined;
|
|
67
50
|
subResourceId?: string | undefined;
|
|
68
51
|
}
|
|
69
|
-
export declare const Severity: {
|
|
70
|
-
readonly CRITICAL: "Critical";
|
|
71
|
-
readonly HIGH: "High";
|
|
72
|
-
readonly INFO: "Info";
|
|
73
|
-
readonly LOW: "Low";
|
|
74
|
-
readonly MEDIUM: "Medium";
|
|
75
|
-
};
|
|
76
|
-
export type Severity = (typeof Severity)[keyof typeof Severity];
|
|
77
|
-
export declare const Status: {
|
|
78
|
-
readonly ALL: "All";
|
|
79
|
-
readonly CLOSED: "Closed";
|
|
80
|
-
readonly OPEN: "Open";
|
|
81
|
-
};
|
|
82
|
-
export type Status = (typeof Status)[keyof typeof Status];
|
|
83
52
|
export interface CodeLine {
|
|
84
53
|
number?: number | undefined;
|
|
85
54
|
content?: string | undefined;
|
|
@@ -120,59 +89,10 @@ export interface BatchGetFindingsResponse {
|
|
|
120
89
|
findings: Finding[] | undefined;
|
|
121
90
|
failedFindings: BatchGetFindingsError[] | undefined;
|
|
122
91
|
}
|
|
123
|
-
export declare class InternalServerException extends __BaseException {
|
|
124
|
-
readonly name: "InternalServerException";
|
|
125
|
-
readonly $fault: "server";
|
|
126
|
-
$retryable: {};
|
|
127
|
-
error?: string | undefined;
|
|
128
|
-
constructor(
|
|
129
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
130
|
-
);
|
|
131
|
-
}
|
|
132
|
-
export declare class ThrottlingException extends __BaseException {
|
|
133
|
-
readonly name: "ThrottlingException";
|
|
134
|
-
readonly $fault: "client";
|
|
135
|
-
$retryable: {
|
|
136
|
-
throttling: boolean;
|
|
137
|
-
};
|
|
138
|
-
errorCode: string | undefined;
|
|
139
|
-
serviceCode?: string | undefined;
|
|
140
|
-
quotaCode?: string | undefined;
|
|
141
|
-
constructor(
|
|
142
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
92
|
export interface ValidationExceptionField {
|
|
146
93
|
name: string | undefined;
|
|
147
94
|
message: string | undefined;
|
|
148
95
|
}
|
|
149
|
-
export declare const ValidationExceptionReason: {
|
|
150
|
-
readonly CANNOT_PARSE: "cannotParse";
|
|
151
|
-
readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
|
|
152
|
-
readonly LAMBDA_CODE_SHA_MISMATCH: "lambdaCodeShaMisMatch";
|
|
153
|
-
readonly OTHER: "other";
|
|
154
|
-
readonly UNKNOWN_OPERATION: "unknownOperation";
|
|
155
|
-
};
|
|
156
|
-
export type ValidationExceptionReason =
|
|
157
|
-
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
158
|
-
export declare class ValidationException extends __BaseException {
|
|
159
|
-
readonly name: "ValidationException";
|
|
160
|
-
readonly $fault: "client";
|
|
161
|
-
errorCode: string | undefined;
|
|
162
|
-
reason: ValidationExceptionReason | undefined;
|
|
163
|
-
fieldList?: ValidationExceptionField[] | undefined;
|
|
164
|
-
constructor(
|
|
165
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
export declare class ConflictException extends __BaseException {
|
|
169
|
-
readonly name: "ConflictException";
|
|
170
|
-
readonly $fault: "client";
|
|
171
|
-
errorCode: string | undefined;
|
|
172
|
-
resourceId: string | undefined;
|
|
173
|
-
resourceType: string | undefined;
|
|
174
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
175
|
-
}
|
|
176
96
|
export type ResourceId =
|
|
177
97
|
| ResourceId.CodeArtifactIdMember
|
|
178
98
|
| ResourceId.$UnknownMember;
|
|
@@ -190,11 +110,6 @@ export declare namespace ResourceId {
|
|
|
190
110
|
_: (name: string, value: any) => T;
|
|
191
111
|
}
|
|
192
112
|
}
|
|
193
|
-
export declare const ScanType: {
|
|
194
|
-
readonly EXPRESS: "Express";
|
|
195
|
-
readonly STANDARD: "Standard";
|
|
196
|
-
};
|
|
197
|
-
export type ScanType = (typeof ScanType)[keyof typeof ScanType];
|
|
198
113
|
export interface CreateScanRequest {
|
|
199
114
|
clientToken?: string | undefined;
|
|
200
115
|
resourceId: ResourceId | undefined;
|
|
@@ -203,12 +118,6 @@ export interface CreateScanRequest {
|
|
|
203
118
|
analysisType?: AnalysisType | undefined;
|
|
204
119
|
tags?: Record<string, string> | undefined;
|
|
205
120
|
}
|
|
206
|
-
export declare const ScanState: {
|
|
207
|
-
readonly FAILED: "Failed";
|
|
208
|
-
readonly IN_PROGRESS: "InProgress";
|
|
209
|
-
readonly SUCCESSFUL: "Successful";
|
|
210
|
-
};
|
|
211
|
-
export type ScanState = (typeof ScanState)[keyof typeof ScanState];
|
|
212
121
|
export interface CreateScanResponse {
|
|
213
122
|
scanName: string | undefined;
|
|
214
123
|
runId: string | undefined;
|
|
@@ -216,16 +125,6 @@ export interface CreateScanResponse {
|
|
|
216
125
|
scanState: ScanState | undefined;
|
|
217
126
|
scanNameArn?: string | undefined;
|
|
218
127
|
}
|
|
219
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
220
|
-
readonly name: "ResourceNotFoundException";
|
|
221
|
-
readonly $fault: "client";
|
|
222
|
-
errorCode: string | undefined;
|
|
223
|
-
resourceId: string | undefined;
|
|
224
|
-
resourceType: string | undefined;
|
|
225
|
-
constructor(
|
|
226
|
-
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
227
|
-
);
|
|
228
|
-
}
|
|
229
128
|
export interface CreateUploadUrlRequest {
|
|
230
129
|
scanName: string | undefined;
|
|
231
130
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codeguru-security",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codeguru Security Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.936.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-codeguru-security",
|
|
@@ -20,38 +20,38 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.936.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.936.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.936.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.936.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.936.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.936.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.936.0",
|
|
30
|
+
"@aws-sdk/types": "3.936.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.936.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.936.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.936.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
-
"@smithy/core": "^3.18.
|
|
35
|
+
"@smithy/core": "^3.18.5",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.6",
|
|
37
37
|
"@smithy/hash-node": "^4.2.5",
|
|
38
38
|
"@smithy/invalid-dependency": "^4.2.5",
|
|
39
39
|
"@smithy/middleware-content-length": "^4.2.5",
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
-
"@smithy/middleware-serde": "^4.2.
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.3.12",
|
|
41
|
+
"@smithy/middleware-retry": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-serde": "^4.2.6",
|
|
43
43
|
"@smithy/middleware-stack": "^4.2.5",
|
|
44
44
|
"@smithy/node-config-provider": "^4.3.5",
|
|
45
45
|
"@smithy/node-http-handler": "^4.4.5",
|
|
46
46
|
"@smithy/protocol-http": "^5.3.5",
|
|
47
|
-
"@smithy/smithy-client": "^4.9.
|
|
47
|
+
"@smithy/smithy-client": "^4.9.8",
|
|
48
48
|
"@smithy/types": "^4.9.0",
|
|
49
49
|
"@smithy/url-parser": "^4.2.5",
|
|
50
50
|
"@smithy/util-base64": "^4.3.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.3.11",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.2.14",
|
|
55
55
|
"@smithy/util-endpoints": "^3.2.5",
|
|
56
56
|
"@smithy/util-middleware": "^4.2.5",
|
|
57
57
|
"@smithy/util-retry": "^4.2.5",
|
package/dist-es/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|