Class CfnInstance.CreditSpecificationProperty
Specifies the credit option for CPU usage of a T instance.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInstance.CreditSpecificationProperty : CfnInstance.ICreditSpecificationProperty
Syntax (vb)
Public Class CfnInstance.CreditSpecificationProperty Implements CfnInstance.ICreditSpecificationProperty
Remarks
CreditSpecification is a property of the AWS::EC2::Instance resource.
For more information, see Burstable performance instances in the Amazon EC2 User Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var creditSpecificationProperty = new CreditSpecificationProperty {
CpuCredits = "cpuCredits"
};
Synopsis
Constructors
| CreditSpecificationProperty() | Specifies the credit option for CPU usage of a T instance. |
Properties
| CpuCredits | The credit option for CPU usage of the instance. |
Constructors
CreditSpecificationProperty()
Specifies the credit option for CPU usage of a T instance.
public CreditSpecificationProperty()
Remarks
CreditSpecification is a property of the AWS::EC2::Instance resource.
For more information, see Burstable performance instances in the Amazon EC2 User Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var creditSpecificationProperty = new CreditSpecificationProperty {
CpuCredits = "cpuCredits"
};
Properties
CpuCredits
The credit option for CPU usage of the instance.
public string? CpuCredits { get; set; }
Property Value
Remarks
Valid values: standard | unlimited
T3 instances with host tenancy do not support the unlimited CPU credit option.