Class EventBus.Builder
java.lang.Object
software.amazon.awscdk.services.events.targets.EventBus.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventBus>
- Enclosing class:
EventBus
@Stability(Stable)
public static final class EventBus.Builder
extends Object
implements software.amazon.jsii.Builder<EventBus>
A fluent builder for
EventBus
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static EventBus.Builder
deadLetterQueue
(IQueue deadLetterQueue) The SQS queue to be used as deadLetterQueue.Role to be used to publish the event.
-
Method Details
-
create
- Parameters:
eventBus
- This parameter is required.- Returns:
- a new instance of
EventBus.Builder
.
-
deadLetterQueue
The SQS queue to be used as deadLetterQueue. Check out the considerations for using a dead-letter queue.The events not successfully delivered are automatically retried for a specified period of time, depending on the retry policy of the target. If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue.
Default: - no dead-letter queue
- Parameters:
deadLetterQueue
- The SQS queue to be used as deadLetterQueue. Check out the considerations for using a dead-letter queue. This parameter is required.- Returns:
this
-
role
Role to be used to publish the event.Default: a new role is created.
- Parameters:
role
- Role to be used to publish the event. This parameter is required.- Returns:
this
-
build
-