AdvancedEventSelector - Amazon CloudTrail
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Advanced event selectors let you create fine-grained selectors for the following Amazon 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 Amazon CloudTrail User Guide.

  • readOnly

  • eventSource

  • eventName

  • eventCategory

  • resources.type

  • resources.ARN

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



Contains all selector statements in an advanced event selector.

Type: Array of AdvancedFieldSelector objects

Array Members: Minimum number of 1 item.

Required: Yes


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

Type: String

Length Constraints: Minimum length of 0. Maximum length of 1000.

Pattern: .*

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: