@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
@@ -37,6 +37,7 @@ import { ListFindingsCommandInput, ListFindingsCommandOutput } from "./commands/
37
37
  import { ListMembersCommandInput, ListMembersCommandOutput } from "./commands/ListMembersCommand";
38
38
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
39
39
  import { ListUsageTotalsCommandInput, ListUsageTotalsCommandOutput } from "./commands/ListUsageTotalsCommand";
40
+ import { SearchVulnerabilitiesCommandInput, SearchVulnerabilitiesCommandOutput } from "./commands/SearchVulnerabilitiesCommand";
40
41
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
41
42
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
42
43
  import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } from "./commands/UpdateConfigurationCommand";
@@ -48,11 +49,11 @@ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, Endpoi
48
49
  /**
49
50
  * @public
50
51
  */
51
- export type ServiceInputTypes = AssociateMemberCommandInput | BatchGetAccountStatusCommandInput | BatchGetFreeTrialInfoCommandInput | BatchGetMemberEc2DeepInspectionStatusCommandInput | BatchUpdateMemberEc2DeepInspectionStatusCommandInput | CancelFindingsReportCommandInput | CreateFilterCommandInput | CreateFindingsReportCommandInput | DeleteFilterCommandInput | DescribeOrganizationConfigurationCommandInput | DisableCommandInput | DisableDelegatedAdminAccountCommandInput | DisassociateMemberCommandInput | EnableCommandInput | EnableDelegatedAdminAccountCommandInput | GetConfigurationCommandInput | GetDelegatedAdminAccountCommandInput | GetEc2DeepInspectionConfigurationCommandInput | GetFindingsReportStatusCommandInput | GetMemberCommandInput | ListAccountPermissionsCommandInput | ListCoverageCommandInput | ListCoverageStatisticsCommandInput | ListDelegatedAdminAccountsCommandInput | ListFiltersCommandInput | ListFindingAggregationsCommandInput | ListFindingsCommandInput | ListMembersCommandInput | ListTagsForResourceCommandInput | ListUsageTotalsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConfigurationCommandInput | UpdateEc2DeepInspectionConfigurationCommandInput | UpdateFilterCommandInput | UpdateOrgEc2DeepInspectionConfigurationCommandInput | UpdateOrganizationConfigurationCommandInput;
52
+ export type ServiceInputTypes = AssociateMemberCommandInput | BatchGetAccountStatusCommandInput | BatchGetFreeTrialInfoCommandInput | BatchGetMemberEc2DeepInspectionStatusCommandInput | BatchUpdateMemberEc2DeepInspectionStatusCommandInput | CancelFindingsReportCommandInput | CreateFilterCommandInput | CreateFindingsReportCommandInput | DeleteFilterCommandInput | DescribeOrganizationConfigurationCommandInput | DisableCommandInput | DisableDelegatedAdminAccountCommandInput | DisassociateMemberCommandInput | EnableCommandInput | EnableDelegatedAdminAccountCommandInput | GetConfigurationCommandInput | GetDelegatedAdminAccountCommandInput | GetEc2DeepInspectionConfigurationCommandInput | GetFindingsReportStatusCommandInput | GetMemberCommandInput | ListAccountPermissionsCommandInput | ListCoverageCommandInput | ListCoverageStatisticsCommandInput | ListDelegatedAdminAccountsCommandInput | ListFiltersCommandInput | ListFindingAggregationsCommandInput | ListFindingsCommandInput | ListMembersCommandInput | ListTagsForResourceCommandInput | ListUsageTotalsCommandInput | SearchVulnerabilitiesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConfigurationCommandInput | UpdateEc2DeepInspectionConfigurationCommandInput | UpdateFilterCommandInput | UpdateOrgEc2DeepInspectionConfigurationCommandInput | UpdateOrganizationConfigurationCommandInput;
52
53
  /**
53
54
  * @public
54
55
  */
