@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:01.410Z") @Stability(value=Experimental) public class GitHubSourceCodeProvider extends software.amazon.jsii.JsiiObject implements ISourceCodeProvider
Example:
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
App amplifyApp = App.Builder.create(this, "MyApp")
.sourceCodeProvider(GitHubSourceCodeProvider.Builder.create()
.owner("<user>")
.repository("<repo>")
.oauthToken(SecretValue.secretsManager("my-github-token"))
.build())
.buildSpec(BuildSpec.fromObjectToYaml(Map.of( // Alternatively add a `amplify.yml` to the repo
"version", "1.0",
"frontend", Map.of(
"phases", Map.of(
"preBuild", Map.of(
"commands", List.of("yarn")),
"build", Map.of(
"commands", List.of("yarn build"))),
"artifacts", Map.of(
"baseDirectory", "public",
"files", -"**/*")))))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
GitHubSourceCodeProvider.Builder
(experimental) A fluent builder for
GitHubSourceCodeProvider. |
software.amazon.jsii.JsiiObject.InitializationModeISourceCodeProvider.Jsii$Default, ISourceCodeProvider.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
GitHubSourceCodeProvider(GitHubSourceCodeProviderProps props) |
protected |
GitHubSourceCodeProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GitHubSourceCodeProvider(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
SourceCodeProviderConfig |
bind(App _app)
(experimental) Binds the source code provider to an app.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected GitHubSourceCodeProvider(software.amazon.jsii.JsiiObjectRef objRef)
protected GitHubSourceCodeProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public GitHubSourceCodeProvider(@NotNull
GitHubSourceCodeProviderProps props)
props - This parameter is required.@Stability(value=Experimental) @NotNull public SourceCodeProviderConfig bind(@NotNull App _app)
bind in interface ISourceCodeProvider_app - This parameter is required.Copyright © 2022. All rights reserved.