CodeConfiguration

class aws_cdk.aws_apprunner.CodeConfiguration(*, configuration_source, configuration_values=None)

Bases: object

(experimental) Describes the configuration that AWS App Runner uses to build and run an App Runner service from a source code repository.

Parameters:
  • configuration_source (ConfigurationSourceType) – (experimental) The source of the App Runner configuration.

  • configuration_values (Union[CodeConfigurationValues, Dict[str, Any], None]) – (experimental) The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner service without providing a apprunner.yaml file in the source code repository (or ignoring the file if it exists). Default: - not specified. Use apprunner.yaml instead.

See:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-codeconfiguration.html

Stability:

experimental

ExampleMetadata:

fixture=_generated

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: apprunner.Runtime

code_configuration = apprunner.CodeConfiguration(
    configuration_source=apprunner.ConfigurationSourceType.REPOSITORY,

    # the properties below are optional
    configuration_values=apprunner.CodeConfigurationValues(
        runtime=runtime,

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

Attributes

configuration_source

(experimental) The source of the App Runner configuration.

Stability:

experimental

configuration_values

(experimental) The basic configuration for building and running the App Runner service.

Use it to quickly launch an App Runner service without providing a apprunner.yaml file in the source code repository (or ignoring the file if it exists).

Default:
  • not specified. Use apprunner.yaml instead.

Stability:

experimental