LoggingFilterProperty Struct
Configuration that determines which WAF log records to keep or drop based on specified conditions.
| 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_observabilityadmin as observabilityadmin } from 'aws-cdk-lib';
const loggingFilterProperty: observabilityadmin.CfnTelemetryRule.LoggingFilterProperty = {
defaultBehavior: 'defaultBehavior',
filters: [{
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_observabilityadmin as observabilityadmin
logging_filter_property = observabilityadmin.CfnTelemetryRule.LoggingFilterProperty(
default_behavior="defaultBehavior",
filters=[observabilityadmin.CfnTelemetryRule.FilterProperty(
behavior="behavior",
conditions=[observabilityadmin.CfnTelemetryRule.ConditionProperty(
action_condition=observabilityadmin.CfnTelemetryRule.ActionConditionProperty(
action="action"
),
label_name_condition=observabilityadmin.CfnTelemetryRule.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.observabilityadmin.*;
LoggingFilterProperty loggingFilterProperty = LoggingFilterProperty.builder()
.defaultBehavior("defaultBehavior")
.filters(List.of(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()))
.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.ObservabilityAdmin;
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"
} }
};
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"
loggingFilterProperty := &LoggingFilterProperty{
DefaultBehavior: jsii.String("defaultBehavior"),
Filters: []interface{}{
&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
defaultBehavioroptionalstringdefault_behavioroptionalstrdefaultBehavioroptionalStringDefaultBehavioroptionalstringDefaultBehavioroptional*string #The default action (KEEP or DROP) for log records that don't match any filter conditions.
filtersoptionalIResolvable | IResolvable | CfnTelemetryRule.FilterProperty[]filtersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FilterProperty]]]filtersoptionalIResolvableFiltersoptionalIResolvableFiltersoptionalinterface{} #A list of filter conditions that determine log record handling behavior.