Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-logs-destinations/lib/lambda.d.ts
2026-05-06 18:55:16 -05:00

24 lines
878 B
TypeScript

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;
}