Struct aws_sdk_cloudwatchlogs::model::SubscriptionFilter
source · [−]#[non_exhaustive]pub struct SubscriptionFilter {
pub filter_name: Option<String>,
pub log_group_name: Option<String>,
pub filter_pattern: Option<String>,
pub destination_arn: Option<String>,
pub role_arn: Option<String>,
pub distribution: Option<Distribution>,
pub creation_time: Option<i64>,
}
Expand description
Represents a subscription filter.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.filter_name: Option<String>
The name of the subscription filter.
log_group_name: Option<String>
The name of the log group.
filter_pattern: Option<String>
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
destination_arn: Option<String>
The Amazon Resource Name (ARN) of the destination.
role_arn: Option<String>
distribution: Option<Distribution>
The method used to distribute log data to the destination, which can be either random or grouped by log stream.
creation_time: Option<i64>
The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Implementations
sourceimpl SubscriptionFilter
impl SubscriptionFilter
sourcepub fn filter_name(&self) -> Option<&str>
pub fn filter_name(&self) -> Option<&str>
The name of the subscription filter.
sourcepub fn log_group_name(&self) -> Option<&str>
pub fn log_group_name(&self) -> Option<&str>
The name of the log group.
sourcepub fn filter_pattern(&self) -> Option<&str>
pub fn filter_pattern(&self) -> Option<&str>
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
sourcepub fn destination_arn(&self) -> Option<&str>
pub fn destination_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the destination.
sourcepub fn distribution(&self) -> Option<&Distribution>
pub fn distribution(&self) -> Option<&Distribution>
The method used to distribute log data to the destination, which can be either random or grouped by log stream.
sourcepub fn creation_time(&self) -> Option<i64>
pub fn creation_time(&self) -> Option<i64>
The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
sourceimpl SubscriptionFilter
impl SubscriptionFilter
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SubscriptionFilter
Trait Implementations
sourceimpl Clone for SubscriptionFilter
impl Clone for SubscriptionFilter
sourcefn clone(&self) -> SubscriptionFilter
fn clone(&self) -> SubscriptionFilter
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 SubscriptionFilter
impl Debug for SubscriptionFilter
sourceimpl PartialEq<SubscriptionFilter> for SubscriptionFilter
impl PartialEq<SubscriptionFilter> for SubscriptionFilter
sourcefn eq(&self, other: &SubscriptionFilter) -> bool
fn eq(&self, other: &SubscriptionFilter) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SubscriptionFilter) -> bool
fn ne(&self, other: &SubscriptionFilter) -> bool
This method tests for !=
.
impl StructuralPartialEq for SubscriptionFilter
Auto Trait Implementations
impl RefUnwindSafe for SubscriptionFilter
impl Send for SubscriptionFilter
impl Sync for SubscriptionFilter
impl Unpin for SubscriptionFilter
impl UnwindSafe for SubscriptionFilter
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