class GitHubConnection
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppRunner.GitHubConnection |
Java | software.amazon.awscdk.services.apprunner.GitHubConnection |
Python | aws_cdk.aws_apprunner.GitHubConnection |
TypeScript (source) | @aws-cdk/aws-apprunner » GitHubConnection |
Represents the App Runner connection that enables the App Runner service to connect to a source repository.
It's required for GitHub code repositories.
Example
new apprunner.Service(this, 'Service', {
source: apprunner.Source.fromGitHub({
repositoryUrl: 'https://github.com/aws-containers/hello-app-runner',
branch: 'main',
configurationSource: apprunner.ConfigurationSourceType.REPOSITORY,
connection: apprunner.GitHubConnection.fromConnectionArn('CONNECTION_ARN'),
}),
});
Initializer
new GitHubConnection(arn: string)
Parameters
- arn
string
Properties
Name | Type | Description |
---|---|---|
connection | string | The ARN of the Connection for App Runner service to connect to the repository. |
connectionArn
Type:
string
The ARN of the Connection for App Runner service to connect to the repository.
Methods
Name | Description |
---|---|
static from | Using existing App Runner connection by specifying the connection ARN. |
static fromConnectionArn(arn)
public static fromConnectionArn(arn: string): GitHubConnection
Parameters
- arn
string
— connection ARN.
Returns
Using existing App Runner connection by specifying the connection ARN.