@aws-cdk_aws-apprunner-alpha.Source
static from
static from
static from
static from
class Source
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppRunner.Alpha.Source |
![]() | github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#Source |
![]() | software.amazon.awscdk.services.apprunner.alpha.Source |
![]() | aws_cdk.aws_apprunner_alpha.Source |
![]() | @aws-cdk/aws-apprunner-alpha ยป Source |
Implemented by
Asset
, Ecr
, Ecr
, Github
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
Name | Description |
---|---|
bind(scope) | Called when the Job is initialized to allow this object to bind. |
static from | Source from local assets. |
static from | Source from the ECR repository. |
static from | Source from the ECR Public repository. |
static from | Source from the GitHub repository. |
bind(scope)
public bind(scope: Construct): SourceConfig
Parameters
- scope
Construct
Returns
Called when the Job is initialized to allow this object to bind.
Asset(props)
static frompublic static fromAsset(props: AssetProps): AssetSource
Parameters
- props
Asset
Props
Returns
Source from local assets.
Ecr(props)
static frompublic static fromEcr(props: EcrProps): EcrSource
Parameters
- props
Ecr
Props
Returns
Source from the ECR repository.
EcrPublic(props)
static frompublic static fromEcrPublic(props: EcrPublicProps): EcrPublicSource
Parameters
- props
Ecr
Public Props
Returns
Source from the ECR Public repository.
GitHub(props)
static frompublic static fromGitHub(props: GithubRepositoryProps): GithubSource
Parameters
- props
Github
Repository Props
Returns
Source from the GitHub repository.