Interface WafRule.Builder

All Superinterfaces:
Buildable, CopyableBuilder<WafRule.Builder,WafRule>, SdkBuilder<WafRule.Builder,WafRule>, SdkPojo
Enclosing class:
WafRule

@Mutable @NotThreadSafe public static interface WafRule.Builder extends SdkPojo, CopyableBuilder<WafRule.Builder,WafRule>
  • Method Details

    • name

      WafRule.Builder name(String name)

      The name of the WAF rule group (for example, AWSManagedRulesCommonRuleSet).

      For the WAF rule groups that you can specify for each bundle, see the wafRules parameter of the CreateDistribution action.

      Parameters:
      name - The name of the WAF rule group (for example, AWSManagedRulesCommonRuleSet).

      For the WAF rule groups that you can specify for each bundle, see the wafRules parameter of the CreateDistribution action.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • atpConfig

      WafRule.Builder atpConfig(WafAtpConfig atpConfig)

      An object that describes the configuration of the account takeover prevention rule group.

      Constraints:

      • Define this parameter only when the name is AWSManagedRulesATPRuleSet.

      • This parameter is required when the name is AWSManagedRulesATPRuleSet.

      Parameters:
      atpConfig - An object that describes the configuration of the account takeover prevention rule group.

      Constraints:

      • Define this parameter only when the name is AWSManagedRulesATPRuleSet.

      • This parameter is required when the name is AWSManagedRulesATPRuleSet.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • atpConfig

      default WafRule.Builder atpConfig(Consumer<WafAtpConfig.Builder> atpConfig)

      An object that describes the configuration of the account takeover prevention rule group.

      Constraints:

      • Define this parameter only when the name is AWSManagedRulesATPRuleSet.

      • This parameter is required when the name is AWSManagedRulesATPRuleSet.

      This is a convenience method that creates an instance of the WafAtpConfig.Builder avoiding the need to create one manually via WafAtpConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to atpConfig(WafAtpConfig).

      Parameters:
      atpConfig - a consumer that will call methods on WafAtpConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • acfpConfig

      WafRule.Builder acfpConfig(WafAcfpConfig acfpConfig)

      An object that describes the configuration of the account creation fraud prevention rule group.

      Constraints:

      • Define this parameter only when the name is AWSManagedRulesACFPRuleSet.

      • This parameter is required when the name is AWSManagedRulesACFPRuleSet.

      Parameters:
      acfpConfig - An object that describes the configuration of the account creation fraud prevention rule group.

      Constraints:

      • Define this parameter only when the name is AWSManagedRulesACFPRuleSet.

      • This parameter is required when the name is AWSManagedRulesACFPRuleSet.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • acfpConfig

      default WafRule.Builder acfpConfig(Consumer<WafAcfpConfig.Builder> acfpConfig)

      An object that describes the configuration of the account creation fraud prevention rule group.

      Constraints:

      • Define this parameter only when the name is AWSManagedRulesACFPRuleSet.

      • This parameter is required when the name is AWSManagedRulesACFPRuleSet.

      This is a convenience method that creates an instance of the WafAcfpConfig.Builder avoiding the need to create one manually via WafAcfpConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to acfpConfig(WafAcfpConfig).

      Parameters:
      acfpConfig - a consumer that will call methods on WafAcfpConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • botControlConfig

      WafRule.Builder botControlConfig(WafBotControlConfig botControlConfig)

      An object that describes the configuration of the bot control rule group.

      Constraints:

      • Define this parameter only when the name is AWSManagedRulesBotControlRuleSet.

      • This parameter is required when the name is AWSManagedRulesBotControlRuleSet.

      Parameters:
      botControlConfig - An object that describes the configuration of the bot control rule group.

      Constraints:

      • Define this parameter only when the name is AWSManagedRulesBotControlRuleSet .

      • This parameter is required when the name is AWSManagedRulesBotControlRuleSet .

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • botControlConfig

      default WafRule.Builder botControlConfig(Consumer<WafBotControlConfig.Builder> botControlConfig)

      An object that describes the configuration of the bot control rule group.

      Constraints:

      • Define this parameter only when the name is AWSManagedRulesBotControlRuleSet.

      • This parameter is required when the name is AWSManagedRulesBotControlRuleSet.

      This is a convenience method that creates an instance of the WafBotControlConfig.Builder avoiding the need to create one manually via WafBotControlConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to botControlConfig(WafBotControlConfig).

      Parameters:
      botControlConfig - a consumer that will call methods on WafBotControlConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: