FilterProperty Struct
A single logging filter, used in LoggingFilter .
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';
const filterProperty: wafv2.CfnLoggingConfiguration.FilterProperty = {
behavior: 'behavior',
conditions: [{
actionCondition: {
action: 'action',
},
labelNameCondition: {
labelName: 'labelName',
},
}],
requirement: 'requirement',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_wafv2 as wafv2
filter_property = wafv2.CfnLoggingConfiguration.FilterProperty(
behavior="behavior",
conditions=[wafv2.CfnLoggingConfiguration.ConditionProperty(
action_condition=wafv2.CfnLoggingConfiguration.ActionConditionProperty(
action="action"
),
label_name_condition=wafv2.CfnLoggingConfiguration.LabelNameConditionProperty(
label_name="labelName"
)
)],
requirement="requirement"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wafv2.*;
FilterProperty filterProperty = FilterProperty.builder()
.behavior("behavior")
.conditions(List.of(ConditionProperty.builder()
.actionCondition(ActionConditionProperty.builder()
.action("action")
.build())
.labelNameCondition(LabelNameConditionProperty.builder()
.labelName("labelName")
.build())
.build()))
.requirement("requirement")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 filterProperty = new FilterProperty {
Behavior = "behavior",
Conditions = new [] { new ConditionProperty {
ActionCondition = new ActionConditionProperty {
Action = "action"
},
LabelNameCondition = new LabelNameConditionProperty {
LabelName = "labelName"
}
} },
Requirement = "requirement"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
filterProperty := &FilterProperty{
Behavior: jsii.String("behavior"),
Conditions: []interface{}{
&ConditionProperty{
ActionCondition: &ActionConditionProperty{
Action: jsii.String("action"),
},
LabelNameCondition: &LabelNameConditionProperty{
LabelName: jsii.String("labelName"),
},
},
},
Requirement: jsii.String("requirement"),
}
Properties
How to handle logs that satisfy the filter's conditions and requirement.
conditionsIResolvable | IResolvable | CfnLoggingConfiguration.conditionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ConditionProperty]]]conditionsIResolvableConditionsIResolvableConditionsinterface{} required #Match conditions for the filter.
Logic to apply to the filtering conditions.
You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.