GitHubConnection

class aws_cdk.aws_apprunner_alpha.GitHubConnection(arn)

Bases: object

(experimental) Represents the App Runner connection that enables the App Runner service to connect to a source repository.

It’s required for GitHub code repositories.

Stability:

experimental

ExampleMetadata:

infused

Example:

apprunner.Service(self, "Service",
    source=apprunner.Source.from_git_hub(
        repository_url="https://github.com/aws-containers/hello-app-runner",
        branch="main",
        configuration_source=apprunner.ConfigurationSourceType.REPOSITORY,
        connection=apprunner.GitHubConnection.from_connection_arn("CONNECTION_ARN")
    )
)
Parameters:

arn (str) –

Stability:

experimental

Attributes

connection_arn

(experimental) The ARN of the Connection for App Runner service to connect to the repository.

Stability:

experimental

Static Methods

classmethod from_connection_arn(arn)

(experimental) Using existing App Runner connection by specifying the connection ARN.

Parameters:

arn (str) – connection ARN.

Return type:

GitHubConnection

Returns:

Connection

Stability:

experimental