Class: Aws::CloudTrail::Types::AdvancedEventSelector

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-cloudtrail/types.rb

Overview

Note:

When making an API call, you may pass AdvancedEventSelector data as a hash:

{
  name: "SelectorName",
  field_selectors: [ # required
    {
      field: "SelectorField", # required
      equals: ["OperatorValue"],
      starts_with: ["OperatorValue"],
      ends_with: ["OperatorValue"],
      not_equals: ["OperatorValue"],
      not_starts_with: ["OperatorValue"],
      not_ends_with: ["OperatorValue"],
    },
  ],
}

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

  • `readOnly`

  • `eventSource`

  • `eventName`

  • `eventCategory`

  • `resources.type`

  • `resources.ARN`

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

[1]: docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#field_selectorsArray<Types::AdvancedFieldSelector>

Contains all selector statements in an advanced event selector.

Returns:


116
117
118
119
120
121
# File 'lib/aws-sdk-cloudtrail/types.rb', line 116

class AdvancedEventSelector < Struct.new(
  :name,
  :field_selectors)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

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

Returns:

  • (String)

116
117
118
119
120
121
# File 'lib/aws-sdk-cloudtrail/types.rb', line 116

class AdvancedEventSelector < Struct.new(
  :name,
  :field_selectors)
  SENSITIVE = []
  include Aws::Structure
end