Interface EventBusProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EventBusProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.043Z")
@Stability(Stable)
public interface EventBusProps
extends software.amazon.jsii.JsiiSerializable
Properties to define an event bus.
Example:
EventBus bus = EventBus.Builder.create(this, "bus") .eventBusName("MyCustomEventBus") .build(); bus.archive("MyArchive", BaseArchiveProps.builder() .archiveName("MyCustomEventBusArchive") .description("MyCustomerEventBus Archive") .eventPattern(EventPattern.builder() .account(List.of(Stack.of(this).getAccount())) .build()) .retention(Duration.days(365)) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEventBusProps
static final class
An implementation forEventBusProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic EventBusProps.Builder
builder()
default String
The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.default String
The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEventBusName
The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.Default: - automatically generated name
-
getEventSourceName
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
-
builder
- Returns:
- a
EventBusProps.Builder
ofEventBusProps
-