public static final class GitHubSourceActionProps.Builder extends Object
GitHubSourceActionProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
GitHubSourceActionProps |
build()
Builds the configured instance.
|
GitHubSourceActionProps.Builder |
withBranch(String value)
Sets the value of Branch
|
GitHubSourceActionProps.Builder |
withOauthToken(software.amazon.awscdk.Secret value)
Sets the value of OauthToken
|
GitHubSourceActionProps.Builder |
withOutputArtifactName(String value)
Sets the value of OutputArtifactName
|
GitHubSourceActionProps.Builder |
withOwner(String value)
Sets the value of Owner
|
GitHubSourceActionProps.Builder |
withPollForSourceChanges(Boolean value)
Sets the value of PollForSourceChanges
|
GitHubSourceActionProps.Builder |
withRepo(String value)
Sets the value of Repo
|
GitHubSourceActionProps.Builder |
withRunOrder(Number value)
Sets the value of RunOrder
|
GitHubSourceActionProps.Builder |
withStage(software.amazon.awscdk.services.codepipeline.api.IStage value)
Sets the value of Stage
|
public GitHubSourceActionProps.Builder withOauthToken(software.amazon.awscdk.Secret value)
value - A GitHub OAuth token to use for authentication.
It is recommended to use a `SecretParameter` to obtain the token from the SSM
Parameter Store:
const oauth = new SecretParameter(this, 'GitHubOAuthToken', { ssmParameter: 'my-github-token });
new GitHubSource(stage, 'GH' { oauthToken: oauth });thispublic GitHubSourceActionProps.Builder withOwner(String value)
value - The GitHub account/user that owns the repo.thispublic GitHubSourceActionProps.Builder withRepo(String value)
value - The name of the repo, without the username.thispublic GitHubSourceActionProps.Builder withBranch(@Nullable String value)
value - The branch to use.thispublic GitHubSourceActionProps.Builder withOutputArtifactName(@Nullable String value)
value - The name of the source's output artifact. Output artifacts are used by CodePipeline as
inputs into other actions.thispublic GitHubSourceActionProps.Builder withPollForSourceChanges(@Nullable Boolean value)
value - Whether or not AWS CodePipeline should poll for source changesthispublic GitHubSourceActionProps.Builder withRunOrder(@Nullable Number value)
value - The runOrder property for this Action.
RunOrder determines the relative order in which multiple Actions in the same Stage execute.thispublic GitHubSourceActionProps.Builder withStage(software.amazon.awscdk.services.codepipeline.api.IStage value)
value - The Pipeline Stage to add this Action to.thispublic GitHubSourceActionProps build()
GitHubSourceActionPropsNullPointerException - if any required attribute was not providedCopyright © 2018. All rights reserved.