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.120.0 (build 192dc88)",
date="2025-12-05T22:26:36.895Z")
@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")
.description("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 IKeyThe customer managed key that encrypts this 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
-
getKmsKey
The customer managed key that encrypts this archive.Default: - Use an AWS managed key
-
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
-