module Stratosphere.WAFv2.WebACL.DataProtectionConfigProperty (
module Exports, DataProtectionConfigProperty(..),
mkDataProtectionConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAFv2.WebACL.DataProtectProperty as Exports
import Stratosphere.ResourceProperties
data DataProtectionConfigProperty
=
DataProtectionConfigProperty {DataProtectionConfigProperty -> ()
haddock_workaround_ :: (),
DataProtectionConfigProperty -> [DataProtectProperty]
dataProtections :: [DataProtectProperty]}
deriving stock (DataProtectionConfigProperty
-> DataProtectionConfigProperty -> Bool
(DataProtectionConfigProperty
-> DataProtectionConfigProperty -> Bool)
-> (DataProtectionConfigProperty
-> DataProtectionConfigProperty -> Bool)
-> Eq DataProtectionConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataProtectionConfigProperty
-> DataProtectionConfigProperty -> Bool
== :: DataProtectionConfigProperty
-> DataProtectionConfigProperty -> Bool
$c/= :: DataProtectionConfigProperty
-> DataProtectionConfigProperty -> Bool
/= :: DataProtectionConfigProperty
-> DataProtectionConfigProperty -> Bool
Prelude.Eq, Int -> DataProtectionConfigProperty -> ShowS
[DataProtectionConfigProperty] -> ShowS
DataProtectionConfigProperty -> String
(Int -> DataProtectionConfigProperty -> ShowS)
-> (DataProtectionConfigProperty -> String)
-> ([DataProtectionConfigProperty] -> ShowS)
-> Show DataProtectionConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataProtectionConfigProperty -> ShowS
showsPrec :: Int -> DataProtectionConfigProperty -> ShowS
$cshow :: DataProtectionConfigProperty -> String
show :: DataProtectionConfigProperty -> String
$cshowList :: [DataProtectionConfigProperty] -> ShowS
showList :: [DataProtectionConfigProperty] -> ShowS
Prelude.Show)
mkDataProtectionConfigProperty ::
[DataProtectProperty] -> DataProtectionConfigProperty
mkDataProtectionConfigProperty :: [DataProtectProperty] -> DataProtectionConfigProperty
mkDataProtectionConfigProperty [DataProtectProperty]
dataProtections
= DataProtectionConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), dataProtections :: [DataProtectProperty]
dataProtections = [DataProtectProperty]
dataProtections}
instance ToResourceProperties DataProtectionConfigProperty where
toResourceProperties :: DataProtectionConfigProperty -> ResourceProperties
toResourceProperties DataProtectionConfigProperty {[DataProtectProperty]
()
haddock_workaround_ :: DataProtectionConfigProperty -> ()
dataProtections :: DataProtectionConfigProperty -> [DataProtectProperty]
haddock_workaround_ :: ()
dataProtections :: [DataProtectProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFv2::WebACL.DataProtectionConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"DataProtections" Key -> [DataProtectProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [DataProtectProperty]
dataProtections]}
instance JSON.ToJSON DataProtectionConfigProperty where
toJSON :: DataProtectionConfigProperty -> Value
toJSON DataProtectionConfigProperty {[DataProtectProperty]
()
haddock_workaround_ :: DataProtectionConfigProperty -> ()
dataProtections :: DataProtectionConfigProperty -> [DataProtectProperty]
haddock_workaround_ :: ()
dataProtections :: [DataProtectProperty]
..}
= [(Key, Value)] -> Value
JSON.object [Key
"DataProtections" Key -> [DataProtectProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [DataProtectProperty]
dataProtections]
instance Property "DataProtections" DataProtectionConfigProperty where
type PropertyType "DataProtections" DataProtectionConfigProperty = [DataProtectProperty]
set :: PropertyType "DataProtections" DataProtectionConfigProperty
-> DataProtectionConfigProperty -> DataProtectionConfigProperty
set PropertyType "DataProtections" DataProtectionConfigProperty
newValue DataProtectionConfigProperty {[DataProtectProperty]
()
haddock_workaround_ :: DataProtectionConfigProperty -> ()
dataProtections :: DataProtectionConfigProperty -> [DataProtectProperty]
haddock_workaround_ :: ()
dataProtections :: [DataProtectProperty]
..}
= DataProtectionConfigProperty {dataProtections :: [DataProtectProperty]
dataProtections = [DataProtectProperty]
PropertyType "DataProtections" DataProtectionConfigProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}