SubscriptionFilterOptions

class aws_cdk.aws_logs.SubscriptionFilterOptions(*, destination, filter_pattern)

Bases: object

__init__(*, destination, filter_pattern)

Properties for a new SubscriptionFilter created from a LogGroup.

Parameters
  • destination (ILogSubscriptionDestination) – The destination to send the filtered events to. For example, a Kinesis stream or a Lambda function.

  • filter_pattern (IFilterPattern) – Log events matching this pattern will be sent to the destination.

Attributes

destination

The destination to send the filtered events to.

For example, a Kinesis stream or a Lambda function.

Return type

ILogSubscriptionDestination

filter_pattern

Log events matching this pattern will be sent to the destination.

Return type

IFilterPattern