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