Class GitHubSourceCodeProvider
(experimental) GitHub source code provider.
Inheritance
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
Git |
|
Git |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Git |
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. By Ref Value 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. Deputy Base. Deputy Props 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