CodeRepositoryProps

class aws_cdk.aws_apprunner.CodeRepositoryProps(*, code_configuration, connection, repository_url, source_code_version)

Bases: object

(experimental) Properties of the CodeRepository.

Parameters
  • code_configuration (CodeConfiguration) – (experimental) Configuration for building and running the service from a source code repository.

  • connection (GitHubConnection) – (experimental) The App Runner connection for GitHub.

  • repository_url (str) – (experimental) The location of the repository that contains the source code.

  • source_code_version (SourceCodeVersion) – (experimental) The version that should be used within the source code repository.

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

# git_hub_connection is of type GitHubConnection
# runtime is of type Runtime

code_repository_props = apprunner.CodeRepositoryProps(
    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"
        )
    ),
    connection=git_hub_connection,
    repository_url="repositoryUrl",
    source_code_version=apprunner.SourceCodeVersion(
        type="type",
        value="value"
    )
)

Attributes

code_configuration

(experimental) Configuration for building and running the service from a source code repository.

Stability

experimental

Return type

CodeConfiguration

connection

(experimental) The App Runner connection for GitHub.

Stability

experimental

Return type

GitHubConnection

repository_url

(experimental) The location of the repository that contains the source code.

Stability

experimental

Return type

str

source_code_version

(experimental) The version that should be used within the source code repository.

Stability

experimental

Return type

SourceCodeVersion