class Memory
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppRunner.Memory |
Java | software.amazon.awscdk.services.apprunner.Memory |
Python | aws_cdk.aws_apprunner.Memory |
TypeScript (source) | @aws-cdk/aws-apprunner » 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 from '@aws-cdk/aws-apprunner';
const memory = apprunner.Memory.FOUR_GB;
Properties
Name | Type | Description |
---|---|---|
unit | string | The unit of memory. |
static FOUR_GB | Memory | 4 GB(for 1 or 2 vCPU). |
static THREE_GB | Memory | 3 GB(for 1 vCPU). |
static TWO_GB | Memory | 2 GB(for 1 vCPU). |
unit
Type:
string
The unit of memory.
static FOUR_GB
Type:
Memory
4 GB(for 1 or 2 vCPU).
static THREE_GB
Type:
Memory
3 GB(for 1 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.