class Memory
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppRunner.Alpha.Memory |
Go | github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#Memory |
Java | software.amazon.awscdk.services.apprunner.alpha.Memory |
Python | aws_cdk.aws_apprunner_alpha.Memory |
TypeScript (source) | @aws-cdk/aws-apprunner-alpha ยป Memory |
The amount of memory reserved for each instance of your App Runner service.
Example
// 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;
Properties
Name | Type | Description |
---|---|---|
unit | string | The unit of memory. |
static EIGHT_GB | Memory | 8 GB(for 4 vCPU). |
static FOUR_GB | Memory | 4 GB(for 1 or 2 vCPU). |
static HALF_GB | Memory | 0.5 GB(for 0.25 vCPU). |
static ONE_GB | Memory | 1 GB(for 0.25 or 0.5 vCPU). |
static SIX_GB | Memory | 6 GB(for 2 vCPU). |
static TEN_GB | Memory | 10 GB(for 4 vCPU). |
static THREE_GB | Memory | 3 GB(for 1 vCPU). |
static TWELVE_GB | Memory | 12 GB(for 4 vCPU). |
static TWO_GB | Memory | 2 GB(for 1 vCPU). |
unit
Type:
string
The unit of memory.
static EIGHT_GB
Type:
Memory
8 GB(for 4 vCPU).
static FOUR_GB
Type:
Memory
4 GB(for 1 or 2 vCPU).
static HALF_GB
Type:
Memory
0.5 GB(for 0.25 vCPU).
static ONE_GB
Type:
Memory
1 GB(for 0.25 or 0.5 vCPU).
static SIX_GB
Type:
Memory
6 GB(for 2 vCPU).
static TEN_GB
Type:
Memory
10 GB(for 4 vCPU).
static THREE_GB
Type:
Memory
3 GB(for 1 vCPU).
static TWELVE_GB
Type:
Memory
12 GB(for 4 vCPU).
static TWO_GB
Type:
Memory
2 GB(for 1 vCPU).
Methods
Name | Description |
---|---|
static of(unit) | Custom Memory unit. |
static of(unit)
public static of(unit: string): Memory
Parameters
- unit
string
โ custom Memory unit.
Returns
Custom Memory unit.