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 (
Union
[CodeConfiguration
,Dict
[str
,Any
]]) – (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 (
Union
[SourceCodeVersion
,Dict
[str
,Any
]]) – (experimental) The version that should be used within the source code repository.
- 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 # git_hub_connection: apprunner.GitHubConnection # runtime: apprunner.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
- connection
(experimental) The App Runner connection for GitHub.
- Stability:
experimental
- repository_url
(experimental) The location of the repository that contains the source code.
- Stability:
experimental
- source_code_version
(experimental) The version that should be used within the source code repository.
- Stability:
experimental