SubscriptionFilter

class aws_cdk.aws_logs.SubscriptionFilter(scope, id, *, log_group, destination, filter_pattern)

Bases: aws_cdk.core.Resource

A new Subscription on a CloudWatch log group.

__init__(scope, id, *, log_group, destination, filter_pattern)
Parameters
  • scope (Construct) –

  • id (str) –

  • props

  • log_group (ILogGroup) – The log group to create the subscription on.

  • 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.

Return type

None

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

node

Construct tree node which offers APIs for interacting with the construct tree.

Return type

ConstructNode

stack

The stack in which this resource is defined.

Return type

Stack

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool