Interface EventBridgeDestination
- All Superinterfaces:
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}")
.source("{source}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for EventBridgeDestination -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for EventBridgeDestinationbuilder
(EventBridgeDestination template) create builder for EventBridgeDestination instancestatic EventBridgeDestination
deepCopy
(EventBridgeDestination template) factory method to create a deep copy of EventBridgeDestination@NotNull String
ID of the AWS account that receives the events.@NotNull String
AWS region that receives the events.@NotNull String
URN for the EventBridge destination.static EventBridgeDestination
of()
factory methodstatic EventBridgeDestination
of
(EventBridgeDestination template) factory method to create a shallow copy EventBridgeDestinationvoid
setAccountId
(String accountId) ID of the AWS account that receives the events.void
AWS region that receives the events.void
URN for the EventBridge destination.static com.fasterxml.jackson.core.type.TypeReference<EventBridgeDestination>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.subscription.Destination
getType, withDestination
-
Field Details
-
EVENT_BRIDGE
discriminator value for EventBridgeDestination- See Also:
-
-
Method Details
-
getRegion
AWS region that receives the events.
- Returns:
- region
-
getAccountId
ID of the AWS account that receives the events.
- Returns:
- accountId
-
getSource
URN for the EventBridge destination.
- Returns:
- source
-
setRegion
AWS region that receives the events.
- Parameters:
region
- value to be set
-
setAccountId
ID of the AWS account that receives the events.
- Parameters:
accountId
- value to be set
-
setSource
URN for the EventBridge destination.
- Parameters:
source
- 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
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-