AwsWafv2CustomResponseDetails - Amazon Security Hub
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


A custom response to send to the client. You can define a custom response for rule actions and default web ACL actions that are set to block.



References the response body that you want Amazon 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.

Type: String

Pattern: .*\S.*

Required: No


The HTTP status code to return to the client. For a list of status codes that you can use in your custom responses, see Supported status codes for custom response in the Amazon WAF Developer Guide.

Type: Integer

Required: No


The HTTP headers to use in the response.

Type: Array of AwsWafv2CustomHttpHeader objects

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: