Skip to content

Commit f58a01d

Browse files
author
awstools
committed
feat(client-guardduty): Added API support for GuardDuty Malware Protection for S3.
1 parent 4df90fe commit f58a01d

17 files changed

+3020
-507
lines changed

clients/client-guardduty/README.md

+40
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,14 @@ CreateIPSet
269269

270270
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/CreateIPSetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/CreateIPSetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/CreateIPSetCommandOutput/)
271271

272+
</details>
273+
<details>
274+
<summary>
275+
CreateMalwareProtectionPlan
276+
</summary>
277+
278+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/CreateMalwareProtectionPlanCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/CreateMalwareProtectionPlanCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/CreateMalwareProtectionPlanCommandOutput/)
279+
272280
</details>
273281
<details>
274282
<summary>
@@ -341,6 +349,14 @@ DeleteIPSet
341349

342350
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/DeleteIPSetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/DeleteIPSetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/DeleteIPSetCommandOutput/)
343351

352+
</details>
353+
<details>
354+
<summary>
355+
DeleteMalwareProtectionPlan
356+
</summary>
357+
358+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/DeleteMalwareProtectionPlanCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/DeleteMalwareProtectionPlanCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/DeleteMalwareProtectionPlanCommandOutput/)
359+
344360
</details>
345361
<details>
346362
<summary>
@@ -493,6 +509,14 @@ GetIPSet
493509

494510
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/GetIPSetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetIPSetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetIPSetCommandOutput/)
495511

512+
</details>
513+
<details>
514+
<summary>
515+
GetMalwareProtectionPlan
516+
</summary>
517+
518+
[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/)
519+
496520
</details>
497521
<details>
498522
<summary>
@@ -613,6 +637,14 @@ ListIPSets
613637

614638
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/ListIPSetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/ListIPSetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/ListIPSetsCommandOutput/)
615639

640+
</details>
641+
<details>
642+
<summary>
643+
ListMalwareProtectionPlans
644+
</summary>
645+
646+
[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/)
647+
616648
</details>
617649
<details>
618650
<summary>
@@ -733,6 +765,14 @@ UpdateIPSet
733765

734766
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/UpdateIPSetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/UpdateIPSetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/UpdateIPSetCommandOutput/)
735767

768+
</details>
769+
<details>
770+
<summary>
771+
UpdateMalwareProtectionPlan
772+
</summary>
773+
774+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/UpdateMalwareProtectionPlanCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/UpdateMalwareProtectionPlanCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/UpdateMalwareProtectionPlanCommandOutput/)
775+
736776
</details>
737777
<details>
738778
<summary>

clients/client-guardduty/src/GuardDuty.ts

