interface SubscriptionFilterOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.SubscriptionFilterOptions |
![]() | software.amazon.awscdk.services.logs.SubscriptionFilterOptions |
![]() | aws_cdk.aws_logs.SubscriptionFilterOptions |
![]() | @aws-cdk/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 * as logs from '@aws-cdk/aws-logs';
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.