UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

24 lines (23 loc) 878 B
import type { Construct } from 'constructs'; import type * as lambda from '../../aws-lambda'; import type * as logs from '../../aws-logs'; import type { ILogGroupRef } from '../../interfaces/generated/aws-logs-interfaces.generated'; /** * Options that may be provided to LambdaDestination */ export interface LambdaDestinationOptions { /** Whether or not to add Lambda Permissions. * @default true */ readonly addPermissions?: boolean; } /** * Use a Lambda Function as the destination for a log subscription */ export declare class LambdaDestination implements logs.ILogSubscriptionDestination { private readonly fn; private readonly options; /** LambdaDestinationOptions */ constructor(fn: lambda.IFunction, options?: LambdaDestinationOptions); bind(scope: Construct, logGroup: ILogGroupRef): logs.LogSubscriptionDestinationConfig; }