Class SubscriptionFilterProps
Properties for a SubscriptionFilter.
Inheritance
System.Object
SubscriptionFilterProps
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SubscriptionFilterProps : Object, ISubscriptionFilterProps, ISubscriptionFilterOptions
Syntax (vb)
Public Class SubscriptionFilterProps
Inherits Object
Implements ISubscriptionFilterProps, ISubscriptionFilterOptions
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Logs.Destinations;
Function fn;
LogGroup logGroup;
new SubscriptionFilter(this, "Subscription", new SubscriptionFilterProps {
LogGroup = logGroup,
Destination = new LambdaDestination(fn),
FilterPattern = FilterPattern.AllTerms("ERROR", "MainThread"),
FilterName = "ErrorInMainThread"
});
Synopsis
Constructors
SubscriptionFilterProps() |
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. |
LogGroup | The log group to create the subscription on. |
Constructors
SubscriptionFilterProps()
public SubscriptionFilterProps()
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
LogGroup
The log group to create the subscription on.
public ILogGroup LogGroup { get; set; }
Property Value