aws-cdk-lib.aws_logs.SubscriptionFilterOptions

interface SubscriptionFilterOptions

LanguageType name
.NETAmazon.CDK.AWS.Logs.SubscriptionFilterOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslogs#SubscriptionFilterOptions
Javasoftware.amazon.awscdk.services.logs.SubscriptionFilterOptions
Pythonaws_cdk.aws_logs.SubscriptionFilterOptions
TypeScript (source)aws-cdk-lib » aws_logs » SubscriptionFilterOptions

Properties for a new SubscriptionFilter created from a LogGroup.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';

declare const filterPattern: logs.IFilterPattern;
declare const logSubscriptionDestination: logs.ILogSubscriptionDestination;
const subscriptionFilterOptions: logs.SubscriptionFilterOptions = {
  destination: logSubscriptionDestination,
  filterPattern: filterPattern,
};

Properties

NameTypeDescription
destinationILogSubscriptionDestinationThe destination to send the filtered events to.
filterPatternIFilterPatternLog events matching this pattern will be sent to the destination.

destination

Type: ILogSubscriptionDestination

The destination to send the filtered events to.

For example, a Kinesis stream or a Lambda function.


filterPattern

Type: IFilterPattern

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