Interface UpdateWebAclRequest.Builder

  • Method Details

    • webACLId

      UpdateWebAclRequest.Builder webACLId(String webACLId)

      The WebACLId of the WebACL that you want to update. WebACLId is returned by CreateWebACL and by ListWebACLs.

      Parameters:
      webACLId - The WebACLId of the WebACL that you want to update. WebACLId is returned by CreateWebACL and by ListWebACLs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • changeToken

      UpdateWebAclRequest.Builder changeToken(String changeToken)

      The value returned by the most recent call to GetChangeToken.

      Parameters:
      changeToken - The value returned by the most recent call to GetChangeToken.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updates

      An array of updates to make to the WebACL.

      An array of WebACLUpdate objects that you want to insert into or delete from a WebACL. For more information, see the applicable data types:

      • WebACLUpdate: Contains Action and ActivatedRule

      • ActivatedRule: Contains Action, OverrideAction, Priority, RuleId, and Type. ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a WebACL. In this case, you do not use ActivatedRule|Action. For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction.

      • WafAction: Contains Type

      Parameters:
      updates - An array of updates to make to the WebACL.

      An array of WebACLUpdate objects that you want to insert into or delete from a WebACL. For more information, see the applicable data types:

      • WebACLUpdate: Contains Action and ActivatedRule

      • ActivatedRule: Contains Action, OverrideAction, Priority, RuleId, and Type. ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a WebACL. In this case, you do not use ActivatedRule|Action. For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction.

      • WafAction: Contains Type

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

      An array of updates to make to the WebACL.

      An array of WebACLUpdate objects that you want to insert into or delete from a WebACL. For more information, see the applicable data types:

      • WebACLUpdate: Contains Action and ActivatedRule

      • ActivatedRule: Contains Action, OverrideAction, Priority, RuleId, and Type. ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a WebACL. In this case, you do not use ActivatedRule|Action. For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction.

      • WafAction: Contains Type

      Parameters:
      updates - An array of updates to make to the WebACL.

      An array of WebACLUpdate objects that you want to insert into or delete from a WebACL. For more information, see the applicable data types:

      • WebACLUpdate: Contains Action and ActivatedRule

      • ActivatedRule: Contains Action, OverrideAction, Priority, RuleId, and Type. ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a WebACL. In this case, you do not use ActivatedRule|Action. For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction.

      • WafAction: Contains Type

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

      An array of updates to make to the WebACL.

      An array of WebACLUpdate objects that you want to insert into or delete from a WebACL. For more information, see the applicable data types:

      • WebACLUpdate: Contains Action and ActivatedRule

      • ActivatedRule: Contains Action, OverrideAction, Priority, RuleId, and Type. ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a WebACL. In this case, you do not use ActivatedRule|Action. For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction.

      • WafAction: Contains Type

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to updates(List<WebACLUpdate>).

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

      UpdateWebAclRequest.Builder defaultAction(WafAction defaultAction)

      A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn't match the criteria in any of the rules in a web ACL.

      Parameters:
      defaultAction - A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn't match the criteria in any of the rules in a web ACL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaultAction

      default UpdateWebAclRequest.Builder defaultAction(Consumer<WafAction.Builder> defaultAction)

      A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn't match the criteria in any of the rules in a web ACL.

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

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

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

      UpdateWebAclRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.