Skip to content
v2.278.0

LocationConfigurationProperty Struct ​

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

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 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
# 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
// 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();
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" }
};
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 ​

locationstringlocationstrlocationStringLocationstringLocation*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 for managed hosting.

locationCapacityoptionalIResolvable | CfnContainerFleet.LocationCapacityPropertylocation_capacityoptionaltyping.Union[IResolvable, LocationCapacityProperty]locationCapacityoptionalIResolvableLocationCapacityoptionalIResolvableLocationCapacityoptionalinterface{} #
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.

playerGatewayStatusoptionalstringplayer_gateway_statusoptionalstrplayerGatewayStatusoptionalStringPlayerGatewayStatusoptionalstringPlayerGatewayStatusoptional*string #
The player gateway status for the location.
stoppedActionsoptionalstring[]stopped_actionsoptionaltyping.List[str]stoppedActionsoptionalList<String>StoppedActionsoptionalstring[]StoppedActionsoptional*[]*string #
A list of fleet actions that have been suspended in the fleet location.