Class GitHubSourceActionProps.Jsii$Proxy
- All Implemented Interfaces:
GitHubSourceActionProps
,CommonActionProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- GitHubSourceActionProps
GitHubSourceActionProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.codepipeline.actions.GitHubSourceActionProps
GitHubSourceActionProps.Builder, GitHubSourceActionProps.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theGitHubSourceActionProps.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final String
The physical, human-readable name of the Action.final String
The branch to use.final SecretValue
A GitHub OAuth token to use for authentication.final Artifact
final String
getOwner()
The GitHub account/user that owns the repo.final String
getRepo()
The name of the repo, without the username.final Number
The runOrder property for this Action.final GitHubTrigger
How AWS CodePipeline should be triggered.final String
The name of the namespace to use for variables emitted by this action.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theGitHubSourceActionProps.Builder
.
-
-
Method Details
-
getOauthToken
Description copied from interface:GitHubSourceActionProps
A GitHub OAuth token to use for authentication.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:
- repo - to read the repository
- admin:repo_hook - if you plan to use webhooks (true by default)
-
getOutput
- Specified by:
getOutput
in interfaceGitHubSourceActionProps
-
getOwner
Description copied from interface:GitHubSourceActionProps
The GitHub account/user that owns the repo.- Specified by:
getOwner
in interfaceGitHubSourceActionProps
-
getRepo
Description copied from interface:GitHubSourceActionProps
The name of the repo, without the username.- Specified by:
getRepo
in interfaceGitHubSourceActionProps
-
getBranch
Description copied from interface:GitHubSourceActionProps
The branch to use.Default: "master"
- Specified by:
getBranch
in interfaceGitHubSourceActionProps
-
getTrigger
Description copied from interface:GitHubSourceActionProps
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).Default: GitHubTrigger.WEBHOOK
- Specified by:
getTrigger
in interfaceGitHubSourceActionProps
-
getActionName
Description copied from interface:CommonActionProps
The physical, human-readable name of the Action.Note that Action names must be unique within a single Stage.
- Specified by:
getActionName
in interfaceCommonActionProps
-
getRunOrder
Description copied from interface:CommonActionProps
The runOrder property for this Action.RunOrder determines the relative order in which multiple Actions in the same Stage execute.
Default: 1
- Specified by:
getRunOrder
in interfaceCommonActionProps
- See Also:
-
getVariablesNamespace
Description copied from interface:CommonActionProps
The name of the namespace to use for variables emitted by this action.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
- Specified by:
getVariablesNamespace
in interfaceCommonActionProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-