Show / Hide Table of Contents

Interface IAddEventSelectorOptions

Options for adding an event selector.

Namespace: Amazon.CDK.AWS.CloudTrail
Assembly: Amazon.CDK.AWS.CloudTrail.dll
Syntax (csharp)
public interface IAddEventSelectorOptions
Syntax (vb)
Public Interface IAddEventSelectorOptions
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.CloudTrail;

Bucket sourceBucket;

Artifact sourceOutput = new Artifact();
string key = "some/key.zip";
Trail trail = new Trail(this, "CloudTrail");
trail.AddS3EventSelector(new [] { new S3EventSelector {
    Bucket = sourceBucket,
    ObjectPrefix = key
} }, new AddEventSelectorOptions {
    ReadWriteType = ReadWriteType.WRITE_ONLY
});
S3SourceAction 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

ManagementEventSources[]

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

Back to top Generated by DocFX