LambdaDestination

class aws_cdk.aws_logs_destinations.LambdaDestination(fn)

Bases: object

Use a Lamda Function as the destination for a log subscription.

Parameters

fn (IFunction) –

Methods

bind(scope, log_group)

Return the properties required to send subscription events to this destination.

If necessary, the destination can use the properties of the SubscriptionFilter object itself to configure its permissions to allow the subscription to write to it.

The destination may reconfigure its own permissions in response to this function call.

Parameters
Return type

LogSubscriptionDestinationConfig