@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.939Z") @Stability(value=Stable) public interface GitHubSourceOptions extends software.amazon.jsii.JsiiSerializable
Example:
CodePipelineSource.gitHub("org/repo", "branch", GitHubSourceOptions.builder()
// This is optional
.authentication(SecretValue.secretsManager("my-token"))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
GitHubSourceOptions.Builder
A builder for
GitHubSourceOptions |
static class |
GitHubSourceOptions.Jsii$Proxy
An implementation for
GitHubSourceOptions |
| Modifier and Type | Method and Description |
|---|---|
static GitHubSourceOptions.Builder |
builder() |
default SecretValue |
getAuthentication()
A GitHub OAuth token to use for authentication.
|
default GitHubTrigger |
getTrigger()
How AWS CodePipeline should be triggered.
|
@Stability(value=Stable) @Nullable default SecretValue getAuthentication()
It is recommended to use a Secrets Manager Secret to obtain the token:
SecretValue oauth = SecretValue.secretsManager("my-github-token");
The GitHub Personal Access Token should have these scopes:
Default: - SecretValue.secretsManager('github-token')
@Stability(value=Stable) @Nullable default GitHubTrigger getTrigger()
With the default value "WEBHOOK", a webhook is created in GitHub that triggers the action. With "POLL", CodePipeline periodically checks the source for changes. With "None", the action is not triggered through changes in the source.
To use WEBHOOK, your GitHub Personal Access Token should have
admin:repo_hook scope (in addition to the regular repo scope).
Default: GitHubTrigger.WEBHOOK
@Stability(value=Stable) static GitHubSourceOptions.Builder builder()
GitHubSourceOptions.Builder of GitHubSourceOptionsCopyright © 2022. All rights reserved.