# ManagedCapacityConfigurationProperty

Configuration options for Amazon GameLift Servers managed capacity behavior.

- Source: Generated code
- Type last changed: v2.239.0 · 19 Feb 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_gamelift as gamelift } from 'aws-cdk-lib';
const managedCapacityConfigurationProperty: gamelift.CfnContainerFleet.ManagedCapacityConfigurationProperty = {
  zeroCapacityStrategy: 'zeroCapacityStrategy',

  // the properties below are optional
  scaleInAfterInactivityMinutes: 123,
};
```

## Properties

- `scaleInAfterInactivityMinutes`: number — 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.

- `zeroCapacityStrategy`: string (required) — The strategy Amazon GameLift Servers will use to automatically scale your capacity to and from zero in response to game session activity.

  Game session activity refers to any active running sessions or game session requests. When set to SCALE_TO_AND_FROM_ZERO, MinSize must not be specified and will be managed automatically. When set to MANUAL, MinSize is required.
