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.

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;
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

cpu = apprunner_alpha.Cpu.FOUR_VCPU
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.*;

Cpu cpu = Cpu.FOUR_VCPU;
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 cpu = Cpu.FOUR_VCPU;
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"

cpu := apprunner_alpha.Cpu_FOUR_VCPU()

Properties ​

FOUR_VCPUCpuFOUR_VCPUCpuFOUR_VCPUCpuFOUR_VCPUCpuFOUR_VCPUCpu static #
4 vCPU.
HALF_VCPUCpuHALF_VCPUCpuHALF_VCPUCpuHALF_VCPUCpuHALF_VCPUCpu static #
0.5 vCPU.
ONE_VCPUCpuONE_VCPUCpuONE_VCPUCpuONE_VCPUCpuONE_VCPUCpu static #
1 vCPU.
QUARTER_VCPUCpuQUARTER_VCPUCpuQUARTER_VCPUCpuQUARTER_VCPUCpuQUARTER_VCPUCpu static #
0.25 vCPU.
TWO_VCPUCpuTWO_VCPUCpuTWO_VCPUCpuTWO_VCPUCpuTWO_VCPUCpu static #
2 vCPU.
unitstringunitstrunitStringUnitstringUnit*string #
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) Cpu static #
Custom CPU unit.
1 parameter

Parameters

  • unitunitunitunitUnit — custom CPU unit.