Class EventBridgeDestination

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.destinations.EventBridgeDestination
All Implemented Interfaces:
IDestination, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-02-23T02:06:34.599Z") @Stability(Stable) public class EventBridgeDestination extends software.amazon.jsii.JsiiObject 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 software.amazon.awscdk.services.events.*;
 import software.amazon.awscdk.services.lambda.destinations.*;
 EventBus eventBus;
 EventBridgeDestination eventBridgeDestination = new EventBridgeDestination(eventBus);
 
  • Constructor Details

    • EventBridgeDestination

      protected EventBridgeDestination(software.amazon.jsii.JsiiObjectRef objRef)
    • EventBridgeDestination

      protected EventBridgeDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • EventBridgeDestination

      @Stability(Stable) public EventBridgeDestination(@Nullable IEventBus eventBus)
      Default: - use the default event bus

      Parameters:
      eventBus -
    • EventBridgeDestination

      @Stability(Stable) public EventBridgeDestination()
      Default: - use the default event bus
  • Method Details

    • bind

      @Stability(Stable) @NotNull public DestinationConfig bind(@NotNull software.constructs.Construct _scope, @NotNull IFunction fn, @Nullable DestinationOptions _options)
      Returns a destination configuration.

      Specified by:
      bind in interface IDestination
      Parameters:
      _scope - This parameter is required.
      fn - This parameter is required.
      _options -
    • bind

      @Stability(Stable) @NotNull public DestinationConfig bind(@NotNull software.constructs.Construct _scope, @NotNull IFunction fn)
      Returns a destination configuration.

      Specified by:
      bind in interface IDestination
      Parameters:
      _scope - This parameter is required.
      fn - This parameter is required.