@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:01.411Z") @Stability(value=Experimental) public interface GitHubSourceCodeProviderProps extends software.amazon.jsii.JsiiSerializable
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 | Interface and Description |
|---|---|
static class |
GitHubSourceCodeProviderProps.Builder
A builder for
GitHubSourceCodeProviderProps |
static class |
GitHubSourceCodeProviderProps.Jsii$Proxy
An implementation for
GitHubSourceCodeProviderProps |
| Modifier and Type | Method and Description |
|---|---|
static GitHubSourceCodeProviderProps.Builder |
builder() |
SecretValue |
getOauthToken()
(experimental) A personal access token with the `repo` scope.
|
String |
getOwner()
(experimental) The user or organization owning the repository.
|
String |
getRepository()
(experimental) The name of the repository.
|
@Stability(value=Experimental) @NotNull SecretValue getOauthToken()
@Stability(value=Experimental) @NotNull String getOwner()
@Stability(value=Experimental) @NotNull String getRepository()
@Stability(value=Experimental) static GitHubSourceCodeProviderProps.Builder builder()
Copyright © 2022. All rights reserved.