@aws-cdk_aws-apprunner-alpha.GithubSource

class GithubSource 🔹

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.Alpha.GithubSource
Gogithub.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#GithubSource
Javasoftware.amazon.awscdk.services.apprunner.alpha.GithubSource
Pythonaws_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 GithubRepositoryProps

Methods

NameDescription
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

  • SourceConfig

Called when the Job is initialized to allow this object to bind.