interface CreditSpecificationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.EC2.CfnInstancePropsMixin.CreditSpecificationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsec2#CfnInstancePropsMixin_CreditSpecificationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnInstancePropsMixin.CreditSpecificationProperty |
Python | aws_cdk.cfn_property_mixins.aws_ec2.CfnInstancePropsMixin.CreditSpecificationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_ec2 » 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 { aws_ec2 as ec2 } from '@aws-cdk/cfn-property-mixins';
const creditSpecificationProperty: ec2.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