Class CfnEC2Fleet.TargetCapacitySpecificationRequestProperty
Specifies the number of units to request for an EC2 Fleet.
Inheritance
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TargetCapacitySpecificationRequestProperty : Object, CfnEC2Fleet.ITargetCapacitySpecificationRequestProperty
Syntax (vb)
Public Class TargetCapacitySpecificationRequestProperty
Inherits Object
Implements CfnEC2Fleet.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
Constructors
TargetCapacitySpecificationRequestProperty() |
Properties
DefaultTargetCapacityType | The default target capacity type. |
OnDemandTargetCapacity | The number of On-Demand units to request. |
SpotTargetCapacity | The number of Spot units to request. |
TargetCapacityUnitType | The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection. |
TotalTargetCapacity | The number of units to request, filled using the default target capacity type. |
Constructors
TargetCapacitySpecificationRequestProperty()
public TargetCapacitySpecificationRequestProperty()
Properties
DefaultTargetCapacityType
The default target capacity type.
public string DefaultTargetCapacityType { get; set; }
Property Value
System.String
Remarks
OnDemandTargetCapacity
The number of On-Demand units to request.
public Nullable<double> OnDemandTargetCapacity { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
SpotTargetCapacity
The number of Spot units to request.
public Nullable<double> SpotTargetCapacity { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
TargetCapacityUnitType
The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection.
public string TargetCapacityUnitType { get; set; }
Property Value
System.String
Remarks
TotalTargetCapacity
The number of units to request, filled using the default target capacity type.
public double TotalTargetCapacity { get; set; }
Property Value
System.Double