aws-cdk-lib.aws_lambda_destinations.EventBridgeDestination

class EventBridgeDestination

LanguageType name
.NETAmazon.CDK.AWS.Lambda.Destinations.EventBridgeDestination
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambdadestinations#EventBridgeDestination
Javasoftware.amazon.awscdk.services.lambda.destinations.EventBridgeDestination
Pythonaws_cdk.aws_lambda_destinations.EventBridgeDestination
TypeScript (source)aws-cdk-lib » aws_lambda_destinations » EventBridgeDestination

Implements IDestination

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_events as events } from 'aws-cdk-lib';
import { aws_lambda_destinations as lambda_destinations } from 'aws-cdk-lib';

declare const eventBus: events.EventBus;
const eventBridgeDestination = new lambda_destinations.EventBridgeDestination(/* all optional props */ eventBus);

Initializer

new EventBridgeDestination(eventBus?: IEventBus)

Parameters

  • eventBus IEventBus

Methods

NameDescription
bind(_scope, fn, _options?)Returns a destination configuration.

bind(_scope, fn, _options?)

public bind(_scope: Construct, fn: IFunction, _options?: DestinationOptions): DestinationConfig

Parameters

  • _scope Construct
  • fn IFunction
  • _options DestinationOptions

Returns

  • DestinationConfig

Returns a destination configuration.