interface CreditSpecificationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnInstancePropsMixin.CreditSpecificationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnInstancePropsMixin_CreditSpecificationProperty |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnInstancePropsMixin.CreditSpecificationProperty |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnInstancePropsMixin.CreditSpecificationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnInstancePropsMixin » CreditSpecificationProperty |
Specifies the credit option for CPU usage of a T instance.
CreditSpecification is a property of the AWS::EC2::Instance resource.
For more information, see Burstable performance instances in the Amazon EC2 User Guide .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const creditSpecificationProperty: ec2_mixins.CfnInstancePropsMixin.CreditSpecificationProperty = {
cpuCredits: 'cpuCredits',
};
Properties
| Name | Type | Description |
|---|---|---|
| cpu | string | The credit option for CPU usage of the instance. |
cpuCredits?
Type:
string
(optional)
The credit option for CPU usage of the instance.
Valid values: standard | unlimited
T3 instances with host tenancy do not support the unlimited CPU credit option.

.NET
Go
Java
Python
TypeScript