@aws-cdk_aws-apprunner-alpha.Cpu

class Cpu ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.Alpha.Cpu
Gogithub.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#Cpu
Javasoftware.amazon.awscdk.services.apprunner.alpha.Cpu
Pythonaws_cdk.aws_apprunner_alpha.Cpu
TypeScript (source)@aws-cdk/aws-apprunner-alpha ยป Cpu

The number of CPU units 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_alpha from '@aws-cdk/aws-apprunner-alpha';
const cpu = apprunner_alpha.Cpu.FOUR_VCPU;

Properties

NameTypeDescription
unit๐Ÿ”นstringThe unit of CPU.
static FOUR_VCPU๐Ÿ”นCpu4 vCPU.
static HALF_VCPU๐Ÿ”นCpu0.5 vCPU.
static ONE_VCPU๐Ÿ”นCpu1 vCPU.
static QUARTER_VCPU๐Ÿ”นCpu0.25 vCPU.
static TWO_VCPU๐Ÿ”นCpu2 vCPU.

unit๐Ÿ”น

Type: string

The unit of CPU.


static FOUR_VCPU๐Ÿ”น

Type: Cpu

4 vCPU.


static HALF_VCPU๐Ÿ”น

Type: Cpu

0.5 vCPU.


static ONE_VCPU๐Ÿ”น

Type: Cpu

1 vCPU.


static QUARTER_VCPU๐Ÿ”น

Type: Cpu

0.25 vCPU.


static TWO_VCPU๐Ÿ”น

Type: Cpu

2 vCPU.

Methods

NameDescription
static of(unit)๐Ÿ”นCustom CPU unit.

static of(unit)๐Ÿ”น

public static of(unit: string): Cpu

Parameters

  • unit string โ€” custom CPU unit.

Returns

  • Cpu

Custom CPU unit.

See also: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-instanceconfiguration.html#cfn-apprunner-service-instanceconfiguration-cpu