# ClientSideActionConfigProperty

This is part of the configuration for the managed rules `AWSManagedRulesAntiDDoSRuleSet` in `ManagedRuleGroupConfig` .

- Source: Generated at build time
- Type last changed: v2.202.0 · 20 Jun 2025

## Example

TypeScript:

```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 clientSideActionConfigProperty: wafv2.CfnWebACL.ClientSideActionConfigProperty = {
  challenge: {
    usageOfAction: 'usageOfAction',

    // the properties below are optional
    exemptUriRegularExpressions: [{
      regexString: 'regexString',
    }],
    sensitivity: 'sensitivity',
  },
};
```

Python:

```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

client_side_action_config_property = wafv2.CfnWebACL.ClientSideActionConfigProperty(
    challenge=wafv2.CfnWebACL.ClientSideActionProperty(
        usage_of_action="usageOfAction",

        # the properties below are optional
        exempt_uri_regular_expressions=[wafv2.CfnWebACL.RegexProperty(
            regex_string="regexString"
        )],
        sensitivity="sensitivity"
    )
)
```

Java:

```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.*;

ClientSideActionConfigProperty clientSideActionConfigProperty = ClientSideActionConfigProperty.builder()
        .challenge(ClientSideActionProperty.builder()
                .usageOfAction("usageOfAction")

                // the properties below are optional
                .exemptUriRegularExpressions(List.of(RegexProperty.builder()
                        .regexString("regexString")
                        .build()))
                .sensitivity("sensitivity")
                .build())
        .build();
```

C# / .NET:

```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 clientSideActionConfigProperty = new ClientSideActionConfigProperty {
    Challenge = new ClientSideActionProperty {
        UsageOfAction = "usageOfAction",

        // the properties below are optional
        ExemptUriRegularExpressions = new [] { new RegexProperty {
            RegexString = "regexString"
        } },
        Sensitivity = "sensitivity"
    }
};
```

Golang:

```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"

clientSideActionConfigProperty := &ClientSideActionConfigProperty{
	Challenge: &ClientSideActionProperty{
		UsageOfAction: jsii.String("usageOfAction"),

		// the properties below are optional
		ExemptUriRegularExpressions: []interface{}{
			&RegexProperty{
				RegexString: jsii.String("regexString"),
			},
		},
		Sensitivity: jsii.String("sensitivity"),
	},
}
```

## Properties

- `challenge`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWebACL.ClientSideActionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_wafv2.CfnWebACL.ClientSideActionProperty.html) (required) — Configuration for the use of the `AWSManagedRulesAntiDDoSRuleSet` rules `ChallengeAllDuringEvent` and `ChallengeDDoSRequests` .

  > This setting isn't related to the configuration of the `Challenge` action itself. It only configures the use of the two anti-DDoS rules named here.

  You can enable or disable the use of these rules, and you can configure how to use them when they are enabled.
