Interface CfnLoggingConfiguration.ILoggingFilterProperty
Filtering that specifies which web requests are kept in the logs and which are dropped, defined for a web ACL's LoggingConfiguration
.
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILoggingFilterProperty
Syntax (vb)
Public Interface 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
Properties
Default |
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. |
Properties
DefaultBehavior
Default handling for logs that don't match any of the specified filtering conditions.
string DefaultBehavior { get; }
Property Value
System.
Remarks
Filters
The filters that you want to apply to the logs.
object Filters { get; }
Property Value
System.