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

The amount of memory reserved for each instance of your App Runner service.

Obtainable from: Memory.EIGHT_GB, Memory.FOUR_GB, Memory.HALF_GB, Memory.ONE_GB, Memory.SIX_GB, Memory.TEN_GB, Memory.THREE_GB, Memory.TWELVE_GB, Memory.TWO_GB, Memory.of

- Stability: [Experimental](/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#L94)

## 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 memory = apprunner_alpha.Memory.EIGHT_GB;
```

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

memory = apprunner_alpha.Memory.EIGHT_GB
```

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.*;

Memory memory = Memory.EIGHT_GB;
```

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 memory = Memory.EIGHT_GB;
```

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"

memory := apprunner_alpha.Memory_EIGHT_GB()
```

## Properties

- `EIGHT_GB`: [Memory](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Memory.html) (static) — 8 GB(for 4 vCPU).

- `FOUR_GB`: [Memory](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Memory.html) (static) — 4 GB(for 1 or 2 vCPU).

- `HALF_GB`: [Memory](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Memory.html) (static) — 0.5 GB(for 0.25 vCPU).

- `ONE_GB`: [Memory](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Memory.html) (static) — 1 GB(for 0.25 or 0.5 vCPU).

- `SIX_GB`: [Memory](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Memory.html) (static) — 6 GB(for 2 vCPU).

- `TEN_GB`: [Memory](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Memory.html) (static) — 10 GB(for 4 vCPU).

- `THREE_GB`: [Memory](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Memory.html) (static) — 3 GB(for 1 vCPU).

- `TWELVE_GB`: [Memory](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Memory.html) (static) — 12 GB(for 4 vCPU).

- `TWO_GB`: [Memory](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Memory.html) (static) — 2 GB(for 1 vCPU).

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

## Methods

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

  **Parameters**

  - `unit` — custom Memory unit.
