Interface ManagedCapacityConfiguration.Builder

  • Method Details

    • zeroCapacityStrategy

      ManagedCapacityConfiguration.Builder zeroCapacityStrategy(String zeroCapacityStrategy)

      The strategy Amazon GameLift Servers will use to automatically scale your capacity to and from zero instances in response to game session activity. Game session activity refers to any active running sessions or game session requests.

      Possible ZeroCapacityStrategy types include:

      • MANUAL -- (default value) Amazon GameLift Servers will not update capacity to and from zero on your behalf.

      • SCALE_TO_AND_FROM_ZERO -- Amazon GameLift Servers will automatically scale out MinSize and DesiredInstances from 0 to 1 in response to a game session request, and will scale in MinSize and DesiredInstances to 0 after a period with no game session activity. The duration of this scale in period can be configured using ScaleInAfterInactivityMinutes.

      Parameters:
      zeroCapacityStrategy - The strategy Amazon GameLift Servers will use to automatically scale your capacity to and from zero instances in response to game session activity. Game session activity refers to any active running sessions or game session requests.

      Possible ZeroCapacityStrategy types include:

      • MANUAL -- (default value) Amazon GameLift Servers will not update capacity to and from zero on your behalf.

      • SCALE_TO_AND_FROM_ZERO -- Amazon GameLift Servers will automatically scale out MinSize and DesiredInstances from 0 to 1 in response to a game session request, and will scale in MinSize and DesiredInstances to 0 after a period with no game session activity. The duration of this scale in period can be configured using ScaleInAfterInactivityMinutes.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • zeroCapacityStrategy

      ManagedCapacityConfiguration.Builder zeroCapacityStrategy(ZeroCapacityStrategy zeroCapacityStrategy)

      The strategy Amazon GameLift Servers will use to automatically scale your capacity to and from zero instances in response to game session activity. Game session activity refers to any active running sessions or game session requests.

      Possible ZeroCapacityStrategy types include:

      • MANUAL -- (default value) Amazon GameLift Servers will not update capacity to and from zero on your behalf.

      • SCALE_TO_AND_FROM_ZERO -- Amazon GameLift Servers will automatically scale out MinSize and DesiredInstances from 0 to 1 in response to a game session request, and will scale in MinSize and DesiredInstances to 0 after a period with no game session activity. The duration of this scale in period can be configured using ScaleInAfterInactivityMinutes.

      Parameters:
      zeroCapacityStrategy - The strategy Amazon GameLift Servers will use to automatically scale your capacity to and from zero instances in response to game session activity. Game session activity refers to any active running sessions or game session requests.

      Possible ZeroCapacityStrategy types include:

      • MANUAL -- (default value) Amazon GameLift Servers will not update capacity to and from zero on your behalf.

      • SCALE_TO_AND_FROM_ZERO -- Amazon GameLift Servers will automatically scale out MinSize and DesiredInstances from 0 to 1 in response to a game session request, and will scale in MinSize and DesiredInstances to 0 after a period with no game session activity. The duration of this scale in period can be configured using ScaleInAfterInactivityMinutes.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scaleInAfterInactivityMinutes

      ManagedCapacityConfiguration.Builder scaleInAfterInactivityMinutes(Integer scaleInAfterInactivityMinutes)

      Length of time, in minutes, that Amazon GameLift Servers will wait before scaling in your MinSize and DesiredInstances to 0 after a period with no game session activity. Default: 30 minutes.

      Parameters:
      scaleInAfterInactivityMinutes - Length of time, in minutes, that Amazon GameLift Servers will wait before scaling in your MinSize and DesiredInstances to 0 after a period with no game session activity. Default: 30 minutes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.