class Cpu
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppRunner.Alpha.Cpu |
Go | github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#Cpu |
Java | software.amazon.awscdk.services.apprunner.alpha.Cpu |
Python | aws_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
Name | Type | Description |
---|---|---|
unit | string | The unit of CPU. |
static FOUR_VCPU | Cpu | 4 vCPU. |
static HALF_VCPU | Cpu | 0.5 vCPU. |
static ONE_VCPU | Cpu | 1 vCPU. |
static QUARTER_VCPU | Cpu | 0.25 vCPU. |
static TWO_VCPU | Cpu | 2 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
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.