interface BuildProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.GameLift.Alpha.BuildProps |
![]() | github.com/aws/aws-cdk-go/awscdkgameliftalpha/v2#BuildProps |
![]() | software.amazon.awscdk.services.gamelift.alpha.BuildProps |
![]() | aws_cdk.aws_gamelift_alpha.BuildProps |
![]() | @aws-cdk/aws-gamelift-alpha ยป BuildProps |
Properties for a new build.
Example
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
Name | Type | Description |
---|---|---|
content | Content | The game build file storage. |
build | string | Name of this build. |
build | string | Version of this build. |
operating | Operating | The operating system that the game server binaries are built to run on. |
role? | IRole | The IAM role assumed by GameLift to access server build in S3. |
server | string | A server SDK version you used when integrating your game server build with Amazon GameLift. |
content
Type:
Content
The game build file storage.
buildName?
Type:
string
(optional, default: No name)
Name of this build.
buildVersion?
Type:
string
(optional, default: No version)
Version of this build.
operatingSystem?
Type:
Operating
(optional, default: No version)
The operating system that the game server binaries are built to run on.
role?
Type:
IRole
(optional, default: a role will be created with default permissions.)
The IAM role assumed by GameLift to access server build in S3.
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" }] }
serverSdkVersion?
Type:
string
(optional, default: 4.0.2)
A server SDK version you used when integrating your game server build with Amazon GameLift.