@Stability(value=Stable)
public static interface CfnFleet.LocationCapacityProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnFleet.LocationCapacityProperty.Builder
A builder for
CfnFleet.LocationCapacityProperty |
static class |
CfnFleet.LocationCapacityProperty.Jsii$Proxy
An implementation for
CfnFleet.LocationCapacityProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnFleet.LocationCapacityProperty.Builder |
builder() |
Number |
getDesiredEc2Instances()
The number of Amazon EC2 instances you want to maintain in the specified fleet location.
|
Number |
getMaxSize()
The maximum number of instances that are allowed in the specified fleet location.
|
Number |
getMinSize()
The minimum number of instances that are allowed in the specified fleet location.
|
@Stability(value=Stable) @NotNull Number getDesiredEc2Instances()
This value must fall between the minimum and maximum size limits.
@Stability(value=Stable) @NotNull Number getMaxSize()
If this parameter is not set, the default is 1.
@Stability(value=Stable) @NotNull Number getMinSize()
If this parameter is not set, the default is 0.
@Stability(value=Stable) static CfnFleet.LocationCapacityProperty.Builder builder()
Copyright © 2022. All rights reserved.