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

Amazonka.GameLift.Types.RoutingStrategy

Description

 
Synopsis

Documentation

data RoutingStrategy Source #

The routing configuration for a fleet alias.

Related actions

CreateAlias | ListAliases | DescribeAlias | UpdateAlias | DeleteAlias | ResolveAlias | All APIs by task

See: newRoutingStrategy smart constructor.

Constructors

RoutingStrategy' 

Fields

  • type' :: Maybe RoutingStrategyType

    The type of routing strategy for the alias.

    Possible routing types include the following:

    • SIMPLE - The alias resolves to one specific fleet. Use this type when routing to active fleets.
    • TERMINAL - The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the RoutingStrategy message embedded.
  • message :: Maybe Text

    The message text to be used with a terminal routing strategy.

  • fleetId :: Maybe Text

    A unique identifier for the fleet that the alias points to. This value is the fleet ID, not the fleet ARN.

Instances

Instances details
Eq RoutingStrategy Source # 
Instance details

Defined in Amazonka.GameLift.Types.RoutingStrategy

Read RoutingStrategy Source # 
Instance details

Defined in Amazonka.GameLift.Types.RoutingStrategy

Show RoutingStrategy Source # 
Instance details

Defined in Amazonka.GameLift.Types.RoutingStrategy

Generic RoutingStrategy Source # 
Instance details

Defined in Amazonka.GameLift.Types.RoutingStrategy

Associated Types

type Rep RoutingStrategy :: Type -> Type #

NFData RoutingStrategy Source # 
Instance details

Defined in Amazonka.GameLift.Types.RoutingStrategy

Methods

rnf :: RoutingStrategy -> () #

Hashable RoutingStrategy Source # 
Instance details

Defined in Amazonka.GameLift.Types.RoutingStrategy

ToJSON RoutingStrategy Source # 
Instance details

Defined in Amazonka.GameLift.Types.RoutingStrategy

FromJSON RoutingStrategy Source # 
Instance details

Defined in Amazonka.GameLift.Types.RoutingStrategy

type Rep RoutingStrategy Source # 
Instance details

Defined in Amazonka.GameLift.Types.RoutingStrategy

type Rep RoutingStrategy = D1 ('MetaData "RoutingStrategy" "Amazonka.GameLift.Types.RoutingStrategy" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "RoutingStrategy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RoutingStrategyType)) :*: (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newRoutingStrategy :: RoutingStrategy Source #

Create a value of RoutingStrategy with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:type':RoutingStrategy', routingStrategy_type - The type of routing strategy for the alias.

Possible routing types include the following:

  • SIMPLE - The alias resolves to one specific fleet. Use this type when routing to active fleets.
  • TERMINAL - The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the RoutingStrategy message embedded.

$sel:message:RoutingStrategy', routingStrategy_message - The message text to be used with a terminal routing strategy.

$sel:fleetId:RoutingStrategy', routingStrategy_fleetId - A unique identifier for the fleet that the alias points to. This value is the fleet ID, not the fleet ARN.

routingStrategy_type :: Lens' RoutingStrategy (Maybe RoutingStrategyType) Source #

The type of routing strategy for the alias.

Possible routing types include the following:

  • SIMPLE - The alias resolves to one specific fleet. Use this type when routing to active fleets.
  • TERMINAL - The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the RoutingStrategy message embedded.

routingStrategy_message :: Lens' RoutingStrategy (Maybe Text) Source #

The message text to be used with a terminal routing strategy.

routingStrategy_fleetId :: Lens' RoutingStrategy (Maybe Text) Source #

A unique identifier for the fleet that the alias points to. This value is the fleet ID, not the fleet ARN.