Class CfnTrail.AdvancedEventSelectorProperty
Advanced event selectors let you create fine-grained selectors for the following AWS CloudTrail event record fields.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CloudTrail
Assembly: Amazon.CDK.AWS.CloudTrail.dll
Syntax (csharp)
public class AdvancedEventSelectorProperty : Object, CfnTrail.IAdvancedEventSelectorProperty
Syntax (vb)
Public Class AdvancedEventSelectorProperty
Inherits Object
Implements CfnTrail.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 data events in the AWS CloudTrail User Guide .
You cannot apply both event selectors and advanced event selectors to a trail.
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