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();
 
  • 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

      @Stability(Stable) @Nullable default Boolean getIncludeManagementEvents()
      Specifies whether the event selector includes management events for the trail.

      Default: true

    • getReadWriteType

      @Stability(Stable) @Nullable default ReadWriteType getReadWriteType()
      Specifies whether to log read-only events, write-only events, or all events.

      Default: ReadWriteType.All

    • builder

      @Stability(Stable) static AddEventSelectorOptions.Builder builder()
      Returns:
      a AddEventSelectorOptions.Builder of AddEventSelectorOptions