UNPKG

advanced-cdk-constructs

Version:

[![codecov](https://codecov.io/gh/spensireli/advanced-cdk-constructs/graph/badge.svg?token=50IITI207T)](https://codecov.io/gh/spensireli/advanced-cdk-constructs)

53 lines (52 loc) 1.41 kB
import { Construct } from 'constructs'; /** * Properties for configuring {@link GuardDutyConstruct}. */ export interface GuardDutyConstructProps { /** * Whether to enable GuardDuty. * @default true */ readonly enableGuardDuty?: boolean; /** * Whether to enable Kubernetes audit logs as a GuardDuty data source. * @default true */ readonly kubernetesAuditLogs?: boolean; /** * Whether to enable malware protection (EC2 EBS volume scanning). * @default true */ readonly malwareProtection?: boolean; /** * Whether to enable S3 logs as a GuardDuty data source. * @default true */ readonly s3Logs?: boolean; } /** * A CDK construct that sets up AWS GuardDuty with configurable data sources and features. * * Example: * ```ts * new GuardDutyConstruct(this, 'GuardDuty', { * enableGuardDuty: true, * kubernetesAuditLogs: true, * malwareProtection: true, * s3Logs: true, * }); * ``` */ export declare class GuardDutyConstruct extends Construct { /** * The ID of the created GuardDuty detector. */ detectorId: string; /** * Creates a new GuardDutyConstruct. * @param scope The parent construct. * @param id The construct ID. * @param props GuardDuty configuration properties. */ constructor(scope: Construct, id: string, props?: GuardDutyConstructProps); }