interface CodeRepositoryProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppRunner.Mixins.CfnServicePropsMixin.CodeRepositoryProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapprunner/mixins#CfnServicePropsMixin_CodeRepositoryProperty |
Java | software.amazon.awscdk.mixins.preview.services.apprunner.mixins.CfnServicePropsMixin.CodeRepositoryProperty |
Python | aws_cdk.mixins_preview.aws_apprunner.mixins.CfnServicePropsMixin.CodeRepositoryProperty |
TypeScript | @aws-cdk/mixins-preview » aws_apprunner » mixins » CfnServicePropsMixin » CodeRepositoryProperty |
Describes a source code repository.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as apprunner_mixins } from '@aws-cdk/mixins-preview/aws-apprunner';
const codeRepositoryProperty: apprunner_mixins.CfnServicePropsMixin.CodeRepositoryProperty = {
codeConfiguration: {
codeConfigurationValues: {
buildCommand: 'buildCommand',
port: 'port',
runtime: 'runtime',
runtimeEnvironmentSecrets: [{
name: 'name',
value: 'value',
}],
runtimeEnvironmentVariables: [{
name: 'name',
value: 'value',
}],
startCommand: 'startCommand',
},
configurationSource: 'configurationSource',
},
repositoryUrl: 'repositoryUrl',
sourceCodeVersion: {
type: 'type',
value: 'value',
},
sourceDirectory: 'sourceDirectory',
};
Properties
| Name | Type | Description |
|---|---|---|
| code | IResolvable | Code | Configuration for building and running the service from a source code repository. |
| repository | string | The location of the repository that contains the source code. |
| source | IResolvable | Source | The version that should be used within the source code repository. |
| source | string | The path of the directory that stores source code and configuration files. |
codeConfiguration?
Type:
IResolvable | Code
(optional)
Configuration for building and running the service from a source code repository.
CodeConfigurationis required only forCreateServicerequest.
repositoryUrl?
Type:
string
(optional)
The location of the repository that contains the source code.
sourceCodeVersion?
Type:
IResolvable | Source
(optional)
The version that should be used within the source code repository.
sourceDirectory?
Type:
string
(optional)
The path of the directory that stores source code and configuration files.
The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.

.NET
Go
Java
Python
TypeScript