Interface RuleAction.Builder

  • Method Details

    • block

      Instructs WAF to block the web request.

      Parameters:
      block - Instructs WAF to block the web request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • block

      Instructs WAF to block the web request.

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

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

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

      Instructs WAF to allow the web request.

      Parameters:
      allow - Instructs WAF to allow the web request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allow

      Instructs WAF to allow the web request.

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

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

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

      Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.

      Parameters:
      count - Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • count

      Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.

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

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

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

      Instructs WAF to run a CAPTCHA check against the web request.

      Parameters:
      captcha - Instructs WAF to run a CAPTCHA check against the web request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captcha

      Instructs WAF to run a CAPTCHA check against the web request.

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

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

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

      RuleAction.Builder challenge(ChallengeAction challenge)

      Instructs WAF to run a Challenge check against the web request.

      Parameters:
      challenge - Instructs WAF to run a Challenge check against the web request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • challenge

      default RuleAction.Builder challenge(Consumer<ChallengeAction.Builder> challenge)

      Instructs WAF to run a Challenge check against the web request.

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

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

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

      RuleAction.Builder monetize(MonetizeAction monetize)

      Instructs WAF to return an HTTP 402 Payment Required response with a price manifest. The requesting client can complete payment and resubmit the request to gain access. This is a terminating action-requests that do not complete payment are blocked. This action is available only for web ACLs associated with Amazon CloudFront distributions and requires a MonetizationConfig on the web ACL.

      Parameters:
      monetize - Instructs WAF to return an HTTP 402 Payment Required response with a price manifest. The requesting client can complete payment and resubmit the request to gain access. This is a terminating action-requests that do not complete payment are blocked. This action is available only for web ACLs associated with Amazon CloudFront distributions and requires a MonetizationConfig on the web ACL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • monetize

      default RuleAction.Builder monetize(Consumer<MonetizeAction.Builder> monetize)

      Instructs WAF to return an HTTP 402 Payment Required response with a price manifest. The requesting client can complete payment and resubmit the request to gain access. This is a terminating action-requests that do not complete payment are blocked. This action is available only for web ACLs associated with Amazon CloudFront distributions and requires a MonetizationConfig on the web ACL.

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

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

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