Class GithubSource
(experimental) Represents the service source from a Github repository.
Inherited Members
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.AWS.AppRunner.dll
Syntax (csharp)
public class GithubSource : Source
Syntax (vb)
Public Class GithubSource
Inherits Source
Remarks
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner;
GitHubConnection gitHubConnection;
Runtime runtime;
var githubSource = new GithubSource(new GithubRepositoryProps {
ConfigurationSource = ConfigurationSourceType.REPOSITORY,
Connection = gitHubConnection,
RepositoryUrl = "repositoryUrl",
// the properties below are optional
Branch = "branch",
CodeConfigurationValues = new CodeConfigurationValues {
Runtime = runtime,
// the properties below are optional
BuildCommand = "buildCommand",
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
Port = "port",
StartCommand = "startCommand"
}
});
Synopsis
Constructors
GithubSource(IGithubRepositoryProps) | |
GithubSource(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GithubSource(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct) | (experimental) Called when the Job is initialized to allow this object to bind. |
Constructors
GithubSource(IGithubRepositoryProps)
public GithubSource(IGithubRepositoryProps props)
Parameters
- props IGithubRepositoryProps
Remarks
Stability: Experimental
GithubSource(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GithubSource(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GithubSource(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GithubSource(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct)
(experimental) Called when the Job is initialized to allow this object to bind.
public override ISourceConfig Bind(Construct scope)
Parameters
- scope Constructs.Construct
Returns
Overrides
Remarks
Stability: Experimental