EventBridgeDestination

class aws_cdk.aws_lambda_destinations.EventBridgeDestination(event_bus=None)

Bases: object

Use an Event Bridge event bus as a Lambda destination.

If no event bus is specified, the default event bus is used.

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_events as events
import aws_cdk.aws_lambda_destinations as lambda_destinations

# event_bus is of type EventBus

event_bridge_destination = lambda_destinations.EventBridgeDestination(event_bus)
Parameters

event_bus (Optional[IEventBus]) –

Default
  • use the default event bus

Methods

bind(_scope, fn, *, type)

Returns a destination configuration.

Parameters
Return type

DestinationConfig