Show / Hide Table of Contents

Enum CpuCredits

Provides the options for specifying the CPU credit type for burstable EC2 instance types (T2, T3, T3a, etc).

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum CpuCredits
Syntax (vb)
Public Enum CpuCredits
Remarks

See: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-how-to.html

ExampleMetadata: infused

Examples
Vpc vpc;


             var instance = new Instance(this, "Instance", new InstanceProps {
                 InstanceType = InstanceType.Of(InstanceClass.T3, InstanceSize.MICRO),
                 MachineImage = MachineImage.LatestAmazonLinux2(),
                 Vpc = vpc,
                 CreditSpecification = CpuCredits.STANDARD
             });

Synopsis

Fields

STANDARD

Standard bursting mode.

UNLIMITED

Unlimited bursting mode.

Fields

Name Description
STANDARD

Standard bursting mode.

UNLIMITED

Unlimited bursting mode.

Back to top Generated by DocFX