Interface CfnAlias.RoutingStrategyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAlias.RoutingStrategyProperty.Jsii$Proxy
- Enclosing class:
CfnAlias
@Stability(Stable)
public static interface CfnAlias.RoutingStrategyProperty
extends software.amazon.jsii.JsiiSerializable
The routing configuration for a fleet alias.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.gamelift.*;
RoutingStrategyProperty routingStrategyProperty = RoutingStrategyProperty.builder()
.type("type")
// the properties below are optional
.fleetId("fleetId")
.message("message")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAlias.RoutingStrategyPropertystatic final classAn implementation forCfnAlias.RoutingStrategyProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
A type of routing strategy.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
TerminalRoutingStrategyExceptionwith the message that you specified in theMessageproperty.
- See Also:
-
getFleetId
A unique identifier for a fleet that the alias points to.If you specify
SIMPLEfor theTypeproperty, you must specify this property.- See Also:
-
getMessage
The message text to be used with a terminal routing strategy.If you specify
TERMINALfor theTypeproperty, you must specify this property.- See Also:
-
builder
-