UNPKG

1.07 kBTypeScriptView Raw
1import { EventBridgeEvent } from "./eventbridge";
2
3/**
4 * Guard Duty events
5 * https://docs.aws.amazon.com/guardduty/latest/ug/monitor-with-eventbridge-s3-malware-protection.html
6 */
7
8export interface GuardDutyScanResultNotificationEvent
9 extends
10 EventBridgeEvent<"GuardDuty Malware Protection Object Scan Result", GuardDutyScanResultNotificationEventDetail>
11{
12 source: "aws.guardduty";
13}
14
15export 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
32export interface GuardDutyThreatDetail {
33 name: string;
34}
35
36export type GuardDutyNotificationEvent = GuardDutyScanResultNotificationEvent;