RuleGroupRuleActionBlockCustomResponse constructor
const
RuleGroupRuleActionBlockCustomResponse({
- Input<
String?> ? customResponseBodyKey, - required Input<
int> responseCode, - Input<
List< ? responseHeaders,RuleGroupRuleActionBlockCustomResponseResponseHeader> ?>
Creates a new RuleGroupRuleActionBlockCustomResponse.
customResponseBodyKey References the response body that you want AWS WAF to return to the web request client. This must reference a key defined in a customResponseBody block of this resource.
responseCode The HTTP status code to return to the client.
responseHeaders The responseHeader blocks used to define the HTTP response headers added to the response. See Custom HTTP Header below for details.
Implementation
const RuleGroupRuleActionBlockCustomResponse({
this.customResponseBodyKey,
required this.responseCode,
this.responseHeaders,
});