CodeRepositoryProps
- class aws_cdk.aws_apprunner_alpha.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_alpha as apprunner_alpha # git_hub_connection: apprunner_alpha.GitHubConnection # runtime: apprunner_alpha.Runtime # secret: apprunner_alpha.Secret code_repository_props = apprunner_alpha.CodeRepositoryProps( 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" ) ), connection=git_hub_connection, repository_url="repositoryUrl", source_code_version=apprunner_alpha.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