Show / Hide Table of Contents

Class AddEventSelectorOptions

Options for adding an event selector.

Inheritance
System.Object
AddEventSelectorOptions
Implements
IAddEventSelectorOptions
Namespace: Amazon.CDK.AWS.CloudTrail
Assembly: Amazon.CDK.AWS.CloudTrail.dll
Syntax (csharp)
public class AddEventSelectorOptions : Object, IAddEventSelectorOptions
Syntax (vb)
Public Class AddEventSelectorOptions
    Inherits Object
    Implements 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

Constructors

AddEventSelectorOptions()

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.

Constructors

AddEventSelectorOptions()

public AddEventSelectorOptions()

Properties

ExcludeManagementEventSources

An optional list of service event sources from which you do not want management events to be logged on your trail.

public ManagementEventSources[] ExcludeManagementEventSources { get; set; }
Property Value

ManagementEventSources[]

Remarks

Default: []

IncludeManagementEvents

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

public Nullable<bool> IncludeManagementEvents { get; set; }
Property Value

System.Nullable<System.Boolean>

Remarks

Default: true

ReadWriteType

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

public Nullable<ReadWriteType> ReadWriteType { get; set; }
Property Value

System.Nullable<ReadWriteType>

Remarks

Default: ReadWriteType.All

Implements

IAddEventSelectorOptions
Back to top Generated by DocFX