Skip to content
v2.274.0

Experimental

@aws-cdk/aws-gamelift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

ServerProcess Struct ​

Configuration of a fleet server process.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as gamelift_alpha from '@aws-cdk/aws-gamelift-alpha';
const serverProcess: gamelift_alpha.ServerProcess = {
  launchPath: 'launchPath',

  // the properties below are optional
  concurrentExecutions: 123,
  parameters: 'parameters',
};

Properties ​

concurrentExecutionsnumberconcurrent_executionsint | floatconcurrentExecutionsNumberConcurrentExecutionsdoubleConcurrentExecutions*float64= 1#
The number of server processes using this configuration that run concurrently on each instance.

Minimum is 1

launchPathstringlaunch_pathstrlaunchPathStringLaunchPathstringLaunchPath*stringrequired#
The location of a game build executable or the Realtime script file that contains the Init() function.
notes

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
parametersstringparametersstrparametersStringParametersstringParameters*string= no parameters#
An optional list of parameters to pass to the server executable or Realtime script on launch.