Interface CfnEC2Fleet.ITargetCapacitySpecificationRequestProperty
Specifies the number of units to request for an EC2 Fleet.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ITargetCapacitySpecificationRequestProperty
Syntax (vb)
Public Interface ITargetCapacitySpecificationRequestProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var targetCapacitySpecificationRequestProperty = new TargetCapacitySpecificationRequestProperty {
TotalTargetCapacity = 123,
// the properties below are optional
DefaultTargetCapacityType = "defaultTargetCapacityType",
OnDemandTargetCapacity = 123,
SpotTargetCapacity = 123,
TargetCapacityUnitType = "targetCapacityUnitType"
};
Synopsis
Properties
Default |
The default target capacity type. |
On |
The number of On-Demand units to request. |
Spot |
The number of Spot units to request. |
Target |
The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection. |
Total |
The number of units to request, filled using the default target capacity type. |
Properties
DefaultTargetCapacityType
The default target capacity type.
virtual string DefaultTargetCapacityType { get; }
Property Value
System.
Remarks
OnDemandTargetCapacity
The number of On-Demand units to request.
virtual Nullable<double> OnDemandTargetCapacity { get; }
Property Value
System.
Remarks
SpotTargetCapacity
The number of Spot units to request.
virtual Nullable<double> SpotTargetCapacity { get; }
Property Value
System.
Remarks
TargetCapacityUnitType
The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection.
virtual string TargetCapacityUnitType { get; }
Property Value
System.
Remarks
TotalTargetCapacity
The number of units to request, filled using the default target capacity type.
double TotalTargetCapacity { get; }
Property Value
System.