module Stratosphere.WAFv2.RuleGroup (
module Exports, RuleGroup(..), mkRuleGroup
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.CustomResponseBodyProperty as Exports
import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.LabelSummaryProperty as Exports
import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.RuleProperty as Exports
import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.VisibilityConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data RuleGroup
=
RuleGroup {RuleGroup -> ()
haddock_workaround_ :: (),
RuleGroup -> Maybe [LabelSummaryProperty]
availableLabels :: (Prelude.Maybe [LabelSummaryProperty]),
RuleGroup -> Value Integer
capacity :: (Value Prelude.Integer),
RuleGroup -> Maybe [LabelSummaryProperty]
consumedLabels :: (Prelude.Maybe [LabelSummaryProperty]),
RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
customResponseBodies :: (Prelude.Maybe (Prelude.Map Prelude.Text CustomResponseBodyProperty)),
RuleGroup -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
RuleGroup -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
RuleGroup -> Maybe [RuleProperty]
rules :: (Prelude.Maybe [RuleProperty]),
RuleGroup -> Value Text
scope :: (Value Prelude.Text),
RuleGroup -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
RuleGroup -> VisibilityConfigProperty
visibilityConfig :: VisibilityConfigProperty}
deriving stock (RuleGroup -> RuleGroup -> Bool
(RuleGroup -> RuleGroup -> Bool)
-> (RuleGroup -> RuleGroup -> Bool) -> Eq RuleGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RuleGroup -> RuleGroup -> Bool
== :: RuleGroup -> RuleGroup -> Bool
$c/= :: RuleGroup -> RuleGroup -> Bool
/= :: RuleGroup -> RuleGroup -> Bool
Prelude.Eq, Int -> RuleGroup -> ShowS
[RuleGroup] -> ShowS
RuleGroup -> String
(Int -> RuleGroup -> ShowS)
-> (RuleGroup -> String)
-> ([RuleGroup] -> ShowS)
-> Show RuleGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RuleGroup -> ShowS
showsPrec :: Int -> RuleGroup -> ShowS
$cshow :: RuleGroup -> String
show :: RuleGroup -> String
$cshowList :: [RuleGroup] -> ShowS
showList :: [RuleGroup] -> ShowS
Prelude.Show)
mkRuleGroup ::
Value Prelude.Integer
-> Value Prelude.Text -> VisibilityConfigProperty -> RuleGroup
mkRuleGroup :: Value Integer
-> Value Text -> VisibilityConfigProperty -> RuleGroup
mkRuleGroup Value Integer
capacity Value Text
scope VisibilityConfigProperty
visibilityConfig
= RuleGroup
{haddock_workaround_ :: ()
haddock_workaround_ = (), capacity :: Value Integer
capacity = Value Integer
capacity, scope :: Value Text
scope = Value Text
scope,
visibilityConfig :: VisibilityConfigProperty
visibilityConfig = VisibilityConfigProperty
visibilityConfig,
availableLabels :: Maybe [LabelSummaryProperty]
availableLabels = Maybe [LabelSummaryProperty]
forall a. Maybe a
Prelude.Nothing,
consumedLabels :: Maybe [LabelSummaryProperty]
consumedLabels = Maybe [LabelSummaryProperty]
forall a. Maybe a
Prelude.Nothing,
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
customResponseBodies = Maybe (Map Text CustomResponseBodyProperty)
forall a. Maybe a
Prelude.Nothing,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
rules :: Maybe [RuleProperty]
rules = Maybe [RuleProperty]
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RuleGroup where
toResourceProperties :: RuleGroup -> ResourceProperties
toResourceProperties RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFv2::RuleGroup", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Capacity" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
capacity, Key
"Scope" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
scope,
Key
"VisibilityConfig" Key -> VisibilityConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= VisibilityConfigProperty
visibilityConfig]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [LabelSummaryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AvailableLabels" ([LabelSummaryProperty] -> (Key, Value))
-> Maybe [LabelSummaryProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LabelSummaryProperty]
availableLabels,
Key -> [LabelSummaryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConsumedLabels" ([LabelSummaryProperty] -> (Key, Value))
-> Maybe [LabelSummaryProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LabelSummaryProperty]
consumedLabels,
Key -> Map Text CustomResponseBodyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomResponseBodies" (Map Text CustomResponseBodyProperty -> (Key, Value))
-> Maybe (Map Text CustomResponseBodyProperty)
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text CustomResponseBodyProperty)
customResponseBodies,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name,
Key -> [RuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Rules" ([RuleProperty] -> (Key, Value))
-> Maybe [RuleProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RuleProperty]
rules,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON RuleGroup where
toJSON :: RuleGroup -> Value
toJSON RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Capacity" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
capacity, Key
"Scope" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
scope,
Key
"VisibilityConfig" Key -> VisibilityConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= VisibilityConfigProperty
visibilityConfig]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [LabelSummaryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AvailableLabels" ([LabelSummaryProperty] -> (Key, Value))
-> Maybe [LabelSummaryProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LabelSummaryProperty]
availableLabels,
Key -> [LabelSummaryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConsumedLabels" ([LabelSummaryProperty] -> (Key, Value))
-> Maybe [LabelSummaryProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LabelSummaryProperty]
consumedLabels,
Key -> Map Text CustomResponseBodyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomResponseBodies" (Map Text CustomResponseBodyProperty -> (Key, Value))
-> Maybe (Map Text CustomResponseBodyProperty)
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text CustomResponseBodyProperty)
customResponseBodies,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name,
Key -> [RuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Rules" ([RuleProperty] -> (Key, Value))
-> Maybe [RuleProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RuleProperty]
rules,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "AvailableLabels" RuleGroup where
type PropertyType "AvailableLabels" RuleGroup = [LabelSummaryProperty]
set :: PropertyType "AvailableLabels" RuleGroup -> RuleGroup -> RuleGroup
set PropertyType "AvailableLabels" RuleGroup
newValue RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
= RuleGroup {availableLabels :: Maybe [LabelSummaryProperty]
availableLabels = [LabelSummaryProperty] -> Maybe [LabelSummaryProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [LabelSummaryProperty]
PropertyType "AvailableLabels" RuleGroup
newValue, Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: ()
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
haddock_workaround_ :: ()
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
instance Property "Capacity" RuleGroup where
type PropertyType "Capacity" RuleGroup = Value Prelude.Integer
set :: PropertyType "Capacity" RuleGroup -> RuleGroup -> RuleGroup
set PropertyType "Capacity" RuleGroup
newValue RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..} = RuleGroup {capacity :: Value Integer
capacity = PropertyType "Capacity" RuleGroup
Value Integer
newValue, Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Text
VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
instance Property "ConsumedLabels" RuleGroup where
type PropertyType "ConsumedLabels" RuleGroup = [LabelSummaryProperty]
set :: PropertyType "ConsumedLabels" RuleGroup -> RuleGroup -> RuleGroup
set PropertyType "ConsumedLabels" RuleGroup
newValue RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
= RuleGroup {consumedLabels :: Maybe [LabelSummaryProperty]
consumedLabels = [LabelSummaryProperty] -> Maybe [LabelSummaryProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [LabelSummaryProperty]
PropertyType "ConsumedLabels" RuleGroup
newValue, Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
instance Property "CustomResponseBodies" RuleGroup where
type PropertyType "CustomResponseBodies" RuleGroup = Prelude.Map Prelude.Text CustomResponseBodyProperty
set :: PropertyType "CustomResponseBodies" RuleGroup
-> RuleGroup -> RuleGroup
set PropertyType "CustomResponseBodies" RuleGroup
newValue RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
= RuleGroup {customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
customResponseBodies = Map Text CustomResponseBodyProperty
-> Maybe (Map Text CustomResponseBodyProperty)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text CustomResponseBodyProperty
PropertyType "CustomResponseBodies" RuleGroup
newValue, Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
instance Property "Description" RuleGroup where
type PropertyType "Description" RuleGroup = Value Prelude.Text
set :: PropertyType "Description" RuleGroup -> RuleGroup -> RuleGroup
set PropertyType "Description" RuleGroup
newValue RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
= RuleGroup {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" RuleGroup
Value Text
newValue, Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
instance Property "Name" RuleGroup where
type PropertyType "Name" RuleGroup = Value Prelude.Text
set :: PropertyType "Name" RuleGroup -> RuleGroup -> RuleGroup
set PropertyType "Name" RuleGroup
newValue RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
= RuleGroup {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" RuleGroup
Value Text
newValue, Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
instance Property "Rules" RuleGroup where
type PropertyType "Rules" RuleGroup = [RuleProperty]
set :: PropertyType "Rules" RuleGroup -> RuleGroup -> RuleGroup
set PropertyType "Rules" RuleGroup
newValue RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
= RuleGroup {rules :: Maybe [RuleProperty]
rules = [RuleProperty] -> Maybe [RuleProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [RuleProperty]
PropertyType "Rules" RuleGroup
newValue, Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
instance Property "Scope" RuleGroup where
type PropertyType "Scope" RuleGroup = Value Prelude.Text
set :: PropertyType "Scope" RuleGroup -> RuleGroup -> RuleGroup
set PropertyType "Scope" RuleGroup
newValue RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..} = RuleGroup {scope :: Value Text
scope = PropertyType "Scope" RuleGroup
Value Text
newValue, Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
instance Property "Tags" RuleGroup where
type PropertyType "Tags" RuleGroup = [Tag]
set :: PropertyType "Tags" RuleGroup -> RuleGroup -> RuleGroup
set PropertyType "Tags" RuleGroup
newValue RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
= RuleGroup {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" RuleGroup
newValue, Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
visibilityConfig :: VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
visibilityConfig :: VisibilityConfigProperty
..}
instance Property "VisibilityConfig" RuleGroup where
type PropertyType "VisibilityConfig" RuleGroup = VisibilityConfigProperty
set :: PropertyType "VisibilityConfig" RuleGroup -> RuleGroup -> RuleGroup
set PropertyType "VisibilityConfig" RuleGroup
newValue RuleGroup {Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
VisibilityConfigProperty
haddock_workaround_ :: RuleGroup -> ()
availableLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
capacity :: RuleGroup -> Value Integer
consumedLabels :: RuleGroup -> Maybe [LabelSummaryProperty]
customResponseBodies :: RuleGroup -> Maybe (Map Text CustomResponseBodyProperty)
description :: RuleGroup -> Maybe (Value Text)
name :: RuleGroup -> Maybe (Value Text)
rules :: RuleGroup -> Maybe [RuleProperty]
scope :: RuleGroup -> Value Text
tags :: RuleGroup -> Maybe [Tag]
visibilityConfig :: RuleGroup -> VisibilityConfigProperty
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
visibilityConfig :: VisibilityConfigProperty
..}
= RuleGroup {visibilityConfig :: VisibilityConfigProperty
visibilityConfig = PropertyType "VisibilityConfig" RuleGroup
VisibilityConfigProperty
newValue, Maybe [Tag]
Maybe [LabelSummaryProperty]
Maybe [RuleProperty]
Maybe (Map Text CustomResponseBodyProperty)
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
availableLabels :: Maybe [LabelSummaryProperty]
capacity :: Value Integer
consumedLabels :: Maybe [LabelSummaryProperty]
customResponseBodies :: Maybe (Map Text CustomResponseBodyProperty)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
scope :: Value Text
tags :: Maybe [Tag]
..}