class GithubSource
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppRunner.Alpha.GithubSource |
Go | github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#GithubSource |
Java | software.amazon.awscdk.services.apprunner.alpha.GithubSource |
Python | aws_cdk.aws_apprunner_alpha.GithubSource |
TypeScript (source) | @aws-cdk/aws-apprunner-alpha » GithubSource |
Extends
Source
Represents the service source from a Github repository.
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 githubSource = new apprunner_alpha.GithubSource({
configurationSource: apprunner_alpha.ConfigurationSourceType.REPOSITORY,
connection: gitHubConnection,
repositoryUrl: 'repositoryUrl',
// the properties below are optional
branch: 'branch',
codeConfigurationValues: {
runtime: runtime,
// the properties below are optional
buildCommand: 'buildCommand',
environment: {
environmentKey: 'environment',
},
environmentSecrets: {
environmentSecretsKey: secret,
},
environmentVariables: {
environmentVariablesKey: 'environmentVariables',
},
port: 'port',
startCommand: 'startCommand',
},
});
Initializer
new GithubSource(props: GithubRepositoryProps)
Parameters
- props
Github
Repository Props
Methods
Name | Description |
---|---|
bind(_scope) | Called when the Job is initialized to allow this object to bind. |
bind(_scope)
public bind(_scope: Construct): SourceConfig
Parameters
- _scope
Construct
Returns
Called when the Job is initialized to allow this object to bind.