@Stability(value=Experimental) public static final class GitHubSourceActionProps.Builder extends Object implements software.amazon.jsii.Builder<GitHubSourceActionProps>
GitHubSourceActionProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public GitHubSourceActionProps.Builder oauthToken(SecretValue oauthToken)
GitHubSourceActionProps.getOauthToken()oauthToken - A GitHub OAuth token to use for authentication. This parameter is required.
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:
this@Stability(value=Experimental) public GitHubSourceActionProps.Builder output(Artifact output)
GitHubSourceActionProps.getOutput()output - the value to be set. This parameter is required.this@Stability(value=Experimental) public GitHubSourceActionProps.Builder owner(String owner)
GitHubSourceActionProps.getOwner()owner - The GitHub account/user that owns the repo. This parameter is required.this@Stability(value=Experimental) public GitHubSourceActionProps.Builder repo(String repo)
GitHubSourceActionProps.getRepo()repo - The name of the repo, without the username. This parameter is required.this@Stability(value=Experimental) public GitHubSourceActionProps.Builder branch(String branch)
GitHubSourceActionProps.getBranch()branch - The branch to use.this@Stability(value=Experimental) public GitHubSourceActionProps.Builder trigger(GitHubTrigger trigger)
GitHubSourceActionProps.getTrigger()trigger - How AWS CodePipeline should be triggered.
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).
this@Stability(value=Experimental) public GitHubSourceActionProps.Builder actionName(String actionName)
CommonActionProps.getActionName()actionName - The physical, human-readable name of the Action. This parameter is required.
Note that Action names must be unique within a single Stage.this@Stability(value=Experimental) public GitHubSourceActionProps.Builder runOrder(Number runOrder)
CommonActionProps.getRunOrder()runOrder - The runOrder property for this Action.
RunOrder determines the relative order in which multiple Actions in the same Stage execute.this@Stability(value=Experimental) public GitHubSourceActionProps.Builder variablesNamespace(String variablesNamespace)
CommonActionProps.getVariablesNamespace()variablesNamespace - The name of the namespace to use for variables emitted by this action.this@Stability(value=Experimental) public GitHubSourceActionProps build()
build in interface software.amazon.jsii.Builder<GitHubSourceActionProps>GitHubSourceActionPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.