Skip to content

Commit 231cf06

Browse files
author
awstools
committed
feat(client-guardduty): Add support for scanning and viewing scan results for backup resource types
1 parent 1b18be7 commit 231cf06

22 files changed

+4029
-558
lines changed

clients/client-guardduty/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,14 @@ GetMalwareProtectionPlan
549549

550550
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/GetMalwareProtectionPlanCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetMalwareProtectionPlanCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetMalwareProtectionPlanCommandOutput/)
551551

552+
</details>
553+
<details>
554+
<summary>
555+
GetMalwareScan
556+
</summary>
557+
558+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/GetMalwareScanCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetMalwareScanCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetMalwareScanCommandOutput/)
559+
552560
</details>
553561
<details>
554562
<summary>
@@ -693,6 +701,14 @@ ListMalwareProtectionPlans
693701

694702
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/ListMalwareProtectionPlansCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/ListMalwareProtectionPlansCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/ListMalwareProtectionPlansCommandOutput/)
695703

704+
</details>
705+
<details>
706+
<summary>
707+
ListMalwareScans
708+
</summary>
709+
710+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/ListMalwareScansCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/ListMalwareScansCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/ListMalwareScansCommandOutput/)
711+
696712
</details>
697713
<details>
698714
<summary>

clients/client-guardduty/src/GuardDuty.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ import {
183183
GetMalwareProtectionPlanCommandInput,
184184
GetMalwareProtectionPlanCommandOutput,
185185
} from "./commands/GetMalwareProtectionPlanCommand";
186+
import {
187+
GetMalwareScanCommand,
188+
GetMalwareScanCommandInput,
189+
GetMalwareScanCommandOutput,
190+
} from "./commands/GetMalwareScanCommand";
186191
import {
187192
GetMalwareScanSettingsCommand,
188193
GetMalwareScanSettingsCommandInput,
@@ -261,6 +266,11 @@ import {
261266
ListMalwareProtectionPlansCommandInput,
262267
ListMalwareProtectionPlansCommandOutput,
263268
} from "./commands/ListMalwareProtectionPlansCommand";
269+
import {
270+
ListMalwareScansCommand,
271+
ListMalwareScansCommandInput,
272+
ListMalwareScansCommandOutput,
273+
} from "./commands/ListMalwareScansCommand";
264274
import { ListMembersCommand, ListMembersCommandInput, ListMembersCommandOutput } from "./commands/ListMembersCommand";
265275
import {
266276
ListOrganizationAdminAccountsCommand,
@@ -423,6 +433,7 @@ const commands = {
423433
GetInvitationsCountCommand,
424434
GetIPSetCommand,
425435
GetMalwareProtectionPlanCommand,
436+
GetMalwareScanCommand,
426437
GetMalwareScanSettingsCommand,
427438
GetMasterAccountCommand,
428439
GetMemberDetectorsCommand,
@@ -441,6 +452,7 @@ const commands = {
441452
ListInvitationsCommand,
442453
ListIPSetsCommand,
443454
ListMalwareProtectionPlansCommand,
455+
ListMalwareScansCommand,
444456
ListMembersCommand,
445457
ListOrganizationAdminAccountsCommand,
446458
ListPublishingDestinationsCommand,
@@ -1099,6 +1111,20 @@ export interface GuardDuty {
10991111
cb: (err: any, data?: GetMalwareProtectionPlanCommandOutput) => void
11001112
): void;
11011113

1114+
/**
1115+
* @see {@link GetMalwareScanCommand}
1116+
*/
1117+
getMalwareScan(
1118+
args: GetMalwareScanCommandInput,
1119+
options?: __HttpHandlerOptions
1120+
): Promise<GetMalwareScanCommandOutput>;
1121+
getMalwareScan(args: GetMalwareScanCommandInput, cb: (err: any, data?: GetMalwareScanCommandOutput) => void): void;
1122+
getMalwareScan(
1123+
args: GetMalwareScanCommandInput,
1124+
options: __HttpHandlerOptions,
1125+
cb: (err: any, data?: GetMalwareScanCommandOutput) => void
1126+
): void;
1127+
11021128
/**
11031129
* @see {@link GetMalwareScanSettingsCommand}
11041130
*/
@@ -1364,6 +1390,24 @@ export interface GuardDuty {
13641390
cb: (err: any, data?: ListMalwareProtectionPlansCommandOutput) => void
13651391
): void;
13661392

1393+
/**
1394+
* @see {@link ListMalwareScansCommand}
1395+
*/
1396+
listMalwareScans(): Promise<ListMalwareScansCommandOutput>;
1397+
listMalwareScans(
1398+
args: ListMalwareScansCommandInput,
1399+
options?: __HttpHandlerOptions
1400+
): Promise<ListMalwareScansCommandOutput>;
1401+
listMalwareScans(
1402+
args: ListMalwareScansCommandInput,
1403+
cb: (err: any, data?: ListMalwareScansCommandOutput) => void
1404+
): void;
1405+
listMalwareScans(
1406+
args: ListMalwareScansCommandInput,
1407+
options: __HttpHandlerOptions,
1408+
cb: (err: any, data?: ListMalwareScansCommandOutput) => void
1409+
): void;
1410+
13671411
/**
13681412
* @see {@link ListMembersCommand}
13691413
*/

clients/client-guardduty/src/GuardDutyClient.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ import {
173173
GetMalwareProtectionPlanCommandInput,
174174
GetMalwareProtectionPlanCommandOutput,
175175
} from "./commands/GetMalwareProtectionPlanCommand";
176+
import { GetMalwareScanCommandInput, GetMalwareScanCommandOutput } from "./commands/GetMalwareScanCommand";
176177
import {
177178
GetMalwareScanSettingsCommandInput,
178179
GetMalwareScanSettingsCommandOutput,
@@ -206,6 +207,7 @@ import {
206207
ListMalwareProtectionPlansCommandInput,
207208
ListMalwareProtectionPlansCommandOutput,
208209
} from "./commands/ListMalwareProtectionPlansCommand";
210+
import { ListMalwareScansCommandInput, ListMalwareScansCommandOutput } from "./commands/ListMalwareScansCommand";
209211
import { ListMembersCommandInput, ListMembersCommandOutput } from "./commands/ListMembersCommand";
210212
import {
211213
ListOrganizationAdminAccountsCommandInput,
@@ -342,6 +344,7 @@ export type ServiceInputTypes =
342344
| GetIPSetCommandInput
343345
| GetInvitationsCountCommandInput
344346
| GetMalwareProtectionPlanCommandInput
347+
| GetMalwareScanCommandInput
345348
| GetMalwareScanSettingsCommandInput
346349
| GetMasterAccountCommandInput
347350
| GetMemberDetectorsCommandInput
@@ -360,6 +363,7 @@ export type ServiceInputTypes =
360363
| ListIPSetsCommandInput
361364
| ListInvitationsCommandInput
362365
| ListMalwareProtectionPlansCommandInput
366+
| ListMalwareScansCommandInput
363367
| ListMembersCommandInput
364368
| ListOrganizationAdminAccountsCommandInput
365369
| ListPublishingDestinationsCommandInput
@@ -432,6 +436,7 @@ export type ServiceOutputTypes =
432436
| GetIPSetCommandOutput
433437
| GetInvitationsCountCommandOutput
434438
| GetMalwareProtectionPlanCommandOutput
439+
| GetMalwareScanCommandOutput
435440
| GetMalwareScanSettingsCommandOutput
436441
| GetMasterAccountCommandOutput
437442
| GetMemberDetectorsCommandOutput
@@ -450,6 +455,7 @@ export type ServiceOutputTypes =
450455
| ListIPSetsCommandOutput
451456
| ListInvitationsCommandOutput
452457
| ListMalwareProtectionPlansCommandOutput
458+
| ListMalwareScansCommandOutput
453459
| ListMembersCommandOutput
454460
| ListOrganizationAdminAccountsCommandOutput
455461
| ListPublishingDestinationsCommandOutput

clients/client-guardduty/src/commands/DescribeMalwareScansCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export interface DescribeMalwareScansCommandOutput extends DescribeMalwareScansR
7676
* // TriggerDetails: { // TriggerDetails
7777
* // GuardDutyFindingId: "STRING_VALUE",
7878
* // Description: "STRING_VALUE",
79+
* // TriggerType: "BACKUP" || "GUARDDUTY",
7980
* // },
8081
* // ResourceDetails: { // ResourceDetails
8182
* // InstanceArn: "STRING_VALUE",

clients/client-guardduty/src/commands/GetFindingsCommand.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,16 @@ export interface GetFindingsCommandOutput extends GetFindingsResponse, __Metadat
391391
* // },
392392
* // Tags: "<Tags>",
393393
* // },
394+
* // EbsSnapshotDetails: { // EbsSnapshotDetails
395+
* // SnapshotArn: "STRING_VALUE",
396+
* // },
397+
* // Ec2ImageDetails: { // Ec2ImageDetails
398+
* // ImageArn: "STRING_VALUE",
399+
* // },
400+
* // RecoveryPointDetails: { // RecoveryPointDetails
401+
* // RecoveryPointArn: "STRING_VALUE",
402+
* // BackupVaultName: "STRING_VALUE",
403+
* // },
394404
* // },
395405
* // SchemaVersion: "STRING_VALUE", // required
396406
* // Service: { // Service
@@ -1026,8 +1036,31 @@ export interface GetFindingsCommandOutput extends GetFindingsResponse, __Metadat
10261036
* // Hash: "STRING_VALUE",
10271037
* // },
10281038
* // ],
1039+
* // Count: Number("long"),
1040+
* // Hash: "STRING_VALUE",
1041+
* // ItemDetails: [ // ItemDetailsList
1042+
* // { // ItemDetails
1043+
* // ResourceArn: "STRING_VALUE",
1044+
* // ItemPath: "STRING_VALUE",
1045+
* // Hash: "STRING_VALUE",
1046+
* // AdditionalInfo: { // AdditionalInfo
1047+
* // VersionId: "STRING_VALUE",
1048+
* // DeviceName: "STRING_VALUE",
1049+
* // },
1050+
* // },
1051+
* // ],
10291052
* // },
10301053
* // ],
1054+
* // ScanId: "STRING_VALUE",
1055+
* // ScanType: "BACKUP_INITIATED" || "ON_DEMAND" || "GUARDDUTY_INITIATED",
1056+
* // ScanCategory: "FULL_SCAN" || "INCREMENTAL_SCAN",
1057+
* // ScanConfiguration: { // MalwareProtectionFindingsScanConfiguration
1058+
* // TriggerType: "BACKUP" || "GUARDDUTY",
1059+
* // IncrementalScanDetails: { // IncrementalScanDetails
1060+
* // BaselineResourceArn: "STRING_VALUE", // required
1061+
* // },
1062+
* // },
1063+
* // UniqueThreatCount: Number("int"),
10311064
* // },
10321065
* // },
10331066
* // Severity: Number("double"), // required

0 commit comments

Comments
 (0)