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