UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

31 lines (30 loc) 1.13 kB
import type { Construct } from 'constructs'; import * as iam from '../../aws-iam'; import type * as firehose from '../../aws-kinesisfirehose'; import type * as logs from '../../aws-logs'; import type { ILogGroupRef } from '../../interfaces/generated/aws-logs-interfaces.generated'; /** * Customize the Amazon Data Firehose Logs Destination */ export interface FirehoseDestinationProps { /** * The role to assume to write log events to the destination * * @default - A new Role is created */ readonly role?: iam.IRole; } /** * Use a Data Firehose delivery stream as the destination for a log subscription */ export declare class FirehoseDestination implements logs.ILogSubscriptionDestination { private readonly stream; private readonly props; /** * @param stream The Data Firehose delivery stream to use as destination * @param props The Data Firehose Destination properties * */ constructor(stream: firehose.IDeliveryStream, props?: FirehoseDestinationProps); bind(scope: Construct, _sourceLogGroup: ILogGroupRef): logs.LogSubscriptionDestinationConfig; }