locations
Creates, updates, deletes, gets or lists a locations resource.
Overview
| Name | locations |
| Type | Resource |
| Id | aws.gamelift.locations |
Fields
The following fields are returned by SELECT queries:
- list_locations
| Name | Datatype | Description |
|---|---|---|
location_arn | string | The Amazon Resource Name (ARN) that is assigned to a custom location resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912. (pattern: <code>^arn:.*:location/custom-\S+$</code>) |
location_name | string | The location's name. (pattern: <code>^[A-Za-z0-9-]+$</code>) |
ping_beacon | object | Information about the UDP ping beacon for this location. Ping beacons are fixed endpoints that you can use to measure network latency between a player device and an Amazon GameLift Servers hosting location. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_locations | select | region | This API works with the following fleet types: EC2, Anywhere, Container Lists all custom and Amazon Web Services locations where Amazon GameLift Servers can host game servers. This operation also returns UDP ping beacon information for locations, which you can use to measure network latency between player devices and potential hosting locations. Learn more Service locations | |
create_fleet_locations | insert | region, FleetId, Locations | This API works with the following fleet types: EC2, Anywhere, Container Adds remote locations to an EC2 and begins populating the new locations with instances. The new instances conform to the fleet's instance type, auto-scaling, and other configuration settings. You can't add remote locations to a fleet that resides in an Amazon Web Services Region that doesn't support multiple locations. Fleets created prior to March 2021 can't support multiple locations. To add fleet locations, specify the fleet to be updated and provide a list of one or more locations. If successful, this operation returns the list of added locations with their status set to NEW. Amazon GameLift Servers initiates the process of starting an instance in each added location. You can track the status of each new location by monitoring location creation events using DescribeFleetEvents. Learn more Setting up fleets Update fleet locations Amazon GameLift Servers service locations for managed hosting. | |
create_location | insert | region, LocationName | This API works with the following fleet types: Anywhere Creates a custom location for use in an Anywhere fleet. | |
delete_fleet_locations | delete | region | This API works with the following fleet types: EC2, Anywhere, Container Removes locations from a multi-location fleet. When deleting a location, all game server process and all instances that are still active in the location are shut down. To delete fleet locations, identify the fleet ID and provide a list of the locations to be deleted. If successful, GameLift sets the location status to DELETING, and begins to shut down existing server processes and terminate instances in each location being deleted. When completed, the location status changes to TERMINATED. Learn more Setting up Amazon GameLift Servers fleets | |
delete_location | delete | region | This API works with the following fleet types: Anywhere Deletes a custom location. Before deleting a custom location, review any fleets currently using the custom location and deregister the location if it is in use. For more information, see DeregisterCompute. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_locations
This API works with the following fleet types: EC2, Anywhere, Container Lists all custom and Amazon Web Services locations where Amazon GameLift Servers can host game servers. This operation also returns UDP ping beacon information for locations, which you can use to measure network latency between player devices and potential hosting locations. Learn more Service locations
SELECT
location_arn,
location_name,
ping_beacon
FROM aws.gamelift.locations
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_fleet_locations
- create_location
- Manifest
This API works with the following fleet types: EC2, Anywhere, Container Adds remote locations to an EC2 and begins populating the new locations with instances. The new instances conform to the fleet's instance type, auto-scaling, and other configuration settings. You can't add remote locations to a fleet that resides in an Amazon Web Services Region that doesn't support multiple locations. Fleets created prior to March 2021 can't support multiple locations. To add fleet locations, specify the fleet to be updated and provide a list of one or more locations. If successful, this operation returns the list of added locations with their status set to NEW. Amazon GameLift Servers initiates the process of starting an instance in each added location. You can track the status of each new location by monitoring location creation events using DescribeFleetEvents. Learn more Setting up fleets Update fleet locations Amazon GameLift Servers service locations for managed hosting.
INSERT INTO aws.gamelift.locations (
FleetId,
Locations,
region
)
SELECT
'{{ FleetId }}' /* required */,
'{{ Locations }}' /* required */,
'{{ region }}'
RETURNING
fleet_arn,
fleet_id,
location_states
;
This API works with the following fleet types: Anywhere Creates a custom location for use in an Anywhere fleet.
INSERT INTO aws.gamelift.locations (
LocationName,
Tags,
region
)
SELECT
'{{ LocationName }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
location
;
# Description fields are for documentation purposes
- name: locations
props:
- name: region
value: "{{ region }}"
description: Required parameter for the locations resource.
- name: FleetId
value: "{{ FleetId }}"
description: |
A unique identifier for the fleet to add locations to. You can use either the fleet ID or ARN value.
- name: Locations
description: |
A list of locations to deploy additional instances to and manage as part of the fleet. You can add any Amazon GameLift Servers-supported Amazon Web Services Region as a remote location, in the form of an Amazon Web Services Region code such as us-west-2.
value:
- Location: "{{ Location }}"
- name: LocationName
value: "{{ LocationName }}"
description: |
A descriptive name for the custom location.
- name: Tags
description: |
A list of labels to assign to the new resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management, and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Rareference.
value:
- Key: "{{ Key }}"
Value: "{{ Value }}"
DELETE examples
- delete_fleet_locations
- delete_location
This API works with the following fleet types: EC2, Anywhere, Container Removes locations from a multi-location fleet. When deleting a location, all game server process and all instances that are still active in the location are shut down. To delete fleet locations, identify the fleet ID and provide a list of the locations to be deleted. If successful, GameLift sets the location status to DELETING, and begins to shut down existing server processes and terminate instances in each location being deleted. When completed, the location status changes to TERMINATED. Learn more Setting up Amazon GameLift Servers fleets
DELETE FROM aws.gamelift.locations
WHERE region = '{{ region }}' --required
;
This API works with the following fleet types: Anywhere Deletes a custom location. Before deleting a custom location, review any fleets currently using the custom location and deregister the location if it is in use. For more information, see DeregisterCompute.
DELETE FROM aws.gamelift.locations
WHERE region = '{{ region }}' --required
;