@Stability(value=Stable)
public static interface CfnEventDataStore.AdvancedEventSelectorProperty
extends software.amazon.jsii.JsiiSerializable
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 for trails in the AWS CloudTrail User Guide .
readOnlyeventSourceeventNameeventCategoryresources.typeresources.ARNYou 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEventDataStore.AdvancedEventSelectorProperty.Builder
A builder for
CfnEventDataStore.AdvancedEventSelectorProperty |
static class |
CfnEventDataStore.AdvancedEventSelectorProperty.Jsii$Proxy
An implementation for
CfnEventDataStore.AdvancedEventSelectorProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnEventDataStore.AdvancedEventSelectorProperty.Builder |
builder() |
Object |
getFieldSelectors()
Contains all selector statements in an advanced event selector.
|
default String |
getName()
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
|
@Stability(value=Stable) @NotNull Object getFieldSelectors()
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) static CfnEventDataStore.AdvancedEventSelectorProperty.Builder builder()
Copyright © 2022. All rights reserved.