public static interface CfnWebACL.ManagedRuleGroupConfigProperty
Use the AWSManagedRulesBotControlRuleSet
configuration object to configure the protection level that you want the Bot Control rule group to use.
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.*; ManagedRuleGroupConfigProperty managedRuleGroupConfigProperty = ManagedRuleGroupConfigProperty.builder() .awsManagedRulesAtpRuleSet(AWSManagedRulesATPRuleSetProperty.builder() .loginPath("loginPath") // the properties below are optional .requestInspection(RequestInspectionProperty.builder() .passwordField(FieldIdentifierProperty.builder() .identifier("identifier") .build()) .payloadType("payloadType") .usernameField(FieldIdentifierProperty.builder() .identifier("identifier") .build()) .build()) .responseInspection(ResponseInspectionProperty.builder() .bodyContains(ResponseInspectionBodyContainsProperty.builder() .failureStrings(List.of("failureStrings")) .successStrings(List.of("successStrings")) .build()) .header(ResponseInspectionHeaderProperty.builder() .failureValues(List.of("failureValues")) .name("name") .successValues(List.of("successValues")) .build()) .json(ResponseInspectionJsonProperty.builder() .failureValues(List.of("failureValues")) .identifier("identifier") .successValues(List.of("successValues")) .build()) .statusCode(ResponseInspectionStatusCodeProperty.builder() .failureCodes(List.of(123)) .successCodes(List.of(123)) .build()) .build()) .build()) .awsManagedRulesBotControlRuleSet(AWSManagedRulesBotControlRuleSetProperty.builder() .inspectionLevel("inspectionLevel") .build()) .loginPath("loginPath") .passwordField(FieldIdentifierProperty.builder() .identifier("identifier") .build()) .payloadType("payloadType") .usernameField(FieldIdentifierProperty.builder() .identifier("identifier") .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnWebACL.ManagedRuleGroupConfigProperty.Builder
A builder for
CfnWebACL.ManagedRuleGroupConfigProperty |
static class |
CfnWebACL.ManagedRuleGroupConfigProperty.Jsii$Proxy
An implementation for
CfnWebACL.ManagedRuleGroupConfigProperty |
Modifier and Type | Method and Description |
---|---|
static CfnWebACL.ManagedRuleGroupConfigProperty.Builder |
builder() |
default java.lang.Object |
getAwsManagedRulesAtpRuleSet()
Additional configuration for using the account takeover prevention (ATP) managed rule group, `AWSManagedRulesATPRuleSet` .
|
default java.lang.Object |
getAwsManagedRulesBotControlRuleSet()
Additional configuration for using the Bot Control managed rule group.
|
default java.lang.String |
getLoginPath()
> Instead of this setting, provide your configuration under `AWSManagedRulesATPRuleSet` .
|
default java.lang.Object |
getPasswordField()
> Instead of this setting, provide your configuration under `AWSManagedRulesATPRuleSet` `RequestInspection` .
|
default java.lang.String |
getPayloadType()
> Instead of this setting, provide your configuration under `AWSManagedRulesATPRuleSet` `RequestInspection` .
|
default java.lang.Object |
getUsernameField()
> Instead of this setting, provide your configuration under `AWSManagedRulesATPRuleSet` `RequestInspection` .
|
default java.lang.Object getAwsManagedRulesAtpRuleSet()
Use this to provide login request information to the rule group. For web ACLs that protect CloudFront distributions, use this to also provide the information about how your distribution responds to login requests.
This configuration replaces the individual configuration fields in ManagedRuleGroupConfig
and provides additional feature configuration.
For information about using the ATP managed rule group, see AWS WAF Fraud Control account takeover prevention (ATP) rule group and AWS WAF Fraud Control account takeover prevention (ATP) in the AWS WAF Developer Guide .
default java.lang.Object getAwsManagedRulesBotControlRuleSet()
Use this to specify the inspection level that you want to use. For information about using the Bot Control managed rule group, see AWS WAF Bot Control rule group and AWS WAF Bot Control in the AWS WAF Developer Guide .
default java.lang.String getLoginPath()
default java.lang.Object getPasswordField()
default java.lang.String getPayloadType()
default java.lang.Object getUsernameField()
static CfnWebACL.ManagedRuleGroupConfigProperty.Builder builder()