
The custom_request_handling block supports the following arguments: The count block supports the following arguments: The captcha block supports the following arguments: custom_response - (Optional) Defines a custom response for the web request.The block block supports the following arguments: See Custom Request Handling below for details. custom_request_handling - (Optional) Defines custom handling for the web request.The allow block supports the following arguments: One of allow or block, expressed as an empty configuration block. The default_action block supports the following arguments: Valid values are TEXT_PLAIN, TEXT_HTML, or APPLICATION_JSON. content_type - (Required) Type of content in the payload that you are defining in the content argument.content - (Required) Payload of the custom response.This is referenced by the custom_response_body_key argument in the Custom Response block. key - (Required) Unique key identifying the custom response body.See Visibility Configuration below for details.Įach custom_response_body block supports the following arguments: visibility_config - (Required) Defines and enables Amazon CloudWatch metrics and web request sample collection.If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tags - (Optional) Map of key-value pairs to associate with the resource.To work with CloudFront, you must also specify the region us-east-1 (N. scope - (Required) Specifies whether this is for an AWS CloudFront distribution or for a regional application.rule - (Optional) Rule blocks used to identify the web requests that you want to allow, block, or count.name - (Required) Friendly name of the WebACL.description - (Optional) Friendly description of the WebACL.default_action - (Required) Action to perform if none of the rules contained in the WebACL match.

See Custom Response Body below for details. custom_response_body - (Optional) Defines custom response bodies that can be referenced by custom_response actions.
