pub struct LookupEventsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to LookupEvents
.
Looks up management events or CloudTrail Insights events that are captured by CloudTrail. You can look up events that occurred in a Region within the last 90 days.
LookupEvents
returns recent Insights events for trails that enable Insights. To view Insights events for an event data store, you can run queries on your Insights event data store, and you can also view the Lake dashboard for Insights.
Lookup supports the following attributes for management events:
-
Amazon Web Services access key
-
Event ID
-
Event name
-
Event source
-
Read only
-
Resource name
-
Resource type
-
User name
Lookup supports the following attributes for Insights events:
-
Event ID
-
Event name
-
Event source
All attributes are optional. The default number of results returned is 50, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.
The rate of lookup requests is limited to two per second, per account, per Region. If this limit is exceeded, a throttling error occurs.
Implementations§
source§impl LookupEventsFluentBuilder
impl LookupEventsFluentBuilder
sourcepub fn as_input(&self) -> &LookupEventsInputBuilder
pub fn as_input(&self) -> &LookupEventsInputBuilder
Access the LookupEvents as a reference.
sourcepub async fn send(
self,
) -> Result<LookupEventsOutput, SdkError<LookupEventsError, HttpResponse>>
pub async fn send( self, ) -> Result<LookupEventsOutput, SdkError<LookupEventsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<LookupEventsOutput, LookupEventsError, Self>
pub fn customize( self, ) -> CustomizableOperation<LookupEventsOutput, LookupEventsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> LookupEventsPaginator
pub fn into_paginator(self) -> LookupEventsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
sourcepub fn lookup_attributes(self, input: LookupAttribute) -> Self
pub fn lookup_attributes(self, input: LookupAttribute) -> Self
Appends an item to LookupAttributes
.
To override the contents of this collection use set_lookup_attributes
.
Contains a list of lookup attributes. Currently the list can contain only one item.
sourcepub fn set_lookup_attributes(self, input: Option<Vec<LookupAttribute>>) -> Self
pub fn set_lookup_attributes(self, input: Option<Vec<LookupAttribute>>) -> Self
Contains a list of lookup attributes. Currently the list can contain only one item.
sourcepub fn get_lookup_attributes(&self) -> &Option<Vec<LookupAttribute>>
pub fn get_lookup_attributes(&self) -> &Option<Vec<LookupAttribute>>
Contains a list of lookup attributes. Currently the list can contain only one item.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.
sourcepub fn event_category(self, input: EventCategory) -> Self
pub fn event_category(self, input: EventCategory) -> Self
Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example, if you do not specify insight
as the value of EventCategory
, no Insights events are returned.
sourcepub fn set_event_category(self, input: Option<EventCategory>) -> Self
pub fn set_event_category(self, input: Option<EventCategory>) -> Self
Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example, if you do not specify insight
as the value of EventCategory
, no Insights events are returned.
sourcepub fn get_event_category(&self) -> &Option<EventCategory>
pub fn get_event_category(&self) -> &Option<EventCategory>
Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example, if you do not specify insight
as the value of EventCategory
, no Insights events are returned.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The number of events to return. Possible values are 1 through 50. The default is 50.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The number of events to return. Possible values are 1 through 50. The default is 50.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The number of events to return. Possible values are 1 through 50. The default is 50.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
Trait Implementations§
source§impl Clone for LookupEventsFluentBuilder
impl Clone for LookupEventsFluentBuilder
source§fn clone(&self) -> LookupEventsFluentBuilder
fn clone(&self) -> LookupEventsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for LookupEventsFluentBuilder
impl !RefUnwindSafe for LookupEventsFluentBuilder
impl Send for LookupEventsFluentBuilder
impl Sync for LookupEventsFluentBuilder
impl Unpin for LookupEventsFluentBuilder
impl !UnwindSafe for LookupEventsFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more