1 | import { EventBridgeEvent } from "./eventbridge";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export interface GuardDutyScanResultNotificationEvent
|
9 | extends
|
10 | EventBridgeEvent<"GuardDuty Malware Protection Object Scan Result", GuardDutyScanResultNotificationEventDetail>
|
11 | {
|
12 | source: "aws.guardduty";
|
13 | }
|
14 |
|
15 | export interface GuardDutyScanResultNotificationEventDetail {
|
16 | schemaVersion: "1.0";
|
17 | scanStatus: "COMPLETED" | "SKIPPED" | "FAILED";
|
18 | resourceType: "S3_OBJECT";
|
19 | s3ObjectDetails: {
|
20 | bucketName: string;
|
21 | objectKey: string;
|
22 | etag: string;
|
23 | versionId: string;
|
24 | s3Throttled: boolean;
|
25 | };
|
26 | scanResultDetails: {
|
27 | scanResultStatus: "NO_THREATS_FOUND" | "THREAT_FOUND" | "UNSUPPORTED" | "ACCESS_DENIED" | "FAILED";
|
28 | threats: GuardDutyThreatDetail[] | null;
|
29 | };
|
30 | }
|
31 |
|
32 | export interface GuardDutyThreatDetail {
|
33 | name: string;
|
34 | }
|
35 |
|
36 | export type GuardDutyNotificationEvent = GuardDutyScanResultNotificationEvent;
|