Skip to main content

builds

Creates, updates, deletes or gets a build resource or lists builds in a region

Overview

Namebuilds
TypeResource
DescriptionResource Type definition for AWS::GameLift::Build
Idaws.gamelift.builds

Fields

NameDatatypeDescription
build_idstringA unique identifier for a build to be deployed on the new fleet. If you are deploying the fleet with a custom game build, you must specify this property. The build must have been successfully uploaded to Amazon GameLift and be in a READY status. This fleet setting cannot be changed once the fleet is created.
namestringA descriptive label that is associated with a build. Build names do not need to be unique.
operating_systemstringThe operating system that the game server binaries are built to run on. This value determines the type of fleet resources that you can use for this build. If your game build contains multiple executables, they all must run on the same operating system. If an operating system is not specified when creating a build, Amazon GameLift uses the default value (WINDOWS_2012). This value cannot be changed later.
storage_locationobjectInformation indicating where your game build files are stored. Use this parameter only when creating a build with files stored in an Amazon S3 bucket that you own. The storage location must specify an Amazon S3 bucket name and key. The location must also specify a role ARN that you set up to allow Amazon GameLift to access your Amazon S3 bucket. The S3 bucket and your new build must be in the same Region.
versionstringVersion information that is associated with this build. Version strings do not need to be unique.
server_sdk_versionstringA server SDK version you used when integrating your game server build with Amazon GameLift. By default Amazon GameLift sets this value to 4.0.2.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERT, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all builds in a region.

SELECT
region,
build_id,
name,
operating_system,
storage_location,
version,
server_sdk_version
FROM aws.gamelift.builds
WHERE region = 'us-east-1';

Gets all properties from an individual build.

SELECT
region,
build_id,
name,
operating_system,
storage_location,
version,
server_sdk_version
FROM aws.gamelift.builds
WHERE region = 'us-east-1' AND data__Identifier = '<BuildId>';

INSERT example

Use the following StackQL query and manifest file to create a new build resource, using stack-deploy.

/*+ create */
INSERT INTO aws.gamelift.builds (
,
region
)
SELECT
'{{ }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.gamelift.builds
WHERE data__Identifier = '<BuildId>'
AND region = 'us-east-1';

Permissions

To operate on the builds resource, the following permissions are required:

Create

gamelift:DescribeBuild,
gamelift:CreateBuild

Read

gamelift:DescribeBuild

Update

gamelift:UpdateBuild

Delete

gamelift:DescribeBuild,
gamelift:DeleteBuild

List

gamelift:ListBuilds