# LocationConfigurationProperty

A remote location where a multi-location fleet can deploy game servers for game hosting.

- Source: Generated at build time
- Type last changed: v2.242.0 · 10 Mar 2026

## Example

TypeScript:

```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 locationConfigurationProperty: gamelift.CfnContainerFleet.LocationConfigurationProperty = {
  location: 'location',

  // the properties below are optional
  locationCapacity: {
    maxSize: 123,

    // the properties below are optional
    desiredEc2Instances: 123,
    managedCapacityConfiguration: {
      zeroCapacityStrategy: 'zeroCapacityStrategy',

      // the properties below are optional
      scaleInAfterInactivityMinutes: 123,
    },
    minSize: 123,
  },
  playerGatewayStatus: 'playerGatewayStatus',
  stoppedActions: ['stoppedActions'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_gamelift as gamelift

location_configuration_property = gamelift.CfnContainerFleet.LocationConfigurationProperty(
    location="location",

    # the properties below are optional
    location_capacity=gamelift.CfnContainerFleet.LocationCapacityProperty(
        max_size=123,

        # the properties below are optional
        desired_ec2_instances=123,
        managed_capacity_configuration=gamelift.CfnContainerFleet.ManagedCapacityConfigurationProperty(
            zero_capacity_strategy="zeroCapacityStrategy",

            # the properties below are optional
            scale_in_after_inactivity_minutes=123
        ),
        min_size=123
    ),
    player_gateway_status="playerGatewayStatus",
    stopped_actions=["stoppedActions"]
)
```

Java:

```java
// 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.*;

LocationConfigurationProperty locationConfigurationProperty = LocationConfigurationProperty.builder()
        .location("location")

        // the properties below are optional
        .locationCapacity(LocationCapacityProperty.builder()
                .maxSize(123)

                // the properties below are optional
                .desiredEc2Instances(123)
                .managedCapacityConfiguration(ManagedCapacityConfigurationProperty.builder()
                        .zeroCapacityStrategy("zeroCapacityStrategy")

                        // the properties below are optional
                        .scaleInAfterInactivityMinutes(123)
                        .build())
                .minSize(123)
                .build())
        .playerGatewayStatus("playerGatewayStatus")
        .stoppedActions(List.of("stoppedActions"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GameLift;

var locationConfigurationProperty = new LocationConfigurationProperty {
    Location = "location",

    // the properties below are optional
    LocationCapacity = new LocationCapacityProperty {
        MaxSize = 123,

        // the properties below are optional
        DesiredEc2Instances = 123,
        ManagedCapacityConfiguration = new ManagedCapacityConfigurationProperty {
            ZeroCapacityStrategy = "zeroCapacityStrategy",

            // the properties below are optional
            ScaleInAfterInactivityMinutes = 123
        },
        MinSize = 123
    },
    PlayerGatewayStatus = "playerGatewayStatus",
    StoppedActions = new [] { "stoppedActions" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

locationConfigurationProperty := &LocationConfigurationProperty{
	Location: jsii.String("location"),

	// the properties below are optional
	LocationCapacity: &LocationCapacityProperty{
		MaxSize: jsii.Number(123),

		// the properties below are optional
		DesiredEc2Instances: jsii.Number(123),
		ManagedCapacityConfiguration: &ManagedCapacityConfigurationProperty{
			ZeroCapacityStrategy: jsii.String("zeroCapacityStrategy"),

			// the properties below are optional
			ScaleInAfterInactivityMinutes: jsii.Number(123),
		},
		MinSize: jsii.Number(123),
	},
	PlayerGatewayStatus: jsii.String("playerGatewayStatus"),
	StoppedActions: []*string{
		jsii.String("stoppedActions"),
	},
}
```

## Properties

- `location`: string (required) — An AWS Region code, such as `us-west-2` .

  For a list of supported Regions and Local Zones, see [Amazon GameLift Servers service locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for managed hosting.

- `locationCapacity`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnContainerFleet.LocationCapacityProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_gamelift.CfnContainerFleet.LocationCapacityProperty.html) — Current resource capacity settings in a specified fleet or location.

  The location value might refer to a fleet's remote location or its home Region.

- `playerGatewayStatus`: string — The player gateway status for the location.

- `stoppedActions`: string[] — A list of fleet actions that have been suspended in the fleet location.
