aws-cdk-lib.aws_logs.SubscriptionFilterOptions
interface SubscriptionFilterOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.SubscriptionFilterOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslogs#SubscriptionFilterOptions |
![]() | software.amazon.awscdk.services.logs.SubscriptionFilterOptions |
![]() | aws_cdk.aws_logs.SubscriptionFilterOptions |
![]() | 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
Name | Type | Description |
---|---|---|
destination | ILog | The destination to send the filtered events to. |
filter | IFilter | Log events matching this pattern will be sent to the destination. |
destination
Type:
ILog
The destination to send the filtered events to.
For example, a Kinesis stream or a Lambda function.
filterPattern
Type:
IFilter
Log events matching this pattern will be sent to the destination.