Interface EventBridgeDestination

All Superinterfaces:
Destination

public interface EventBridgeDestination extends Destination

AWS EventBridge can be used to push events and messages to a serverless event bus that can forward them to AWS SQS, SNS, Lambda, and other AWS services based on forwarding rules. Once the Subscription is created, an equivalent "partner event source" is created in AWS EventBridge. This event source must be associated with an event bus for the Subscription setup to be complete.


Example to create an instance using the builder pattern

     EventBridgeDestination eventBridgeDestination = EventBridgeDestination.builder()
             .region("{region}")
             .accountId("{accountId}")
             .build()
 
  • Field Details

  • Method Details

    • getRegion

      @NotNull @NotNull String getRegion()

      AWS region that receives the events.

      Returns:
      region
    • getAccountId

      @NotNull @NotNull String getAccountId()

      ID of the AWS account that receives the events.

      Returns:
      accountId
    • setRegion

      void setRegion(String region)

      AWS region that receives the events.

      Parameters:
      region - value to be set
    • setAccountId

      void setAccountId(String accountId)

      ID of the AWS account that receives the events.

      Parameters:
      accountId - value to be set
    • of

      factory method
      Returns:
      instance of EventBridgeDestination
    • of

      factory method to create a shallow copy EventBridgeDestination
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of EventBridgeDestination
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for EventBridgeDestination
      Returns:
      builder
    • builder

      create builder for EventBridgeDestination instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withEventBridgeDestination

      default <T> T withEventBridgeDestination(Function<EventBridgeDestination,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<EventBridgeDestination> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference