Class CfnEC2Fleet.TargetCapacitySpecificationRequestProperty
Specifies the number of units to request for an EC2 Fleet.
Inheritance
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.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 |
OnDemandTargetCapacity | The number of On-Demand units to request. |
SpotTargetCapacity | The number of Spot units to request. |
TargetCapacityUnitType | The unit for the target capacity. |
TotalTargetCapacity | The number of units to request, filled using |
Constructors
TargetCapacitySpecificationRequestProperty()
public TargetCapacitySpecificationRequestProperty()
Properties
DefaultTargetCapacityType
The default TotalTargetCapacity
, which is either Spot
or On-Demand
.
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. TargetCapacityUnitType
can only be specified when InstanceRequirements
is specified.
public string TargetCapacityUnitType { get; set; }
Property Value
System.String
Remarks
Default: units
(translates to number of instances)
TotalTargetCapacity
The number of units to request, filled using DefaultTargetCapacityType
.
public double TotalTargetCapacity { get; set; }
Property Value
System.Double