{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.WAFV2.Types.RuleGroup -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.WAFV2.Types.RuleGroup where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude import Amazonka.WAFV2.Types.CustomResponseBody import Amazonka.WAFV2.Types.LabelSummary import Amazonka.WAFV2.Types.Rule import Amazonka.WAFV2.Types.VisibilityConfig -- | A rule group defines a collection of rules to inspect and control web -- requests that you can use in a WebACL. When you create a rule group, you -- define an immutable capacity limit. If you update a rule group, you must -- stay within the capacity. This allows others to reuse the rule group -- with confidence in its capacity requirements. -- -- /See:/ 'newRuleGroup' smart constructor. data RuleGroup = RuleGroup' { -- | The labels that one or more rules in this rule group add to matching web -- requests. These labels are defined in the @RuleLabels@ for a Rule. availableLabels :: Prelude.Maybe [LabelSummary], -- | The labels that one or more rules in this rule group match against in -- label match statements. These labels are defined in a -- @LabelMatchStatement@ specification, in the Statement definition of a -- rule. consumedLabels :: Prelude.Maybe [LabelSummary], -- | A map of custom response keys and content bodies. When you create a rule -- with a block action, you can send a custom response to the web request. -- You define these for the rule group, and then use them in the rules that -- you define in the rule group. -- -- For information about customizing web requests and responses, see -- -- in the -- . -- -- For information about the limits on count and size for custom request -- and response settings, see -- -- in the -- . customResponseBodies :: Prelude.Maybe (Prelude.HashMap Prelude.Text CustomResponseBody), -- | A description of the rule group that helps with identification. description :: Prelude.Maybe Prelude.Text, -- | The label namespace prefix for this rule group. All labels added by -- rules in this rule group have this prefix. -- -- - The syntax for the label namespace prefix for your rule groups is -- the following: -- -- @awswaf:\:rulegroup:\:@ -- -- - When a rule with a label matches a web request, WAF adds the fully -- qualified label to the request. A fully qualified label is made up -- of the label namespace from the rule group or web ACL where the rule -- is defined and the label from the rule, separated by a colon: -- -- @\