cloudshift.awscdk.dsl.services.wafv2.CfnRuleGroupCaptchaPropertyDsl.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.wafv2
import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.IResolvable
import software.amazon.awscdk.services.wafv2.CfnRuleGroup
/**
* Checks valid token exists with request.
*
* Example:
*
* ```
* // 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.*;
* CaptchaProperty captchaProperty = CaptchaProperty.builder()
* .customRequestHandling(CustomRequestHandlingProperty.builder()
* .insertHeaders(List.of(CustomHTTPHeaderProperty.builder()
* .name("name")
* .value("value")
* .build()))
* .build())
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-captcha.html)
*/
@CdkDslMarker
public class CfnRuleGroupCaptchaPropertyDsl {
private val cdkBuilder: CfnRuleGroup.CaptchaProperty.Builder =
CfnRuleGroup.CaptchaProperty.builder()
/**
* @param customRequestHandling Custom request handling.
*/
public fun customRequestHandling(customRequestHandling: IResolvable) {
cdkBuilder.customRequestHandling(customRequestHandling)
}
/**
* @param customRequestHandling Custom request handling.
*/
public
fun customRequestHandling(customRequestHandling: CfnRuleGroup.CustomRequestHandlingProperty) {
cdkBuilder.customRequestHandling(customRequestHandling)
}
public fun build(): CfnRuleGroup.CaptchaProperty = cdkBuilder.build()
}