Experimental
@aws-cdk/aws-gamelift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
Location Struct
A remote location where a multi-location fleet can deploy EC2 instances for game hosting.
| Stability | Experimental |
|---|---|
| Source | lib/fleet-base.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as gamelift_alpha from '@aws-cdk/aws-gamelift-alpha';
const location: gamelift_alpha.Location = {
region: 'region',
// the properties below are optional
capacity: {
desiredCapacity: 123,
maxSize: 123,
minSize: 123,
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_gamelift_alpha as gamelift_alpha
location = gamelift_alpha.Location(
region="region",
# the properties below are optional
capacity=gamelift_alpha.LocationCapacity(
desired_capacity=123,
max_size=123,
min_size=123
)
)
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.alpha.*;
Location location = Location.builder()
.region("region")
// the properties below are optional
.capacity(LocationCapacity.builder()
.desiredCapacity(123)
.maxSize(123)
.minSize(123)
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.GameLift.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GameLift.Alpha;
var location = new Location {
Region = "region",
// the properties below are optional
Capacity = new LocationCapacity {
DesiredCapacity = 123,
MaxSize = 123,
MinSize = 123
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkgameliftalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import gamelift_alpha "github.com/aws/aws-cdk-go/awscdkgameliftalpha"
location := &Location{
Region: jsii.String("region"),
// the properties below are optional
Capacity: &LocationCapacity{
DesiredCapacity: jsii.Number(123),
MaxSize: jsii.Number(123),
MinSize: jsii.Number(123),
},
}
Properties
capacityoptionalLocationCapacitycapacityoptionalLocationCapacitycapacityoptionalLocationCapacityCapacityoptionalLocationCapacityCapacityoptionalLocationCapacity #Current resource capacity settings in a specified fleet or location.
Default: no capacity settings on the specified location
The location value might refer to a fleet's remote location or its home Region.
An AWS Region code.