Skip to content

ManagedCapacityConfiguration

Source code in docs_src/capo_gamelift/types/managed_capacity_configuration.py
class ManagedCapacityConfiguration(TypedDict, closed=True):
    zero_capacity_strategy: NotRequired[
        "capo_gamelift.types.zero_capacity_strategy.ZeroCapacityStrategy"
    ]
    """<p>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.</p> <p>Possible ZeroCapacityStrategy types include:</p> <ul> <li> <p> <b>MANUAL</b> -- (default value) Amazon GameLift Servers will not update capacity to and from zero on your behalf.</p> </li> <li> <p> <b>SCALE_TO_AND_FROM_ZERO</b> -- 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. </p> </li> </ul>"""
    scale_in_after_inactivity_minutes: NotRequired[
        "capo_gamelift.types.scale_in_after_inactivity_minutes.ScaleInAfterInactivityMinutes"
    ]
    """<p>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.</p>"""

scale_in_after_inactivity_minutes instance-attribute

scale_in_after_inactivity_minutes: NotRequired[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.

zero_capacity_strategy instance-attribute

zero_capacity_strategy: NotRequired[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.