module Stratosphere.GameLift.GameServerGroup.TargetTrackingConfigurationProperty (
        TargetTrackingConfigurationProperty(..),
        mkTargetTrackingConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TargetTrackingConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-gameservergroup-targettrackingconfiguration.html>
    TargetTrackingConfigurationProperty {TargetTrackingConfigurationProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-gameservergroup-targettrackingconfiguration.html#cfn-gamelift-gameservergroup-targettrackingconfiguration-targetvalue>
                                         TargetTrackingConfigurationProperty -> Value Double
targetValue :: (Value Prelude.Double)}
  deriving stock (TargetTrackingConfigurationProperty
-> TargetTrackingConfigurationProperty -> Bool
(TargetTrackingConfigurationProperty
 -> TargetTrackingConfigurationProperty -> Bool)
-> (TargetTrackingConfigurationProperty
    -> TargetTrackingConfigurationProperty -> Bool)
-> Eq TargetTrackingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TargetTrackingConfigurationProperty
-> TargetTrackingConfigurationProperty -> Bool
== :: TargetTrackingConfigurationProperty
-> TargetTrackingConfigurationProperty -> Bool
$c/= :: TargetTrackingConfigurationProperty
-> TargetTrackingConfigurationProperty -> Bool
/= :: TargetTrackingConfigurationProperty
-> TargetTrackingConfigurationProperty -> Bool
Prelude.Eq, Int -> TargetTrackingConfigurationProperty -> ShowS
[TargetTrackingConfigurationProperty] -> ShowS
TargetTrackingConfigurationProperty -> String
(Int -> TargetTrackingConfigurationProperty -> ShowS)
-> (TargetTrackingConfigurationProperty -> String)
-> ([TargetTrackingConfigurationProperty] -> ShowS)
-> Show TargetTrackingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TargetTrackingConfigurationProperty -> ShowS
showsPrec :: Int -> TargetTrackingConfigurationProperty -> ShowS
$cshow :: TargetTrackingConfigurationProperty -> String
show :: TargetTrackingConfigurationProperty -> String
$cshowList :: [TargetTrackingConfigurationProperty] -> ShowS
showList :: [TargetTrackingConfigurationProperty] -> ShowS
Prelude.Show)
mkTargetTrackingConfigurationProperty ::
  Value Prelude.Double -> TargetTrackingConfigurationProperty
mkTargetTrackingConfigurationProperty :: Value Double -> TargetTrackingConfigurationProperty
mkTargetTrackingConfigurationProperty Value Double
targetValue
  = TargetTrackingConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), targetValue :: Value Double
targetValue = Value Double
targetValue}
instance ToResourceProperties TargetTrackingConfigurationProperty where
  toResourceProperties :: TargetTrackingConfigurationProperty -> ResourceProperties
toResourceProperties TargetTrackingConfigurationProperty {()
Value Double
haddock_workaround_ :: TargetTrackingConfigurationProperty -> ()
targetValue :: TargetTrackingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
targetValue :: Value Double
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GameLift::GameServerGroup.TargetTrackingConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"TargetValue" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
targetValue]}
instance JSON.ToJSON TargetTrackingConfigurationProperty where
  toJSON :: TargetTrackingConfigurationProperty -> Value
toJSON TargetTrackingConfigurationProperty {()
Value Double
haddock_workaround_ :: TargetTrackingConfigurationProperty -> ()
targetValue :: TargetTrackingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
targetValue :: Value Double
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"TargetValue" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
targetValue]
instance Property "TargetValue" TargetTrackingConfigurationProperty where
  type PropertyType "TargetValue" TargetTrackingConfigurationProperty = Value Prelude.Double
  set :: PropertyType "TargetValue" TargetTrackingConfigurationProperty
-> TargetTrackingConfigurationProperty
-> TargetTrackingConfigurationProperty
set PropertyType "TargetValue" TargetTrackingConfigurationProperty
newValue TargetTrackingConfigurationProperty {()
Value Double
haddock_workaround_ :: TargetTrackingConfigurationProperty -> ()
targetValue :: TargetTrackingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
targetValue :: Value Double
..}
    = TargetTrackingConfigurationProperty {targetValue :: Value Double
targetValue = PropertyType "TargetValue" TargetTrackingConfigurationProperty
Value Double
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}