Class Archive.Builder
java.lang.Object
software.amazon.awscdk.services.events.Archive.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Archive>
- Enclosing class:
Archive
@Stability(Stable)
public static final class Archive.Builder
extends Object
implements software.amazon.jsii.Builder<Archive>
A fluent builder for
Archive
.-
Method Summary
Modifier and TypeMethodDescriptionarchiveName
(String archiveName) The name of the archive.build()
static Archive.Builder
description
(String description) A description for the archive.eventPattern
(EventPattern eventPattern) An event pattern to use to filter events sent to the archive.The number of days to retain events for.sourceEventBus
(IEventBus sourceEventBus) The event source associated with the archive.
-
Method Details
-
create
@Stability(Stable) public static Archive.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
Archive.Builder
.
-
eventPattern
An event pattern to use to filter events sent to the archive.- Parameters:
eventPattern
- An event pattern to use to filter events sent to the archive. This parameter is required.- Returns:
this
-
archiveName
The name of the archive.Default: - Automatically generated
- Parameters:
archiveName
- The name of the archive. This parameter is required.- Returns:
this
-
description
A description for the archive.Default: - none
- Parameters:
description
- A description for the archive. This parameter is required.- Returns:
this
-
retention
The number of days to retain events for.Default value is 0. If set to 0, events are retained indefinitely.
Default: - Infinite
- Parameters:
retention
- The number of days to retain events for. This parameter is required.- Returns:
this
-
sourceEventBus
The event source associated with the archive.- Parameters:
sourceEventBus
- The event source associated with the archive. This parameter is required.- Returns:
this
-
build
-