Interface IAddEventSelectorOptions
Options for adding an event selector.
Namespace: Amazon.CDK.AWS.CloudTrail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAddEventSelectorOptions
Syntax (vb)
Public Interface IAddEventSelectorOptions
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CloudTrail;
Bucket sourceBucket;
var sourceOutput = new Artifact();
var key = "some/key.zip";
var trail = new Trail(this, "CloudTrail");
trail.AddS3EventSelector(new [] { new S3EventSelector {
Bucket = sourceBucket,
ObjectPrefix = key
} }, new AddEventSelectorOptions {
ReadWriteType = ReadWriteType.WRITE_ONLY
});
var sourceAction = new S3SourceAction(new S3SourceActionProps {
ActionName = "S3Source",
BucketKey = key,
Bucket = sourceBucket,
Output = sourceOutput,
Trigger = S3Trigger.EVENTS
});
Synopsis
Properties
ExcludeManagementEventSources | An optional list of service event sources from which you do not want management events to be logged on your trail. |
IncludeManagementEvents | Specifies whether the event selector includes management events for the trail. |
ReadWriteType | Specifies whether to log read-only events, write-only events, or all events. |
Properties
ExcludeManagementEventSources
An optional list of service event sources from which you do not want management events to be logged on your trail.
virtual ManagementEventSources[] ExcludeManagementEventSources { get; }
Property Value
Remarks
Default: []
IncludeManagementEvents
Specifies whether the event selector includes management events for the trail.
virtual Nullable<bool> IncludeManagementEvents { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true
ReadWriteType
Specifies whether to log read-only events, write-only events, or all events.
virtual Nullable<ReadWriteType> ReadWriteType { get; }
Property Value
System.Nullable<ReadWriteType>
Remarks
Default: ReadWriteType.All