+116
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ import {
2828
CreateFilterCommandOutput,
2929
} from "./commands/CreateFilterCommand";
3030
import { CreateIPSetCommand, CreateIPSetCommandInput, CreateIPSetCommandOutput } from "./commands/CreateIPSetCommand";
31+
import {
32+
CreateMalwareProtectionPlanCommand,
33+
CreateMalwareProtectionPlanCommandInput,
34+
CreateMalwareProtectionPlanCommandOutput,
35+
} from "./commands/CreateMalwareProtectionPlanCommand";
3136
import {
3237
CreateMembersCommand,
3338
CreateMembersCommandInput,
@@ -69,6 +74,11 @@ import {
6974
DeleteInvitationsCommandOutput,
7075
} from "./commands/DeleteInvitationsCommand";
7176
import { DeleteIPSetCommand, DeleteIPSetCommandInput, DeleteIPSetCommandOutput } from "./commands/DeleteIPSetCommand";
77+
import {
78+
DeleteMalwareProtectionPlanCommand,
79+
DeleteMalwareProtectionPlanCommandInput,
80+
DeleteMalwareProtectionPlanCommandOutput,
81+
} from "./commands/DeleteMalwareProtectionPlanCommand";
7282
import {
7383
DeleteMembersCommand,
7484
DeleteMembersCommandInput,
@@ -148,6 +158,11 @@ import {
148158
GetInvitationsCountCommandOutput,
149159
} from "./commands/GetInvitationsCountCommand";
150160
import { GetIPSetCommand, GetIPSetCommandInput, GetIPSetCommandOutput } from "./commands/GetIPSetCommand";
161+
import {
162+
GetMalwareProtectionPlanCommand,
163+
GetMalwareProtectionPlanCommandInput,
164+
GetMalwareProtectionPlanCommandOutput,
165+
} from "./commands/GetMalwareProtectionPlanCommand";
151166
import {
152167
GetMalwareScanSettingsCommand,
153168
GetMalwareScanSettingsCommandInput,
@@ -211,6 +226,11 @@ import {
211226
ListInvitationsCommandOutput,
212227
} from "./commands/ListInvitationsCommand";
213228
import { ListIPSetsCommand, ListIPSetsCommandInput, ListIPSetsCommandOutput } from "./commands/ListIPSetsCommand";
229+
import {
230+
ListMalwareProtectionPlansCommand,
231+
ListMalwareProtectionPlansCommandInput,
232+
ListMalwareProtectionPlansCommandOutput,
233+
} from "./commands/ListMalwareProtectionPlansCommand";
214234
import { ListMembersCommand, ListMembersCommandInput, ListMembersCommandOutput } from "./commands/ListMembersCommand";
215235
import {
216236
ListOrganizationAdminAccountsCommand,
@@ -274,6 +294,11 @@ import {
274294
UpdateFindingsFeedbackCommandOutput,
275295
} from "./commands/UpdateFindingsFeedbackCommand";
276296
import { UpdateIPSetCommand, UpdateIPSetCommandInput, UpdateIPSetCommandOutput } from "./commands/UpdateIPSetCommand";
297+
import {
298+
UpdateMalwareProtectionPlanCommand,
299+
UpdateMalwareProtectionPlanCommandInput,
300+
UpdateMalwareProtectionPlanCommandOutput,
301+
} from "./commands/UpdateMalwareProtectionPlanCommand";
277302
import {
278303
UpdateMalwareScanSettingsCommand,
279304
UpdateMalwareScanSettingsCommandInput,
@@ -308,6 +333,7 @@ const commands = {
308333
CreateDetectorCommand,
309334
CreateFilterCommand,
310335
CreateIPSetCommand,
336+
CreateMalwareProtectionPlanCommand,
311337
CreateMembersCommand,
312338
CreatePublishingDestinationCommand,
313339
CreateSampleFindingsCommand,
@@ -317,6 +343,7 @@ const commands = {
317343
DeleteFilterCommand,
318344
DeleteInvitationsCommand,
319345
DeleteIPSetCommand,
346+
DeleteMalwareProtectionPlanCommand,
320347
DeleteMembersCommand,
321348
DeletePublishingDestinationCommand,
322349
DeleteThreatIntelSetCommand,
@@ -336,6 +363,7 @@ const commands = {
336363
GetFindingsStatisticsCommand,
337364
GetInvitationsCountCommand,
338365
GetIPSetCommand,
366+
GetMalwareProtectionPlanCommand,
339367
GetMalwareScanSettingsCommand,
340368
GetMasterAccountCommand,
341369
GetMemberDetectorsCommand,
@@ -351,6 +379,7 @@ const commands = {
351379
ListFindingsCommand,
352380
ListInvitationsCommand,
353381
ListIPSetsCommand,
382+
ListMalwareProtectionPlansCommand,
354383
ListMembersCommand,
355384
ListOrganizationAdminAccountsCommand,
356385
ListPublishingDestinationsCommand,
@@ -366,6 +395,7 @@ const commands = {
366395
UpdateFilterCommand,
367396
UpdateFindingsFeedbackCommand,
368397
UpdateIPSetCommand,
398+
UpdateMalwareProtectionPlanCommand,
369399
UpdateMalwareScanSettingsCommand,
370400
UpdateMemberDetectorsCommand,
371401
UpdateOrganizationConfigurationCommand,
@@ -458,6 +488,23 @@ export interface GuardDuty {
458488
cb: (err: any, data?: CreateIPSetCommandOutput) => void
459489
): void;
460490

491+
/**
492+
* @see {@link CreateMalwareProtectionPlanCommand}
493+
*/
494+
createMalwareProtectionPlan(
495+
args: CreateMalwareProtectionPlanCommandInput,
496+
options?: __HttpHandlerOptions
497+
): Promise<CreateMalwareProtectionPlanCommandOutput>;
498+
createMalwareProtectionPlan(
499+
args: CreateMalwareProtectionPlanCommandInput,
500+
cb: (err: any, data?: CreateMalwareProtectionPlanCommandOutput) => void
501+
): void;
502+
createMalwareProtectionPlan(
503+
args: CreateMalwareProtectionPlanCommandInput,
504+
options: __HttpHandlerOptions,
505+
cb: (err: any, data?: CreateMalwareProtectionPlanCommandOutput) => void
506+
): void;
507+
461508
/**
462509
* @see {@link CreateMembersCommand}
463510
*/
@@ -590,6 +637,23 @@ export interface GuardDuty {
590637
cb: (err: any, data?: DeleteIPSetCommandOutput) => void
591638
): void;
592639

640+
/**
641+
* @see {@link DeleteMalwareProtectionPlanCommand}
642+
*/
643+
deleteMalwareProtectionPlan(
644+
args: DeleteMalwareProtectionPlanCommandInput,
645+
options?: __HttpHandlerOptions
646+
): Promise<DeleteMalwareProtectionPlanCommandOutput>;
647+
deleteMalwareProtectionPlan(
648+
args: DeleteMalwareProtectionPlanCommandInput,
649+
cb: (err: any, data?: DeleteMalwareProtectionPlanCommandOutput) => void
650+
): void;
651+
deleteMalwareProtectionPlan(
652+
args: DeleteMalwareProtectionPlanCommandInput,
653+
options: __HttpHandlerOptions,
654+
cb: (err: any, data?: DeleteMalwareProtectionPlanCommandOutput) => void
655+
): void;
656+
593657
/**
594658
* @see {@link DeleteMembersCommand}
595659
*/
@@ -884,6 +948,23 @@ export interface GuardDuty {
884948
cb: (err: any, data?: GetIPSetCommandOutput) => void
885949
): void;
886950

951+
/**
952+
* @see {@link GetMalwareProtectionPlanCommand}
953+
*/
954+
getMalwareProtectionPlan(
955+
args: GetMalwareProtectionPlanCommandInput,
956+
options?: __HttpHandlerOptions
957+
): Promise<GetMalwareProtectionPlanCommandOutput>;
958+
getMalwareProtectionPlan(
959+
args: GetMalwareProtectionPlanCommandInput,
960+
cb: (err: any, data?: GetMalwareProtectionPlanCommandOutput) => void
961+
): void;
962+
getMalwareProtectionPlan(
963+
args: GetMalwareProtectionPlanCommandInput,
964+
options: __HttpHandlerOptions,
965+
cb: (err: any, data?: GetMalwareProtectionPlanCommandOutput) => void
966+
): void;
967+
887968
/**
888969
* @see {@link GetMalwareScanSettingsCommand}
889970
*/
@@ -1097,6 +1178,24 @@ export interface GuardDuty {
10971178
cb: (err: any, data?: ListIPSetsCommandOutput) => void
10981179
): void;
10991180

1181+
/**
1182+
* @see {@link ListMalwareProtectionPlansCommand}
1183+
*/
1184+
listMalwareProtectionPlans(): Promise<ListMalwareProtectionPlansCommandOutput>;
1185+
listMalwareProtectionPlans(
1186+
args: ListMalwareProtectionPlansCommandInput,
1187+
options?: __HttpHandlerOptions
1188+
): Promise<ListMalwareProtectionPlansCommandOutput>;
1189+
listMalwareProtectionPlans(
1190+
args: ListMalwareProtectionPlansCommandInput,
1191+
cb: (err: any, data?: ListMalwareProtectionPlansCommandOutput) => void
1192+
): void;
1193+
listMalwareProtectionPlans(
1194+
args: ListMalwareProtectionPlansCommandInput,
1195+
options: __HttpHandlerOptions,
1196+
cb: (err: any, data?: ListMalwareProtectionPlansCommandOutput) => void
1197+
): void;
1198+
11001199
/**
11011200
* @see {@link ListMembersCommand}
11021201
*/
@@ -1320,6 +1419,23 @@ export interface GuardDuty {
13201419
cb: (err: any, data?: UpdateIPSetCommandOutput) => void
13211420
): void;
13221421

1422+
/**
1423+
* @see {@link UpdateMalwareProtectionPlanCommand}
1424+
*/
1425+
updateMalwareProtectionPlan(
1426+
args: UpdateMalwareProtectionPlanCommandInput,
1427+
options?: __HttpHandlerOptions
1428+
): Promise<UpdateMalwareProtectionPlanCommandOutput>;
1429+
updateMalwareProtectionPlan(
1430+
args: UpdateMalwareProtectionPlanCommandInput,
1431+
cb: (err: any, data?: UpdateMalwareProtectionPlanCommandOutput) => void
1432+
): void;
1433+
updateMalwareProtectionPlan(
1434+
args: UpdateMalwareProtectionPlanCommandInput,
1435+
options: __HttpHandlerOptions,
1436+
cb: (err: any, data?: UpdateMalwareProtectionPlanCommandOutput) => void
1437+
): void;
1438+
13231439
/**
13241440
* @see {@link UpdateMalwareScanSettingsCommand}
13251441
*/

0 commit comments

Comments
 (0)