Interface EventBusProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
EventBusProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)", date="2023-10-26T00:56:08.221Z") @Stability(Stable) public interface EventBusProps extends software.amazon.jsii.JsiiSerializable
Properties to define an 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();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for EventBusProps
    static final class 
    An implementation for EventBusProps
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default String
    The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.
    default String
    The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getEventBusName

      @Stability(Stable) @Nullable default String getEventBusName()
      The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.

      Default: - automatically generated name

    • getEventSourceName

      @Stability(Stable) @Nullable default String getEventSourceName()
      The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this.

      Default: - no partner event source

    • builder

      @Stability(Stable) static EventBusProps.Builder builder()
      Returns:
      a EventBusProps.Builder of EventBusProps