Class EventBridgePutEvents

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.stepfunctions.State
software.amazon.awscdk.services.stepfunctions.TaskStateBase
software.amazon.awscdk.services.stepfunctions.tasks.EventBridgePutEvents
All Implemented Interfaces:
IChainable, INextable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:25.499Z") @Stability(Stable) public class EventBridgePutEvents extends TaskStateBase
A StepFunctions Task to send events to an EventBridge event bus.

Example:

 import software.amazon.awscdk.services.events.*;
 EventBus myEventBus = EventBus.Builder.create(this, "EventBus")
         .eventBusName("MyEventBus1")
         .build();
 EventBridgePutEvents.Builder.create(this, "Send an event to EventBridge")
         .entries(List.of(EventBridgePutEventsEntry.builder()
                 .detail(TaskInput.fromObject(Map.of(
                         "Message", "Hello from Step Functions!")))
                 .eventBus(myEventBus)
                 .detailType("MessageFromStepFunctions")
                 .source("step.functions")
                 .build()))
         .build();
 
  • Constructor Details

    • EventBridgePutEvents

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

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

      @Stability(Stable) public EventBridgePutEvents(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull EventBridgePutEventsProps props)
      Parameters:
      scope - This parameter is required.
      id - Descriptive identifier for this chainable. This parameter is required.
      props - This parameter is required.
  • Method Details