Class EventBridgePutEvents

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.scheduler.targets.alpha.ScheduleTargetBase
software.amazon.awscdk.services.scheduler.targets.alpha.EventBridgePutEvents
All Implemented Interfaces:
IScheduleTarget, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:11.986Z") @Stability(Experimental) public class EventBridgePutEvents extends ScheduleTargetBase implements IScheduleTarget
(experimental) Send an event to an AWS EventBridge by AWS EventBridge Scheduler.

Example:

 import software.amazon.awscdk.services.events.*;
 EventBus eventBus = EventBus.Builder.create(this, "EventBus")
         .eventBusName("DomainEvents")
         .build();
 EventBridgePutEventsEntry eventEntry = EventBridgePutEventsEntry.builder()
         .eventBus(eventBus)
         .source("PetService")
         .detail(ScheduleTargetInput.fromObject(Map.of("Name", "Fluffy")))
         .detailType("🐶")
         .build();
 Schedule.Builder.create(this, "Schedule")
         .schedule(ScheduleExpression.rate(Duration.hours(1)))
         .target(new EventBridgePutEvents(eventEntry))
         .build();
 
  • Constructor Details

    • EventBridgePutEvents

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

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

      @Stability(Experimental) public EventBridgePutEvents(@NotNull EventBridgePutEventsEntry entry, @Nullable ScheduleTargetBaseProps props)
      Parameters:
      entry - This parameter is required.
      props -
    • EventBridgePutEvents

      @Stability(Experimental) public EventBridgePutEvents(@NotNull EventBridgePutEventsEntry entry)
      Parameters:
      entry - This parameter is required.
  • Method Details