BaseArchiveProps Struct
The event archive base properties.
Example
ts
const bus = new events.EventBus(this, 'bus', {
eventBusName: 'MyCustomEventBus',
description: 'MyCustomEventBus',
});
bus.archive('MyArchive', {
archiveName: 'MyCustomEventBusArchive',
description: 'MyCustomerEventBus Archive',
eventPattern: {
account: [Stack.of(this).account],
},
retention: Duration.days(365),
});
Properties
archiveNamestringarchive_namestrarchiveNameStringArchiveNamestringArchiveName*string= Automatically generated#The name of the archive.
A description for the archive.
eventPatternEventPatternevent_patternEventPatterneventPatternEventPatternEventPatternEventPatternEventPatternEventPatternrequired#An event pattern to use to filter events sent to the archive.
The customer managed key that encrypts this archive.