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();
 
  • Method Details

    • getType

      @Stability(Stable) @NotNull String 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 TerminalRoutingStrategyException with the message that you specified in the Message property.
    • getFleetId

      @Stability(Stable) @Nullable default String getFleetId()
      A unique identifier for a fleet that the alias points to.

      If you specify SIMPLE for the Type property, you must specify this property.

    • getMessage

      @Stability(Stable) @Nullable default String getMessage()
      The message text to be used with a terminal routing strategy.

      If you specify TERMINAL for the Type property, you must specify this property.

    • builder

      @Stability(Stable) static CfnAlias.RoutingStrategyProperty.Builder builder()
      Returns:
      a CfnAlias.RoutingStrategyProperty.Builder of CfnAlias.RoutingStrategyProperty