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-10-31T19:13:08.298Z") @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(EventBridgePutEvents.Builder.create(eventEntry).build())
         .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, @NotNull ScheduleTargetBaseProps props)
      Parameters:
      entry - This parameter is required.
      props - This parameter is required.
  • Method Details