Struct aws_sdk_cloudwatchlogs::input::PutSubscriptionFilterInput [−][src]
#[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
pub 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
>
Creates a new builder-style object to manufacture PutSubscriptionFilterInput
The name of the log group.
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.
A filter pattern for subscribing to a filtered stream of log events.
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.
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.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more