enum CpuCredits
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CpuCredits |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CpuCredits |
Java | software.amazon.awscdk.services.ec2.CpuCredits |
Python | aws_cdk.aws_ec2.CpuCredits |
TypeScript (source) | aws-cdk-lib » aws_ec2 » CpuCredits |
Provides the options for specifying the CPU credit type for burstable EC2 instance types (T2, T3, T3a, etc).
Example
declare const vpc: ec2.Vpc;
const instance = new ec2.Instance(this, 'Instance', {
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.MICRO),
machineImage: ec2.MachineImage.latestAmazonLinux2(),
vpc: vpc,
creditSpecification: ec2.CpuCredits.STANDARD,
});
Members
| Name | Description |
|---|---|
| STANDARD | Standard bursting mode. |
| UNLIMITED | Unlimited bursting mode. |
STANDARD
Standard bursting mode.
UNLIMITED
Unlimited bursting mode.

.NET
Go
Java
Python
TypeScript (