@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AdvancedEventSelector extends Object implements Serializable, Cloneable, StructuredPojo
Advanced event selectors let you create fine-grained selectors for CloudTrail management and data events. They help you control costs by logging only those events that are important to you. For more information about advanced event selectors, see Logging management events and Logging data events in the CloudTrail User Guide.
You cannot apply both event selectors and advanced event selectors to a trail.
Supported CloudTrail event record fields for management events
eventCategory
(required)
eventSource
readOnly
Supported CloudTrail event record fields for data events
eventCategory
(required)
resources.type
(required)
readOnly
eventName
resources.ARN
For event data stores for CloudTrail Insights events, Config configuration items, Audit Manager evidence, or events
outside of Amazon Web Services, the only supported field is eventCategory
.
Constructor and Description |
---|
AdvancedEventSelector() |
Modifier and Type | Method and Description |
---|---|
AdvancedEventSelector |
clone() |
boolean |
equals(Object obj) |
List<AdvancedFieldSelector> |
getFieldSelectors()
Contains all selector statements in an advanced event selector.
|
String |
getName()
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFieldSelectors(Collection<AdvancedFieldSelector> fieldSelectors)
Contains all selector statements in an advanced event selector.
|
void |
setName(String name)
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
|
String |
toString()
Returns a string representation of this object.
|
AdvancedEventSelector |
withFieldSelectors(AdvancedFieldSelector... fieldSelectors)
Contains all selector statements in an advanced event selector.
|
AdvancedEventSelector |
withFieldSelectors(Collection<AdvancedFieldSelector> fieldSelectors)
Contains all selector statements in an advanced event selector.
|
AdvancedEventSelector |
withName(String name)
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
|
public void setName(String name)
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
name
- An optional, descriptive name for an advanced event selector, such as
"Log data events for only two S3 buckets".public String getName()
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
public AdvancedEventSelector withName(String name)
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
name
- An optional, descriptive name for an advanced event selector, such as
"Log data events for only two S3 buckets".public List<AdvancedFieldSelector> getFieldSelectors()
Contains all selector statements in an advanced event selector.
public void setFieldSelectors(Collection<AdvancedFieldSelector> fieldSelectors)
Contains all selector statements in an advanced event selector.
fieldSelectors
- Contains all selector statements in an advanced event selector.public AdvancedEventSelector withFieldSelectors(AdvancedFieldSelector... fieldSelectors)
Contains all selector statements in an advanced event selector.
NOTE: This method appends the values to the existing list (if any). Use
setFieldSelectors(java.util.Collection)
or withFieldSelectors(java.util.Collection)
if you want
to override the existing values.
fieldSelectors
- Contains all selector statements in an advanced event selector.public AdvancedEventSelector withFieldSelectors(Collection<AdvancedFieldSelector> fieldSelectors)
Contains all selector statements in an advanced event selector.
fieldSelectors
- Contains all selector statements in an advanced event selector.public String toString()
toString
in class Object
Object.toString()
public AdvancedEventSelector clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.