@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:52.230Z") @Stability(value=Experimental) public class GitHubRepository extends Resource implements IGitHubRepository
Example:
import software.amazon.awscdk.services.codestar.*;
import software.amazon.awscdk.services.s3.*;
GitHubRepository.Builder.create(this, "GitHubRepo")
.owner("aws")
.repositoryName("aws-cdk")
.accessToken(SecretValue.secretsManager("my-github-token", SecretsManagerSecretOptions.builder()
.jsonField("token")
.build()))
.contentsBucket(Bucket.fromBucketName(this, "Bucket", "bucket-name"))
.contentsKey("import.zip")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
GitHubRepository.Builder
(experimental) A fluent builder for
GitHubRepository. |
software.amazon.jsii.JsiiObject.InitializationModeIGitHubRepository.Jsii$Default, IGitHubRepository.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
GitHubRepository(software.constructs.Construct scope,
String id,
GitHubRepositoryProps props) |
protected |
GitHubRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GitHubRepository(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getOwner()
(experimental) the repository owner.
|
String |
getRepo()
(experimental) the repository name.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected GitHubRepository(software.amazon.jsii.JsiiObjectRef objRef)
protected GitHubRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public GitHubRepository(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
GitHubRepositoryProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public String getOwner()
getOwner in interface IGitHubRepository@Stability(value=Experimental) @NotNull public String getRepo()
getRepo in interface IGitHubRepositoryCopyright © 2023. All rights reserved.