Interface CfnFleet.LocationCapacityProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFleet.LocationCapacityProperty.Jsii$Proxy
- Enclosing class:
CfnFleet
@Stability(Stable)
public static interface CfnFleet.LocationCapacityProperty
extends software.amazon.jsii.JsiiSerializable
Current resource capacity settings for managed EC2 fleets and 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 software.amazon.awscdk.services.gamelift.*; LocationCapacityProperty locationCapacityProperty = LocationCapacityProperty.builder() .desiredEc2Instances(123) .maxSize(123) .minSize(123) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnFleet.LocationCapacityProperty
static final class
An implementation forCfnFleet.LocationCapacityProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The number of Amazon EC2 instances you want to maintain in the specified fleet location.The maximum number of instances that are allowed in the specified fleet location.The minimum number of instances that are allowed in the specified fleet location.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDesiredEc2Instances
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.
- See Also:
-
getMaxSize
The maximum number of instances that are allowed in the specified fleet location.If this parameter is not set, the default is 1.
- See Also:
-
getMinSize
The minimum number of instances that are allowed in the specified fleet location.If this parameter is not set, the default is 0.
- See Also:
-
builder
-