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.113.0 (build fc68b25)",
date="2025-09-02T11:25:31.889Z")
@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 class
A builder forBaseArchiveProps
static final class
An implementation forBaseArchiveProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic BaseArchiveProps.Builder
builder()
default String
The name of the archive.default String
A description for the archive.An event pattern to use to filter events sent to the archive.default IKey
The customer managed key that encrypts this archive.default Duration
The 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.Builder
ofBaseArchiveProps
-