@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:21.069Z") 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 . |
IGitHubRepository.Jsii$Default, IGitHubRepository.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
GitHubRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GitHubRepository(software.amazon.jsii.JsiiObjectRef objRef) |
|
GitHubRepository(software.constructs.Construct scope,
java.lang.String id,
GitHubRepositoryProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOwner()
(experimental) the repository owner.
|
java.lang.String |
getRepo()
(experimental) the repository name.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected GitHubRepository(software.amazon.jsii.JsiiObjectRef objRef)
protected GitHubRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public GitHubRepository(software.constructs.Construct scope, java.lang.String id, GitHubRepositoryProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public java.lang.String getOwner()
getOwner
in interface IGitHubRepository
public java.lang.String getRepo()
getRepo
in interface IGitHubRepository