Interface AddEventSelectorOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AddEventSelectorOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.867Z")
@Stability(Stable)
public interface AddEventSelectorOptions
extends software.amazon.jsii.JsiiSerializable
Options for adding an event selector.
Example:
import software.amazon.awscdk.services.cloudtrail.*; Bucket sourceBucket; Artifact sourceOutput = new Artifact(); String key = "some/key.zip"; Trail trail = new Trail(this, "CloudTrail"); trail.addS3EventSelector(List.of(S3EventSelector.builder() .bucket(sourceBucket) .objectPrefix(key) .build()), AddEventSelectorOptions.builder() .readWriteType(ReadWriteType.WRITE_ONLY) .build()); S3SourceAction sourceAction = S3SourceAction.Builder.create() .actionName("S3Source") .bucketKey(key) .bucket(sourceBucket) .output(sourceOutput) .trigger(S3Trigger.EVENTS) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAddEventSelectorOptions
static final class
An implementation forAddEventSelectorOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default List<ManagementEventSources>
An optional list of service event sources from which you do not want management events to be logged on your trail.default Boolean
Specifies whether the event selector includes management events for the trail.default ReadWriteType
Specifies whether to log read-only events, write-only events, or all events.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExcludeManagementEventSources
@Stability(Stable) @Nullable default List<ManagementEventSources> getExcludeManagementEventSources()An optional list of service event sources from which you do not want management events to be logged on your trail.Default: []
-
getIncludeManagementEvents
Specifies whether the event selector includes management events for the trail.Default: true
-
getReadWriteType
Specifies whether to log read-only events, write-only events, or all events.Default: ReadWriteType.All
-
builder
- Returns:
- a
AddEventSelectorOptions.Builder
ofAddEventSelectorOptions
-