Interface GitHubRepositoryProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GitHubRepositoryProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.975Z")
@Stability(Experimental)
public interface GitHubRepositoryProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Construction properties of
GitHubRepository
.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forGitHubRepositoryProps
static final class
An implementation forGitHubRepositoryProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
(experimental) The GitHub user's personal access token for the GitHub repository.(experimental) The name of the Amazon S3 bucket that contains the ZIP file with the content to be committed to the new repository.(experimental) The S3 object key or file name for the ZIP file.default String
(experimental) The object version of the ZIP file, if versioning is enabled for the Amazon S3 bucket.default String
(experimental) A comment or description about the new repository.default Boolean
(experimental) Indicates whether to enable issues for the GitHub repository.getOwner()
(experimental) The GitHub user name for the owner of the GitHub repository to be created.(experimental) The name of the repository you want to create in GitHub with AWS CloudFormation stack creation.default RepositoryVisibility
(experimental) Indicates whether the GitHub repository is a private repository.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessToken
(experimental) The GitHub user's personal access token for the GitHub repository. -
getContentsBucket
(experimental) The name of the Amazon S3 bucket that contains the ZIP file with the content to be committed to the new repository. -
getContentsKey
(experimental) The S3 object key or file name for the ZIP file. -
getOwner
(experimental) The GitHub user name for the owner of the GitHub repository to be created.If this repository should be owned by a GitHub organization, provide its name
-
getRepositoryName
(experimental) The name of the repository you want to create in GitHub with AWS CloudFormation stack creation. -
getContentsS3Version
(experimental) The object version of the ZIP file, if versioning is enabled for the Amazon S3 bucket.Default: - not specified
-
getDescription
(experimental) A comment or description about the new repository.This description is displayed in GitHub after the repository is created.
Default: - no description
-
getEnableIssues
(experimental) Indicates whether to enable issues for the GitHub repository.You can use GitHub issues to track information and bugs for your repository.
Default: true
-
getVisibility
(experimental) Indicates whether the GitHub repository is a private repository.If so, you choose who can see and commit to this repository.
Default: RepositoryVisibility.PUBLIC
-
builder
- Returns:
- a
GitHubRepositoryProps.Builder
ofGitHubRepositoryProps
-