Skip to content
v2.277.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;
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
// 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;
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;
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_GBMemoryEIGHT_GBMemoryEIGHT_GBMemoryEIGHT_GBMemoryEIGHT_GBMemory static #
8 GB(for 4 vCPU).
FOUR_GBMemoryFOUR_GBMemoryFOUR_GBMemoryFOUR_GBMemoryFOUR_GBMemory static #
4 GB(for 1 or 2 vCPU).
HALF_GBMemoryHALF_GBMemoryHALF_GBMemoryHALF_GBMemoryHALF_GBMemory static #
0.5 GB(for 0.25 vCPU).
ONE_GBMemoryONE_GBMemoryONE_GBMemoryONE_GBMemoryONE_GBMemory static #
1 GB(for 0.25 or 0.5 vCPU).
SIX_GBMemorySIX_GBMemorySIX_GBMemorySIX_GBMemorySIX_GBMemory static #
6 GB(for 2 vCPU).
TEN_GBMemoryTEN_GBMemoryTEN_GBMemoryTEN_GBMemoryTEN_GBMemory static #
10 GB(for 4 vCPU).
THREE_GBMemoryTHREE_GBMemoryTHREE_GBMemoryTHREE_GBMemoryTHREE_GBMemory static #
3 GB(for 1 vCPU).
TWELVE_GBMemoryTWELVE_GBMemoryTWELVE_GBMemoryTWELVE_GBMemoryTWELVE_GBMemory static #
12 GB(for 4 vCPU).
TWO_GBMemoryTWO_GBMemoryTWO_GBMemoryTWO_GBMemoryTWO_GBMemory static #
2 GB(for 1 vCPU).
unitstringunitstrunitStringUnitstringUnit*string #
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) Memory static #
Custom Memory unit.
1 parameter

Parameters

  • unitunitunitunitUnit — custom Memory unit.