@aws-sdk/client-inspector2 3.327.0 → 3.328.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.
Files changed (32) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/Inspector2.js +2 -0
  3. package/dist-cjs/commands/SearchVulnerabilitiesCommand.js +45 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +4 -1
  6. package/dist-cjs/pagination/SearchVulnerabilitiesPaginator.js +28 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_restJson1.js +135 -2
  9. package/dist-es/Inspector2.js +2 -0
  10. package/dist-es/commands/SearchVulnerabilitiesCommand.js +41 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/models/models_0.js +3 -0
  13. package/dist-es/pagination/SearchVulnerabilitiesPaginator.js +24 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_restJson1.js +131 -0
  16. package/dist-types/Inspector2.d.ts +7 -0
  17. package/dist-types/Inspector2Client.d.ts +3 -2
  18. package/dist-types/commands/SearchVulnerabilitiesCommand.d.ts +140 -0
  19. package/dist-types/commands/index.d.ts +1 -0
  20. package/dist-types/models/models_0.d.ts +217 -0
  21. package/dist-types/pagination/SearchVulnerabilitiesPaginator.d.ts +7 -0
  22. package/dist-types/pagination/index.d.ts +1 -0
  23. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  24. package/dist-types/ts3.4/Inspector2.d.ts +17 -0
  25. package/dist-types/ts3.4/Inspector2Client.d.ts +6 -0
  26. package/dist-types/ts3.4/commands/SearchVulnerabilitiesCommand.d.ts +41 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +61 -0
  29. package/dist-types/ts3.4/pagination/SearchVulnerabilitiesPaginator.d.ts +11 -0
  30. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  32. package/package.json +4 -4
@@ -787,6 +787,12 @@ export declare class ValidationException extends __BaseException {
787
787
  opts: __ExceptionOptionType<ValidationException, __BaseException>
788
788
  );
789
789
  }
