CodeConfigurationValues

class aws_cdk.aws_apprunner.CodeConfigurationValues(*, build_command=None, environment=None, port=None, runtime, start_command=None)

Bases: object

(experimental) Describes the basic configuration needed for building and running an AWS App Runner service.

This type doesn’t support the full set of possible configuration options. Fur full configuration capabilities, use a apprunner.yaml file in the source code repository.

Parameters
  • build_command (Optional[str]) – (experimental) The command App Runner runs to build your application. Default: - no build command.

  • environment (Optional[Mapping[str, str]]) – (experimental) The environment variables that are available to your running App Runner service. Default: - no environment variables.

  • port (Optional[str]) – (experimental) The port that your application listens to in the container. Default: 8080

  • runtime (Runtime) – (experimental) A runtime environment type for building and running an App Runner service. It represents a programming language runtime.

  • start_command (Optional[str]) – (experimental) The command App Runner runs to start your application. Default: - no start command.

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

# runtime is of type Runtime

code_configuration_values = apprunner.CodeConfigurationValues(
    runtime=runtime,

    # the properties below are optional
    build_command="buildCommand",
    environment={
        "environment_key": "environment"
    },
    port="port",
    start_command="startCommand"
)

Attributes

build_command

(experimental) The command App Runner runs to build your application.

Default
  • no build command.

Stability

experimental

Return type

Optional[str]

environment

(experimental) The environment variables that are available to your running App Runner service.

Default
  • no environment variables.

Stability

experimental

Return type

Optional[Mapping[str, str]]

port

(experimental) The port that your application listens to in the container.

Default

8080

Stability

experimental

Return type

Optional[str]

runtime

(experimental) A runtime environment type for building and running an App Runner service.

It represents a programming language runtime.

Stability

experimental

Return type

Runtime

start_command

(experimental) The command App Runner runs to start your application.

Default
  • no start command.

Stability

experimental

Return type

Optional[str]