Class GitHubSourceCodeProviderProps
(experimental) Properties for a GitHub source code provider.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Amplify.Alpha
Assembly: Amazon.CDK.AWS.Amplify.Alpha.dll
Syntax (csharp)
public class GitHubSourceCodeProviderProps : IGitHubSourceCodeProviderProps
Syntax (vb)
Public Class GitHubSourceCodeProviderProps Implements IGitHubSourceCodeProviderProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var amplifyApp = new App(this, "App", new AppProps {
SourceCodeProvider = new GitHubSourceCodeProvider(new GitHubSourceCodeProviderProps {
Owner = "<user>",
Repository = "<repo>",
OauthToken = SecretValue.SecretsManager("my-github-token")
}),
CustomResponseHeaders = new [] { new CustomResponseHeader {
Pattern = "*.json",
Headers = new Dictionary<string, string> {
{ "custom-header-name-1", "custom-header-value-1" },
{ "custom-header-name-2", "custom-header-value-2" }
}
}, new CustomResponseHeader {
Pattern = "/path/*",
Headers = new Dictionary<string, string> {
{ "custom-header-name-1", "custom-header-value-2" }
}
} }
});
Synopsis
Constructors
GitHubSourceCodeProviderProps() | (experimental) Properties for a GitHub source code provider. |
Properties
OauthToken | (experimental) A personal access token with the |
Owner | (experimental) The user or organization owning the repository. |
Repository | (experimental) The name of the repository. |
Constructors
GitHubSourceCodeProviderProps()
(experimental) Properties for a GitHub source code provider.
public GitHubSourceCodeProviderProps()
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var amplifyApp = new App(this, "App", new AppProps {
SourceCodeProvider = new GitHubSourceCodeProvider(new GitHubSourceCodeProviderProps {
Owner = "<user>",
Repository = "<repo>",
OauthToken = SecretValue.SecretsManager("my-github-token")
}),
CustomResponseHeaders = new [] { new CustomResponseHeader {
Pattern = "*.json",
Headers = new Dictionary<string, string> {
{ "custom-header-name-1", "custom-header-value-1" },
{ "custom-header-name-2", "custom-header-value-2" }
}
}, new CustomResponseHeader {
Pattern = "/path/*",
Headers = new Dictionary<string, string> {
{ "custom-header-name-1", "custom-header-value-2" }
}
} }
});
Properties
OauthToken
(experimental) A personal access token with the repo
scope.
public SecretValue OauthToken { get; set; }
Property Value
Remarks
Stability: Experimental
Owner
(experimental) The user or organization owning the repository.
public string Owner { get; set; }
Property Value
Remarks
Stability: Experimental
Repository
(experimental) The name of the repository.
public string Repository { get; set; }
Property Value
Remarks
Stability: Experimental