interface LocationCapacityProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.GameLift.CfnContainerFleet.LocationCapacityProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsgamelift#CfnContainerFleet_LocationCapacityProperty |
![]() | software.amazon.awscdk.services.gamelift.CfnContainerFleet.LocationCapacityProperty |
![]() | aws_cdk.aws_gamelift.CfnContainerFleet.LocationCapacityProperty |
![]() | aws-cdk-lib » aws_gamelift » CfnContainerFleet » LocationCapacityProperty |
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.
Example
// 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 locationCapacityProperty: gamelift.CfnContainerFleet.LocationCapacityProperty = {
desiredEc2Instances: 123,
maxSize: 123,
minSize: 123,
};
Properties
Name | Type | Description |
---|---|---|
desired | number | The number of EC2 instances you want to maintain in the specified fleet location. |
max | number | The maximum value that is allowed for the fleet's instance count for a location. |
min | number | The minimum value allowed for the fleet's instance count for a location. |
desiredEc2Instances
Type:
number
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
Type:
number
The maximum value that is allowed for the fleet's instance count for a location.
minSize
Type:
number
The minimum value allowed for the fleet's instance count for a location.