Class CfnEventDataStore.AdvancedEventSelectorProperty
Advanced event selectors let you create fine-grained selectors for CloudTrail management and data events.
Inheritance
Namespace: Amazon.CDK.AWS.CloudTrail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AdvancedEventSelectorProperty : Object, CfnEventDataStore.IAdvancedEventSelectorProperty
Syntax (vb)
Public Class AdvancedEventSelectorProperty
Inherits Object
Implements CfnEventDataStore.IAdvancedEventSelectorProperty
Remarks
They help you control costs by logging only those events that are important to you. For more information about advanced event selectors, see Logging management events and Logging data events in the AWS CloudTrail User Guide .
You cannot apply both event selectors and advanced event selectors to a trail.
Supported CloudTrail event record fields for management events
Supported CloudTrail event record fields for data events
For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the only supported field is <code>eventCategory</code> .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudTrail;
var advancedEventSelectorProperty = new AdvancedEventSelectorProperty {
FieldSelectors = new [] { new AdvancedFieldSelectorProperty {
Field = "field",
// the properties below are optional
EndsWith = new [] { "endsWith" },
EqualTo = new [] { "equalTo" },
NotEndsWith = new [] { "notEndsWith" },
NotEquals = new [] { "notEquals" },
NotStartsWith = new [] { "notStartsWith" },
StartsWith = new [] { "startsWith" }
} },
// the properties below are optional
Name = "name"
};
Synopsis
Constructors
AdvancedEventSelectorProperty() |
Properties
FieldSelectors | Contains all selector statements in an advanced event selector. |
Name | An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets". |
Constructors
AdvancedEventSelectorProperty()
public AdvancedEventSelectorProperty()
Properties
FieldSelectors
Contains all selector statements in an advanced event selector.
public object FieldSelectors { get; set; }
Property Value
System.Object
Remarks
Name
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
public string Name { get; set; }
Property Value
System.String