module Stratosphere.WAFv2.WebACL.AsnMatchStatementProperty (
module Exports, AsnMatchStatementProperty(..),
mkAsnMatchStatementProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAFv2.WebACL.ForwardedIPConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AsnMatchStatementProperty
=
AsnMatchStatementProperty {AsnMatchStatementProperty -> ()
haddock_workaround_ :: (),
AsnMatchStatementProperty -> Maybe (ValueList Integer)
asnList :: (Prelude.Maybe (ValueList Prelude.Integer)),
AsnMatchStatementProperty -> Maybe ForwardedIPConfigurationProperty
forwardedIPConfig :: (Prelude.Maybe ForwardedIPConfigurationProperty)}
deriving stock (AsnMatchStatementProperty -> AsnMatchStatementProperty -> Bool
(AsnMatchStatementProperty -> AsnMatchStatementProperty -> Bool)
-> (AsnMatchStatementProperty -> AsnMatchStatementProperty -> Bool)
-> Eq AsnMatchStatementProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AsnMatchStatementProperty -> AsnMatchStatementProperty -> Bool
== :: AsnMatchStatementProperty -> AsnMatchStatementProperty -> Bool
$c/= :: AsnMatchStatementProperty -> AsnMatchStatementProperty -> Bool
/= :: AsnMatchStatementProperty -> AsnMatchStatementProperty -> Bool
Prelude.Eq, Int -> AsnMatchStatementProperty -> ShowS
[AsnMatchStatementProperty] -> ShowS
AsnMatchStatementProperty -> String
(Int -> AsnMatchStatementProperty -> ShowS)
-> (AsnMatchStatementProperty -> String)
-> ([AsnMatchStatementProperty] -> ShowS)
-> Show AsnMatchStatementProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AsnMatchStatementProperty -> ShowS
showsPrec :: Int -> AsnMatchStatementProperty -> ShowS
$cshow :: AsnMatchStatementProperty -> String
show :: AsnMatchStatementProperty -> String
$cshowList :: [AsnMatchStatementProperty] -> ShowS
showList :: [AsnMatchStatementProperty] -> ShowS
Prelude.Show)
mkAsnMatchStatementProperty :: AsnMatchStatementProperty
mkAsnMatchStatementProperty :: AsnMatchStatementProperty
mkAsnMatchStatementProperty
= AsnMatchStatementProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), asnList :: Maybe (ValueList Integer)
asnList = Maybe (ValueList Integer)
forall a. Maybe a
Prelude.Nothing,
forwardedIPConfig :: Maybe ForwardedIPConfigurationProperty
forwardedIPConfig = Maybe ForwardedIPConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AsnMatchStatementProperty where
toResourceProperties :: AsnMatchStatementProperty -> ResourceProperties
toResourceProperties AsnMatchStatementProperty {Maybe (ValueList Integer)
Maybe ForwardedIPConfigurationProperty
()
haddock_workaround_ :: AsnMatchStatementProperty -> ()
asnList :: AsnMatchStatementProperty -> Maybe (ValueList Integer)
forwardedIPConfig :: AsnMatchStatementProperty -> Maybe ForwardedIPConfigurationProperty
haddock_workaround_ :: ()
asnList :: Maybe (ValueList Integer)
forwardedIPConfig :: Maybe ForwardedIPConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFv2::WebACL.AsnMatchStatement",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AsnList" (ValueList Integer -> (Key, Value))
-> Maybe (ValueList Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Integer)
asnList,
Key -> ForwardedIPConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ForwardedIPConfig" (ForwardedIPConfigurationProperty -> (Key, Value))
-> Maybe ForwardedIPConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ForwardedIPConfigurationProperty
forwardedIPConfig])}
instance JSON.ToJSON AsnMatchStatementProperty where
toJSON :: AsnMatchStatementProperty -> Value
toJSON AsnMatchStatementProperty {Maybe (ValueList Integer)
Maybe ForwardedIPConfigurationProperty
()
haddock_workaround_ :: AsnMatchStatementProperty -> ()
asnList :: AsnMatchStatementProperty -> Maybe (ValueList Integer)
forwardedIPConfig :: AsnMatchStatementProperty -> Maybe ForwardedIPConfigurationProperty
haddock_workaround_ :: ()
asnList :: Maybe (ValueList Integer)
forwardedIPConfig :: Maybe ForwardedIPConfigurationProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AsnList" (ValueList Integer -> (Key, Value))
-> Maybe (ValueList Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Integer)
asnList,
Key -> ForwardedIPConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ForwardedIPConfig" (ForwardedIPConfigurationProperty -> (Key, Value))
-> Maybe ForwardedIPConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ForwardedIPConfigurationProperty
forwardedIPConfig]))
instance Property "AsnList" AsnMatchStatementProperty where
type PropertyType "AsnList" AsnMatchStatementProperty = ValueList Prelude.Integer
set :: PropertyType "AsnList" AsnMatchStatementProperty
-> AsnMatchStatementProperty -> AsnMatchStatementProperty
set PropertyType "AsnList" AsnMatchStatementProperty
newValue AsnMatchStatementProperty {Maybe (ValueList Integer)
Maybe ForwardedIPConfigurationProperty
()
haddock_workaround_ :: AsnMatchStatementProperty -> ()
asnList :: AsnMatchStatementProperty -> Maybe (ValueList Integer)
forwardedIPConfig :: AsnMatchStatementProperty -> Maybe ForwardedIPConfigurationProperty
haddock_workaround_ :: ()
asnList :: Maybe (ValueList Integer)
forwardedIPConfig :: Maybe ForwardedIPConfigurationProperty
..}
= AsnMatchStatementProperty {asnList :: Maybe (ValueList Integer)
asnList = ValueList Integer -> Maybe (ValueList Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AsnList" AsnMatchStatementProperty
ValueList Integer
newValue, Maybe ForwardedIPConfigurationProperty
()
haddock_workaround_ :: ()
forwardedIPConfig :: Maybe ForwardedIPConfigurationProperty
haddock_workaround_ :: ()
forwardedIPConfig :: Maybe ForwardedIPConfigurationProperty
..}
instance Property "ForwardedIPConfig" AsnMatchStatementProperty where
type PropertyType "ForwardedIPConfig" AsnMatchStatementProperty = ForwardedIPConfigurationProperty
set :: PropertyType "ForwardedIPConfig" AsnMatchStatementProperty
-> AsnMatchStatementProperty -> AsnMatchStatementProperty
set PropertyType "ForwardedIPConfig" AsnMatchStatementProperty
newValue AsnMatchStatementProperty {Maybe (ValueList Integer)
Maybe ForwardedIPConfigurationProperty
()
haddock_workaround_ :: AsnMatchStatementProperty -> ()
asnList :: AsnMatchStatementProperty -> Maybe (ValueList Integer)
forwardedIPConfig :: AsnMatchStatementProperty -> Maybe ForwardedIPConfigurationProperty
haddock_workaround_ :: ()
asnList :: Maybe (ValueList Integer)
forwardedIPConfig :: Maybe ForwardedIPConfigurationProperty
..}
= AsnMatchStatementProperty
{forwardedIPConfig :: Maybe ForwardedIPConfigurationProperty
forwardedIPConfig = ForwardedIPConfigurationProperty
-> Maybe ForwardedIPConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ForwardedIPConfig" AsnMatchStatementProperty
ForwardedIPConfigurationProperty
newValue, Maybe (ValueList Integer)
()
haddock_workaround_ :: ()
asnList :: Maybe (ValueList Integer)
haddock_workaround_ :: ()
asnList :: Maybe (ValueList Integer)
..}