Class EventBus.Builder
java.lang.Object
software.amazon.awscdk.services.events.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) Dead-letter queue for the event bus.description
(String description) The event bus description.eventBusName
(String eventBusName) The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.eventSourceName
(String eventSourceName) The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this.The customer managed key that encrypt events on this event bus.
-
Method Details
-
create
@Stability(Stable) public static EventBus.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
EventBus.Builder
.
-
deadLetterQueue
Dead-letter queue for the event bus.Default: - no dead-letter queue
- Parameters:
deadLetterQueue
- Dead-letter queue for the event bus. This parameter is required.- Returns:
this
- See Also:
-
description
The event bus description.The description can be up to 512 characters long.
Default: - no description
- Parameters:
description
- The event bus description. This parameter is required.- Returns:
this
- See Also:
-
eventBusName
The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.Default: - automatically generated name
- Parameters:
eventBusName
- The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this. This parameter is required.- Returns:
this
-
eventSourceName
The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this.Default: - no partner event source
- Parameters:
eventSourceName
- The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this. This parameter is required.- Returns:
this
-
kmsKey
The customer managed key that encrypt events on this event bus.Default: - Use an AWS managed key
- Parameters:
kmsKey
- The customer managed key that encrypt events on this event bus. This parameter is required.- Returns:
this
-
build
-