Skip to content
v2.278.0

ChallengeConfigProperty ​

Struct External

Specifies how AWS WAF should handle Challenge evaluations.

This is available at the web ACL level and in each rule.

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 challengeConfigProperty: wafv2.CfnRuleGroup.ChallengeConfigProperty = {
  immunityTimeProperty: {
    immunityTime: 123,
  },
};
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

challenge_config_property = wafv2.CfnRuleGroup.ChallengeConfigProperty(
    immunity_time_property=wafv2.CfnRuleGroup.ImmunityTimePropertyProperty(
        immunity_time=123
    )
)
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.*;

ChallengeConfigProperty challengeConfigProperty = ChallengeConfigProperty.builder()
        .immunityTimeProperty(ImmunityTimePropertyProperty.builder()
                .immunityTime(123)
                .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 challengeConfigProperty = new ChallengeConfigProperty {
    ImmunityTimeProperty = new ImmunityTimePropertyProperty {
        ImmunityTime = 123
    }
};
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"

challengeConfigProperty := &ChallengeConfigProperty{
	ImmunityTimeProperty: &ImmunityTimePropertyProperty{
		ImmunityTime: jsii.Number(123),
	},
}

Properties ​

immunityTimePropertyoptionalIResolvable | CfnRuleGroup.ImmunityTimePropertyPropertyimmunity_time_propertyoptionaltyping.Union[IResolvable, ImmunityTimePropertyProperty]immunityTimePropertyoptionalIResolvableImmunityTimePropertyoptionalIResolvableImmunityTimePropertyoptionalinterface{} #
Determines how long a challenge timestamp in the token remains valid after the client successfully responds to a challenge.