790
+ export interface AtigData {
791
+ firstSeen?: Date;
792
+ lastSeen?: Date;
793
+ targets?: string[];
794
+ ttps?: string[];
795
+ }
790
796
  export interface AutoEnable {
791
797
  ec2: boolean | undefined;
792
798
  ecr: boolean | undefined;
@@ -962,6 +968,11 @@ export interface CancelFindingsReportRequest {
962
968
  export interface CancelFindingsReportResponse {
963
969
  reportId: string | undefined;
964
970
  }
971
+ export interface CisaData {
972
+ dateAdded?: Date;
973
+ dateDue?: Date;
974
+ action?: string;
975
+ }
965
976
  export declare class ConflictException extends __BaseException {
966
977
  readonly name: "ConflictException";
967
978
  readonly $fault: "client";
@@ -1218,6 +1229,14 @@ export declare const Currency: {
1218
1229
  readonly USD: "USD";
1219
1230
  };
1220
1231
  export type Currency = (typeof Currency)[keyof typeof Currency];
1232
+ export interface Cvss2 {
1233
+ baseScore?: number;
1234
+ scoringVector?: string;
1235
+ }
1236
+ export interface Cvss3 {
1237
+ baseScore?: number;
1238
+ scoringVector?: string;
1239
+ }
1221
1240
  export interface CvssScore {
1222
1241
  baseScore: number | undefined;
1223
1242
  scoringVector: string | undefined;
@@ -1345,6 +1364,9 @@ export interface EnableDelegatedAdminAccountRequest {
1345
1364
  export interface EnableDelegatedAdminAccountResponse {
1346
1365
  delegatedAdminAccountId: string | undefined;
1347
1366
  }
1367
+ export interface Epss {
1368
+ score?: number;
1369
+ }
1348
1370
  export interface ExploitabilityDetails {
1349
1371
  lastKnownExploitAt?: Date;
1350
1372
  }
@@ -1354,6 +1376,10 @@ export declare const ExploitAvailable: {
1354
1376
  };
1355
1377
  export type ExploitAvailable =
1356
1378
  (typeof ExploitAvailable)[keyof typeof ExploitAvailable];
1379
+ export interface ExploitObserved {
1380
+ lastSeen?: Date;
1381
+ firstSeen?: Date;
1382
+ }
1357
1383
  export declare const ExternalReportStatus: {
1358
1384
  readonly CANCELLED: "CANCELLED";
1359
1385
  readonly FAILED: "FAILED";
@@ -1716,6 +1742,41 @@ export interface ListUsageTotalsResponse {
1716
1742
  nextToken?: string;
1717
1743
  totals?: UsageTotal[];
1718
1744
  }
1745
+ export interface SearchVulnerabilitiesFilterCriteria {
1746
+ vulnerabilityIds: string[] | undefined;
1747
+ }
1748
+ export interface SearchVulnerabilitiesRequest {
1749
+ filterCriteria: SearchVulnerabilitiesFilterCriteria | undefined;
1750
+ nextToken?: string;
1751
+ }
1752
+ export declare const VulnerabilitySource: {
1753
+ readonly NVD: "NVD";
1754
+ };
1755
+ export type VulnerabilitySource =
1756
+ (typeof VulnerabilitySource)[keyof typeof VulnerabilitySource];
1757
+ export interface Vulnerability {
1758
+ id: string | undefined;
1759
+ cwes?: string[];
1760
+ cisaData?: CisaData;
1761
+ source?: VulnerabilitySource | string;
1762
+ description?: string;
1763
+ atigData?: AtigData;
1764
+ vendorSeverity?: string;
1765
+ cvss3?: Cvss3;
1766
+ relatedVulnerabilities?: string[];
1767
+ cvss2?: Cvss2;
1768
+ vendorCreatedAt?: Date;
1769
+ vendorUpdatedAt?: Date;
1770
+ sourceUrl?: string;
1771
+ referenceUrls?: string[];
1772
+ exploitObserved?: ExploitObserved;
1773
+ detectionPlatforms?: string[];
1774
+ epss?: Epss;
1775
+ }
1776
+ export interface SearchVulnerabilitiesResponse {
1777
+ vulnerabilities: Vulnerability[] | undefined;
1778
+ nextToken?: string;
1779
+ }
1719
1780
  export interface TagResourceRequest {
1720
1781
  resourceArn: string | undefined;
1721
1782
  tags: Record<string, string> | undefined;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ SearchVulnerabilitiesCommandInput,
4
+ SearchVulnerabilitiesCommandOutput,
5
+ } from "../commands/SearchVulnerabilitiesCommand";
6
+ import { Inspector2PaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateSearchVulnerabilities(
8
+ config: Inspector2PaginationConfiguration,
9
+ input: SearchVulnerabilitiesCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<SearchVulnerabilitiesCommandOutput>;
@@ -8,3 +8,4 @@ export * from "./ListFindingAggregationsPaginator";
8
8
  export * from "./ListFindingsPaginator";
9
9
  export * from "./ListMembersPaginator";
10
10
  export * from "./ListUsageTotalsPaginator";
11
+ export * from "./SearchVulnerabilitiesPaginator";
@@ -123,6 +123,10 @@ import {
123
123
  ListUsageTotalsCommandInput,
124
124
  ListUsageTotalsCommandOutput,
125
125
  } from "../commands/ListUsageTotalsCommand";
126
+ import {
127
+ SearchVulnerabilitiesCommandInput,
128
+ SearchVulnerabilitiesCommandOutput,
129
+ } from "../commands/SearchVulnerabilitiesCommand";
126
130
  import {
127
131
  TagResourceCommandInput,
128
132
  TagResourceCommandOutput,
@@ -271,6 +275,10 @@ export declare const se_ListUsageTotalsCommand: (
271
275
  input: ListUsageTotalsCommandInput,
272
276
  context: __SerdeContext
273
277
  ) => Promise<__HttpRequest>;
278
+ export declare const se_SearchVulnerabilitiesCommand: (
279
+ input: SearchVulnerabilitiesCommandInput,
280
+ context: __SerdeContext
281
+ ) => Promise<__HttpRequest>;
274
282
  export declare const se_TagResourceCommand: (
275
283
  input: TagResourceCommandInput,
276
284
  context: __SerdeContext
@@ -419,6 +427,10 @@ export declare const de_ListUsageTotalsCommand: (
419
427
  output: __HttpResponse,
420
428
  context: __SerdeContext
421
429
  ) => Promise<ListUsageTotalsCommandOutput>;
430
+ export declare const de_SearchVulnerabilitiesCommand: (
431
+ output: __HttpResponse,
432
+ context: __SerdeContext
433
+ ) => Promise<SearchVulnerabilitiesCommandOutput>;
422
434
  export declare const de_TagResourceCommand: (
423
435
  output: __HttpResponse,
424
436
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-inspector2",
3
3
  "description": "AWS SDK for JavaScript Inspector2 Client for Node.js, Browser and React Native",
4
- "version": "3.327.0",
4
+ "version": "3.328.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,9 +21,9 @@
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.327.0",
24
+ "@aws-sdk/client-sts": "3.328.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.327.0",
26
+ "@aws-sdk/credential-provider-node": "3.328.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -38,7 +38,7 @@
38
38
  "@aws-sdk/middleware-stack": "3.325.0",
39
39
  "@aws-sdk/middleware-user-agent": "3.327.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
- "@aws-sdk/node-http-handler": "3.321.1",
41
+ "@aws-sdk/node-http-handler": "3.328.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
43
  "@aws-sdk/smithy-client": "3.325.0",
44
44
  "@aws-sdk/types": "3.310.0",