module Stratosphere.GameLift.Fleet.RuntimeConfigurationProperty (
module Exports, RuntimeConfigurationProperty(..),
mkRuntimeConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GameLift.Fleet.ServerProcessProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RuntimeConfigurationProperty
=
RuntimeConfigurationProperty {RuntimeConfigurationProperty -> ()
haddock_workaround_ :: (),
RuntimeConfigurationProperty -> Maybe (Value Integer)
gameSessionActivationTimeoutSeconds :: (Prelude.Maybe (Value Prelude.Integer)),
RuntimeConfigurationProperty -> Maybe (Value Integer)
maxConcurrentGameSessionActivations :: (Prelude.Maybe (Value Prelude.Integer)),
RuntimeConfigurationProperty -> Maybe [ServerProcessProperty]
serverProcesses :: (Prelude.Maybe [ServerProcessProperty])}
deriving stock (RuntimeConfigurationProperty
-> RuntimeConfigurationProperty -> Bool
(RuntimeConfigurationProperty
-> RuntimeConfigurationProperty -> Bool)
-> (RuntimeConfigurationProperty
-> RuntimeConfigurationProperty -> Bool)
-> Eq RuntimeConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RuntimeConfigurationProperty
-> RuntimeConfigurationProperty -> Bool
== :: RuntimeConfigurationProperty
-> RuntimeConfigurationProperty -> Bool
$c/= :: RuntimeConfigurationProperty
-> RuntimeConfigurationProperty -> Bool
/= :: RuntimeConfigurationProperty
-> RuntimeConfigurationProperty -> Bool
Prelude.Eq, Int -> RuntimeConfigurationProperty -> ShowS
[RuntimeConfigurationProperty] -> ShowS
RuntimeConfigurationProperty -> String
(Int -> RuntimeConfigurationProperty -> ShowS)
-> (RuntimeConfigurationProperty -> String)
-> ([RuntimeConfigurationProperty] -> ShowS)
-> Show RuntimeConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RuntimeConfigurationProperty -> ShowS
showsPrec :: Int -> RuntimeConfigurationProperty -> ShowS
$cshow :: RuntimeConfigurationProperty -> String
show :: RuntimeConfigurationProperty -> String
$cshowList :: [RuntimeConfigurationProperty] -> ShowS
showList :: [RuntimeConfigurationProperty] -> ShowS
Prelude.Show)
mkRuntimeConfigurationProperty :: RuntimeConfigurationProperty
mkRuntimeConfigurationProperty :: RuntimeConfigurationProperty
mkRuntimeConfigurationProperty
= RuntimeConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
gameSessionActivationTimeoutSeconds :: Maybe (Value Integer)
gameSessionActivationTimeoutSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
maxConcurrentGameSessionActivations :: Maybe (Value Integer)
maxConcurrentGameSessionActivations = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
serverProcesses :: Maybe [ServerProcessProperty]
serverProcesses = Maybe [ServerProcessProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RuntimeConfigurationProperty where
toResourceProperties :: RuntimeConfigurationProperty -> ResourceProperties
toResourceProperties RuntimeConfigurationProperty {Maybe [ServerProcessProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: RuntimeConfigurationProperty -> ()
gameSessionActivationTimeoutSeconds :: RuntimeConfigurationProperty -> Maybe (Value Integer)
maxConcurrentGameSessionActivations :: RuntimeConfigurationProperty -> Maybe (Value Integer)
serverProcesses :: RuntimeConfigurationProperty -> Maybe [ServerProcessProperty]
haddock_workaround_ :: ()
gameSessionActivationTimeoutSeconds :: Maybe (Value Integer)
maxConcurrentGameSessionActivations :: Maybe (Value Integer)
serverProcesses :: Maybe [ServerProcessProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::GameLift::Fleet.RuntimeConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GameSessionActivationTimeoutSeconds"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
gameSessionActivationTimeoutSeconds,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxConcurrentGameSessionActivations"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maxConcurrentGameSessionActivations,
Key -> [ServerProcessProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ServerProcesses" ([ServerProcessProperty] -> (Key, Value))
-> Maybe [ServerProcessProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ServerProcessProperty]
serverProcesses])}
instance JSON.ToJSON RuntimeConfigurationProperty where
toJSON :: RuntimeConfigurationProperty -> Value
toJSON RuntimeConfigurationProperty {Maybe [ServerProcessProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: RuntimeConfigurationProperty -> ()
gameSessionActivationTimeoutSeconds :: RuntimeConfigurationProperty -> Maybe (Value Integer)
maxConcurrentGameSessionActivations :: RuntimeConfigurationProperty -> Maybe (Value Integer)
serverProcesses :: RuntimeConfigurationProperty -> Maybe [ServerProcessProperty]
haddock_workaround_ :: ()
gameSessionActivationTimeoutSeconds :: Maybe (Value Integer)
maxConcurrentGameSessionActivations :: Maybe (Value Integer)
serverProcesses :: Maybe [ServerProcessProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GameSessionActivationTimeoutSeconds"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
gameSessionActivationTimeoutSeconds,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxConcurrentGameSessionActivations"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maxConcurrentGameSessionActivations,
Key -> [ServerProcessProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ServerProcesses" ([ServerProcessProperty] -> (Key, Value))
-> Maybe [ServerProcessProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ServerProcessProperty]
serverProcesses]))
instance Property "GameSessionActivationTimeoutSeconds" RuntimeConfigurationProperty where
type PropertyType "GameSessionActivationTimeoutSeconds" RuntimeConfigurationProperty = Value Prelude.Integer
set :: PropertyType
"GameSessionActivationTimeoutSeconds" RuntimeConfigurationProperty
-> RuntimeConfigurationProperty -> RuntimeConfigurationProperty
set PropertyType
"GameSessionActivationTimeoutSeconds" RuntimeConfigurationProperty
newValue RuntimeConfigurationProperty {Maybe [ServerProcessProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: RuntimeConfigurationProperty -> ()
gameSessionActivationTimeoutSeconds :: RuntimeConfigurationProperty -> Maybe (Value Integer)
maxConcurrentGameSessionActivations :: RuntimeConfigurationProperty -> Maybe (Value Integer)
serverProcesses :: RuntimeConfigurationProperty -> Maybe [ServerProcessProperty]
haddock_workaround_ :: ()
gameSessionActivationTimeoutSeconds :: Maybe (Value Integer)
maxConcurrentGameSessionActivations :: Maybe (Value Integer)
serverProcesses :: Maybe [ServerProcessProperty]
..}
= RuntimeConfigurationProperty
{gameSessionActivationTimeoutSeconds :: Maybe (Value Integer)
gameSessionActivationTimeoutSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"GameSessionActivationTimeoutSeconds" RuntimeConfigurationProperty
Value Integer
newValue, Maybe [ServerProcessProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
maxConcurrentGameSessionActivations :: Maybe (Value Integer)
serverProcesses :: Maybe [ServerProcessProperty]
haddock_workaround_ :: ()
maxConcurrentGameSessionActivations :: Maybe (Value Integer)
serverProcesses :: Maybe [ServerProcessProperty]
..}
instance Property "MaxConcurrentGameSessionActivations" RuntimeConfigurationProperty where
type PropertyType "MaxConcurrentGameSessionActivations" RuntimeConfigurationProperty = Value Prelude.Integer
set :: PropertyType
"MaxConcurrentGameSessionActivations" RuntimeConfigurationProperty
-> RuntimeConfigurationProperty -> RuntimeConfigurationProperty
set PropertyType
"MaxConcurrentGameSessionActivations" RuntimeConfigurationProperty
newValue RuntimeConfigurationProperty {Maybe [ServerProcessProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: RuntimeConfigurationProperty -> ()
gameSessionActivationTimeoutSeconds :: RuntimeConfigurationProperty -> Maybe (Value Integer)
maxConcurrentGameSessionActivations :: RuntimeConfigurationProperty -> Maybe (Value Integer)
serverProcesses :: RuntimeConfigurationProperty -> Maybe [ServerProcessProperty]
haddock_workaround_ :: ()
gameSessionActivationTimeoutSeconds :: Maybe (Value Integer)
maxConcurrentGameSessionActivations :: Maybe (Value Integer)
serverProcesses :: Maybe [ServerProcessProperty]
..}
= RuntimeConfigurationProperty
{maxConcurrentGameSessionActivations :: Maybe (Value Integer)
maxConcurrentGameSessionActivations = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"MaxConcurrentGameSessionActivations" RuntimeConfigurationProperty
Value Integer
newValue, Maybe [ServerProcessProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
gameSessionActivationTimeoutSeconds :: Maybe (Value Integer)
serverProcesses :: Maybe [ServerProcessProperty]
haddock_workaround_ :: ()
gameSessionActivationTimeoutSeconds :: Maybe (Value Integer)
serverProcesses :: Maybe [ServerProcessProperty]
..}
instance Property "ServerProcesses" RuntimeConfigurationProperty where
type PropertyType "ServerProcesses" RuntimeConfigurationProperty = [ServerProcessProperty]
set :: PropertyType "ServerProcesses" RuntimeConfigurationProperty
-> RuntimeConfigurationProperty -> RuntimeConfigurationProperty
set PropertyType "ServerProcesses" RuntimeConfigurationProperty
newValue RuntimeConfigurationProperty {Maybe [ServerProcessProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: RuntimeConfigurationProperty -> ()
gameSessionActivationTimeoutSeconds :: RuntimeConfigurationProperty -> Maybe (Value Integer)
maxConcurrentGameSessionActivations :: RuntimeConfigurationProperty -> Maybe (Value Integer)
serverProcesses :: RuntimeConfigurationProperty -> Maybe [ServerProcessProperty]
haddock_workaround_ :: ()
gameSessionActivationTimeoutSeconds :: Maybe (Value Integer)
maxConcurrentGameSessionActivations :: Maybe (Value Integer)
serverProcesses :: Maybe [ServerProcessProperty]
..}
= RuntimeConfigurationProperty
{serverProcesses :: Maybe [ServerProcessProperty]
serverProcesses = [ServerProcessProperty] -> Maybe [ServerProcessProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ServerProcessProperty]
PropertyType "ServerProcesses" RuntimeConfigurationProperty
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
gameSessionActivationTimeoutSeconds :: Maybe (Value Integer)
maxConcurrentGameSessionActivations :: Maybe (Value Integer)
haddock_workaround_ :: ()
gameSessionActivationTimeoutSeconds :: Maybe (Value Integer)
maxConcurrentGameSessionActivations :: Maybe (Value Integer)
..}