Skip to content
v2.277.0

LocationConfigurationProperty Struct ​

Configuration settings that define a stream group's stream capacity for a location.

When configuring a location for the first time, you must specify a numeric value for at least one of the two capacity types.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_gameliftstreams as gameliftstreams } from 'aws-cdk-lib';
const locationConfigurationProperty: gameliftstreams.CfnStreamGroup.LocationConfigurationProperty = {
  locationName: 'locationName',

  // the properties below are optional
  alwaysOnCapacity: 123,
  maximumCapacity: 123,
  onDemandCapacity: 123,
  targetIdleCapacity: 123,
  vpcTransitConfiguration: {
    ipv4CidrBlocks: ['ipv4CidrBlocks'],
    vpcId: 'vpcId',
  },
};
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_gameliftstreams as gameliftstreams

location_configuration_property = gameliftstreams.CfnStreamGroup.LocationConfigurationProperty(
    location_name="locationName",

    # the properties below are optional
    always_on_capacity=123,
    maximum_capacity=123,
    on_demand_capacity=123,
    target_idle_capacity=123,
    vpc_transit_configuration=gameliftstreams.CfnStreamGroup.VpcTransitConfigurationProperty(
        ipv4_cidr_blocks=["ipv4CidrBlocks"],
        vpc_id="vpcId"
    )
)
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.gameliftstreams.*;

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

        // the properties below are optional
        .alwaysOnCapacity(123)
        .maximumCapacity(123)
        .onDemandCapacity(123)
        .targetIdleCapacity(123)
        .vpcTransitConfiguration(VpcTransitConfigurationProperty.builder()
                .ipv4CidrBlocks(List.of("ipv4CidrBlocks"))
                .vpcId("vpcId")
                .build())
        .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.GameLiftStreams;

var locationConfigurationProperty = new LocationConfigurationProperty {
    LocationName = "locationName",

    // the properties below are optional
    AlwaysOnCapacity = 123,
    MaximumCapacity = 123,
    OnDemandCapacity = 123,
    TargetIdleCapacity = 123,
    VpcTransitConfiguration = new VpcTransitConfigurationProperty {
        Ipv4CidrBlocks = new [] { "ipv4CidrBlocks" },
        VpcId = "vpcId"
    }
};
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{
	LocationName: jsii.String("locationName"),

	// the properties below are optional
	AlwaysOnCapacity: jsii.Number(123),
	MaximumCapacity: jsii.Number(123),
	OnDemandCapacity: jsii.Number(123),
	TargetIdleCapacity: jsii.Number(123),
	VpcTransitConfiguration: &VpcTransitConfigurationProperty{
		Ipv4CidrBlocks: []*string{
			jsii.String("ipv4CidrBlocks"),
		},
		VpcId: jsii.String("vpcId"),
	},
}

Properties ​

alwaysOnCapacityoptionalnumberalways_on_capacityoptionalint | floatalwaysOnCapacityoptionalNumberAlwaysOnCapacityoptionaldoubleAlwaysOnCapacityoptional*float64 #
This setting, if non-zero, indicates minimum streaming capacity which is allocated to you and is never released back to the service.

You pay for this base level of capacity at all times, whether used or idle.

locationNamestringlocation_namestrlocationNameStringLocationNamestringLocationName*string required #
A location's name.
notes

For example, us-east-1 . For a complete list of locations that Amazon GameLift Streams supports, refer to Regions, quotas, and limitations in the Amazon GameLift Streams Developer Guide .

maximumCapacityoptionalnumbermaximum_capacityoptionalint | floatmaximumCapacityoptionalNumberMaximumCapacityoptionaldoubleMaximumCapacityoptional*float64 #
onDemandCapacityoptionalnumberon_demand_capacityoptionalint | floatonDemandCapacityoptionalNumberOnDemandCapacityoptionaldoubleOnDemandCapacityoptional*float64 #
This field is deprecated. Use MaximumCapacity instead. This parameter is ignored when MaximumCapacity is specified.
notes

The streaming capacity that Amazon GameLift Streams can allocate in response to stream requests, and then de-allocate when the session has terminated. This offers a cost control measure at the expense of a greater startup time (typically under 5 minutes). Default is 0 when you create a stream group or add a location.

targetIdleCapacityoptionalnumbertarget_idle_capacityoptionalint | floattargetIdleCapacityoptionalNumberTargetIdleCapacityoptionaldoubleTargetIdleCapacityoptional*float64 #
vpcTransitConfigurationoptionalIResolvable | CfnStreamGroup.VpcTransitConfigurationPropertyvpc_transit_configurationoptionaltyping.Union[IResolvable, VpcTransitConfigurationProperty]vpcTransitConfigurationoptionalIResolvableVpcTransitConfigurationoptionalIResolvableVpcTransitConfigurationoptionalinterface{} #