module Stratosphere.GameLift.Fleet.TargetConfigurationProperty (
        TargetConfigurationProperty(..), mkTargetConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TargetConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-targetconfiguration.html>
    TargetConfigurationProperty {TargetConfigurationProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-targetconfiguration.html#cfn-gamelift-fleet-targetconfiguration-targetvalue>
                                 TargetConfigurationProperty -> Value Double
targetValue :: (Value Prelude.Double)}
  deriving stock (TargetConfigurationProperty -> TargetConfigurationProperty -> Bool
(TargetConfigurationProperty
 -> TargetConfigurationProperty -> Bool)
-> (TargetConfigurationProperty
    -> TargetConfigurationProperty -> Bool)
-> Eq TargetConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TargetConfigurationProperty -> TargetConfigurationProperty -> Bool
== :: TargetConfigurationProperty -> TargetConfigurationProperty -> Bool
$c/= :: TargetConfigurationProperty -> TargetConfigurationProperty -> Bool
/= :: TargetConfigurationProperty -> TargetConfigurationProperty -> Bool
Prelude.Eq, Int -> TargetConfigurationProperty -> ShowS
[TargetConfigurationProperty] -> ShowS
TargetConfigurationProperty -> String
(Int -> TargetConfigurationProperty -> ShowS)
-> (TargetConfigurationProperty -> String)
-> ([TargetConfigurationProperty] -> ShowS)
-> Show TargetConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TargetConfigurationProperty -> ShowS
showsPrec :: Int -> TargetConfigurationProperty -> ShowS
$cshow :: TargetConfigurationProperty -> String
show :: TargetConfigurationProperty -> String
$cshowList :: [TargetConfigurationProperty] -> ShowS
showList :: [TargetConfigurationProperty] -> ShowS
Prelude.Show)
mkTargetConfigurationProperty ::
  Value Prelude.Double -> TargetConfigurationProperty
mkTargetConfigurationProperty :: Value Double -> TargetConfigurationProperty
mkTargetConfigurationProperty Value Double
targetValue
  = TargetConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), targetValue :: Value Double
targetValue = Value Double
targetValue}
instance ToResourceProperties TargetConfigurationProperty where
  toResourceProperties :: TargetConfigurationProperty -> ResourceProperties
toResourceProperties TargetConfigurationProperty {()
Value Double
haddock_workaround_ :: TargetConfigurationProperty -> ()
targetValue :: TargetConfigurationProperty -> Value Double
haddock_workaround_ :: ()
targetValue :: Value Double
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GameLift::Fleet.TargetConfiguration",
         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 TargetConfigurationProperty where
  toJSON :: TargetConfigurationProperty -> Value
toJSON TargetConfigurationProperty {()
Value Double
haddock_workaround_ :: TargetConfigurationProperty -> ()
targetValue :: TargetConfigurationProperty -> 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" TargetConfigurationProperty where
  type PropertyType "TargetValue" TargetConfigurationProperty = Value Prelude.Double
  set :: PropertyType "TargetValue" TargetConfigurationProperty
-> TargetConfigurationProperty -> TargetConfigurationProperty
set PropertyType "TargetValue" TargetConfigurationProperty
newValue TargetConfigurationProperty {()
Value Double
haddock_workaround_ :: TargetConfigurationProperty -> ()
targetValue :: TargetConfigurationProperty -> Value Double
haddock_workaround_ :: ()
targetValue :: Value Double
..}
    = TargetConfigurationProperty {targetValue :: Value Double
targetValue = PropertyType "TargetValue" TargetConfigurationProperty
Value Double
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}