Class CfnTelemetryRule.FilterProperty
A single filter condition that specifies behavior, requirement, and matching conditions for WAF log records.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ObservabilityAdmin
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTelemetryRule.FilterProperty : CfnTelemetryRule.IFilterProperty
Syntax (vb)
Public Class CfnTelemetryRule.FilterProperty Implements CfnTelemetryRule.IFilterProperty
Remarks
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.ObservabilityAdmin;
var filterProperty = new FilterProperty {
Behavior = "behavior",
Conditions = new [] { new ConditionProperty {
ActionCondition = new ActionConditionProperty {
Action = "action"
},
LabelNameCondition = new LabelNameConditionProperty {
LabelName = "labelName"
}
} },
Requirement = "requirement"
};
Synopsis
Constructors
| FilterProperty() | A single filter condition that specifies behavior, requirement, and matching conditions for WAF log records. |
Properties
| Behavior | The action to take for log records matching this filter (KEEP or DROP). |
| Conditions | The list of conditions that determine if a log record matches this filter. |
| Requirement | Whether the log record must meet all conditions (MEETS_ALL) or any condition (MEETS_ANY) to match this filter. |
Constructors
FilterProperty()
A single filter condition that specifies behavior, requirement, and matching conditions for WAF log records.
public FilterProperty()
Remarks
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.ObservabilityAdmin;
var filterProperty = new FilterProperty {
Behavior = "behavior",
Conditions = new [] { new ConditionProperty {
ActionCondition = new ActionConditionProperty {
Action = "action"
},
LabelNameCondition = new LabelNameConditionProperty {
LabelName = "labelName"
}
} },
Requirement = "requirement"
};
Properties
Behavior
The action to take for log records matching this filter (KEEP or DROP).
public string? Behavior { get; set; }
Property Value
Remarks
Conditions
The list of conditions that determine if a log record matches this filter.
public object? Conditions { get; set; }
Property Value
Remarks
Requirement
Whether the log record must meet all conditions (MEETS_ALL) or any condition (MEETS_ANY) to match this filter.
public string? Requirement { get; set; }