Class CapacityType
Capacity type of the managed node group.
Inheritance
System.Object
CapacityType
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class CapacityType : Enum
Syntax (vb)
Public NotInheritable Class CapacityType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
cluster.AddNodegroupCapacity("extra-ng-spot", new NodegroupOptions {
InstanceTypes = new [] {
new InstanceType("c5.large"),
new InstanceType("c5a.large"),
new InstanceType("c5d.large") },
MinSize = 3,
CapacityType = CapacityType.SPOT
});
Synopsis
Fields
ON_DEMAND | on-demand instances. |
SPOT | spot instances. |
value__ |
Fields
ON_DEMAND
SPOT
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |