@Stability(value=Experimental) @Internal public static final class GitHubSourceActionProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements GitHubSourceActionProps
GitHubSourceActionProps
software.amazon.jsii.JsiiObject.InitializationMode
GitHubSourceActionProps.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, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected 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 GitHubSourceActionProps
https://docs.aws.amazon.com/codepipeline/latest/userguide/appendix-github-oauth.html#GitHub-create-personal-token-CLI
public final Artifact getOutput()
getOutput
in interface GitHubSourceActionProps
public final String getOwner()
GitHubSourceActionProps
getOwner
in interface GitHubSourceActionProps
public final String getRepo()
GitHubSourceActionProps
getRepo
in interface GitHubSourceActionProps
public final String getBranch()
GitHubSourceActionProps
Default: "master"
getBranch
in interface GitHubSourceActionProps
public final GitHubTrigger getTrigger()
GitHubSourceActionProps
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
getTrigger
in interface GitHubSourceActionProps
public final String getActionName()
CommonActionProps
Note that Action names must be unique within a single Stage.
getActionName
in interface CommonActionProps
public final Number getRunOrder()
CommonActionProps
RunOrder determines the relative order in which multiple Actions in the same Stage execute.
Default: 1
getRunOrder
in interface CommonActionProps
https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html
public final String getVariablesNamespace()
CommonActionProps
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
getVariablesNamespace
in interface CommonActionProps
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2021. All rights reserved.