55
- export type ServiceOutputTypes = AssociateMemberCommandOutput | BatchGetAccountStatusCommandOutput | BatchGetFreeTrialInfoCommandOutput | BatchGetMemberEc2DeepInspectionStatusCommandOutput | BatchUpdateMemberEc2DeepInspectionStatusCommandOutput | CancelFindingsReportCommandOutput | CreateFilterCommandOutput | CreateFindingsReportCommandOutput | DeleteFilterCommandOutput | DescribeOrganizationConfigurationCommandOutput | DisableCommandOutput | DisableDelegatedAdminAccountCommandOutput | DisassociateMemberCommandOutput | EnableCommandOutput | EnableDelegatedAdminAccountCommandOutput | GetConfigurationCommandOutput | GetDelegatedAdminAccountCommandOutput | GetEc2DeepInspectionConfigurationCommandOutput | GetFindingsReportStatusCommandOutput | GetMemberCommandOutput | ListAccountPermissionsCommandOutput | ListCoverageCommandOutput | ListCoverageStatisticsCommandOutput | ListDelegatedAdminAccountsCommandOutput | ListFiltersCommandOutput | ListFindingAggregationsCommandOutput | ListFindingsCommandOutput | ListMembersCommandOutput | ListTagsForResourceCommandOutput | ListUsageTotalsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConfigurationCommandOutput | UpdateEc2DeepInspectionConfigurationCommandOutput | UpdateFilterCommandOutput | UpdateOrgEc2DeepInspectionConfigurationCommandOutput | UpdateOrganizationConfigurationCommandOutput;
56
+ export type ServiceOutputTypes = AssociateMemberCommandOutput | BatchGetAccountStatusCommandOutput | BatchGetFreeTrialInfoCommandOutput | BatchGetMemberEc2DeepInspectionStatusCommandOutput | BatchUpdateMemberEc2DeepInspectionStatusCommandOutput | CancelFindingsReportCommandOutput | CreateFilterCommandOutput | CreateFindingsReportCommandOutput | DeleteFilterCommandOutput | DescribeOrganizationConfigurationCommandOutput | DisableCommandOutput | DisableDelegatedAdminAccountCommandOutput | DisassociateMemberCommandOutput | EnableCommandOutput | EnableDelegatedAdminAccountCommandOutput | GetConfigurationCommandOutput | GetDelegatedAdminAccountCommandOutput | GetEc2DeepInspectionConfigurationCommandOutput | GetFindingsReportStatusCommandOutput | GetMemberCommandOutput | ListAccountPermissionsCommandOutput | ListCoverageCommandOutput | ListCoverageStatisticsCommandOutput | ListDelegatedAdminAccountsCommandOutput | ListFiltersCommandOutput | ListFindingAggregationsCommandOutput | ListFindingsCommandOutput | ListMembersCommandOutput | ListTagsForResourceCommandOutput | ListUsageTotalsCommandOutput | SearchVulnerabilitiesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConfigurationCommandOutput | UpdateEc2DeepInspectionConfigurationCommandOutput | UpdateFilterCommandOutput | UpdateOrgEc2DeepInspectionConfigurationCommandOutput | UpdateOrganizationConfigurationCommandOutput;
56
57
  /**
57
58
  * @public
58
59
  */
