EventBusProps
- class aws_cdk.aws_events.EventBusProps(*, event_bus_name=None, event_source_name=None)
Bases:
object
Properties to define an event bus.
- Parameters:
event_bus_name (
Optional
[str
]) – The name of the event bus you are creating Note: If ‘eventSourceName’ is passed in, you cannot set this. Default: - automatically generated nameevent_source_name (
Optional
[str
]) – 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
- ExampleMetadata:
infused
Example:
bus = events.EventBus(self, "bus", event_bus_name="MyCustomEventBus" ) bus.archive("MyArchive", archive_name="MyCustomEventBusArchive", description="MyCustomerEventBus Archive", event_pattern=events.EventPattern( account=[Stack.of(self).account] ), retention=Duration.days(365) )
Attributes
- event_bus_name
If ‘eventSourceName’ is passed in, you cannot set this.
- Default:
automatically generated name
- Link:
- Type:
The name of the event bus you are creating Note
- event_source_name
If ‘eventBusName’ is passed in, you cannot set this.
- Default:
no partner event source
- Link:
- Type:
The partner event source to associate with this event bus resource Note