@aws-cdk_aws-gamelift-alpha.BuildProps

interface BuildProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.GameLift.Alpha.BuildProps
Gogithub.com/aws/aws-cdk-go/awscdkgameliftalpha/v2#BuildProps
Javasoftware.amazon.awscdk.services.gamelift.alpha.BuildProps
Pythonaws_cdk.aws_gamelift_alpha.BuildProps
TypeScript (source)@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

NameTypeDescription
content๐Ÿ”นContentThe game build file storage.
buildName?๐Ÿ”นstringName of this build.
buildVersion?๐Ÿ”นstringVersion of this build.
operatingSystem?๐Ÿ”นOperatingSystemThe operating system that the game server binaries are built to run on.
role?๐Ÿ”นIRoleThe IAM role assumed by GameLift to access server build in S3.

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: OperatingSystem (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" }] }

See also: https://docs.aws.amazon.com/gamelift/latest/developerguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-access-storage-loc