pub struct PutEventSelectorsRequest {
pub advanced_event_selectors: Option<Vec<AdvancedEventSelector>>,
pub event_selectors: Option<Vec<EventSelector>>,
pub trail_name: String,
}
Fields
advanced_event_selectors: Option<Vec<AdvancedEventSelector>>
Specifies the settings for advanced event selectors. You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. You can use either AdvancedEventSelectors
or EventSelectors
, but not both. If you apply AdvancedEventSelectors
to a trail, any existing EventSelectors
are overwritten. For more information about advanced event selectors, see Logging data events for trails in the AWS CloudTrail User Guide.
event_selectors: Option<Vec<EventSelector>>
Specifies the settings for your event selectors. You can configure up to five event selectors for a trail. You can use either EventSelectors
or AdvancedEventSelectors
in a PutEventSelectors
request, but not both. If you apply EventSelectors
to a trail, any existing AdvancedEventSelectors
are overwritten.
trail_name: String
Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
-
Start with a letter or number, and end with a letter or number
-
Be between 3 and 128 characters
-
Have no adjacent periods, underscores or dashes. Names like
my-_namespace
andmy--namespace
are invalid. -
Not be in IP address format (for example, 192.168.5.4)
If you specify a trail ARN, it must be in the format:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Trait Implementations
sourceimpl Clone for PutEventSelectorsRequest
impl Clone for PutEventSelectorsRequest
sourcefn clone(&self) -> PutEventSelectorsRequest
fn clone(&self) -> PutEventSelectorsRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PutEventSelectorsRequest
impl Debug for PutEventSelectorsRequest
sourceimpl Default for PutEventSelectorsRequest
impl Default for PutEventSelectorsRequest
sourcefn default() -> PutEventSelectorsRequest
fn default() -> PutEventSelectorsRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PutEventSelectorsRequest> for PutEventSelectorsRequest
impl PartialEq<PutEventSelectorsRequest> for PutEventSelectorsRequest
sourcefn eq(&self, other: &PutEventSelectorsRequest) -> bool
fn eq(&self, other: &PutEventSelectorsRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutEventSelectorsRequest) -> bool
fn ne(&self, other: &PutEventSelectorsRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for PutEventSelectorsRequest
impl Serialize for PutEventSelectorsRequest
impl StructuralPartialEq for PutEventSelectorsRequest
Auto Trait Implementations
impl RefUnwindSafe for PutEventSelectorsRequest
impl Send for PutEventSelectorsRequest
impl Sync for PutEventSelectorsRequest
impl Unpin for PutEventSelectorsRequest
impl UnwindSafe for PutEventSelectorsRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more