Skip to content

CloudTrail  >  Structures  >  AdvancedEventSelector

AdvancedEventSelector

Structure Class

AdvancedEventSelector dataclass

Advanced event selectors let you create fine-grained selectors for CloudTrail management, data, and network activity events. They help you control costs by logging only those events that are important to you. For more information about configuring advanced event selectors, see the Logging data events, Logging network activity events, and Logging management events topics in the CloudTrail User Guide.

You cannot apply both event selectors and advanced event selectors to a trail.

For information about configurable advanced event selector fields, see AdvancedEventSelector in the CloudTrail API Reference.

Attributes

field_selectors instance-attribute
field_selectors: list[AdvancedFieldSelector]

Contains all selector statements in an advanced event selector.

name class-attribute instance-attribute
name: str | None = None

An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".