amazonka-gamelift-1.4.0: Amazon GameLift SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.GameLift.CreateAlias

Contents

Description

Creates an alias for a fleet. You can use an alias to anonymize your fleet by referencing an alias instead of a specific fleet when you create game sessions. Amazon GameLift supports two types of routing strategies for aliases: simple and terminal. Use a simple alias to point to an active fleet. Use a terminal alias to display a message to incoming traffic instead of routing players to an active fleet. This option is useful when a game server is no longer supported but you want to provide better messaging than a standard 404 error.

To create a fleet alias, specify an alias name, routing strategy, and optional description. If successful, a new alias record is returned, including an alias ID, which you can reference when creating a game session. To reassign the alias to another fleet ID, call UpdateAlias.

Synopsis

Creating a Request

createAlias Source

Creates a value of CreateAlias with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

caDescription :: Lens' CreateAlias (Maybe Text) Source

Human-readable description of the alias.

caName :: Lens' CreateAlias Text Source

Descriptive label associated with this alias. Alias names do not need to be unique.

caRoutingStrategy :: Lens' CreateAlias RoutingStrategy Source

Object specifying the fleet and routing type to use for the alias.

Destructuring the Response

createAliasResponse Source

Creates a value of CreateAliasResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

carsAlias :: Lens' CreateAliasResponse (Maybe Alias) Source

Object containing the newly created alias record.