Class CpuCredits
Provides the options for specifying the CPU credit type for burstable EC2 instance types (T2, T3, T3a, etc).
Inheritance
System.Object
CpuCredits
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class CpuCredits : Enum
Syntax (vb)
Public NotInheritable Class CpuCredits
Inherits
Enum
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. |
value__ |
Fields
STANDARD
Standard bursting mode.
public const CpuCredits STANDARD
Field Value
Type | Description |
---|---|
CpuCredits |
Remarks
UNLIMITED
Unlimited bursting mode.
public const CpuCredits UNLIMITED
Field Value
Type | Description |
---|---|
CpuCredits |
Remarks
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |