interface LocationCapacityProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.GameLift.Mixins.CfnFleetPropsMixin.LocationCapacityProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsgamelift/mixins#CfnFleetPropsMixin_LocationCapacityProperty |
Java | software.amazon.awscdk.mixins.preview.services.gamelift.mixins.CfnFleetPropsMixin.LocationCapacityProperty |
Python | aws_cdk.mixins_preview.aws_gamelift.mixins.CfnFleetPropsMixin.LocationCapacityProperty |
TypeScript | @aws-cdk/mixins-preview » aws_gamelift » mixins » CfnFleetPropsMixin » LocationCapacityProperty |
Current resource capacity settings for managed EC2 fleets and managed container fleets.
For multi-location fleets, location values might refer to a fleet's remote location or its home Region.
Returned by: DescribeFleetCapacity , DescribeFleetLocationCapacity , UpdateFleetCapacity
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as gamelift_mixins } from '@aws-cdk/mixins-preview/aws-gamelift';
const locationCapacityProperty: gamelift_mixins.CfnFleetPropsMixin.LocationCapacityProperty = {
desiredEc2Instances: 123,
maxSize: 123,
minSize: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| desired | number | The number of Amazon EC2 instances you want to maintain in the specified fleet location. |
| max | number | The maximum number of instances that are allowed in the specified fleet location. |
| min | number | The minimum number of instances that are allowed in the specified fleet location. |
desiredEc2Instances?
Type:
number
(optional)
The number of Amazon EC2 instances you want to maintain in the specified fleet location.
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?
Type:
number
(optional)
The maximum number of instances that are allowed in the specified fleet location.
If this parameter is not set, the default is 1.
minSize?
Type:
number
(optional)
The minimum number of instances that are allowed in the specified fleet location.
If this parameter is not set, the default is 0.

.NET
Go
Java
Python
TypeScript