Skip to content
v2.274.0

Experimental

@aws-cdk/aws-apprunner-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

Memory Class ​

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

Example ​

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;

Properties ​

EIGHT_GBMemoryeight_gbMemoryEIGHT_GBMemoryEIGHT_GBMemoryEIGHT_GBMemoryrequiredstatic#
8 GB(for 4 vCPU).
FOUR_GBMemoryfour_gbMemoryFOUR_GBMemoryFOUR_GBMemoryFOUR_GBMemoryrequiredstatic#
4 GB(for 1 or 2 vCPU).
HALF_GBMemoryhalf_gbMemoryHALF_GBMemoryHALF_GBMemoryHALF_GBMemoryrequiredstatic#
0.5 GB(for 0.25 vCPU).
ONE_GBMemoryone_gbMemoryONE_GBMemoryONE_GBMemoryONE_GBMemoryrequiredstatic#
1 GB(for 0.25 or 0.5 vCPU).
SIX_GBMemorysix_gbMemorySIX_GBMemorySIX_GBMemorySIX_GBMemoryrequiredstatic#
6 GB(for 2 vCPU).
TEN_GBMemoryten_gbMemoryTEN_GBMemoryTEN_GBMemoryTEN_GBMemoryrequiredstatic#
10 GB(for 4 vCPU).
THREE_GBMemorythree_gbMemoryTHREE_GBMemoryTHREE_GBMemoryTHREE_GBMemoryrequiredstatic#
3 GB(for 1 vCPU).
TWELVE_GBMemorytwelve_gbMemoryTWELVE_GBMemoryTWELVE_GBMemoryTWELVE_GBMemoryrequiredstatic#
12 GB(for 4 vCPU).
TWO_GBMemorytwo_gbMemoryTWO_GBMemoryTWO_GBMemoryTWO_GBMemoryrequiredstatic#
2 GB(for 1 vCPU).
unitstringunitstrunitStringUnitstringUnit*stringrequired#
The unit of memory.

Methods ​

of(unit: string): Memory // chainable@staticmethod def of(unit: str) -> Memorypublic static Memory of(String unit)public static Memory Of(string unit)func Of(Unit *string) Memorystatic#
Custom Memory unit.
1 parameter

Parameters

  • unitunitunitunitUnit — custom Memory unit.