aws-cdk-lib.aws_eks.CapacityType

enum CapacityType

LanguageType name
.NETAmazon.CDK.AWS.EKS.CapacityType
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awseks#CapacityType
Javasoftware.amazon.awscdk.services.eks.CapacityType
Pythonaws_cdk.aws_eks.CapacityType
TypeScript (source)aws-cdk-lib » aws_eks » CapacityType

Capacity type of the managed node group.

Example

declare const cluster: eks.Cluster;
cluster.addNodegroupCapacity('extra-ng-spot', {
  instanceTypes: [
    new ec2.InstanceType('c5.large'),
    new ec2.InstanceType('c5a.large'),
    new ec2.InstanceType('c5d.large'),
  ],
  minSize: 3,
  capacityType: eks.CapacityType.SPOT,
});

Members

NameDescription
SPOTspot instances.
ON_DEMANDon-demand instances.

SPOT

spot instances.


ON_DEMAND

on-demand instances.