Class GitHubConnection
(experimental) Represents the App Runner connection that enables the App Runner service to connect to a source repository.
Inheritance
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public class GitHubConnection : DeputyBase
Syntax (vb)
Public Class GitHubConnection
Inherits DeputyBase
Remarks
It's required for GitHub code repositories.
Stability: Experimental
ExampleMetadata: infused
Examples
new Service(this, "Service", new ServiceProps {
Source = Source.FromGitHub(new GithubRepositoryProps {
RepositoryUrl = "https://github.com/aws-containers/hello-app-runner",
Branch = "main",
ConfigurationSource = ConfigurationSourceType.REPOSITORY,
Connection = GitHubConnection.FromConnectionArn("CONNECTION_ARN")
})
});
Synopsis
Constructors
GitHubConnection(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GitHubConnection(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
GitHubConnection(String) |
Properties
ConnectionArn | (experimental) The ARN of the Connection for App Runner service to connect to the repository. |
Methods
FromConnectionArn(String) | (experimental) Using existing App Runner connection by specifying the connection ARN. |
Constructors
GitHubConnection(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GitHubConnection(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GitHubConnection(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GitHubConnection(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
GitHubConnection(String)
public GitHubConnection(string arn)
Parameters
- arn System.String
Remarks
Stability: Experimental
Properties
ConnectionArn
(experimental) The ARN of the Connection for App Runner service to connect to the repository.
public virtual string ConnectionArn { get; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
FromConnectionArn(String)
(experimental) Using existing App Runner connection by specifying the connection ARN.
public static GitHubConnection FromConnectionArn(string arn)
Parameters
- arn System.String
connection ARN.
Returns
Connection
Remarks
Stability: Experimental