@@ -0,0 +1,140 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
5
+ import { SearchVulnerabilitiesRequest, SearchVulnerabilitiesResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link SearchVulnerabilitiesCommand}.
10
+ */
11
+ export interface SearchVulnerabilitiesCommandInput extends SearchVulnerabilitiesRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link SearchVulnerabilitiesCommand}.
17
+ */
18
+ export interface SearchVulnerabilitiesCommandOutput extends SearchVulnerabilitiesResponse, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Lists Amazon Inspector coverage details for a specific vulnerability.</p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { Inspector2Client, SearchVulnerabilitiesCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
27
+ * // const { Inspector2Client, SearchVulnerabilitiesCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
28
+ * const client = new Inspector2Client(config);
29
+ * const input = { // SearchVulnerabilitiesRequest
30
+ * filterCriteria: { // SearchVulnerabilitiesFilterCriteria
31
+ * vulnerabilityIds: [ // VulnIdList // required
32
+ * "STRING_VALUE",
33
+ * ],
34
+ * },
35
+ * nextToken: "STRING_VALUE",
36
+ * };
37
+ * const command = new SearchVulnerabilitiesCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // SearchVulnerabilitiesResponse
40
+ * // vulnerabilities: [ // Vulnerabilities // required
41
+ * // { // Vulnerability
42
+ * // id: "STRING_VALUE", // required
43
+ * // cwes: [ // Cwes
44
+ * // "STRING_VALUE",
45
+ * // ],
46
+ * // cisaData: { // CisaData
47
+ * // dateAdded: new Date("TIMESTAMP"),
48
+ * // dateDue: new Date("TIMESTAMP"),
49
+ * // action: "STRING_VALUE",
50
+ * // },
51
+ * // source: "STRING_VALUE",
52
+ * // description: "STRING_VALUE",
53
+ * // atigData: { // AtigData
54
+ * // firstSeen: new Date("TIMESTAMP"),
55
+ * // lastSeen: new Date("TIMESTAMP"),
56
+ * // targets: [ // Targets
57
+ * // "STRING_VALUE",
58
+ * // ],
59
+ * // ttps: [ // Ttps
60
+ * // "STRING_VALUE",
61
+ * // ],
62
+ * // },
63
+ * // vendorSeverity: "STRING_VALUE",
64
+ * // cvss3: { // Cvss3
65
+ * // baseScore: Number("double"),
66
+ * // scoringVector: "STRING_VALUE",
67
+ * // },
68
+ * // relatedVulnerabilities: [ // RelatedVulnerabilities
69
+ * // "STRING_VALUE",
70
+ * // ],
71
+ * // cvss2: { // Cvss2
72
+ * // baseScore: Number("double"),
73
+ * // scoringVector: "STRING_VALUE",
74
+ * // },
75
+ * // vendorCreatedAt: new Date("TIMESTAMP"),
76
+ * // vendorUpdatedAt: new Date("TIMESTAMP"),
77
+ * // sourceUrl: "STRING_VALUE",
78
+ * // referenceUrls: [ // VulnerabilityReferenceUrls
79
+ * // "STRING_VALUE",
80
+ * // ],
81
+ * // exploitObserved: { // ExploitObserved
82
+ * // lastSeen: new Date("TIMESTAMP"),
83
+ * // firstSeen: new Date("TIMESTAMP"),
84
+ * // },
85
+ * // detectionPlatforms: [ // DetectionPlatforms
86
+ * // "STRING_VALUE",
87
+ * // ],
88
+ * // epss: { // Epss
89
+ * // score: Number("double"),
90
+ * // },
91
+ * // },
92
+ * // ],
93
+ * // nextToken: "STRING_VALUE",
94
+ * // };
95
+ *
96
+ * ```
97
+ *
98
+ * @param SearchVulnerabilitiesCommandInput - {@link SearchVulnerabilitiesCommandInput}
99
+ * @returns {@link SearchVulnerabilitiesCommandOutput}
100
+ * @see {@link SearchVulnerabilitiesCommandInput} for command's `input` shape.
101
+ * @see {@link SearchVulnerabilitiesCommandOutput} for command's `response` shape.
102
+ * @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
103
+ *
104
+ * @throws {@link AccessDeniedException} (client fault)
105
+ * <p>You do not have sufficient access to perform this action.</p>
106
+ *
107
+ * @throws {@link InternalServerException} (server fault)
108
+ * <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
109
+ *
110
+ * @throws {@link ThrottlingException} (client fault)
111
+ * <p>The limit on the number of requests per second was exceeded.</p>
112
+ *
113
+ * @throws {@link ValidationException} (client fault)
114
+ * <p>The request has failed validation due to missing required fields or having invalid
115
+ * inputs.</p>
116
+ *
117
+ * @throws {@link Inspector2ServiceException}
118
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
119
+ *
120
+ */
121
+ export declare class SearchVulnerabilitiesCommand extends $Command<SearchVulnerabilitiesCommandInput, SearchVulnerabilitiesCommandOutput, Inspector2ClientResolvedConfig> {
122
+ readonly input: SearchVulnerabilitiesCommandInput;
123
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
124
+ /**
125
+ * @public
126
+ */
127
+ constructor(input: SearchVulnerabilitiesCommandInput);
128
+ /**
129
+ * @internal
130
+ */
131
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Inspector2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SearchVulnerabilitiesCommandInput, SearchVulnerabilitiesCommandOutput>;
132
+ /**
133
+ * @internal
134
+ */
135
+ private serialize;
136
+ /**
137
+ * @internal
138
+ */
139
+ private deserialize;
140
+ }
@@ -28,6 +28,7 @@ export * from "./ListFindingsCommand";
28
28
  export * from "./ListMembersCommand";
29
29
  export * from "./ListTagsForResourceCommand";
30
30
  export * from "./ListUsageTotalsCommand";
31
+ export * from "./SearchVulnerabilitiesCommand";
31
32
  export * from "./TagResourceCommand";
32
33
  export * from "./UntagResourceCommand";
33
34
  export * from "./UpdateConfigurationCommand";
@@ -1544,6 +1544,28 @@ export declare class ValidationException extends __BaseException {
1544
1544
  */
1545
1545
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
1546
1546
  }
1547
+ /**
1548
+ * @public
1549
+ * <p>The Amazon Web Services Threat Intel Group (ATIG) details for a specific vulnerability.</p>
1550
+ */
1551
+ export interface AtigData {
1552
+ /**
1553
+ * <p>The date and time this vulnerability was first observed.</p>
1554
+ */
1555
+ firstSeen?: Date;
1556
+ /**
1557
+ * <p>The date and time this vulnerability was last observed.</p>
1558
+ */
1559
+ lastSeen?: Date;
1560
+ /**
1561
+ * <p>The commercial sectors this vulnerability targets.</p>
1562
+ */
1563
+ targets?: string[];
1564
+ /**
1565
+ * <p>The <a href="https://attack.mitre.org/">MITRE ATT&amp;CK</a> tactics, techniques, and procedures (TTPs) associated with vulnerability.</p>
1566
+ */
1567
+ ttps?: string[];
1568
+ }
1547
1569
  /**
1548
1570
  * @public
1549
1571
  * <p>Represents which scan types are automatically enabled for new members of your Amazon Inspector organization.</p>
@@ -2071,6 +2093,24 @@ export interface CancelFindingsReportResponse {
2071
2093
  */
2072
2094
  reportId: string | undefined;
2073
2095
  }
2096
+ /**
2097
+ * @public
2098
+ * <p>The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.</p>
2099
+ */
2100
+ export interface CisaData {
2101
+ /**
2102
+ * <p>The date and time CISA added this vulnerability to their catalogue.</p>
2103
+ */
2104
+ dateAdded?: Date;
2105
+ /**
2106
+ * <p>The date and time CISA expects a fix to have been provided vulnerability.</p>
2107
+ */
2108
+ dateDue?: Date;
2109
+ /**
2110
+ * <p>The remediation action recommended by CISA for this vulnerability.</p>
2111
+ */
2112
+ action?: string;
2113
+ }
2074
2114
  /**
2075
2115
  * @public
2076
2116
  * <p>A conflict occurred.</p>
@@ -2829,6 +2869,34 @@ export declare const Currency: {
2829
2869
  * @public
2830
2870
  */
2831
2871
  export type Currency = (typeof Currency)[keyof typeof Currency];
2872
+ /**
2873
+ * @public
2874
+ * <p>The Common Vulnerability Scoring System (CVSS) version 2 details for the vulnerability.</p>
2875
+ */
2876
+ export interface Cvss2 {
2877
+ /**
2878
+ * <p>The CVSS v2 base score for the vulnerability.</p>
2879
+ */
2880
+ baseScore?: number;
2881
+ /**
2882
+ * <p>The scoring vector associated with the CVSS v2 score.</p>
2883
+ */
2884
+ scoringVector?: string;
2885
+ }
2886
+ /**
2887
+ * @public
2888
+ * <p>The Common Vulnerability Scoring System (CVSS) version 3 details for the vulnerability.</p>
2889
+ */
2890
+ export interface Cvss3 {
2891
+ /**
2892
+ * <p>The CVSS v3 base score for the vulnerability.</p>
2893
+ */
2894
+ baseScore?: number;
2895
+ /**
2896
+ * <p>The scoring vector associated with the CVSS v3 score.</p>
2897
+ */
2898
+ scoringVector?: string;
2899
+ }
2832
2900
  /**
2833
2901
  * @public
2834
2902
  * <p>The CVSS score for a finding.</p>
@@ -3188,6 +3256,16 @@ export interface EnableDelegatedAdminAccountResponse {
3188
3256
  */
3189
3257
  delegatedAdminAccountId: string | undefined;
3190
3258
  }
3259
+ /**
3260
+ * @public
3261
+ * <p>Details about the Exploit Prediction Scoring System (EPSS) score.</p>
3262
+ */
3263
+ export interface Epss {
3264
+ /**
3265
+ * <p>The Exploit Prediction Scoring System (EPSS) score.</p>
3266
+ */
3267
+ score?: number;
3268
+ }
3191
3269
  /**
3192
3270
  * @public
3193
3271
  * <p>The details of an exploit available for a finding discovered in your environment.</p>
@@ -3210,6 +3288,20 @@ export declare const ExploitAvailable: {
3210
3288
  * @public
3211
3289
  */
3212
3290
  export type ExploitAvailable = (typeof ExploitAvailable)[keyof typeof ExploitAvailable];
3291
+ /**
3292
+ * @public
3293
+ * <p>Contains information on when this exploit was observed.</p>
3294
+ */
3295
+ export interface ExploitObserved {
3296
+ /**
3297
+ * <p>The date an time when the exploit was last seen.</p>
3298
+ */
3299
+ lastSeen?: Date;
3300
+ /**
3301
+ * <p>The date an time when the exploit was first seen.</p>
3302
+ */
3303
+ firstSeen?: Date;
3304
+ }
3213
3305
  /**
3214
3306
  * @public
3215
3307
  * @enum
@@ -4332,6 +4424,131 @@ export interface ListUsageTotalsResponse {
4332
4424
  */
4333
4425
  totals?: UsageTotal[];
4334
4426
  }
4427
+ /**
4428
+ * @public
4429
+ * <p>Details on the criteria used to define the filter for a vulnerability search.
4430
+ * </p>
4431
+ */
4432
+ export interface SearchVulnerabilitiesFilterCriteria {
4433
+ /**
4434
+ * <p>The IDs for specific vulnerabilities.</p>
4435
+ */
4436
+ vulnerabilityIds: string[] | undefined;
4437
+ }
4438
+ /**
4439
+ * @public
4440
+ */
4441
+ export interface SearchVulnerabilitiesRequest {
4442
+ /**
4443
+ * <p>The criteria used to filter the results of a vulnerability search.</p>
4444
+ */
4445
+ filterCriteria: SearchVulnerabilitiesFilterCriteria | undefined;
4446
+ /**
4447
+ * <p>A token to use for paginating results that are returned in the response. Set the value
4448
+ * of this parameter to null for the first request to a list action. For subsequent calls, use
4449
+ * the <code>NextToken</code> value returned from the previous request to continue listing
4450
+ * results after the first page.</p>
4451
+ */
4452
+ nextToken?: string;
4453
+ }
4454
+ /**
4455
+ * @public
4456
+ * @enum
4457
+ */
4458
+ export declare const VulnerabilitySource: {
4459
+ readonly NVD: "NVD";
4460
+ };
4461
+ /**
4462
+ * @public
4463
+ */
4464
+ export type VulnerabilitySource = (typeof VulnerabilitySource)[keyof typeof VulnerabilitySource];
4465
+ /**
4466
+ * @public
4467
+ * <p>Contains details about a specific vulnerability Amazon Inspector can detect.</p>
4468
+ */
4469
+ export interface Vulnerability {
4470
+ /**
4471
+ * <p>The ID for the specific vulnerability.</p>
4472
+ */
4473
+ id: string | undefined;
4474
+ /**
4475
+ * <p>The Common Weakness Enumeration (CWE) associated with the vulnerability.</p>
4476
+ */
4477
+ cwes?: string[];
4478
+ /**
4479
+ * <p>An object that contains the Cybersecurity and Infrastructure Security Agency (CISA) details for the vulnerability.</p>
4480
+ */
4481
+ cisaData?: CisaData;
4482
+ /**
4483
+ * <p>The source of the vulnerability information.</p>
4484
+ */
4485
+ source?: VulnerabilitySource | string;
4486
+ /**
4487
+ * <p>A description of the vulnerability.</p>
4488
+ */
4489
+ description?: string;
4490
+ /**
4491
+ * <p>An object that contains information about the Amazon Web Services Threat Intel Group (ATIG) details for the vulnerability.</p>
4492
+ */
4493
+ atigData?: AtigData;
4494
+ /**
4495
+ * <p>The severity assigned by the vendor.</p>
4496
+ */
4497
+ vendorSeverity?: string;
4498
+ /**
4499
+ * <p>An object that contains the Common Vulnerability Scoring System (CVSS) Version 3 details for the vulnerability.</p>
4500
+ */
4501
+ cvss3?: Cvss3;
4502
+ /**
4503
+ * <p>A list of related vulnerabilities.</p>
4504
+ */
4505
+ relatedVulnerabilities?: string[];
4506
+ /**
4507
+ * <p>An object that contains the Common Vulnerability Scoring System (CVSS) Version 2 details for the vulnerability.</p>
4508
+ */
4509
+ cvss2?: Cvss2;
4510
+ /**
4511
+ * <p>The date and time when the vendor created this vulnerability.</p>
4512
+ */
4513
+ vendorCreatedAt?: Date;
4514
+ /**
4515
+ * <p>The date and time when the vendor last updated this vulnerability.</p>
4516
+ */
4517
+ vendorUpdatedAt?: Date;
4518
+ /**
4519
+ * <p>A link to the official source material for this vulnerability.</p>
4520
+ */
4521
+ sourceUrl?: string;
4522
+ /**
4523
+ * <p>Links to various resources with more information on this vulnerability. </p>
4524
+ */
4525
+ referenceUrls?: string[];
4526
+ /**
4527
+ * <p>An object that contains details on when the exploit was observed.</p>
4528
+ */
4529
+ exploitObserved?: ExploitObserved;
4530
+ /**
4531
+ * <p>Platforms that the vulnerability can be detected on.</p>
4532
+ */
4533
+ detectionPlatforms?: string[];
4534
+ /**
4535
+ * <p>An object that contains the Exploit Prediction Scoring System (EPSS) score.</p>
4536
+ */
4537
+ epss?: Epss;
4538
+ }
4539
+ /**
4540
+ * @public
4541
+ */
4542
+ export interface SearchVulnerabilitiesResponse {
4543
+ /**
4544
+ * <p>Details about the listed vulnerability.</p>
4545
+ */
4546
+ vulnerabilities: Vulnerability[] | undefined;
4547
+ /**
4548
+ * <p>The pagination parameter to be used on the next list operation to retrieve more items.</p>
4549
+ */
4550
+ nextToken?: string;
4551
+ }
4335
4552
  /**
4336
4553
  * @public
4337
4554
  */
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { SearchVulnerabilitiesCommandInput, SearchVulnerabilitiesCommandOutput } from "../commands/SearchVulnerabilitiesCommand";
3
+ import { Inspector2PaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateSearchVulnerabilities(config: Inspector2PaginationConfiguration, input: SearchVulnerabilitiesCommandInput, ...additionalArguments: any): 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";
@@ -30,6 +30,7 @@ import { ListFindingsCommandInput, ListFindingsCommandOutput } from "../commands
30
30
  import { ListMembersCommandInput, ListMembersCommandOutput } from "../commands/ListMembersCommand";
31
31
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
32
32
  import { ListUsageTotalsCommandInput, ListUsageTotalsCommandOutput } from "../commands/ListUsageTotalsCommand";
33
+ import { SearchVulnerabilitiesCommandInput, SearchVulnerabilitiesCommandOutput } from "../commands/SearchVulnerabilitiesCommand";
33
34
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
34
35
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
35
36
  import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } from "../commands/UpdateConfigurationCommand";
@@ -157,6 +158,10 @@ export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceC
157
158
  * serializeAws_restJson1ListUsageTotalsCommand
158
159
  */
159
160
  export declare const se_ListUsageTotalsCommand: (input: ListUsageTotalsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
161
+ /**
162
+ * serializeAws_restJson1SearchVulnerabilitiesCommand
163
+ */
164
+ export declare const se_SearchVulnerabilitiesCommand: (input: SearchVulnerabilitiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
160
165
  /**
161
166
  * serializeAws_restJson1TagResourceCommand
162
167
  */
@@ -305,6 +310,10 @@ export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, con
305
310
  * deserializeAws_restJson1ListUsageTotalsCommand
306
311
  */
307
312
  export declare const de_ListUsageTotalsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListUsageTotalsCommandOutput>;
313
+ /**
314
+ * deserializeAws_restJson1SearchVulnerabilitiesCommand
315
+ */
316
+ export declare const de_SearchVulnerabilitiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchVulnerabilitiesCommandOutput>;
308
317
  /**
309
318
  * deserializeAws_restJson1TagResourceCommand
310
319
  */
@@ -119,6 +119,10 @@ import {
119
119
  ListUsageTotalsCommandInput,
120
120
  ListUsageTotalsCommandOutput,
121
121
  } from "./commands/ListUsageTotalsCommand";
122
+ import {
123
+ SearchVulnerabilitiesCommandInput,
124
+ SearchVulnerabilitiesCommandOutput,
125
+ } from "./commands/SearchVulnerabilitiesCommand";
122
126
  import {
123
127
  TagResourceCommandInput,
124
128
  TagResourceCommandOutput,
@@ -563,6 +567,19 @@ export interface Inspector2 {
563
567
  options: __HttpHandlerOptions,
564
568
  cb: (err: any, data?: ListUsageTotalsCommandOutput) => void
565
569
  ): void;
570
+ searchVulnerabilities(
571
+ args: SearchVulnerabilitiesCommandInput,
572
+ options?: __HttpHandlerOptions
573
+ ): Promise<SearchVulnerabilitiesCommandOutput>;
574
+ searchVulnerabilities(
575
+ args: SearchVulnerabilitiesCommandInput,
576
+ cb: (err: any, data?: SearchVulnerabilitiesCommandOutput) => void
577
+ ): void;
578
+ searchVulnerabilities(
579
+ args: SearchVulnerabilitiesCommandInput,
580
+ options: __HttpHandlerOptions,
581
+ cb: (err: any, data?: SearchVulnerabilitiesCommandOutput) => void
582
+ ): void;
566
583
  tagResource(
567
584
  args: TagResourceCommandInput,
568
585
  options?: __HttpHandlerOptions
@@ -164,6 +164,10 @@ import {
164
164
  ListUsageTotalsCommandInput,
165
165
  ListUsageTotalsCommandOutput,
166
166
  } from "./commands/ListUsageTotalsCommand";
167
+ import {
168
+ SearchVulnerabilitiesCommandInput,
169
+ SearchVulnerabilitiesCommandOutput,
170
+ } from "./commands/SearchVulnerabilitiesCommand";
167
171
  import {
168
172
  TagResourceCommandInput,
169
173
  TagResourceCommandOutput,
@@ -228,6 +232,7 @@ export type ServiceInputTypes =
228
232
  | ListMembersCommandInput
229
233
  | ListTagsForResourceCommandInput
230
234
  | ListUsageTotalsCommandInput
235
+ | SearchVulnerabilitiesCommandInput
231
236
  | TagResourceCommandInput
232
237
  | UntagResourceCommandInput
233
238
  | UpdateConfigurationCommandInput
@@ -266,6 +271,7 @@ export type ServiceOutputTypes =
266
271
  | ListMembersCommandOutput
267
272
  | ListTagsForResourceCommandOutput
268
273
  | ListUsageTotalsCommandOutput
274
+ | SearchVulnerabilitiesCommandOutput
269
275
  | TagResourceCommandOutput
270
276
  | UntagResourceCommandOutput
271
277
  | UpdateConfigurationCommandOutput
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ Inspector2ClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../Inspector2Client";
14
+ import {
15
+ SearchVulnerabilitiesRequest,
16
+ SearchVulnerabilitiesResponse,
17
+ } from "../models/models_0";
18
+ export interface SearchVulnerabilitiesCommandInput
19
+ extends SearchVulnerabilitiesRequest {}
20
+ export interface SearchVulnerabilitiesCommandOutput
21
+ extends SearchVulnerabilitiesResponse,
22
+ __MetadataBearer {}
23
+ export declare class SearchVulnerabilitiesCommand extends $Command<
24
+ SearchVulnerabilitiesCommandInput,
25
+ SearchVulnerabilitiesCommandOutput,
26
+ Inspector2ClientResolvedConfig
27
+ > {
28
+ readonly input: SearchVulnerabilitiesCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: SearchVulnerabilitiesCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: Inspector2ClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ SearchVulnerabilitiesCommandInput,
37
+ SearchVulnerabilitiesCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -28,6 +28,7 @@ export * from "./ListFindingsCommand";
28
28
  export * from "./ListMembersCommand";
29
29
  export * from "./ListTagsForResourceCommand";
30
30
  export * from "./ListUsageTotalsCommand";
31
+ export * from "./SearchVulnerabilitiesCommand";
31
32
  export * from "./TagResourceCommand";
32
33
  export * from "./UntagResourceCommand";
33
34
  export * from "./UpdateConfigurationCommand";