When manually configuring WAF rules, users can configure custom responses for rule types like size_constraint. The Terraform resources on which this is based also seems to support this, but the configuration hasn't been extended out to this module.
The field is already configurable for rule_group_reference_statement_rules.rule_action_override.custom_response and managed_rule_group_statement_rules.rule_action_override.custom_response.
Expected Behavior
The custom_response block that already exists should be extended to other rule types where it is support by AWS and the underlying Terraform resources.
Use Case
I would like to provide a contextual error message to consumers of my API when the request size is too large.
Describe Ideal Solution
The custom_response block that already exists should be extended to other rule types where it is support by AWS and the underlying Terraform resources.
Describe the Feature
When manually configuring WAF rules, users can configure custom responses for rule types like
size_constraint
. The Terraform resources on which this is based also seems to support this, but the configuration hasn't been extended out to this module.The field is already configurable for
rule_group_reference_statement_rules.rule_action_override.custom_response
andmanaged_rule_group_statement_rules.rule_action_override.custom_response
.Expected Behavior
The
custom_response
block that already exists should be extended to other rule types where it is support by AWS and the underlying Terraform resources.Use Case
I would like to provide a contextual error message to consumers of my API when the request size is too large.
Describe Ideal Solution
The
custom_response
block that already exists should be extended to other rule types where it is support by AWS and the underlying Terraform resources.Alternatives Considered
No response
Additional Context
No response