Package software.amazon.awscdk.pipelines
Class GitHubSourceOptions.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.pipelines.GitHubSourceOptions.Jsii$Proxy
- All Implemented Interfaces:
GitHubSourceOptions
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
GitHubSourceOptions
@Stability(Stable)
@Internal
public static final class GitHubSourceOptions.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements GitHubSourceOptions
An implementation for
GitHubSourceOptions
-
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.pipelines.GitHubSourceOptions
GitHubSourceOptions.Builder, GitHubSourceOptions.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Jsii$Proxy
(GitHubSourceOptions.Builder builder) Constructor that initializes the object based on literal property values passed by theGitHubSourceOptions.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 action name used for this source in the CodePipeline.final SecretValue
A GitHub OAuth token to use for authentication.final GitHubTrigger
How AWS CodePipeline should be triggered.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 theGitHubSourceOptions.Builder
.
-
-
Method Details
-
getActionName
Description copied from interface:GitHubSourceOptions
The action name used for this source in the CodePipeline.Default: - The repository string
- Specified by:
getActionName
in interfaceGitHubSourceOptions
-
getAuthentication
Description copied from interface:GitHubSourceOptions
A GitHub OAuth token to use for authentication.It is recommended to use a Secrets Manager
Secret
to obtain the token:SecretValue oauth = SecretValue.secretsManager("my-github-token");
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)
Default: - SecretValue.secretsManager('github-token')
- Specified by:
getAuthentication
in interfaceGitHubSourceOptions
- See Also:
-
getTrigger
Description copied from interface:GitHubSourceOptions
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 interfaceGitHubSourceOptions
-
$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()
-