Interface ArchiveProps
- All Superinterfaces:
BaseArchiveProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ArchiveProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.932Z")
@Stability(Stable)
public interface ArchiveProps
extends software.amazon.jsii.JsiiSerializable, BaseArchiveProps
The event archive properties.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.*;
import software.amazon.awscdk.core.*;
Object detail;
EventBus eventBus;
ArchiveProps archiveProps = ArchiveProps.builder()
.eventPattern(EventPattern.builder()
.account(List.of("account"))
.detail(Map.of(
"detailKey", detail))
.detailType(List.of("detailType"))
.id(List.of("id"))
.region(List.of("region"))
.resources(List.of("resources"))
.source(List.of("source"))
.time(List.of("time"))
.version(List.of("version"))
.build())
.sourceEventBus(eventBus)
// the properties below are optional
.archiveName("archiveName")
.description("description")
.retention(Duration.minutes(30))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forArchivePropsstatic final classAn implementation forArchiveProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ArchiveProps.Builderbuilder()The event source associated with the archive.Methods inherited from interface software.amazon.awscdk.services.events.BaseArchiveProps
getArchiveName, getDescription, getEventPattern, getRetentionMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSourceEventBus
The event source associated with the archive. -
builder
- Returns:
- a
ArchiveProps.BuilderofArchiveProps
-