# CreditSpecificationProperty

Specifies the credit option for CPU usage of a T instance.

`CreditSpecification` is a property of the [AWS::EC2::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html) resource.

For more information, see [Burstable performance instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) in the *Amazon EC2 User Guide* .

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// 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

- `cpuCredits`: string — 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.
