Skip to main content

aliases

Creates, updates, deletes or gets an alias resource or lists aliases in a region

Overview

Namealiases
TypeResource
DescriptionThe AWS::GameLift::Alias resource creates an alias for an Amazon GameLift (GameLift) fleet destination.
Idaws.gamelift.aliases

Fields

NameDatatypeDescription
descriptionstringA human-readable description of the alias.
namestringA descriptive label that is associated with an alias. Alias names do not need to be unique.
routing_strategyobjectA routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message.
alias_idstringUnique alias ID
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, RoutingStrategy, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all aliases in a region.

SELECT
region,
description,
name,
routing_strategy,
alias_id
FROM aws.gamelift.aliases
WHERE region = 'us-east-1';

Gets all properties from an individual alias.

SELECT
region,
description,
name,
routing_strategy,
alias_id
FROM aws.gamelift.aliases
WHERE region = 'us-east-1' AND data__Identifier = '<AliasId>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

gamelift:CreateAlias

Read

gamelift:DescribeAlias

Update

gamelift:UpdateAlias

Delete

gamelift:DeleteAlias

List

gamelift:ListAliases