ClientSideActionConfigProperty Struct
This is part of the configuration for the managed rules AWSManagedRulesAntiDDoSRuleSet in ManagedRuleGroupConfig .
| 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 clientSideActionConfigProperty: wafv2.CfnWebACL.ClientSideActionConfigProperty = {
challenge: {
usageOfAction: 'usageOfAction',
// the properties below are optional
exemptUriRegularExpressions: [{
regexString: 'regexString',
}],
sensitivity: 'sensitivity',
},
};
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
// 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();
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"
}
};
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
challengeIResolvable | CfnWebACL.challengetyping.Union[IResolvable, ClientSideActionProperty]challengeIResolvableChallengeIResolvableChallengeinterface{} required #Configuration for the use of the `AWSManagedRulesAntiDDoSRuleSet` rules `ChallengeAllDuringEvent` and `ChallengeDDoSRequests` .
notes
This setting isn't related to the configuration of the
Challengeaction 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.