@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:00.222Z") @Stability(value=Experimental) public interface GitHubSourceActionProps extends software.amazon.jsii.JsiiSerializable, CommonActionProps
GitHub source action.| Modifier and Type | Interface and Description |
|---|---|
static class |
GitHubSourceActionProps.Builder
A builder for
GitHubSourceActionProps |
static class |
GitHubSourceActionProps.Jsii$Proxy
An implementation for
GitHubSourceActionProps |
| Modifier and Type | Method and Description |
|---|---|
static GitHubSourceActionProps.Builder |
builder() |
default String |
getBranch()
(experimental) The branch to use.
|
SecretValue |
getOauthToken()
(experimental) A GitHub OAuth token to use for authentication.
|
Artifact |
getOutput() |
String |
getOwner()
(experimental) The GitHub account/user that owns the repo.
|
String |
getRepo()
(experimental) The name of the repo, without the username.
|
default GitHubTrigger |
getTrigger()
(experimental) How AWS CodePipeline should be triggered.
|
getActionName, getRunOrder, getVariablesNamespace@Stability(value=Experimental) @NotNull SecretValue getOauthToken()
It is recommended to use a Secrets Manager Secret to obtain the token:
const oauth = cdk.SecretValue.secretsManager('my-github-token'); new GitHubSource(this, 'GitHubAction', { oauthToken: oauth, ... });
The GitHub Personal Access Token should have these scopes:
https://docs.aws.amazon.com/codepipeline/latest/userguide/appendix-github-oauth.html#GitHub-create-personal-token-CLI@Stability(value=Experimental) @NotNull Artifact getOutput()
@Stability(value=Experimental) @NotNull String getOwner()
@Stability(value=Experimental) @NotNull String getRepo()
@Stability(value=Experimental) @Nullable default String getBranch()
Default: "master"
@Stability(value=Experimental) @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=Experimental) static GitHubSourceActionProps.Builder builder()
builder in interface CommonActionPropsGitHubSourceActionProps.Builder of GitHubSourceActionPropsCopyright © 2021. All rights reserved.