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