Class SubscriptionFilterOptions
Properties for a new SubscriptionFilter created from a LogGroup.
Inheritance
System.Object
SubscriptionFilterOptions
Implements
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SubscriptionFilterOptions : Object, ISubscriptionFilterOptions
Syntax (vb)
Public Class SubscriptionFilterOptions
Inherits Object
Implements 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
Constructors
SubscriptionFilterOptions() |
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. |
Constructors
SubscriptionFilterOptions()
public SubscriptionFilterOptions()
Properties
Destination
The destination to send the filtered events to.
public ILogSubscriptionDestination Destination { get; set; }
Property Value
Remarks
For example, a Kinesis stream or a Lambda function.
FilterName
The name of the subscription filter.
public string FilterName { get; set; }
Property Value
System.String
Remarks
Default: Automatically generated
FilterPattern
Log events matching this pattern will be sent to the destination.
public IFilterPattern FilterPattern { get; set; }
Property Value