java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.events.targets.EventBus
All Implemented Interfaces:
IRuleTarget, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.729Z") @Stability(Stable) public class EventBus extends software.amazon.jsii.JsiiObject implements IRuleTarget
Notify an existing Event Bus of an event.

Example:

 Rule rule = Rule.Builder.create(this, "Rule")
         .schedule(Schedule.expression("rate(1 minute)"))
         .build();
 rule.addTarget(new EventBus(EventBus.fromEventBusArn(this, "External", "arn:aws:events:eu-west-1:999999999999:event-bus/test-bus")));
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for EventBus.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.events.IRuleTarget

    IRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    EventBus(IEventBus eventBus)
     
     
    EventBus(IEventBus eventBus, EventBusProps props)
     
    protected
    EventBus(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    EventBus(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(IRule rule)
    Returns the rule target specification.
    bind(IRule rule, String _id)
    Returns the rule target specification.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • EventBus

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

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

      @Stability(Stable) public EventBus(@NotNull IEventBus eventBus, @Nullable EventBusProps props)
      Parameters:
      eventBus - This parameter is required.
      props -
    • EventBus

      @Stability(Stable) public EventBus(@NotNull IEventBus eventBus)
      Parameters:
      eventBus - This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule rule, @Nullable String _id)
      Returns the rule target specification.

      NOTE: Do not use the various inputXxx options. They can be set in a call to addTarget.

      Specified by:
      bind in interface IRuleTarget
      Parameters:
      rule - This parameter is required.
      _id -
    • bind

      @Stability(Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule rule)
      Returns the rule target specification.

      NOTE: Do not use the various inputXxx options. They can be set in a call to addTarget.

      Specified by:
      bind in interface IRuleTarget
      Parameters:
      rule - This parameter is required.