module Stratosphere.WAF.IPSet.IPSetDescriptorProperty (
IPSetDescriptorProperty(..), mkIPSetDescriptorProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IPSetDescriptorProperty
=
IPSetDescriptorProperty {IPSetDescriptorProperty -> ()
haddock_workaround_ :: (),
IPSetDescriptorProperty -> Value Text
type' :: (Value Prelude.Text),
IPSetDescriptorProperty -> Value Text
value :: (Value Prelude.Text)}
deriving stock (IPSetDescriptorProperty -> IPSetDescriptorProperty -> Bool
(IPSetDescriptorProperty -> IPSetDescriptorProperty -> Bool)
-> (IPSetDescriptorProperty -> IPSetDescriptorProperty -> Bool)
-> Eq IPSetDescriptorProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IPSetDescriptorProperty -> IPSetDescriptorProperty -> Bool
== :: IPSetDescriptorProperty -> IPSetDescriptorProperty -> Bool
$c/= :: IPSetDescriptorProperty -> IPSetDescriptorProperty -> Bool
/= :: IPSetDescriptorProperty -> IPSetDescriptorProperty -> Bool
Prelude.Eq, Int -> IPSetDescriptorProperty -> ShowS
[IPSetDescriptorProperty] -> ShowS
IPSetDescriptorProperty -> String
(Int -> IPSetDescriptorProperty -> ShowS)
-> (IPSetDescriptorProperty -> String)
-> ([IPSetDescriptorProperty] -> ShowS)
-> Show IPSetDescriptorProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IPSetDescriptorProperty -> ShowS
showsPrec :: Int -> IPSetDescriptorProperty -> ShowS
$cshow :: IPSetDescriptorProperty -> String
show :: IPSetDescriptorProperty -> String
$cshowList :: [IPSetDescriptorProperty] -> ShowS
showList :: [IPSetDescriptorProperty] -> ShowS
Prelude.Show)
mkIPSetDescriptorProperty ::
Value Prelude.Text -> Value Prelude.Text -> IPSetDescriptorProperty
mkIPSetDescriptorProperty :: Value Text -> Value Text -> IPSetDescriptorProperty
mkIPSetDescriptorProperty Value Text
type' Value Text
value
= IPSetDescriptorProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', value :: Value Text
value = Value Text
value}
instance ToResourceProperties IPSetDescriptorProperty where
toResourceProperties :: IPSetDescriptorProperty -> ResourceProperties
toResourceProperties IPSetDescriptorProperty {()
Value Text
haddock_workaround_ :: IPSetDescriptorProperty -> ()
type' :: IPSetDescriptorProperty -> Value Text
value :: IPSetDescriptorProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAF::IPSet.IPSetDescriptor",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Type" 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
type', Key
"Value" 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
value]}
instance JSON.ToJSON IPSetDescriptorProperty where
toJSON :: IPSetDescriptorProperty -> Value
toJSON IPSetDescriptorProperty {()
Value Text
haddock_workaround_ :: IPSetDescriptorProperty -> ()
type' :: IPSetDescriptorProperty -> Value Text
value :: IPSetDescriptorProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Type" 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
type', Key
"Value" 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
value]
instance Property "Type" IPSetDescriptorProperty where
type PropertyType "Type" IPSetDescriptorProperty = Value Prelude.Text
set :: PropertyType "Type" IPSetDescriptorProperty
-> IPSetDescriptorProperty -> IPSetDescriptorProperty
set PropertyType "Type" IPSetDescriptorProperty
newValue IPSetDescriptorProperty {()
Value Text
haddock_workaround_ :: IPSetDescriptorProperty -> ()
type' :: IPSetDescriptorProperty -> Value Text
value :: IPSetDescriptorProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
= IPSetDescriptorProperty {type' :: Value Text
type' = PropertyType "Type" IPSetDescriptorProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" IPSetDescriptorProperty where
type PropertyType "Value" IPSetDescriptorProperty = Value Prelude.Text
set :: PropertyType "Value" IPSetDescriptorProperty
-> IPSetDescriptorProperty -> IPSetDescriptorProperty
set PropertyType "Value" IPSetDescriptorProperty
newValue IPSetDescriptorProperty {()
Value Text
haddock_workaround_ :: IPSetDescriptorProperty -> ()
type' :: IPSetDescriptorProperty -> Value Text
value :: IPSetDescriptorProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
= IPSetDescriptorProperty {value :: Value Text
value = PropertyType "Value" IPSetDescriptorProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}