module Stratosphere.WAFv2.RuleGroup.IPSetReferenceStatementProperty (
module Exports, IPSetReferenceStatementProperty(..),
mkIPSetReferenceStatementProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.IPSetForwardedIPConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IPSetReferenceStatementProperty
=
IPSetReferenceStatementProperty {IPSetReferenceStatementProperty -> ()
haddock_workaround_ :: (),
IPSetReferenceStatementProperty -> Value Text
arn :: (Value Prelude.Text),
IPSetReferenceStatementProperty
-> Maybe IPSetForwardedIPConfigurationProperty
iPSetForwardedIPConfig :: (Prelude.Maybe IPSetForwardedIPConfigurationProperty)}
deriving stock (IPSetReferenceStatementProperty
-> IPSetReferenceStatementProperty -> Bool
(IPSetReferenceStatementProperty
-> IPSetReferenceStatementProperty -> Bool)
-> (IPSetReferenceStatementProperty
-> IPSetReferenceStatementProperty -> Bool)
-> Eq IPSetReferenceStatementProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IPSetReferenceStatementProperty
-> IPSetReferenceStatementProperty -> Bool
== :: IPSetReferenceStatementProperty
-> IPSetReferenceStatementProperty -> Bool
$c/= :: IPSetReferenceStatementProperty
-> IPSetReferenceStatementProperty -> Bool
/= :: IPSetReferenceStatementProperty
-> IPSetReferenceStatementProperty -> Bool
Prelude.Eq, Int -> IPSetReferenceStatementProperty -> ShowS
[IPSetReferenceStatementProperty] -> ShowS
IPSetReferenceStatementProperty -> String
(Int -> IPSetReferenceStatementProperty -> ShowS)
-> (IPSetReferenceStatementProperty -> String)
-> ([IPSetReferenceStatementProperty] -> ShowS)
-> Show IPSetReferenceStatementProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IPSetReferenceStatementProperty -> ShowS
showsPrec :: Int -> IPSetReferenceStatementProperty -> ShowS
$cshow :: IPSetReferenceStatementProperty -> String
show :: IPSetReferenceStatementProperty -> String
$cshowList :: [IPSetReferenceStatementProperty] -> ShowS
showList :: [IPSetReferenceStatementProperty] -> ShowS
Prelude.Show)
mkIPSetReferenceStatementProperty ::
Value Prelude.Text -> IPSetReferenceStatementProperty
mkIPSetReferenceStatementProperty :: Value Text -> IPSetReferenceStatementProperty
mkIPSetReferenceStatementProperty Value Text
arn
= IPSetReferenceStatementProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), arn :: Value Text
arn = Value Text
arn,
iPSetForwardedIPConfig :: Maybe IPSetForwardedIPConfigurationProperty
iPSetForwardedIPConfig = Maybe IPSetForwardedIPConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IPSetReferenceStatementProperty where
toResourceProperties :: IPSetReferenceStatementProperty -> ResourceProperties
toResourceProperties IPSetReferenceStatementProperty {Maybe IPSetForwardedIPConfigurationProperty
()
Value Text
haddock_workaround_ :: IPSetReferenceStatementProperty -> ()
arn :: IPSetReferenceStatementProperty -> Value Text
iPSetForwardedIPConfig :: IPSetReferenceStatementProperty
-> Maybe IPSetForwardedIPConfigurationProperty
haddock_workaround_ :: ()
arn :: Value Text
iPSetForwardedIPConfig :: Maybe IPSetForwardedIPConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFv2::RuleGroup.IPSetReferenceStatement",
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
"Arn" 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
arn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> IPSetForwardedIPConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IPSetForwardedIPConfig"
(IPSetForwardedIPConfigurationProperty -> (Key, Value))
-> Maybe IPSetForwardedIPConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IPSetForwardedIPConfigurationProperty
iPSetForwardedIPConfig]))}
instance JSON.ToJSON IPSetReferenceStatementProperty where
toJSON :: IPSetReferenceStatementProperty -> Value
toJSON IPSetReferenceStatementProperty {Maybe IPSetForwardedIPConfigurationProperty
()
Value Text
haddock_workaround_ :: IPSetReferenceStatementProperty -> ()
arn :: IPSetReferenceStatementProperty -> Value Text
iPSetForwardedIPConfig :: IPSetReferenceStatementProperty
-> Maybe IPSetForwardedIPConfigurationProperty
haddock_workaround_ :: ()
arn :: Value Text
iPSetForwardedIPConfig :: Maybe IPSetForwardedIPConfigurationProperty
..}
= [(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
"Arn" 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
arn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> IPSetForwardedIPConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IPSetForwardedIPConfig"
(IPSetForwardedIPConfigurationProperty -> (Key, Value))
-> Maybe IPSetForwardedIPConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IPSetForwardedIPConfigurationProperty
iPSetForwardedIPConfig])))
instance Property "Arn" IPSetReferenceStatementProperty where
type PropertyType "Arn" IPSetReferenceStatementProperty = Value Prelude.Text
set :: PropertyType "Arn" IPSetReferenceStatementProperty
-> IPSetReferenceStatementProperty
-> IPSetReferenceStatementProperty
set PropertyType "Arn" IPSetReferenceStatementProperty
newValue IPSetReferenceStatementProperty {Maybe IPSetForwardedIPConfigurationProperty
()
Value Text
haddock_workaround_ :: IPSetReferenceStatementProperty -> ()
arn :: IPSetReferenceStatementProperty -> Value Text
iPSetForwardedIPConfig :: IPSetReferenceStatementProperty
-> Maybe IPSetForwardedIPConfigurationProperty
haddock_workaround_ :: ()
arn :: Value Text
iPSetForwardedIPConfig :: Maybe IPSetForwardedIPConfigurationProperty
..}
= IPSetReferenceStatementProperty {arn :: Value Text
arn = PropertyType "Arn" IPSetReferenceStatementProperty
Value Text
newValue, Maybe IPSetForwardedIPConfigurationProperty
()
haddock_workaround_ :: ()
iPSetForwardedIPConfig :: Maybe IPSetForwardedIPConfigurationProperty
haddock_workaround_ :: ()
iPSetForwardedIPConfig :: Maybe IPSetForwardedIPConfigurationProperty
..}
instance Property "IPSetForwardedIPConfig" IPSetReferenceStatementProperty where
type PropertyType "IPSetForwardedIPConfig" IPSetReferenceStatementProperty = IPSetForwardedIPConfigurationProperty
set :: PropertyType
"IPSetForwardedIPConfig" IPSetReferenceStatementProperty
-> IPSetReferenceStatementProperty
-> IPSetReferenceStatementProperty
set PropertyType
"IPSetForwardedIPConfig" IPSetReferenceStatementProperty
newValue IPSetReferenceStatementProperty {Maybe IPSetForwardedIPConfigurationProperty
()
Value Text
haddock_workaround_ :: IPSetReferenceStatementProperty -> ()
arn :: IPSetReferenceStatementProperty -> Value Text
iPSetForwardedIPConfig :: IPSetReferenceStatementProperty
-> Maybe IPSetForwardedIPConfigurationProperty
haddock_workaround_ :: ()
arn :: Value Text
iPSetForwardedIPConfig :: Maybe IPSetForwardedIPConfigurationProperty
..}
= IPSetReferenceStatementProperty
{iPSetForwardedIPConfig :: Maybe IPSetForwardedIPConfigurationProperty
iPSetForwardedIPConfig = IPSetForwardedIPConfigurationProperty
-> Maybe IPSetForwardedIPConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"IPSetForwardedIPConfig" IPSetReferenceStatementProperty
IPSetForwardedIPConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
arn :: Value Text
haddock_workaround_ :: ()
arn :: Value Text
..}