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