Class CfnFleet.LocationCapacityProperty
Current resource capacity settings in a specified fleet or location.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LocationCapacityProperty : Object, CfnFleet.ILocationCapacityProperty
Syntax (vb)
Public Class LocationCapacityProperty
Inherits Object
Implements CfnFleet.ILocationCapacityProperty
Remarks
The location value might refer to a fleet's remote location or its home Region.
Related actions
DescribeFleetCapacity | DescribeFleetLocationCapacity | UpdateFleetCapacity
ExampleMetadata: fixture=_generated
Examples
// 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 locationCapacityProperty = new LocationCapacityProperty {
DesiredEc2Instances = 123,
MaxSize = 123,
MinSize = 123
};
Synopsis
Constructors
LocationCapacityProperty() |
Properties
DesiredEc2Instances | The number of Amazon EC2 instances you want to maintain in the specified fleet location. |
MaxSize | The maximum number of instances that are allowed in the specified fleet location. |
MinSize | The minimum number of instances that are allowed in the specified fleet location. |
Constructors
LocationCapacityProperty()
public LocationCapacityProperty()
Properties
DesiredEc2Instances
The number of Amazon EC2 instances you want to maintain in the specified fleet location.
public double DesiredEc2Instances { get; set; }
Property Value
System.Double
Remarks
This value must fall between the minimum and maximum size limits. Changes in desired instance value can take up to 1 minute to be reflected when viewing the fleet's capacity settings.
MaxSize
The maximum number of instances that are allowed in the specified fleet location.
public double MaxSize { get; set; }
Property Value
System.Double
Remarks
If this parameter is not set, the default is 1.
MinSize
The minimum number of instances that are allowed in the specified fleet location.
public double MinSize { get; set; }
Property Value
System.Double
Remarks
If this parameter is not set, the default is 0.