Runtime

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

Bases: object

(experimental) The code runtimes.

Stability

experimental

ExampleMetadata

infused

Example:

apprunner.Service(self, "Service",
    source=apprunner.Source.from_git_hub(
        repository_url="https://github.com/aws-containers/hello-app-runner",
        branch="main",
        configuration_source=apprunner.ConfigurationSourceType.API,
        code_configuration_values=apprunner.CodeConfigurationValues(
            runtime=apprunner.Runtime.PYTHON_3,
            port="8000",
            start_command="python app.py",
            build_command="yum install -y pycairo && pip install -r requirements.txt"
        ),
        connection=apprunner.GitHubConnection.from_connection_arn("CONNECTION_ARN")
    )
)

Attributes

NODEJS_12 = <aws_cdk.aws_apprunner.Runtime object>
PYTHON_3 = <aws_cdk.aws_apprunner.Runtime object>
name

(experimental) The runtime name.

Stability

experimental

Return type

str

Static Methods

classmethod of(name)

(experimental) Other runtimes.

Parameters

name (str) – runtime name.

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-codeconfigurationvalues.html#cfn-apprunner-service-codeconfigurationvalues-runtime for all available runtimes.

Stability

experimental

Return type

Runtime