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 in a specified fleet or location.

The location value might refer to a fleet's remote location or its home Region.

Related actions

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();
 
  • Method Details

    • getDesiredEc2Instances

      @Stability(Stable) @NotNull Number 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.

    • getMaxSize

      @Stability(Stable) @NotNull Number getMaxSize()
      The maximum number of instances that are allowed in the specified fleet location.

      If this parameter is not set, the default is 1.

    • getMinSize

      @Stability(Stable) @NotNull Number getMinSize()
      The minimum number of instances that are allowed in the specified fleet location.

      If this parameter is not set, the default is 0.

    • builder

      @Stability(Stable) static CfnFleet.LocationCapacityProperty.Builder builder()
      Returns:
      a CfnFleet.LocationCapacityProperty.Builder of CfnFleet.LocationCapacityProperty