Experimental
@aws-cdk/aws-gamelift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
BuildProps Struct
Properties for a new build.
Example
ts
declare const bucket: s3.Bucket;
const build = new gamelift.Build(this, 'Build', {
content: gamelift.Content.fromBucket(bucket, "sample-asset-key")
});
new CfnOutput(this, 'BuildArn', { value: build.buildArn });
new CfnOutput(this, 'BuildId', { value: build.buildId });
Properties
buildNameoptionalstringbuild_nameoptionalstrbuildNameoptionalStringBuildNameoptionalstringBuildNameoptional*string#Name of this build.
Default: No name
buildVersionoptionalstringbuild_versionoptionalstrbuildVersionoptionalStringBuildVersionoptionalstringBuildVersionoptional*string#Version of this build.
Default: No version
The game build file storage.
operatingSystemoptionalOperatingSystemoperating_systemoptionalOperatingSystemoperatingSystemoptionalOperatingSystemOperatingSystemoptionalOperatingSystemOperatingSystemoptionalOperatingSystem#The operating system that the game server binaries are built to run on.
Default: No version
The IAM role assumed by GameLift to access server build in S3.
Default: a role will be created with default permissions.
notes
If providing a custom role, it needs to trust the GameLift service principal (gamelift.amazonaws.com) and be granted sufficient permissions to have Read access to a specific key content into a specific S3 bucket. Below an example of required permission: { "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": [ "s3:GetObject", "s3:GetObjectVersion" ], "Resource": "arn:aws:s3:::bucket-name/object-name" }] }
serverSdkVersionoptionalstringserver_sdk_versionoptionalstrserverSdkVersionoptionalStringServerSdkVersionoptionalstringServerSdkVersionoptional*string= '4.0.2'#A server SDK version you used when integrating your game server build with Amazon GameLift.