Struct rusoto_logs::PutSubscriptionFilterRequest
source · [−]pub struct PutSubscriptionFilterRequest {
pub destination_arn: String,
pub distribution: Option<String>,
pub filter_name: String,
pub filter_pattern: String,
pub log_group_name: String,
pub role_arn: Option<String>,
}
Fields
destination_arn: String
The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:
-
An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
-
A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.
If you are setting up a cross-account subscription, the destination must have an IAM policy associated with it that allows the sender to send logs to the destination. For more information, see PutDestinationPolicy.
-
An Amazon Kinesis Firehose delivery stream belonging to the same account as the subscription filter, for same-account delivery.
-
An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
distribution: Option<String>
The method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis stream.
filter_name: String
A name for the subscription filter. If you are updating an existing filter, you must specify the correct name in filterName
. To find the name of the filter currently associated with a log group, use DescribeSubscriptionFilters.
filter_pattern: String
A filter pattern for subscribing to a filtered stream of log events.
log_group_name: String
The name of the log group.
role_arn: Option<String>
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.
Trait Implementations
sourceimpl Clone for PutSubscriptionFilterRequest
impl Clone for PutSubscriptionFilterRequest
sourcefn clone(&self) -> PutSubscriptionFilterRequest
fn clone(&self) -> PutSubscriptionFilterRequest
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 PutSubscriptionFilterRequest
impl Debug for PutSubscriptionFilterRequest
sourceimpl Default for PutSubscriptionFilterRequest
impl Default for PutSubscriptionFilterRequest
sourcefn default() -> PutSubscriptionFilterRequest
fn default() -> PutSubscriptionFilterRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PutSubscriptionFilterRequest> for PutSubscriptionFilterRequest
impl PartialEq<PutSubscriptionFilterRequest> for PutSubscriptionFilterRequest
sourcefn eq(&self, other: &PutSubscriptionFilterRequest) -> bool
fn eq(&self, other: &PutSubscriptionFilterRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutSubscriptionFilterRequest) -> bool
fn ne(&self, other: &PutSubscriptionFilterRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for PutSubscriptionFilterRequest
Auto Trait Implementations
impl RefUnwindSafe for PutSubscriptionFilterRequest
impl Send for PutSubscriptionFilterRequest
impl Sync for PutSubscriptionFilterRequest
impl Unpin for PutSubscriptionFilterRequest
impl UnwindSafe for PutSubscriptionFilterRequest
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