ServerProcess
- class aws_cdk.aws_gamelift_alpha.ServerProcess(*, launch_path, concurrent_executions=None, parameters=None)
Bases:
object
(experimental) Configuration of a fleet server process.
- Parameters:
launch_path (
str
) – (experimental) The location of a game build executable or the Realtime script file that contains the Init() function. Game builds and Realtime scripts are installed on instances at the root: - Windows (custom game builds only):C:\game
. Example:C:\game\MyGame\server.exe
- Linux:/local/game
. Examples:/local/game/MyGame/server.exe
or/local/game/MyRealtimeScript.js
concurrent_executions (
Union
[int
,float
,None
]) – (experimental) The number of server processes using this configuration that run concurrently on each instance. Minimum is1
Default: 1parameters (
Optional
[str
]) – (experimental) An optional list of parameters to pass to the server executable or Realtime script on launch. Default: no parameters
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_gamelift_alpha as gamelift_alpha server_process = gamelift_alpha.ServerProcess( launch_path="launchPath", # the properties below are optional concurrent_executions=123, parameters="parameters" )
Attributes
- concurrent_executions
(experimental) The number of server processes using this configuration that run concurrently on each instance.
Minimum is
1
- Default:
1
- Stability:
experimental
- launch_path
(experimental) The location of a game build executable or the Realtime script file that contains the Init() function.
Game builds and Realtime scripts are installed on instances at the root:
Windows (custom game builds only):
C:\game
. Example:C:\game\MyGame\server.exe
Linux:
/local/game
. Examples:/local/game/MyGame/server.exe
or/local/game/MyRealtimeScript.js
- Stability:
experimental
- parameters
(experimental) An optional list of parameters to pass to the server executable or Realtime script on launch.
- Default:
no parameters
- Stability:
experimental