Class EventBusProps
Properties to define an event bus.
Inheritance
System.Object
EventBusProps
Implements
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.AWS.Events.dll
Syntax (csharp)
public class EventBusProps : Object, IEventBusProps
Syntax (vb)
Public Class EventBusProps
Inherits Object
Implements IEventBusProps
Remarks
ExampleMetadata: infused
Examples
var bus = new EventBus(this, "bus", new EventBusProps {
EventBusName = "MyCustomEventBus"
});
bus.Archive("MyArchive", new BaseArchiveProps {
ArchiveName = "MyCustomEventBusArchive",
Description = "MyCustomerEventBus Archive",
EventPattern = new EventPattern {
Account = new [] { Stack.Of(this).Account }
},
Retention = Duration.Days(365)
});
Synopsis
Constructors
EventBusProps() |
Properties
EventBusName | The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this. |
EventSourceName | The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this. |
Constructors
EventBusProps()
public EventBusProps()
Properties
EventBusName
The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.
public string EventBusName { get; set; }
Property Value
System.String
Remarks
Default: - automatically generated name
EventSourceName
The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this.
public string EventSourceName { get; set; }
Property Value
System.String
Remarks
Default: - no partner event source