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.

Cpu Class ​

The number of CPU units 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 cpu = apprunner_alpha.Cpu.FOUR_VCPU;

Properties ​

FOUR_VCPUCpufour_vcpuCpuFOUR_VCPUCpuFOUR_VCPUCpuFOUR_VCPUCpurequiredstatic#
4 vCPU.
HALF_VCPUCpuhalf_vcpuCpuHALF_VCPUCpuHALF_VCPUCpuHALF_VCPUCpurequiredstatic#
0.5 vCPU.
ONE_VCPUCpuone_vcpuCpuONE_VCPUCpuONE_VCPUCpuONE_VCPUCpurequiredstatic#
1 vCPU.
QUARTER_VCPUCpuquarter_vcpuCpuQUARTER_VCPUCpuQUARTER_VCPUCpuQUARTER_VCPUCpurequiredstatic#
0.25 vCPU.
TWO_VCPUCputwo_vcpuCpuTWO_VCPUCpuTWO_VCPUCpuTWO_VCPUCpurequiredstatic#
2 vCPU.
unitstringunitstrunitStringUnitstringUnit*stringrequired#
The unit of CPU.

Methods ​

of(unit: string): Cpu // chainable@staticmethod def of(unit: str) -> Cpupublic static Cpu of(String unit)public static Cpu Of(string unit)func Of(Unit *string) Cpustatic#
Custom CPU unit.
1 parameter

Parameters

  • unitunitunitunitUnit — custom CPU unit.