Interface BaseArchiveProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ArchiveProps
- All Known Implementing Classes:
ArchiveProps.Jsii$Proxy,BaseArchiveProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.934Z")
@Stability(Stable)
public interface BaseArchiveProps
extends software.amazon.jsii.JsiiSerializable
The event archive base properties.
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBaseArchivePropsstatic final classAn implementation forBaseArchiveProps -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseArchiveProps.Builderbuilder()default StringThe name of the archive.default StringA description for the archive.An event pattern to use to filter events sent to the archive.default DurationThe number of days to retain events for.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEventPattern
An event pattern to use to filter events sent to the archive. -
getArchiveName
The name of the archive.Default: - Automatically generated
-
getDescription
A description for the archive.Default: - none
-
getRetention
The number of days to retain events for.Default value is 0. If set to 0, events are retained indefinitely.
Default: - Infinite
-
builder
- Returns:
- a
BaseArchiveProps.BuilderofBaseArchiveProps
-