Skip to content
v2.277.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',
};
python
# 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"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.gamelift.alpha.*;

ServerProcess serverProcess = ServerProcess.builder()
        .launchPath("launchPath")

        // the properties below are optional
        .concurrentExecutions(123)
        .parameters("parameters")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.GameLift.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GameLift.Alpha;

var serverProcess = new ServerProcess {
    LaunchPath = "launchPath",

    // the properties below are optional
    ConcurrentExecutions = 123,
    Parameters = "parameters"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkgameliftalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import gamelift_alpha "github.com/aws/aws-cdk-go/awscdkgameliftalpha"

serverProcess := &ServerProcess{
	LaunchPath: jsii.String("launchPath"),

	// the properties below are optional
	ConcurrentExecutions: jsii.Number(123),
	Parameters: jsii.String("parameters"),
}

Properties ​

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

Minimum is 1

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

Default: no parameters