BuildProps

class aws_cdk.aws_gamelift_alpha.BuildProps(*, content, build_name=None, build_version=None, operating_system=None, role=None, server_sdk_version=None)

Bases: object

(experimental) Properties for a new build.

Parameters:
  • content (Content) – (experimental) The game build file storage.

  • build_name (Optional[str]) – (experimental) Name of this build. Default: No name

  • build_version (Optional[str]) – (experimental) Version of this build. Default: No version

  • operating_system (Optional[OperatingSystem]) – (experimental) The operating system that the game server binaries are built to run on. Default: No version

  • role (Optional[IRole]) – (experimental) 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” }] } Default: - a role will be created with default permissions.

  • server_sdk_version (Optional[str]) – (experimental) A server SDK version you used when integrating your game server build with Amazon GameLift. Default: - 4.0.2

Stability:

experimental

ExampleMetadata:

infused

Example:

# bucket: s3.Bucket

build = gamelift.Build(self, "Build",
    content=gamelift.Content.from_bucket(bucket, "sample-asset-key")
)

CfnOutput(self, "BuildArn", value=build.build_arn)
CfnOutput(self, "BuildId", value=build.build_id)

Attributes

build_name

(experimental) Name of this build.

Default:

No name

Stability:

experimental

build_version

(experimental) Version of this build.

Default:

No version

Stability:

experimental

content

(experimental) The game build file storage.

Stability:

experimental

operating_system

(experimental) The operating system that the game server binaries are built to run on.

Default:

No version

Stability:

experimental

role

(experimental) 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” }] }

Default:
  • a role will be created with default permissions.

See:

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

Stability:

experimental

server_sdk_version

(experimental) A server SDK version you used when integrating your game server build with Amazon GameLift.

Default:
  • 4.0.2

See:

https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-custom-intro.html

Stability:

experimental