Struct rusoto_cloudtrail::EventSelector [−][src]
pub struct EventSelector { pub data_resources: Option<Vec<DataResource>>, pub include_management_events: Option<bool>, pub read_write_type: Option<String>, }
Use event selectors to specify whether you want your trail to log management and/or data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event.
You can configure up to five event selectors for a trail.
Fields
data_resources: Option<Vec<DataResource>>
CloudTrail supports logging only data events for S3 objects. You can specify up to 250 S3 buckets and object prefixes for a trail.
For more information, see Data Events in the AWS CloudTrail User Guide.
include_management_events: Option<bool>
Specify if you want your event selector to include management events for your trail.
For more information, see Management Events in the AWS CloudTrail User Guide.
By default, the value is true
.
read_write_type: Option<String>
Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput
is a read-only API operation and RunInstances
is a write-only API operation.
By default, the value is All
.
Trait Implementations
impl Default for EventSelector
[src]
impl Default for EventSelector
fn default() -> EventSelector
[src]
fn default() -> EventSelector
Returns the "default value" for a type. Read more
impl Debug for EventSelector
[src]
impl Debug for EventSelector
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for EventSelector
[src]
impl Clone for EventSelector
fn clone(&self) -> EventSelector
[src]
fn clone(&self) -> EventSelector
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for EventSelector
[src]
impl PartialEq for EventSelector
fn eq(&self, other: &EventSelector) -> bool
[src]
fn eq(&self, other: &EventSelector) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EventSelector) -> bool
[src]
fn ne(&self, other: &EventSelector) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for EventSelector
impl Send for EventSelector
impl Sync for EventSelector
impl Sync for EventSelector