Interface CfnEC2FleetPropsMixin.TargetCapacitySpecificationRequestProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEC2FleetPropsMixin.TargetCapacitySpecificationRequestProperty.Jsii$Proxy
- Enclosing class:
CfnEC2FleetPropsMixin
@Stability(Stable)
public static interface CfnEC2FleetPropsMixin.TargetCapacitySpecificationRequestProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the number of units to request for an EC2 Fleet.
You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain , you can specify a target capacity of 0 and add capacity later.
TargetCapacitySpecificationRequest is a property of the AWS::EC2::EC2Fleet resource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.ec2.*;
TargetCapacitySpecificationRequestProperty targetCapacitySpecificationRequestProperty = TargetCapacitySpecificationRequestProperty.builder()
.defaultTargetCapacityType("defaultTargetCapacityType")
.onDemandTargetCapacity(123)
.spotTargetCapacity(123)
.targetCapacityUnitType("targetCapacityUnitType")
.totalTargetCapacity(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnEC2FleetPropsMixin.TargetCapacitySpecificationRequestProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe default target capacity type.default NumberThe number of On-Demand units to request.default NumberThe number of Spot units to request.default StringThe unit for the target capacity.default NumberThe number of units to request, filled using the default target capacity type.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefaultTargetCapacityType
The default target capacity type.- See Also:
-
getOnDemandTargetCapacity
The number of On-Demand units to request.- See Also:
-
getSpotTargetCapacity
The number of Spot units to request.- See Also:
-
getTargetCapacityUnitType
The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection.Default:
units(the number of instances)- See Also:
-
getTotalTargetCapacity
The number of units to request, filled using the default target capacity type.- See Also:
-
builder
@Stability(Stable) static CfnEC2FleetPropsMixin.TargetCapacitySpecificationRequestProperty.Builder builder()
-