Interface CfnEventDataStore.AdvancedEventSelectorProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEventDataStore.AdvancedEventSelectorProperty.Jsii$Proxy
- Enclosing class:
CfnEventDataStore
@Stability(Stable)
public static interface CfnEventDataStore.AdvancedEventSelectorProperty
extends software.amazon.jsii.JsiiSerializable
Advanced event selectors let you create fine-grained selectors for the following AWS CloudTrail event record fields.
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 .
readOnly
eventSource
eventName
eventCategory
resources.type
resources.ARN
You cannot apply both event selectors and advanced event selectors to a trail.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cloudtrail.*; AdvancedEventSelectorProperty advancedEventSelectorProperty = AdvancedEventSelectorProperty.builder() .fieldSelectors(List.of(AdvancedFieldSelectorProperty.builder() .field("field") // the properties below are optional .endsWith(List.of("endsWith")) .equalTo(List.of("equalTo")) .notEndsWith(List.of("notEndsWith")) .notEquals(List.of("notEquals")) .notStartsWith(List.of("notStartsWith")) .startsWith(List.of("startsWith")) .build())) // the properties below are optional .name("name") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnEventDataStore.AdvancedEventSelectorProperty
static final class
An implementation forCfnEventDataStore.AdvancedEventSelectorProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFieldSelectors
Contains all selector statements in an advanced event selector. -
getName
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets". -
builder
-