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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.codepipeline.actions.GitHubSourceActionProps
GitHubSourceActionProps.Builder, GitHubSourceActionProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theGitHubSourceActionProps.Builder.protectedJsii$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.JsonNodefinal booleanfinal StringThe physical, human-readable name of the Action.final StringThe branch to use.final SecretValueA GitHub OAuth token to use for authentication.final Artifactfinal StringgetOwner()The GitHub account/user that owns the repo.final StringgetRepo()The name of the repo, without the username.final NumberThe runOrder property for this Action.final GitHubTriggerHow AWS CodePipeline should be triggered.final StringThe name of the namespace to use for variables emitted by this action.final inthashCode()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:GitHubSourceActionPropsA GitHub OAuth token to use for authentication.It is recommended to use a Secrets Manager
Secretto 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:
getOutputin interfaceGitHubSourceActionProps
-
getOwner
Description copied from interface:GitHubSourceActionPropsThe GitHub account/user that owns the repo.- Specified by:
getOwnerin interfaceGitHubSourceActionProps
-
getRepo
Description copied from interface:GitHubSourceActionPropsThe name of the repo, without the username.- Specified by:
getRepoin interfaceGitHubSourceActionProps
-
getBranch
Description copied from interface:GitHubSourceActionPropsThe branch to use.Default: "master"
- Specified by:
getBranchin interfaceGitHubSourceActionProps
-
getTrigger
Description copied from interface:GitHubSourceActionPropsHow 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:
getTriggerin interfaceGitHubSourceActionProps
-
getActionName
Description copied from interface:CommonActionPropsThe physical, human-readable name of the Action.Note that Action names must be unique within a single Stage.
- Specified by:
getActionNamein interfaceCommonActionProps
-
getRunOrder
Description copied from interface:CommonActionPropsThe runOrder property for this Action.RunOrder determines the relative order in which multiple Actions in the same Stage execute.
Default: 1
- Specified by:
getRunOrderin interfaceCommonActionProps- See Also:
-
getVariablesNamespace
Description copied from interface:CommonActionPropsThe 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:
getVariablesNamespacein interfaceCommonActionProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-