class EventBridgeDestination
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.Destinations.EventBridgeDestination |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambdadestinations#EventBridgeDestination |
Java | software.amazon.awscdk.services.lambda.destinations.EventBridgeDestination |
Python | aws_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
IEvent
Bus
Methods
Name | Description |
---|---|
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
Destination
Options
Returns
Returns a destination configuration.