Struct aws_sdk_cloudwatchlogs::operation::filter_log_events::builders::FilterLogEventsInputBuilder
source · #[non_exhaustive]pub struct FilterLogEventsInputBuilder { /* private fields */ }
Expand description
A builder for FilterLogEventsInput
.
Implementations§
source§impl FilterLogEventsInputBuilder
impl FilterLogEventsInputBuilder
sourcepub fn log_group_name(self, input: impl Into<String>) -> Self
pub fn log_group_name(self, input: impl Into<String>) -> Self
The name of the log group to search.
You must include either logGroupIdentifier
or logGroupName
, but not both.
sourcepub fn set_log_group_name(self, input: Option<String>) -> Self
pub fn set_log_group_name(self, input: Option<String>) -> Self
The name of the log group to search.
You must include either logGroupIdentifier
or logGroupName
, but not both.
sourcepub fn get_log_group_name(&self) -> &Option<String>
pub fn get_log_group_name(&self) -> &Option<String>
The name of the log group to search.
You must include either logGroupIdentifier
or logGroupName
, but not both.
sourcepub fn log_group_identifier(self, input: impl Into<String>) -> Self
pub fn log_group_identifier(self, input: impl Into<String>) -> Self
Specify either the name or ARN of the log group to view log events from. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.
You must include either logGroupIdentifier
or logGroupName
, but not both.
sourcepub fn set_log_group_identifier(self, input: Option<String>) -> Self
pub fn set_log_group_identifier(self, input: Option<String>) -> Self
Specify either the name or ARN of the log group to view log events from. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.
You must include either logGroupIdentifier
or logGroupName
, but not both.
sourcepub fn get_log_group_identifier(&self) -> &Option<String>
pub fn get_log_group_identifier(&self) -> &Option<String>
Specify either the name or ARN of the log group to view log events from. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.
You must include either logGroupIdentifier
or logGroupName
, but not both.
sourcepub fn log_stream_names(self, input: impl Into<String>) -> Self
pub fn log_stream_names(self, input: impl Into<String>) -> Self
Appends an item to log_stream_names
.
To override the contents of this collection use set_log_stream_names
.
Filters the results to only logs from the log streams in this list.
If you specify a value for both logStreamNamePrefix
and logStreamNames
, the action returns an InvalidParameterException
error.
sourcepub fn set_log_stream_names(self, input: Option<Vec<String>>) -> Self
pub fn set_log_stream_names(self, input: Option<Vec<String>>) -> Self
Filters the results to only logs from the log streams in this list.
If you specify a value for both logStreamNamePrefix
and logStreamNames
, the action returns an InvalidParameterException
error.
sourcepub fn get_log_stream_names(&self) -> &Option<Vec<String>>
pub fn get_log_stream_names(&self) -> &Option<Vec<String>>
Filters the results to only logs from the log streams in this list.
If you specify a value for both logStreamNamePrefix
and logStreamNames
, the action returns an InvalidParameterException
error.
sourcepub fn log_stream_name_prefix(self, input: impl Into<String>) -> Self
pub fn log_stream_name_prefix(self, input: impl Into<String>) -> Self
Filters the results to include only events from log streams that have names starting with this prefix.
If you specify a value for both logStreamNamePrefix
and logStreamNames
, but the value for logStreamNamePrefix
does not match any log stream names specified in logStreamNames
, the action returns an InvalidParameterException
error.
sourcepub fn set_log_stream_name_prefix(self, input: Option<String>) -> Self
pub fn set_log_stream_name_prefix(self, input: Option<String>) -> Self
Filters the results to include only events from log streams that have names starting with this prefix.
If you specify a value for both logStreamNamePrefix
and logStreamNames
, but the value for logStreamNamePrefix
does not match any log stream names specified in logStreamNames
, the action returns an InvalidParameterException
error.
sourcepub fn get_log_stream_name_prefix(&self) -> &Option<String>
pub fn get_log_stream_name_prefix(&self) -> &Option<String>
Filters the results to include only events from log streams that have names starting with this prefix.
If you specify a value for both logStreamNamePrefix
and logStreamNames
, but the value for logStreamNamePrefix
does not match any log stream names specified in logStreamNames
, the action returns an InvalidParameterException
error.
sourcepub fn start_time(self, input: i64) -> Self
pub fn start_time(self, input: i64) -> Self
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
. Events with a timestamp before this time are not returned.
sourcepub fn set_start_time(self, input: Option<i64>) -> Self
pub fn set_start_time(self, input: Option<i64>) -> Self
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
. Events with a timestamp before this time are not returned.
sourcepub fn get_start_time(&self) -> &Option<i64>
pub fn get_start_time(&self) -> &Option<i64>
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
. Events with a timestamp before this time are not returned.
sourcepub fn end_time(self, input: i64) -> Self
pub fn end_time(self, input: i64) -> Self
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
. Events with a timestamp later than this time are not returned.
sourcepub fn set_end_time(self, input: Option<i64>) -> Self
pub fn set_end_time(self, input: Option<i64>) -> Self
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
. Events with a timestamp later than this time are not returned.
sourcepub fn get_end_time(&self) -> &Option<i64>
pub fn get_end_time(&self) -> &Option<i64>
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
. Events with a timestamp later than this time are not returned.
sourcepub fn filter_pattern(self, input: impl Into<String>) -> Self
pub fn filter_pattern(self, input: impl Into<String>) -> Self
The filter pattern to use. For more information, see Filter and Pattern Syntax.
If not provided, all the events are matched.
sourcepub fn set_filter_pattern(self, input: Option<String>) -> Self
pub fn set_filter_pattern(self, input: Option<String>) -> Self
The filter pattern to use. For more information, see Filter and Pattern Syntax.
If not provided, all the events are matched.
sourcepub fn get_filter_pattern(&self) -> &Option<String>
pub fn get_filter_pattern(&self) -> &Option<String>
The filter pattern to use. For more information, see Filter and Pattern Syntax.
If not provided, all the events are matched.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token for the next set of events to return. (You received this token from a previous call.)
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token for the next set of events to return. (You received this token from a previous call.)
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
The token for the next set of events to return. (You received this token from a previous call.)
sourcepub fn limit(self, input: i32) -> Self
pub fn limit(self, input: i32) -> Self
The maximum number of events to return. The default is 10,000 events.
sourcepub fn set_limit(self, input: Option<i32>) -> Self
pub fn set_limit(self, input: Option<i32>) -> Self
The maximum number of events to return. The default is 10,000 events.
sourcepub fn get_limit(&self) -> &Option<i32>
pub fn get_limit(&self) -> &Option<i32>
The maximum number of events to return. The default is 10,000 events.
sourcepub fn interleaved(self, input: bool) -> Self
👎Deprecated: Starting on June 17, 2019, this parameter will be ignored and the value will be assumed to be true. The response from this operation will always interleave events from multiple log streams within a log group.
pub fn interleaved(self, input: bool) -> Self
If the value is true, the operation attempts to provide responses that contain events from multiple log streams within the log group, interleaved in a single response. If the value is false, all the matched log events in the first log stream are searched first, then those in the next log stream, and so on.
Important As of June 17, 2019, this parameter is ignored and the value is assumed to be true. The response from this operation always interleaves events from multiple log streams within a log group.
sourcepub fn set_interleaved(self, input: Option<bool>) -> Self
👎Deprecated: Starting on June 17, 2019, this parameter will be ignored and the value will be assumed to be true. The response from this operation will always interleave events from multiple log streams within a log group.
pub fn set_interleaved(self, input: Option<bool>) -> Self
If the value is true, the operation attempts to provide responses that contain events from multiple log streams within the log group, interleaved in a single response. If the value is false, all the matched log events in the first log stream are searched first, then those in the next log stream, and so on.
Important As of June 17, 2019, this parameter is ignored and the value is assumed to be true. The response from this operation always interleaves events from multiple log streams within a log group.
sourcepub fn get_interleaved(&self) -> &Option<bool>
👎Deprecated: Starting on June 17, 2019, this parameter will be ignored and the value will be assumed to be true. The response from this operation will always interleave events from multiple log streams within a log group.
pub fn get_interleaved(&self) -> &Option<bool>
If the value is true, the operation attempts to provide responses that contain events from multiple log streams within the log group, interleaved in a single response. If the value is false, all the matched log events in the first log stream are searched first, then those in the next log stream, and so on.
Important As of June 17, 2019, this parameter is ignored and the value is assumed to be true. The response from this operation always interleaves events from multiple log streams within a log group.
sourcepub fn unmask(self, input: bool) -> Self
pub fn unmask(self, input: bool) -> Self
Specify true
to display the log event fields with all sensitive data unmasked and visible. The default is false
.
To use this operation with this parameter, you must be signed into an account with the logs:Unmask
permission.
sourcepub fn set_unmask(self, input: Option<bool>) -> Self
pub fn set_unmask(self, input: Option<bool>) -> Self
Specify true
to display the log event fields with all sensitive data unmasked and visible. The default is false
.
To use this operation with this parameter, you must be signed into an account with the logs:Unmask
permission.
sourcepub fn get_unmask(&self) -> &Option<bool>
pub fn get_unmask(&self) -> &Option<bool>
Specify true
to display the log event fields with all sensitive data unmasked and visible. The default is false
.
To use this operation with this parameter, you must be signed into an account with the logs:Unmask
permission.
sourcepub fn build(self) -> Result<FilterLogEventsInput, BuildError>
pub fn build(self) -> Result<FilterLogEventsInput, BuildError>
Consumes the builder and constructs a FilterLogEventsInput
.
source§impl FilterLogEventsInputBuilder
impl FilterLogEventsInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<FilterLogEventsOutput, SdkError<FilterLogEventsError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<FilterLogEventsOutput, SdkError<FilterLogEventsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for FilterLogEventsInputBuilder
impl Clone for FilterLogEventsInputBuilder
source§fn clone(&self) -> FilterLogEventsInputBuilder
fn clone(&self) -> FilterLogEventsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FilterLogEventsInputBuilder
impl Debug for FilterLogEventsInputBuilder
source§impl Default for FilterLogEventsInputBuilder
impl Default for FilterLogEventsInputBuilder
source§fn default() -> FilterLogEventsInputBuilder
fn default() -> FilterLogEventsInputBuilder
source§impl PartialEq for FilterLogEventsInputBuilder
impl PartialEq for FilterLogEventsInputBuilder
source§fn eq(&self, other: &FilterLogEventsInputBuilder) -> bool
fn eq(&self, other: &FilterLogEventsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FilterLogEventsInputBuilder
Auto Trait Implementations§
impl Freeze for FilterLogEventsInputBuilder
impl RefUnwindSafe for FilterLogEventsInputBuilder
impl Send for FilterLogEventsInputBuilder
impl Sync for FilterLogEventsInputBuilder
impl Unpin for FilterLogEventsInputBuilder
impl UnwindSafe for FilterLogEventsInputBuilder
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> 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