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
Idawscc.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.
tagsarrayAn array of key-value pairs to apply to this resource.
build_arnstringThe Amazon Resource Name (ARN) that is assigned to a Amazon GameLift build resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift build ARN, the resource ID matches the BuildId value.
regionstringAWS region.

For more information, see AWS::GameLift::Build.

Methods

NameResourceAccessible byRequired Params
create_resourcebuildsINSERT, region
delete_resourcebuildsDELETEIdentifier, region
update_resourcebuildsUPDATEIdentifier, PatchDocument, region
list_resourcesbuilds_list_onlySELECTregion
get_resourcebuildsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual build.

SELECT
region,
build_id,
name,
operating_system,
storage_location,
version,
server_sdk_version,
tags,
build_arn
FROM awscc.gamelift.builds
WHERE
region = '{{ region }}' AND
Identifier = '{{ build_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.gamelift.builds (
,
region
)
SELECT
'{{ }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.gamelift.builds
SET PatchDocument = string('{{ {
"Name": name,
"Version": version,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ build_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.gamelift.builds
WHERE
Identifier = '{{ build_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

gamelift:DescribeBuild,
gamelift:CreateBuild,
gamelift:ListTagsForResource,
gamelift:TagResource,
iam:PassRole