ServerProcessProperty Struct
A set of instructions for launching server processes on each instance in a fleet.
Server processes run either an executable in a custom game build or a Realtime Servers script.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_gamelift as gamelift } from 'aws-cdk-lib';
const serverProcessProperty: gamelift.CfnFleet.ServerProcessProperty = {
concurrentExecutions: 123,
launchPath: 'launchPath',
// the properties below are optional
parameters: 'parameters',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_gamelift as gamelift
server_process_property = gamelift.CfnFleet.ServerProcessProperty(
concurrent_executions=123,
launch_path="launchPath",
# the properties below are optional
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.*;
ServerProcessProperty serverProcessProperty = ServerProcessProperty.builder()
.concurrentExecutions(123)
.launchPath("launchPath")
// the properties below are optional
.parameters("parameters")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GameLift;
var serverProcessProperty = new ServerProcessProperty {
ConcurrentExecutions = 123,
LaunchPath = "launchPath",
// the properties below are optional
Parameters = "parameters"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
serverProcessProperty := &ServerProcessProperty{
ConcurrentExecutions: jsii.Number(123),
LaunchPath: jsii.String("launchPath"),
// the properties below are optional
Parameters: jsii.String("parameters"),
}
Properties
concurrentExecutionsnumberconcurrent_executionsint | floatconcurrentExecutionsNumberConcurrentExecutionsdoubleConcurrentExecutions*float64 required #The number of server processes using this configuration that run concurrently on each instance or compute.
The location of a game build executable or Realtime script.
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"
Amazon GameLift Servers doesn't support the use of setup scripts that launch the game executable. For custom game builds, this parameter must indicate the executable that calls the server SDK operations
initSDK()andProcessReady().
parametersoptionalstringparametersoptionalstrparametersoptionalStringParametersoptionalstringParametersoptional*string #An optional list of parameters to pass to the server executable or Realtime script on launch.
Length Constraints: Minimum length of 1. Maximum length of 1024.
Pattern: [A-Za-z0-9_:.+/\- =@{},?'[]"]+