Interface AwsWafv2CustomResponseDetails.Builder

    • Method Detail

      • customResponseBodyKey

        AwsWafv2CustomResponseDetails.Builder customResponseBodyKey​(String customResponseBodyKey)

        References the response body that you want WAF to return to the web request client. You can define a custom response for a rule action or a default web ACL action that is set to block.

        Parameters:
        customResponseBodyKey - References the response body that you want WAF to return to the web request client. You can define a custom response for a rule action or a default web ACL action that is set to block.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • responseHeaders

        AwsWafv2CustomResponseDetails.Builder responseHeaders​(AwsWafv2CustomHttpHeader... responseHeaders)

        The HTTP headers to use in the response.

        Parameters:
        responseHeaders - The HTTP headers to use in the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.