@aws-sdk/client-codeguru-security 3.427.0 → 3.429.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.
@@ -164,7 +164,7 @@ export interface BatchGetFindingsError {
164
164
  * @public
165
165
  * <p>A code associated with the type of error.</p>
166
166
  */
167
- errorCode: ErrorCode | string | undefined;
167
+ errorCode: ErrorCode | undefined;
168
168
  /**
169
169
  * @public
170
170
  * <p>Describes the error.</p>
@@ -388,7 +388,7 @@ export interface Finding {
388
388
  * @public
389
389
  * <p>The status of the finding. A finding status can be open or closed. </p>
390
390
  */
391
- status?: Status | string;
391
+ status?: Status;
392
392
  /**
393
393
  * @public
394
394
  * <p>The resource where Amazon CodeGuru Security detected a finding.</p>
@@ -403,7 +403,7 @@ export interface Finding {
403
403
  * @public
404
404
  * <p>The severity of the finding.</p>
405
405
  */
406
- severity?: Severity | string;
406
+ severity?: Severity;
407
407
  /**
408
408
  * @public
409
409
  * <p>An object that contains the details about how to remediate a finding.</p>
@@ -550,7 +550,7 @@ export declare class ValidationException extends __BaseException {
550
550
  * @public
551
551
  * <p>The reason the request failed validation.</p>
552
552
  */
553
- reason: ValidationExceptionReason | string | undefined;
553
+ reason: ValidationExceptionReason | undefined;
554
554
  /**
555
555
  * @public
556
556
  * <p>The field that caused the error, if applicable.</p>
@@ -663,7 +663,7 @@ export interface CreateScanRequest {
663
663
  * analyze your code in near-real time. <code>Standard</code> scans have standard resource limits
664
664
  * and use the full set of detectors to analyze your code.</p>
665
665
  */
666
- scanType?: ScanType | string;
666
+ scanType?: ScanType;
667
667
  /**
668
668
  * @public
669
669
  * <p>The type of analysis you want CodeGuru Security to perform in the scan, either
@@ -671,7 +671,7 @@ export interface CreateScanRequest {
671
671
  * findings related to security. The <code>All</code> type generates both security findings and
672
672
  * quality findings. Defaults to <code>Security</code> type if missing.</p>
673
673
  */
674
- analysisType?: AnalysisType | string;
674
+ analysisType?: AnalysisType;
675
675
  /**
676
676
  * @public
677
677
  * <p>An array of key-value pairs used to tag a scan. A tag is a custom attribute
@@ -727,7 +727,7 @@ export interface CreateScanResponse {
727
727
  * <p>The current state of the scan. Returns either <code>InProgress</code>,
728
728
  * <code>Successful</code>, or <code>Failed</code>.</p>
729
729
  */
730
- scanState: ScanState | string | undefined;
730
+ scanState: ScanState | undefined;
731
731
  /**
732
732
  * @public
733
733
  * <p>The ARN for the scan name.</p>
@@ -853,7 +853,7 @@ export interface GetFindingsRequest {
853
853
  * <p>The status of the findings you want to get. Pass either <code>Open</code>,
854
854
  * <code>Closed</code>, or <code>All</code>.</p>
855
855
  */
856
- status?: Status | string;
856
+ status?: Status;
857
857
  }
858
858
  /**
859
859
  * @public
@@ -995,7 +995,7 @@ export interface GetScanResponse {
995
995
  * <p>The current state of the scan. Pass either <code>InProgress</code>,
996
996
  * <code>Successful</code>, or <code>Failed</code>.</p>
997
997
  */
998
- scanState: ScanState | string | undefined;
998
+ scanState: ScanState | undefined;
999
999
  /**
1000
1000
  * @public
1001
1001
  * <p>The time the scan was created.</p>
@@ -1008,7 +1008,7 @@ export interface GetScanResponse {
1008
1008
  * findings related to security. The <code>All</code> type generates both security findings and
1009
1009
  * quality findings.</p>
1010
1010
  */
