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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.pipelines.GitHubSourceOptions
GitHubSourceOptions.Builder, GitHubSourceOptions.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(GitHubSourceOptions.Builder builder) Constructor that initializes the object based on literal property values passed by theGitHubSourceOptions.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 SecretValueA GitHub OAuth token to use for authentication.final GitHubTriggerHow AWS CodePipeline should be triggered.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 theGitHubSourceOptions.Builder.
-
-
Method Details
-
getAuthentication
Description copied from interface:GitHubSourceOptionsA GitHub OAuth token to use for authentication.It is recommended to use a Secrets Manager
Secretto 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:
getAuthenticationin interfaceGitHubSourceOptions- See Also:
-
getTrigger
Description copied from interface:GitHubSourceOptionsHow 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 interfaceGitHubSourceOptions
-
$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()
-