CodeConfiguration

class aws_cdk.aws_apprunner_alpha.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_alpha as apprunner_alpha

# runtime: apprunner_alpha.Runtime
# secret: apprunner_alpha.Secret

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

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

        # the properties below are optional
        build_command="buildCommand",
        environment={
            "environment_key": "environment"
        },
        environment_secrets={
            "environment_secrets_key": secret
        },
        environment_variables={
            "environment_variables_key": "environmentVariables"
        },
        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