Interface ISubscriptionFilterOptions
Properties for a new SubscriptionFilter created from a LogGroup.
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ISubscriptionFilterOptions
Syntax (vb)
Public Interface ISubscriptionFilterOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;
IFilterPattern filterPattern;
ILogSubscriptionDestination logSubscriptionDestination;
var subscriptionFilterOptions = new SubscriptionFilterOptions {
Destination = logSubscriptionDestination,
FilterPattern = filterPattern,
// the properties below are optional
FilterName = "filterName"
};
Synopsis
Properties
Destination | The destination to send the filtered events to. |
FilterName | The name of the subscription filter. |
FilterPattern | Log events matching this pattern will be sent to the destination. |
Properties
Destination
The destination to send the filtered events to.
ILogSubscriptionDestination Destination { get; }
Property Value
Remarks
For example, a Kinesis stream or a Lambda function.
FilterName
The name of the subscription filter.
virtual string FilterName { get; }
Property Value
System.String
Remarks
Default: Automatically generated
FilterPattern
Log events matching this pattern will be sent to the destination.
IFilterPattern FilterPattern { get; }
Property Value