@aws-cdk_aws-apprunner-alpha.Source

class Source ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.Alpha.Source
Gogithub.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#Source
Javasoftware.amazon.awscdk.services.apprunner.alpha.Source
Pythonaws_cdk.aws_apprunner_alpha.Source
TypeScript (source)@aws-cdk/aws-apprunner-alpha ยป Source

Implemented by AssetSource, EcrPublicSource, EcrSource, GithubSource

Represents the App Runner service source.

Example

new apprunner.Service(this, 'Service', {
  source: apprunner.Source.fromGitHub({
    repositoryUrl: 'https://github.com/aws-containers/hello-app-runner',
    branch: 'main',
    configurationSource: apprunner.ConfigurationSourceType.API,
    codeConfigurationValues: {
      runtime: apprunner.Runtime.PYTHON_3,
      port: '8000',
      startCommand: 'python app.py',
      buildCommand: 'yum install -y pycairo && pip install -r requirements.txt',
    },
    connection: apprunner.GitHubConnection.fromConnectionArn('CONNECTION_ARN'),
  }),
});

Initializer

new Source()

Methods

NameDescription
bind(scope)๐Ÿ”นCalled when the Job is initialized to allow this object to bind.
static fromAsset(props)๐Ÿ”นSource from local assets.
static fromEcr(props)๐Ÿ”นSource from the ECR repository.
static fromEcrPublic(props)๐Ÿ”นSource from the ECR Public repository.
static fromGitHub(props)๐Ÿ”นSource from the GitHub repository.

bind(scope)๐Ÿ”น

public bind(scope: Construct): SourceConfig

Parameters

  • scope Construct

Returns

  • SourceConfig

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


static fromAsset(props)๐Ÿ”น

public static fromAsset(props: AssetProps): AssetSource

Parameters

  • props AssetProps

Returns

  • AssetSource

Source from local assets.


static fromEcr(props)๐Ÿ”น

public static fromEcr(props: EcrProps): EcrSource

Parameters

  • props EcrProps

Returns

  • EcrSource

Source from the ECR repository.


static fromEcrPublic(props)๐Ÿ”น

public static fromEcrPublic(props: EcrPublicProps): EcrPublicSource

Parameters

  • props EcrPublicProps

Returns

  • EcrPublicSource

Source from the ECR Public repository.


static fromGitHub(props)๐Ÿ”น

public static fromGitHub(props: GithubRepositoryProps): GithubSource

Parameters

  • props GithubRepositoryProps

Returns

  • GithubSource

Source from the GitHub repository.