aws-cdk-lib.aws_ec2.CfnInstance.CreditSpecificationProperty

interface CreditSpecificationProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnInstance.CreditSpecificationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnInstance_CreditSpecificationProperty
Javasoftware.amazon.awscdk.services.ec2.CfnInstance.CreditSpecificationProperty
Pythonaws_cdk.aws_ec2.CfnInstance.CreditSpecificationProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnInstance » 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-lib';
const creditSpecificationProperty: ec2.CfnInstance.CreditSpecificationProperty = {
  cpuCredits: 'cpuCredits',
};

Properties

NameTypeDescription
cpuCredits?stringThe 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.