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
Modifier 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 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
-
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
-