amazonka-gamelift-1.4.5: 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:

  • caDescription - Human-readable description of an alias.
  • caName - Descriptive label associated with an alias. Alias names do not need to be unique.
  • caRoutingStrategy - Object specifying the fleet and routing type to use for the alias.

data CreateAlias Source #

Represents the input for a request action.

See: createAlias smart constructor.

Instances

Eq CreateAlias Source # 
Data CreateAlias Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateAlias -> c CreateAlias #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateAlias #

toConstr :: CreateAlias -> Constr #

dataTypeOf :: CreateAlias -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateAlias) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateAlias) #

gmapT :: (forall b. Data b => b -> b) -> CreateAlias -> CreateAlias #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateAlias -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateAlias -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateAlias -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateAlias -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateAlias -> m CreateAlias #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateAlias -> m CreateAlias #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateAlias -> m CreateAlias #

Read CreateAlias Source # 
Show CreateAlias Source # 
Generic CreateAlias Source # 

Associated Types

type Rep CreateAlias :: * -> * #

Hashable CreateAlias Source # 
ToJSON CreateAlias Source # 
NFData CreateAlias Source # 

Methods

rnf :: CreateAlias -> () #

AWSRequest CreateAlias Source # 
ToPath CreateAlias Source # 
ToHeaders CreateAlias Source # 

Methods

toHeaders :: CreateAlias -> [Header] #

ToQuery CreateAlias Source # 
type Rep CreateAlias Source # 
type Rep CreateAlias = D1 (MetaData "CreateAlias" "Network.AWS.GameLift.CreateAlias" "amazonka-gamelift-1.4.5-2krZbzEaIqtLV8ATX8AZ52" False) (C1 (MetaCons "CreateAlias'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_caDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_caName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_caRoutingStrategy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RoutingStrategy)))))
type Rs CreateAlias Source # 

Request Lenses

caDescription :: Lens' CreateAlias (Maybe Text) Source #

Human-readable description of an alias.

caName :: Lens' CreateAlias Text Source #

Descriptive label associated with an 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:

data CreateAliasResponse Source #

Represents the returned data in response to a request action.

See: createAliasResponse smart constructor.

Instances

Eq CreateAliasResponse Source # 
Data CreateAliasResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateAliasResponse -> c CreateAliasResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateAliasResponse #

toConstr :: CreateAliasResponse -> Constr #

dataTypeOf :: CreateAliasResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateAliasResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateAliasResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateAliasResponse -> CreateAliasResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateAliasResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateAliasResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateAliasResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateAliasResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateAliasResponse -> m CreateAliasResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateAliasResponse -> m CreateAliasResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateAliasResponse -> m CreateAliasResponse #

Read CreateAliasResponse Source # 
Show CreateAliasResponse Source # 
Generic CreateAliasResponse Source # 
NFData CreateAliasResponse Source # 

Methods

rnf :: CreateAliasResponse -> () #

type Rep CreateAliasResponse Source # 
type Rep CreateAliasResponse = D1 (MetaData "CreateAliasResponse" "Network.AWS.GameLift.CreateAlias" "amazonka-gamelift-1.4.5-2krZbzEaIqtLV8ATX8AZ52" False) (C1 (MetaCons "CreateAliasResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_carsAlias") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Alias))) (S1 (MetaSel (Just Symbol "_carsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

carsAlias :: Lens' CreateAliasResponse (Maybe Alias) Source #

Object containing the newly created alias record.

carsResponseStatus :: Lens' CreateAliasResponse Int Source #

  • - | The response status code.