Skip to content
v2.278.0

ActionConditionProperty Struct ​

A single action condition for a condition in a logging filter.

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 actionConditionProperty: wafv2.CfnLoggingConfiguration.ActionConditionProperty = {
  action: 'action',
};
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

action_condition_property = wafv2.CfnLoggingConfiguration.ActionConditionProperty(
    action="action"
)
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.*;

ActionConditionProperty actionConditionProperty = ActionConditionProperty.builder()
        .action("action")
        .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 actionConditionProperty = new ActionConditionProperty {
    Action = "action"
};
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"

actionConditionProperty := &ActionConditionProperty{
	Action: jsii.String("action"),
}

Properties ​

actionstringactionstractionStringActionstringAction*string required #
The action setting that a log record must contain in order to meet the condition.
notes

This is the action that AWS WAF applied to the web request.

For rule groups, this is either the configured rule action setting, or if you've applied a rule action override to the rule, it's the override action. The value EXCLUDED_AS_COUNT matches on excluded rules and also on rules that have a rule action override of Count.