@aws-cdk_aws-apprunner-alpha.GitHubConnection

class GitHubConnection ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.Alpha.GitHubConnection
Gogithub.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#GitHubConnection
Javasoftware.amazon.awscdk.services.apprunner.alpha.GitHubConnection
Pythonaws_cdk.aws_apprunner_alpha.GitHubConnection
TypeScript (source)@aws-cdk/aws-apprunner-alpha ยป 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

NameTypeDescription
connectionArn๐Ÿ”นstringThe 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

NameDescription
static fromConnectionArn(arn)๐Ÿ”น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

  • GitHubConnection

Using existing App Runner connection by specifying the connection ARN.