@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:43.125Z") @Stability(value=Experimental) public interface GitHubSourceCodeProviderProps extends software.amazon.jsii.JsiiSerializable
Example:
App amplifyApp = App.Builder.create(this, "MyApp")
.sourceCodeProvider(GitHubSourceCodeProvider.Builder.create()
.owner("<user>")
.repository("<repo>")
.oauthToken(SecretValue.secretsManager("my-github-token"))
.build())
.autoBranchCreation(AutoBranchCreation.builder() // Automatically connect branches that match a pattern set
.patterns(List.of("feature/*", "test/*")).build())
.autoBranchDeletion(true)
.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.