class Cpu
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppRunner.Cpu |
![]() | software.amazon.awscdk.services.apprunner.Cpu |
![]() | aws_cdk.aws_apprunner.Cpu |
![]() | @aws-cdk/aws-apprunner » 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 from '@aws-cdk/aws-apprunner';
const cpu = apprunner.Cpu.of('unit');
Properties
Name | Type | Description |
---|---|---|
unit | string | The unit of CPU. |
static ONE_VCPU | Cpu | 1 vCPU. |
static TWO_VCPU | Cpu | 2 vCPU. |
unit
Type:
string
The unit of CPU.
static ONE_VCPU
Type:
Cpu
1 vCPU.
static TWO_VCPU
Type:
Cpu
2 vCPU.
Methods
Name | Description |
---|---|
static of(unit) | Custom CPU unit. |
static of(unit)
public static of(unit: string): Cpu
Parameters
- unit
string
— custom CPU unit.
Returns
Custom CPU unit.