> **Experimental**
>
> `@aws-cdk/aws-apprunner-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# Cpu

The number of CPU units reserved for each instance of your App Runner service.

Obtainable from: Cpu.FOUR_VCPU, Cpu.HALF_VCPU, Cpu.ONE_VCPU, Cpu.QUARTER_VCPU, Cpu.TWO_VCPU, Cpu.of

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/service.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-apprunner-alpha/lib/service.ts#L37)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apprunner_alpha from '@aws-cdk/aws-apprunner-alpha';
const cpu = apprunner_alpha.Cpu.FOUR_VCPU;
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_apprunner_alpha as apprunner_alpha

cpu = apprunner_alpha.Cpu.FOUR_VCPU
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apprunner.alpha.*;

Cpu cpu = Cpu.FOUR_VCPU;
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.AppRunner.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner.Alpha;

var cpu = Cpu.FOUR_VCPU;
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import apprunner_alpha "github.com/aws/aws-cdk-go/awscdkapprunneralpha"

cpu := apprunner_alpha.Cpu_FOUR_VCPU()
```

## Properties

- `FOUR_VCPU`: [Cpu](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Cpu.html) (static) — 4 vCPU.

- `HALF_VCPU`: [Cpu](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Cpu.html) (static) — 0.5 vCPU.

- `ONE_VCPU`: [Cpu](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Cpu.html) (static) — 1 vCPU.

- `QUARTER_VCPU`: [Cpu](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Cpu.html) (static) — 0.25 vCPU.

- `TWO_VCPU`: [Cpu](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Cpu.html) (static) — 2 vCPU.

- `unit`: string — The unit of CPU.

## Methods

- `of(unit: string): Cpu // chainable` (static) — Custom CPU unit.

  **Parameters**

  - `unit` — custom CPU unit.
