@Stability(value=Experimental) public static final class GitHubSourceAction.Builder extends Object implements software.amazon.jsii.Builder<GitHubSourceAction>
GitHubSourceAction.| Modifier and Type | Method and Description |
|---|---|
GitHubSourceAction.Builder |
actionName(String actionName)
(experimental) The physical, human-readable name of the Action.
|
GitHubSourceAction.Builder |
branch(String branch)
(experimental) The branch to use.
|
GitHubSourceAction |
build() |
static GitHubSourceAction.Builder |
create() |
GitHubSourceAction.Builder |
oauthToken(SecretValue oauthToken)
(experimental) A GitHub OAuth token to use for authentication.
|
GitHubSourceAction.Builder |
output(Artifact output) |
GitHubSourceAction.Builder |
owner(String owner)
(experimental) The GitHub account/user that owns the repo.
|
GitHubSourceAction.Builder |
repo(String repo)
(experimental) The name of the repo, without the username.
|
GitHubSourceAction.Builder |
runOrder(Number runOrder)
(experimental) The runOrder property for this Action.
|
GitHubSourceAction.Builder |
trigger(GitHubTrigger trigger)
(experimental) How AWS CodePipeline should be triggered.
|
GitHubSourceAction.Builder |
variablesNamespace(String variablesNamespace)
(experimental) The name of the namespace to use for variables emitted by this action.
|
@Stability(value=Experimental) public static GitHubSourceAction.Builder create()
GitHubSourceAction.Builder.@Stability(value=Experimental) public GitHubSourceAction.Builder actionName(String actionName)
Note that Action names must be unique within a single Stage.
actionName - The physical, human-readable name of the Action. This parameter is required.this@Stability(value=Experimental) public GitHubSourceAction.Builder runOrder(Number runOrder)
RunOrder determines the relative order in which multiple Actions in the same Stage execute.
Default: 1
runOrder - The runOrder property for this Action. This parameter is required.thishttps://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html@Stability(value=Experimental) public GitHubSourceAction.Builder variablesNamespace(String variablesNamespace)
Default: - a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set
variablesNamespace - The name of the namespace to use for variables emitted by this action. This parameter is required.this@Stability(value=Experimental) public GitHubSourceAction.Builder oauthToken(SecretValue oauthToken)
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:
oauthToken - A GitHub OAuth token to use for authentication. This parameter is required.thishttps://docs.aws.amazon.com/codepipeline/latest/userguide/appendix-github-oauth.html#GitHub-create-personal-token-CLI@Stability(value=Experimental) public GitHubSourceAction.Builder output(Artifact output)
output - This parameter is required.this@Stability(value=Experimental) public GitHubSourceAction.Builder owner(String owner)
owner - The GitHub account/user that owns the repo. This parameter is required.this@Stability(value=Experimental) public GitHubSourceAction.Builder repo(String repo)
repo - The name of the repo, without the username. This parameter is required.this@Stability(value=Experimental) public GitHubSourceAction.Builder branch(String branch)
Default: "master"
branch - The branch to use. This parameter is required.this@Stability(value=Experimental) public GitHubSourceAction.Builder trigger(GitHubTrigger trigger)
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
trigger - How AWS CodePipeline should be triggered. This parameter is required.this@Stability(value=Experimental) public GitHubSourceAction build()
build in interface software.amazon.jsii.Builder<GitHubSourceAction>Copyright © 2021. All rights reserved.