1011
- analysisType: AnalysisType | string | undefined;
1011
+ analysisType: AnalysisType | undefined;
1012
1012
  /**
1013
1013
  * @public
1014
1014
  * <p>The time when the scan was last updated. Only available for <code>STANDARD</code> scan types.</p>
@@ -1102,7 +1102,7 @@ export interface ScanSummary {
1102
1102
  * <p>The state of the scan. A scan can be <code>In Progress</code>,
1103
1103
  * <code>Complete</code>, or <code>Failed</code>. </p>
1104
1104
  */
1105
- scanState: ScanState | string | undefined;
1105
+ scanState: ScanState | undefined;
1106
1106
  /**
1107
1107
  * @public
1108
1108
  * <p> The time when the scan was created. </p>
@@ -47,7 +47,7 @@ export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
47
47
  export interface BatchGetFindingsError {
48
48
  scanName: string | undefined;
49
49
  findingId: string | undefined;
50
- errorCode: ErrorCode | string | undefined;
50
+ errorCode: ErrorCode | undefined;
51
51
  message: string | undefined;
52
52
  }
53
53
  export interface Recommendation {
@@ -105,10 +105,10 @@ export interface Finding {
105
105
  id?: string;
106
106
  updatedAt?: Date;
107
107
  type?: string;
108
- status?: Status | string;
108
+ status?: Status;
109
109
  resource?: Resource;
110
110
  vulnerability?: Vulnerability;
111
- severity?: Severity | string;
111
+ severity?: Severity;
112
112
  remediation?: Remediation;
113
113
  title?: string;
114
114
  detectorTags?: string[];
@@ -159,7 +159,7 @@ export declare class ValidationException extends __BaseException {
159
159
  readonly name: "ValidationException";
160
160
  readonly $fault: "client";
161
161
  errorCode: string | undefined;
162
- reason: ValidationExceptionReason | string | undefined;
162
+ reason: ValidationExceptionReason | undefined;
163
163
  fieldList?: ValidationExceptionField[];
164
164
  constructor(
165
165
  opts: __ExceptionOptionType<ValidationException, __BaseException>
@@ -200,8 +200,8 @@ export interface CreateScanRequest {
200
200
  clientToken?: string;
201
201
  resourceId: ResourceId | undefined;
202
202
  scanName: string | undefined;
203
- scanType?: ScanType | string;
204
- analysisType?: AnalysisType | string;
203
+ scanType?: ScanType;
204
+ analysisType?: AnalysisType;
205
205
  tags?: Record<string, string>;
206
206
  }
207
207
  export declare const ScanState: {
@@ -214,7 +214,7 @@ export interface CreateScanResponse {
214
214
  scanName: string | undefined;
215
215
  runId: string | undefined;
216
216
  resourceId: ResourceId | undefined;
217
- scanState: ScanState | string | undefined;
217
+ scanState: ScanState | undefined;
218
218
  scanNameArn?: string;
219
219
  }
220
220
  export declare class ResourceNotFoundException extends __BaseException {
@@ -246,7 +246,7 @@ export interface GetFindingsRequest {
246
246
  scanName: string | undefined;
247
247
  nextToken?: string;
248
248
  maxResults?: number;
249
- status?: Status | string;
249
+ status?: Status;
250
250
  }
251
251
  export interface GetFindingsResponse {
252
252
  findings?: Finding[];
@@ -280,9 +280,9 @@ export interface GetScanRequest {
280
280
  export interface GetScanResponse {
281
281
  scanName: string | undefined;
282
282
  runId: string | undefined;
283
- scanState: ScanState | string | undefined;
283
+ scanState: ScanState | undefined;
284
284
  createdAt: Date | undefined;
285
- analysisType: AnalysisType | string | undefined;
285
+ analysisType: AnalysisType | undefined;
286
286
  updatedAt?: Date;
287
287
  numberOfRevisions?: number;
288
288
  scanNameArn?: string;
@@ -302,7 +302,7 @@ export interface ListScansRequest {
302
302
  maxResults?: number;
303
303
  }
304
304
  export interface ScanSummary {
305
- scanState: ScanState | string | undefined;
305
+ scanState: ScanState | undefined;
306
306
  createdAt: Date | undefined;
307
307
  updatedAt?: Date;
308
308
  scanName: string | undefined;
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.427.0",
4
+ "version": "3.429.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,39 +21,39 @@
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.427.0",
25
- "@aws-sdk/credential-provider-node": "3.427.0",
26
- "@aws-sdk/middleware-host-header": "3.425.0",
27
- "@aws-sdk/middleware-logger": "3.425.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.425.0",
29
- "@aws-sdk/middleware-signing": "3.425.0",
30
- "@aws-sdk/middleware-user-agent": "3.427.0",
31
- "@aws-sdk/region-config-resolver": "3.425.0",
32
- "@aws-sdk/types": "3.425.0",
33
- "@aws-sdk/util-endpoints": "3.427.0",
34
- "@aws-sdk/util-user-agent-browser": "3.425.0",
35
- "@aws-sdk/util-user-agent-node": "3.425.0",
36
- "@smithy/config-resolver": "^2.0.11",
37
- "@smithy/fetch-http-handler": "^2.2.1",
38
- "@smithy/hash-node": "^2.0.10",
39
- "@smithy/invalid-dependency": "^2.0.10",
40
- "@smithy/middleware-content-length": "^2.0.12",
41
- "@smithy/middleware-endpoint": "^2.0.10",
42
- "@smithy/middleware-retry": "^2.0.13",
43
- "@smithy/middleware-serde": "^2.0.10",
44
- "@smithy/middleware-stack": "^2.0.4",
45
- "@smithy/node-config-provider": "^2.0.13",
46
- "@smithy/node-http-handler": "^2.1.6",
47
- "@smithy/protocol-http": "^3.0.6",
48
- "@smithy/smithy-client": "^2.1.9",
49
- "@smithy/types": "^2.3.4",
50
- "@smithy/url-parser": "^2.0.10",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
+ "@aws-sdk/middleware-logger": "3.428.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
+ "@aws-sdk/middleware-signing": "3.428.0",
30
+ "@aws-sdk/middleware-user-agent": "3.428.0",
31
+ "@aws-sdk/region-config-resolver": "3.428.0",
32
+ "@aws-sdk/types": "3.428.0",
33
+ "@aws-sdk/util-endpoints": "3.428.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.428.0",
35
+ "@aws-sdk/util-user-agent-node": "3.428.0",
36
+ "@smithy/config-resolver": "^2.0.14",
37
+ "@smithy/fetch-http-handler": "^2.2.3",
38
+ "@smithy/hash-node": "^2.0.11",
39
+ "@smithy/invalid-dependency": "^2.0.11",
40
+ "@smithy/middleware-content-length": "^2.0.13",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
+ "@smithy/middleware-retry": "^2.0.16",
43
+ "@smithy/middleware-serde": "^2.0.11",
44
+ "@smithy/middleware-stack": "^2.0.5",
45
+ "@smithy/node-config-provider": "^2.1.1",
46
+ "@smithy/node-http-handler": "^2.1.7",
47
+ "@smithy/protocol-http": "^3.0.7",
48
+ "@smithy/smithy-client": "^2.1.11",
49
+ "@smithy/types": "^2.3.5",
50
+ "@smithy/url-parser": "^2.0.11",
51
51
  "@smithy/util-base64": "^2.0.0",
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
- "@smithy/util-defaults-mode-browser": "^2.0.13",
55
- "@smithy/util-defaults-mode-node": "^2.0.15",
56
- "@smithy/util-retry": "^2.0.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.0.15",
55
+ "@smithy/util-defaults-mode-node": "^2.0.19",
56
+ "@smithy/util-retry": "^2.0.4",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0",
59
59
  "uuid": "^8.3.2"