@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.181Z") @Stability(value=Stable) public interface AddEventSelectorOptions extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
AddEventSelectorOptions.Builder
A builder for
AddEventSelectorOptions |
static class |
AddEventSelectorOptions.Jsii$Proxy
An implementation for
AddEventSelectorOptions |
| Modifier and Type | Method and Description |
|---|---|
static AddEventSelectorOptions.Builder |
builder() |
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 Boolean |
getIncludeManagementEvents()
Specifies whether the event selector includes management events for the trail.
|
default ReadWriteType |
getReadWriteType()
Specifies whether to log read-only events, write-only events, or all events.
|
@Stability(value=Stable) @Nullable default List<ManagementEventSources> getExcludeManagementEventSources()
Default: []
@Stability(value=Stable) @Nullable default Boolean getIncludeManagementEvents()
Default: true
@Stability(value=Stable) @Nullable default ReadWriteType getReadWriteType()
Default: ReadWriteType.All
@Stability(value=Stable) static AddEventSelectorOptions.Builder builder()
AddEventSelectorOptions.Builder of AddEventSelectorOptionsCopyright © 2022. All rights reserved.