RuleGroupRuleActionBlockCustomResponse constructor

const RuleGroupRuleActionBlockCustomResponse({
  1. Input<String?>? customResponseBodyKey,
  2. required Input<int> responseCode,
  3. Input<List<RuleGroupRuleActionBlockCustomResponseResponseHeader>?>? responseHeaders,
})

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,
});