module Stratosphere.WAFv2.WebACL.AWSManagedRulesACFPRuleSetProperty (
module Exports, AWSManagedRulesACFPRuleSetProperty(..),
mkAWSManagedRulesACFPRuleSetProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAFv2.WebACL.RequestInspectionACFPProperty as Exports
import {-# SOURCE #-} Stratosphere.WAFv2.WebACL.ResponseInspectionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AWSManagedRulesACFPRuleSetProperty
=
AWSManagedRulesACFPRuleSetProperty {AWSManagedRulesACFPRuleSetProperty -> ()
haddock_workaround_ :: (),
AWSManagedRulesACFPRuleSetProperty -> Value Text
creationPath :: (Value Prelude.Text),
AWSManagedRulesACFPRuleSetProperty -> Maybe (Value Bool)
enableRegexInPath :: (Prelude.Maybe (Value Prelude.Bool)),
AWSManagedRulesACFPRuleSetProperty -> Value Text
registrationPagePath :: (Value Prelude.Text),
AWSManagedRulesACFPRuleSetProperty -> RequestInspectionACFPProperty
requestInspection :: RequestInspectionACFPProperty,
AWSManagedRulesACFPRuleSetProperty
-> Maybe ResponseInspectionProperty
responseInspection :: (Prelude.Maybe ResponseInspectionProperty)}
deriving stock (AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty -> Bool
(AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty -> Bool)
-> (AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty -> Bool)
-> Eq AWSManagedRulesACFPRuleSetProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty -> Bool
== :: AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty -> Bool
$c/= :: AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty -> Bool
/= :: AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty -> Bool
Prelude.Eq, Int -> AWSManagedRulesACFPRuleSetProperty -> ShowS
[AWSManagedRulesACFPRuleSetProperty] -> ShowS
AWSManagedRulesACFPRuleSetProperty -> String
(Int -> AWSManagedRulesACFPRuleSetProperty -> ShowS)
-> (AWSManagedRulesACFPRuleSetProperty -> String)
-> ([AWSManagedRulesACFPRuleSetProperty] -> ShowS)
-> Show AWSManagedRulesACFPRuleSetProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AWSManagedRulesACFPRuleSetProperty -> ShowS
showsPrec :: Int -> AWSManagedRulesACFPRuleSetProperty -> ShowS
$cshow :: AWSManagedRulesACFPRuleSetProperty -> String
show :: AWSManagedRulesACFPRuleSetProperty -> String
$cshowList :: [AWSManagedRulesACFPRuleSetProperty] -> ShowS
showList :: [AWSManagedRulesACFPRuleSetProperty] -> ShowS
Prelude.Show)
mkAWSManagedRulesACFPRuleSetProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> RequestInspectionACFPProperty
-> AWSManagedRulesACFPRuleSetProperty
mkAWSManagedRulesACFPRuleSetProperty :: Value Text
-> Value Text
-> RequestInspectionACFPProperty
-> AWSManagedRulesACFPRuleSetProperty
mkAWSManagedRulesACFPRuleSetProperty
Value Text
creationPath
Value Text
registrationPagePath
RequestInspectionACFPProperty
requestInspection
= AWSManagedRulesACFPRuleSetProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), creationPath :: Value Text
creationPath = Value Text
creationPath,
registrationPagePath :: Value Text
registrationPagePath = Value Text
registrationPagePath,
requestInspection :: RequestInspectionACFPProperty
requestInspection = RequestInspectionACFPProperty
requestInspection,
enableRegexInPath :: Maybe (Value Bool)
enableRegexInPath = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
responseInspection :: Maybe ResponseInspectionProperty
responseInspection = Maybe ResponseInspectionProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AWSManagedRulesACFPRuleSetProperty where
toResourceProperties :: AWSManagedRulesACFPRuleSetProperty -> ResourceProperties
toResourceProperties AWSManagedRulesACFPRuleSetProperty {Maybe (Value Bool)
Maybe ResponseInspectionProperty
()
Value Text
RequestInspectionACFPProperty
haddock_workaround_ :: AWSManagedRulesACFPRuleSetProperty -> ()
creationPath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
enableRegexInPath :: AWSManagedRulesACFPRuleSetProperty -> Maybe (Value Bool)
registrationPagePath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
requestInspection :: AWSManagedRulesACFPRuleSetProperty -> RequestInspectionACFPProperty
responseInspection :: AWSManagedRulesACFPRuleSetProperty
-> Maybe ResponseInspectionProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFv2::WebACL.AWSManagedRulesACFPRuleSet",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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
"CreationPath" 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
creationPath,
Key
"RegistrationPagePath" 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
registrationPagePath,
Key
"RequestInspection" Key -> RequestInspectionACFPProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= RequestInspectionACFPProperty
requestInspection]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnableRegexInPath" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enableRegexInPath,
Key -> ResponseInspectionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResponseInspection" (ResponseInspectionProperty -> (Key, Value))
-> Maybe ResponseInspectionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ResponseInspectionProperty
responseInspection]))}
instance JSON.ToJSON AWSManagedRulesACFPRuleSetProperty where
toJSON :: AWSManagedRulesACFPRuleSetProperty -> Value
toJSON AWSManagedRulesACFPRuleSetProperty {Maybe (Value Bool)
Maybe ResponseInspectionProperty
()
Value Text
RequestInspectionACFPProperty
haddock_workaround_ :: AWSManagedRulesACFPRuleSetProperty -> ()
creationPath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
enableRegexInPath :: AWSManagedRulesACFPRuleSetProperty -> Maybe (Value Bool)
registrationPagePath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
requestInspection :: AWSManagedRulesACFPRuleSetProperty -> RequestInspectionACFPProperty
responseInspection :: AWSManagedRulesACFPRuleSetProperty
-> Maybe ResponseInspectionProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
..}
= [(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
"CreationPath" 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
creationPath,
Key
"RegistrationPagePath" 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
registrationPagePath,
Key
"RequestInspection" Key -> RequestInspectionACFPProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= RequestInspectionACFPProperty
requestInspection]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnableRegexInPath" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enableRegexInPath,
Key -> ResponseInspectionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResponseInspection" (ResponseInspectionProperty -> (Key, Value))
-> Maybe ResponseInspectionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ResponseInspectionProperty
responseInspection])))
instance Property "CreationPath" AWSManagedRulesACFPRuleSetProperty where
type PropertyType "CreationPath" AWSManagedRulesACFPRuleSetProperty = Value Prelude.Text
set :: PropertyType "CreationPath" AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty
set PropertyType "CreationPath" AWSManagedRulesACFPRuleSetProperty
newValue AWSManagedRulesACFPRuleSetProperty {Maybe (Value Bool)
Maybe ResponseInspectionProperty
()
Value Text
RequestInspectionACFPProperty
haddock_workaround_ :: AWSManagedRulesACFPRuleSetProperty -> ()
creationPath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
enableRegexInPath :: AWSManagedRulesACFPRuleSetProperty -> Maybe (Value Bool)
registrationPagePath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
requestInspection :: AWSManagedRulesACFPRuleSetProperty -> RequestInspectionACFPProperty
responseInspection :: AWSManagedRulesACFPRuleSetProperty
-> Maybe ResponseInspectionProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
..}
= AWSManagedRulesACFPRuleSetProperty {creationPath :: Value Text
creationPath = PropertyType "CreationPath" AWSManagedRulesACFPRuleSetProperty
Value Text
newValue, Maybe (Value Bool)
Maybe ResponseInspectionProperty
()
Value Text
RequestInspectionACFPProperty
haddock_workaround_ :: ()
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
haddock_workaround_ :: ()
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
..}
instance Property "EnableRegexInPath" AWSManagedRulesACFPRuleSetProperty where
type PropertyType "EnableRegexInPath" AWSManagedRulesACFPRuleSetProperty = Value Prelude.Bool
set :: PropertyType "EnableRegexInPath" AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty
set PropertyType "EnableRegexInPath" AWSManagedRulesACFPRuleSetProperty
newValue AWSManagedRulesACFPRuleSetProperty {Maybe (Value Bool)
Maybe ResponseInspectionProperty
()
Value Text
RequestInspectionACFPProperty
haddock_workaround_ :: AWSManagedRulesACFPRuleSetProperty -> ()
creationPath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
enableRegexInPath :: AWSManagedRulesACFPRuleSetProperty -> Maybe (Value Bool)
registrationPagePath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
requestInspection :: AWSManagedRulesACFPRuleSetProperty -> RequestInspectionACFPProperty
responseInspection :: AWSManagedRulesACFPRuleSetProperty
-> Maybe ResponseInspectionProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
..}
= AWSManagedRulesACFPRuleSetProperty
{enableRegexInPath :: Maybe (Value Bool)
enableRegexInPath = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EnableRegexInPath" AWSManagedRulesACFPRuleSetProperty
Value Bool
newValue, Maybe ResponseInspectionProperty
()
Value Text
RequestInspectionACFPProperty
haddock_workaround_ :: ()
creationPath :: Value Text
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
haddock_workaround_ :: ()
creationPath :: Value Text
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
..}
instance Property "RegistrationPagePath" AWSManagedRulesACFPRuleSetProperty where
type PropertyType "RegistrationPagePath" AWSManagedRulesACFPRuleSetProperty = Value Prelude.Text
set :: PropertyType
"RegistrationPagePath" AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty
set PropertyType
"RegistrationPagePath" AWSManagedRulesACFPRuleSetProperty
newValue AWSManagedRulesACFPRuleSetProperty {Maybe (Value Bool)
Maybe ResponseInspectionProperty
()
Value Text
RequestInspectionACFPProperty
haddock_workaround_ :: AWSManagedRulesACFPRuleSetProperty -> ()
creationPath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
enableRegexInPath :: AWSManagedRulesACFPRuleSetProperty -> Maybe (Value Bool)
registrationPagePath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
requestInspection :: AWSManagedRulesACFPRuleSetProperty -> RequestInspectionACFPProperty
responseInspection :: AWSManagedRulesACFPRuleSetProperty
-> Maybe ResponseInspectionProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
..}
= AWSManagedRulesACFPRuleSetProperty
{registrationPagePath :: Value Text
registrationPagePath = PropertyType
"RegistrationPagePath" AWSManagedRulesACFPRuleSetProperty
Value Text
newValue, Maybe (Value Bool)
Maybe ResponseInspectionProperty
()
Value Text
RequestInspectionACFPProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
..}
instance Property "RequestInspection" AWSManagedRulesACFPRuleSetProperty where
type PropertyType "RequestInspection" AWSManagedRulesACFPRuleSetProperty = RequestInspectionACFPProperty
set :: PropertyType "RequestInspection" AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty
set PropertyType "RequestInspection" AWSManagedRulesACFPRuleSetProperty
newValue AWSManagedRulesACFPRuleSetProperty {Maybe (Value Bool)
Maybe ResponseInspectionProperty
()
Value Text
RequestInspectionACFPProperty
haddock_workaround_ :: AWSManagedRulesACFPRuleSetProperty -> ()
creationPath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
enableRegexInPath :: AWSManagedRulesACFPRuleSetProperty -> Maybe (Value Bool)
registrationPagePath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
requestInspection :: AWSManagedRulesACFPRuleSetProperty -> RequestInspectionACFPProperty
responseInspection :: AWSManagedRulesACFPRuleSetProperty
-> Maybe ResponseInspectionProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
..}
= AWSManagedRulesACFPRuleSetProperty
{requestInspection :: RequestInspectionACFPProperty
requestInspection = PropertyType "RequestInspection" AWSManagedRulesACFPRuleSetProperty
RequestInspectionACFPProperty
newValue, Maybe (Value Bool)
Maybe ResponseInspectionProperty
()
Value Text
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
responseInspection :: Maybe ResponseInspectionProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
responseInspection :: Maybe ResponseInspectionProperty
..}
instance Property "ResponseInspection" AWSManagedRulesACFPRuleSetProperty where
type PropertyType "ResponseInspection" AWSManagedRulesACFPRuleSetProperty = ResponseInspectionProperty
set :: PropertyType
"ResponseInspection" AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty
-> AWSManagedRulesACFPRuleSetProperty
set PropertyType
"ResponseInspection" AWSManagedRulesACFPRuleSetProperty
newValue AWSManagedRulesACFPRuleSetProperty {Maybe (Value Bool)
Maybe ResponseInspectionProperty
()
Value Text
RequestInspectionACFPProperty
haddock_workaround_ :: AWSManagedRulesACFPRuleSetProperty -> ()
creationPath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
enableRegexInPath :: AWSManagedRulesACFPRuleSetProperty -> Maybe (Value Bool)
registrationPagePath :: AWSManagedRulesACFPRuleSetProperty -> Value Text
requestInspection :: AWSManagedRulesACFPRuleSetProperty -> RequestInspectionACFPProperty
responseInspection :: AWSManagedRulesACFPRuleSetProperty
-> Maybe ResponseInspectionProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
responseInspection :: Maybe ResponseInspectionProperty
..}
= AWSManagedRulesACFPRuleSetProperty
{responseInspection :: Maybe ResponseInspectionProperty
responseInspection = ResponseInspectionProperty -> Maybe ResponseInspectionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ResponseInspection" AWSManagedRulesACFPRuleSetProperty
ResponseInspectionProperty
newValue, Maybe (Value Bool)
()
Value Text
RequestInspectionACFPProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
haddock_workaround_ :: ()
creationPath :: Value Text
enableRegexInPath :: Maybe (Value Bool)
registrationPagePath :: Value Text
requestInspection :: RequestInspectionACFPProperty
..}