Skip to content

CodeConfiguration

Source code in docs_src/capo_apprunner/types/code_configuration.py
class CodeConfiguration(TypedDict, closed=True):
    configuration_source: (
        "capo_apprunner.types.configuration_source.ConfigurationSource"
    )
    """<p>The source of the App Runner configuration. Values are interpreted as follows:</p> <ul> <li> <p> <code>REPOSITORY</code> – App Runner reads configuration values from the <code>apprunner.yaml</code> file in the source code repository and ignores <code>CodeConfigurationValues</code>.</p> </li> <li> <p> <code>API</code> – App Runner uses configuration values provided in <code>CodeConfigurationValues</code> and ignores the <code>apprunner.yaml</code> file in the source code repository.</p> </li> </ul>"""
    code_configuration_values: NotRequired[
        "capo_apprunner.types.code_configuration_values.CodeConfigurationValues"
    ]
    """<p>The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner service without providing a <code>apprunner.yaml</code> file in the source code repository (or ignoring the file if it exists).</p>"""

code_configuration_values instance-attribute

code_configuration_values: NotRequired[CodeConfigurationValues]

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).

configuration_source instance-attribute

configuration_source: ConfigurationSource

The source of the App Runner configuration. Values are interpreted as follows:

  • REPOSITORY – App Runner reads configuration values from the apprunner.yaml file in the source code repository and ignores CodeConfigurationValues.

  • API – App Runner uses configuration values provided in CodeConfigurationValues and ignores the apprunner.yaml file in the source code repository.