interface CodeRepositoryProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppRunner.Alpha.CodeRepositoryProps |
![]() | github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#CodeRepositoryProps |
![]() | software.amazon.awscdk.services.apprunner.alpha.CodeRepositoryProps |
![]() | aws_cdk.aws_apprunner_alpha.CodeRepositoryProps |
![]() | @aws-cdk/aws-apprunner-alpha ยป CodeRepositoryProps |
Properties of the CodeRepository.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apprunner_alpha from '@aws-cdk/aws-apprunner-alpha';
declare const gitHubConnection: apprunner_alpha.GitHubConnection;
declare const runtime: apprunner_alpha.Runtime;
declare const secret: apprunner_alpha.Secret;
const codeRepositoryProps: apprunner_alpha.CodeRepositoryProps = {
codeConfiguration: {
configurationSource: apprunner_alpha.ConfigurationSourceType.REPOSITORY,
// the properties below are optional
configurationValues: {
runtime: runtime,
// the properties below are optional
buildCommand: 'buildCommand',
environment: {
environmentKey: 'environment',
},
environmentSecrets: {
environmentSecretsKey: secret,
},
environmentVariables: {
environmentVariablesKey: 'environmentVariables',
},
port: 'port',
startCommand: 'startCommand',
},
},
connection: gitHubConnection,
repositoryUrl: 'repositoryUrl',
sourceCodeVersion: {
type: 'type',
value: 'value',
},
};
Properties
Name | Type | Description |
---|---|---|
code | Code | Configuration for building and running the service from a source code repository. |
connection | Git | The App Runner connection for GitHub. |
repository | string | The location of the repository that contains the source code. |
source | Source | The version that should be used within the source code repository. |
codeConfiguration
Type:
Code
Configuration for building and running the service from a source code repository.
connection
Type:
Git
The App Runner connection for GitHub.
repositoryUrl
Type:
string
The location of the repository that contains the source code.
sourceCodeVersion
Type:
Source
The version that should be used within the source code repository.