@Stability(value=Experimental) @Internal public static final class GitHubSourceActionProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements GitHubSourceActionProps
GitHubSourceActionPropssoftware.amazon.jsii.JsiiObject.InitializationModeGitHubSourceActionProps.Builder, GitHubSourceActionProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(SecretValue oauthToken,
Artifact output,
String owner,
String repo,
String branch,
GitHubTrigger trigger,
String actionName,
Number runOrder,
String variablesNamespace)
Constructor that initializes the object based on literal property values passed by the
GitHubSourceActionProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getActionName()
(experimental) The physical, human-readable name of the Action.
|
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.
|
Number |
getRunOrder()
(experimental) The runOrder property for this Action.
|
GitHubTrigger |
getTrigger()
(experimental) How AWS CodePipeline should be triggered.
|
String |
getVariablesNamespace()
(experimental) The name of the namespace to use for variables emitted by this action.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(SecretValue oauthToken, Artifact output, String owner, String repo, String branch, GitHubTrigger trigger, String actionName, Number runOrder, String variablesNamespace)
GitHubSourceActionProps.Builder.public final SecretValue getOauthToken()
GitHubSourceActionProps
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:
getOauthToken in interface GitHubSourceActionPropshttps://docs.aws.amazon.com/codepipeline/latest/userguide/appendix-github-oauth.html#GitHub-create-personal-token-CLIpublic final Artifact getOutput()
getOutput in interface GitHubSourceActionPropspublic final String getOwner()
GitHubSourceActionPropsgetOwner in interface GitHubSourceActionPropspublic final String getRepo()
GitHubSourceActionPropsgetRepo in interface GitHubSourceActionPropspublic final String getBranch()
GitHubSourceActionPropsDefault: "master"
getBranch in interface GitHubSourceActionPropspublic final GitHubTrigger getTrigger()
GitHubSourceActionPropsWith 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
getTrigger in interface GitHubSourceActionPropspublic final String getActionName()
CommonActionPropsNote that Action names must be unique within a single Stage.
getActionName in interface CommonActionPropspublic final Number getRunOrder()
CommonActionPropsRunOrder determines the relative order in which multiple Actions in the same Stage execute.
Default: 1
getRunOrder in interface CommonActionPropshttps://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.htmlpublic final String getVariablesNamespace()
CommonActionPropsDefault: - 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
getVariablesNamespace in interface CommonActionProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.