Skip to main content

locations

Creates, updates, deletes or gets a location resource or lists locations in a region

Overview

Namelocations
TypeResource
DescriptionThe AWS::GameLift::Location resource creates an Amazon GameLift (GameLift) custom location.
Idaws.gamelift.locations

Fields

NameDatatypeDescription
location_namestring
location_arnstring
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

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

SELECT examples

Gets all locations in a region.

SELECT
region,
location_name,
location_arn,
tags
FROM aws.gamelift.locations
WHERE region = 'us-east-1';

Gets all properties from an individual location.

SELECT
region,
location_name,
location_arn,
tags
FROM aws.gamelift.locations
WHERE region = 'us-east-1' AND data__Identifier = '<LocationName>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

gamelift:CreateLocation,
gamelift:ListLocations,
gamelift:ListTagsForResource,
gamelift:TagResource

Read

gamelift:ListLocations,
gamelift:ListTagsForResource

Delete

gamelift:DeleteLocation

List

gamelift:ListLocations

Update

gamelift:ListLocations,
gamelift:ListTagsForResource,
gamelift:TagResource,
gamelift:UntagResource