A new Subscription on a CloudWatch log group.
import { SubscriptionFilter } from 'aws-cdk-lib/aws-logs';Or use the module namespace:
import * as logs from 'aws-cdk-lib/aws-logs';
// logs.SubscriptionFilterConfiguration passed to the constructor as SubscriptionFilterProps.
logGroupRequiredILogGroupRefThe log group to create the subscription on.
SubscriptionFilterOptionsdestinationRequiredinherited from SubscriptionFilterOptionsILogSubscriptionDestinationThe destination to send the filtered events to. For example, a Kinesis stream or a Lambda function.
filterPatternRequiredinherited from SubscriptionFilterOptionsIFilterPatternLog events matching this pattern will be sent to the destination.
distributionOptionalinherited from SubscriptionFilterOptionsDistributionThe method used to distribute log data to the destination. This property can only be used with KinesisDestination.
Default: Distribution.BY_LOG_STREAM
filterNameOptionalinherited from SubscriptionFilterOptionsstringThe name of the subscription filter.
Default: Automatically generated
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-logs