Interface CfnContainerFleet.ILocationCapacityProperty
Current resource capacity settings in a specified fleet or location.
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnContainerFleet.ILocationCapacityProperty
Syntax (vb)
Public Interface CfnContainerFleet.ILocationCapacityProperty
Remarks
The location value might refer to a fleet's remote location or its home Region.
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 {
MaxSize = 123,
MinSize = 123,
// the properties below are optional
DesiredEc2Instances = 123
};
Synopsis
Properties
| DesiredEc2Instances | Defaults to MinSize if not defined. |
| MaxSize | The maximum value that is allowed for the fleet's instance count for a location. |
| MinSize | The minimum value allowed for the fleet's instance count for a location. |
Properties
DesiredEc2Instances
Defaults to MinSize if not defined.
double? DesiredEc2Instances { get; }
Property Value
Remarks
The number of EC2 instances you want to maintain in the specified fleet location. This value must fall between the minimum and maximum size limits. If any auto-scaling policy is defined for the container fleet, the desired instance will only be applied once during fleet creation and will be ignored in updates to avoid conflicts with auto-scaling. During updates with any auto-scaling policy defined, if current desired instance is lower than the new MinSize, it will be increased to the new MinSize; if current desired instance is larger than the new MaxSize, it will be decreased to the new MaxSize.
MaxSize
The maximum value that is allowed for the fleet's instance count for a location.
double MaxSize { get; }
Property Value
Remarks
MinSize
The minimum value allowed for the fleet's instance count for a location.
double MinSize { get; }