Class EventBusProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.targets.EventBusProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventBusProps>
- Enclosing interface:
- EventBusProps
@Stability(Stable)
public static final class EventBusProps.Builder
extends Object
implements software.amazon.jsii.Builder<EventBusProps>
A builder for
EventBusProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deadLetterQueue
(IQueue deadLetterQueue) Sets the value ofEventBusProps.getDeadLetterQueue()
Sets the value ofEventBusProps.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deadLetterQueue
Sets the value ofEventBusProps.getDeadLetterQueue()
- Parameters:
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.- Returns:
this
-
role
Sets the value ofEventBusProps.getRole()
- Parameters:
role
- Role to be used to publish the event.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EventBusProps>
- Returns:
- a new instance of
EventBusProps
- Throws:
NullPointerException
- if any required attribute was not provided
-