Cpu

class aws_cdk.aws_apprunner.Cpu(*args: Any, **kwargs)

Bases: object

(experimental) The number of CPU units reserved for each instance of your App Runner service.

Stability

experimental

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_apprunner as apprunner

cpu = apprunner.Cpu.of("unit")

Attributes

ONE_VCPU = <aws_cdk.aws_apprunner.Cpu object>
TWO_VCPU = <aws_cdk.aws_apprunner.Cpu object>
unit

(experimental) The unit of CPU.

Stability

experimental

Return type

str

Static Methods

classmethod of(unit)

(experimental) Custom CPU unit.

Parameters

unit (str) – custom CPU unit.

See

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

Stability

experimental

Return type

Cpu