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