Show / Hide Table of Contents

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.

ManagementEventSources[]? ExcludeManagementEventSources { get; }
Property Value

ManagementEventSources[]

Remarks

Default: []

IncludeManagementEvents

Specifies whether the event selector includes management events for the trail.

bool? IncludeManagementEvents { get; }
Property Value

bool?

Remarks

Default: true

ReadWriteType

Specifies whether to log read-only events, write-only events, or all events.

ReadWriteType? ReadWriteType { get; }
Property Value

ReadWriteType?

Remarks

Default: ReadWriteType.All

Back to top Generated by DocFX