Class CfnLoggingConfiguration.LoggingFilterProperty
Filtering that specifies which web requests are kept in the logs and which are dropped, defined for a web ACL's LoggingConfiguration
.
Inheritance
System.Object
CfnLoggingConfiguration.LoggingFilterProperty
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LoggingFilterProperty : Object, CfnLoggingConfiguration.ILoggingFilterProperty
Syntax (vb)
Public Class LoggingFilterProperty
Inherits Object
Implements CfnLoggingConfiguration.ILoggingFilterProperty
Remarks
You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
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.WAFv2;
var loggingFilterProperty = new LoggingFilterProperty {
DefaultBehavior = "defaultBehavior",
Filters = new [] { new FilterProperty {
Behavior = "behavior",
Conditions = new [] { new ConditionProperty {
ActionCondition = new ActionConditionProperty {
Action = "action"
},
LabelNameCondition = new LabelNameConditionProperty {
LabelName = "labelName"
}
} },
Requirement = "requirement"
} }
};
Synopsis
Constructors
LoggingFilterProperty() |
Properties
DefaultBehavior | Default handling for logs that don't match any of the specified filtering conditions. |
Filters | The filters that you want to apply to the logs. |
Constructors
LoggingFilterProperty()
public LoggingFilterProperty()
Properties
DefaultBehavior
Default handling for logs that don't match any of the specified filtering conditions.
public string DefaultBehavior { get; set; }
Property Value
System.String
Remarks
Filters
The filters that you want to apply to the logs.
public object Filters { get; set; }
Property Value
System.Object