#[non_exhaustive]pub struct PutSubscriptionFilterInput {
pub log_group_name: Option<String>,
pub filter_name: Option<String>,
pub filter_pattern: Option<String>,
pub destination_arn: Option<String>,
pub role_arn: Option<String>,
pub distribution: Option<Distribution>,
}
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.log_group_name: Option<String>
The name of the log group.
filter_name: Option<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: Option<String>
A filter pattern for subscribing to a filtered stream of log events.
destination_arn: Option<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.
-
A Lambda function belonging to the same account as the subscription filter, for same-account delivery.
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.
distribution: Option<Distribution>
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.
Implementations
sourceimpl PutSubscriptionFilterInput
impl PutSubscriptionFilterInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutSubscriptionFilter, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutSubscriptionFilter, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<PutSubscriptionFilter
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutSubscriptionFilterInput
sourceimpl PutSubscriptionFilterInput
impl PutSubscriptionFilterInput
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_name(&self) -> Option<&str>
pub fn filter_name(&self) -> Option<&str>
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.
sourcepub fn filter_pattern(&self) -> Option<&str>
pub fn filter_pattern(&self) -> Option<&str>
A filter pattern for subscribing to a filtered stream of log events.
sourcepub fn destination_arn(&self) -> Option<&str>
pub fn destination_arn(&self) -> Option<&str>
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.
-
A Lambda function belonging to the same account as the subscription filter, for same-account delivery.
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
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.
sourcepub fn distribution(&self) -> Option<&Distribution>
pub fn distribution(&self) -> Option<&Distribution>
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.
Trait Implementations
sourceimpl Clone for PutSubscriptionFilterInput
impl Clone for PutSubscriptionFilterInput
sourcefn clone(&self) -> PutSubscriptionFilterInput
fn clone(&self) -> PutSubscriptionFilterInput
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 PutSubscriptionFilterInput
impl Debug for PutSubscriptionFilterInput
sourceimpl PartialEq<PutSubscriptionFilterInput> for PutSubscriptionFilterInput
impl PartialEq<PutSubscriptionFilterInput> for PutSubscriptionFilterInput
sourcefn eq(&self, other: &PutSubscriptionFilterInput) -> bool
fn eq(&self, other: &PutSubscriptionFilterInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutSubscriptionFilterInput) -> bool
fn ne(&self, other: &PutSubscriptionFilterInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for PutSubscriptionFilterInput
Auto Trait Implementations
impl RefUnwindSafe for PutSubscriptionFilterInput
impl Send for PutSubscriptionFilterInput
impl Sync for PutSubscriptionFilterInput
impl Unpin for PutSubscriptionFilterInput
impl UnwindSafe for PutSubscriptionFilterInput
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