BurstablePerformance Enum
Burstable CPU performance requirements for EC2 instances.
Controls whether selected instance types must, may, or must not support burstable vCPU performance (e.g., T3, T4g families).
Example
ts
declare const vpc: ec2.Vpc;
const securityGroup = new ec2.SecurityGroup(this, 'SecurityGroup', {
vpc,
description: 'Security group for managed instances',
});
const miCapacityProvider = new ecs.ManagedInstancesCapacityProvider(this, 'MICapacityProvider', {
subnets: vpc.privateSubnets,
securityGroups: [securityGroup],
instanceRequirements: {
// Required: CPU and memory constraints
vCpuCountMin: 2,
vCpuCountMax: 8,
memoryMin: Size.gibibytes(4),
memoryMax: Size.gibibytes(32),
// CPU preferences
cpuManufacturers: [ec2.CpuManufacturer.INTEL, ec2.CpuManufacturer.AMD],
instanceGenerations: [ec2.InstanceGeneration.CURRENT],
// Instance type filtering
allowedInstanceTypes: ['m5.*', 'c5.*'],
// Performance characteristics
burstablePerformance: ec2.BurstablePerformance.EXCLUDED,
bareMetal: ec2.BareMetal.EXCLUDED,
// Accelerator requirements (for ML/AI workloads)
acceleratorTypes: [ec2.AcceleratorType.GPU],
acceleratorManufacturers: [ec2.AcceleratorManufacturer.NVIDIA],
acceleratorNames: [ec2.AcceleratorName.T4, ec2.AcceleratorName.V100],
acceleratorCountMin: 1,
// Storage requirements
localStorage: ec2.LocalStorage.REQUIRED,
localStorageTypes: [ec2.LocalStorageType.SSD],
totalLocalStorageGBMin: 100,
// Network requirements
networkInterfaceCountMin: 2,
networkBandwidthGbpsMin: 10,
// Cost optimization
onDemandMaxPricePercentageOverLowestPrice: 10,
},
});
Members
| Member | Description |
|---|---|
INCLUDED | Burstable-performance instance types are allowed, but non-burstable types may also be selected. |
REQUIRED | Only burstable-performance instance types are allowed. |
EXCLUDED | Burstable-performance instance types are disallowed. |
Referenced by
InstanceRequirementsConfig.burstablePerformanceburstable_performanceburstablePerformanceBurstablePerformanceBurstablePerformance