Class GitHubSourceCodeProvider
(experimental) GitHub source code provider.
Inheritance
System.Object
GitHubSourceCodeProvider
Implements
Namespace: Amazon.CDK.AWS.Amplify.Alpha
Assembly: Amazon.CDK.AWS.Amplify.Alpha.dll
Syntax (csharp)
public class GitHubSourceCodeProvider : DeputyBase, ISourceCodeProvider
Syntax (vb)
Public Class GitHubSourceCodeProvider
Inherits DeputyBase
Implements ISourceCodeProvider
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var amplifyApp = new App(this, "MyApp", new AppProps {
SourceCodeProvider = new GitHubSourceCodeProvider(new GitHubSourceCodeProviderProps {
Owner = "<user>",
Repository = "<repo>",
OauthToken = SecretValue.SecretsManager("my-github-token")
}),
AutoBranchCreation = new AutoBranchCreation { // Automatically connect branches that match a pattern set
Patterns = new [] { "feature/*", "test/*" } },
AutoBranchDeletion = true
});
Synopsis
Constructors
GitHubSourceCodeProvider(IGitHubSourceCodeProviderProps) | |
GitHubSourceCodeProvider(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GitHubSourceCodeProvider(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(App) | (experimental) Binds the source code provider to an app. |
Constructors
GitHubSourceCodeProvider(IGitHubSourceCodeProviderProps)
public GitHubSourceCodeProvider(IGitHubSourceCodeProviderProps props)
Parameters
Remarks
Stability: Experimental
GitHubSourceCodeProvider(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GitHubSourceCodeProvider(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GitHubSourceCodeProvider(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GitHubSourceCodeProvider(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(App)
(experimental) Binds the source code provider to an app.
public virtual ISourceCodeProviderConfig Bind(App app)
Parameters
- app App
Returns
Remarks
Stability: Experimental