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
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.
-
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
.
-
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
-
build
-