interface CodeRepositoryProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppRunner.CfnService.CodeRepositoryProperty |
Java | software.amazon.awscdk.services.apprunner.CfnService.CodeRepositoryProperty |
Python | aws_cdk.aws_apprunner.CfnService.CodeRepositoryProperty |
TypeScript | @aws-cdk/aws-apprunner » CfnService » 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 * as apprunner from '@aws-cdk/aws-apprunner';
const codeRepositoryProperty: apprunner.CfnService.CodeRepositoryProperty = {
repositoryUrl: 'repositoryUrl',
sourceCodeVersion: {
type: 'type',
value: 'value',
},
// the properties below are optional
codeConfiguration: {
configurationSource: 'configurationSource',
// the properties below are optional
codeConfigurationValues: {
runtime: 'runtime',
// the properties below are optional
buildCommand: 'buildCommand',
port: 'port',
runtimeEnvironmentSecrets: [{
name: 'name',
value: 'value',
}],
runtimeEnvironmentVariables: [{
name: 'name',
value: 'value',
}],
startCommand: 'startCommand',
},
},
};
Properties
Name | Type | Description |
---|---|---|
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. |
code | IResolvable | Code | Configuration for building and running the service from a source code repository. |
repositoryUrl
Type:
string
The location of the repository that contains the source code.
sourceCodeVersion
Type:
IResolvable
|
Source
The version that should be used within the source code repository.
codeConfiguration?
Type:
IResolvable
|
Code
(optional)
Configuration for building and running the service from a source code repository.
CodeConfiguration
is required only forCreateService
request.