The AWS::Logs::SubscriptionFilter
resource specifies a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events and have them delivered to a specific destination. Currently, the supported destinations are:
There can be as many as two subscription filters associated with a log group.
destination_arn
(String) The Amazon Resource Name (ARN) of the destination.filter_pattern
(String) The filtering expressions that restrict what gets delivered to the destination AWS resource. For more information about the filter pattern syntax, see Filter and Pattern Syntax.log_group_name
(String) The log group to associate with the subscription filter. All log events that are uploaded to this log group are filtered and delivered to the specified AWS resource if the filter pattern matches the log events.distribution
(String) The method used to distribute log data to the destination, which can be either random or grouped by log stream.filter_name
(String) The name of the subscription filter.role_arn
(String) The ARN of an IAM role that grants CWL 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.id
(String) Uniquely identifies the resource.Import is supported using the following syntax:
$ terraform import awscc_logs_subscription_filter.example <resource ID>