Interface IGitHubRepositoryProps
(experimental) Construction properties of {@link GitHubRepository}.
Namespace: Amazon.CDK.AWS.CodeStar
Assembly: Amazon.CDK.AWS.CodeStar.dll
Syntax (csharp)
public interface IGitHubRepositoryProps
Syntax (vb)
Public Interface IGitHubRepositoryProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CodeStar;
using Amazon.CDK.AWS.S3;
new GitHubRepository(this, "GitHubRepo", new GitHubRepositoryProps {
Owner = "aws",
RepositoryName = "aws-cdk",
AccessToken = SecretValue.SecretsManager("my-github-token", new SecretsManagerSecretOptions {
JsonField = "token"
}),
ContentsBucket = Bucket.FromBucketName(this, "Bucket", "bucket-name"),
ContentsKey = "import.zip"
});
Synopsis
Properties
AccessToken | (experimental) The GitHub user's personal access token for the GitHub repository. |
ContentsBucket | (experimental) The name of the Amazon S3 bucket that contains the ZIP file with the content to be committed to the new repository. |
ContentsKey | (experimental) The S3 object key or file name for the ZIP file. |
ContentsS3Version | (experimental) The object version of the ZIP file, if versioning is enabled for the Amazon S3 bucket. |
Description | (experimental) A comment or description about the new repository. |
EnableIssues | (experimental) Indicates whether to enable issues for the GitHub repository. |
Owner | (experimental) The GitHub user name for the owner of the GitHub repository to be created. |
RepositoryName | (experimental) The name of the repository you want to create in GitHub with AWS CloudFormation stack creation. |
Visibility | (experimental) Indicates whether the GitHub repository is a private repository. |
Properties
AccessToken
(experimental) The GitHub user's personal access token for the GitHub repository.
SecretValue AccessToken { get; }
Property Value
Remarks
Stability: Experimental
ContentsBucket
(experimental) The name of the Amazon S3 bucket that contains the ZIP file with the content to be committed to the new repository.
IBucket ContentsBucket { get; }
Property Value
Remarks
Stability: Experimental
ContentsKey
(experimental) The S3 object key or file name for the ZIP file.
string ContentsKey { get; }
Property Value
System.String
Remarks
Stability: Experimental
ContentsS3Version
(experimental) The object version of the ZIP file, if versioning is enabled for the Amazon S3 bucket.
virtual string ContentsS3Version { get; }
Property Value
System.String
Remarks
Default: - not specified
Stability: Experimental
Description
(experimental) A comment or description about the new repository.
virtual string Description { get; }
Property Value
System.String
Remarks
This description is displayed in GitHub after the repository is created.
Default: - no description
Stability: Experimental
EnableIssues
(experimental) Indicates whether to enable issues for the GitHub repository.
virtual Nullable<bool> EnableIssues { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
You can use GitHub issues to track information and bugs for your repository.
Default: true
Stability: Experimental
Owner
(experimental) The GitHub user name for the owner of the GitHub repository to be created.
string Owner { get; }
Property Value
System.String
Remarks
If this repository should be owned by a GitHub organization, provide its name
Stability: Experimental
RepositoryName
(experimental) The name of the repository you want to create in GitHub with AWS CloudFormation stack creation.
string RepositoryName { get; }
Property Value
System.String
Remarks
Stability: Experimental
Visibility
(experimental) Indicates whether the GitHub repository is a private repository.
virtual Nullable<RepositoryVisibility> Visibility { get; }
Property Value
System.Nullable<RepositoryVisibility>
Remarks
If so, you choose who can see and commit to this repository.
Default: RepositoryVisibility.PUBLIC
Stability: Experimental