Class GitHubRepository
(experimental) The GitHubRepository resource.
Inherited Members
Namespace: Amazon.CDK.AWS.Codestar.Alpha
Assembly: Amazon.CDK.AWS.CodeStar.Alpha.dll
Syntax (csharp)
public class GitHubRepository : Resource, IGitHubRepository, IResource
Syntax (vb)
Public Class GitHubRepository
Inherits Resource
Implements IGitHubRepository, IResource
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Codestar.Alpha;
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
Constructors
GitHubRepository(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GitHubRepository(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
GitHubRepository(Construct, String, IGitHubRepositoryProps) |
Properties
Owner | (experimental) the repository owner. |
Repo | (experimental) the repository name. |
Constructors
GitHubRepository(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GitHubRepository(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GitHubRepository(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GitHubRepository(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
GitHubRepository(Construct, String, IGitHubRepositoryProps)
public GitHubRepository(Construct scope, string id, IGitHubRepositoryProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IGitHubRepositoryProps
Remarks
Stability: Experimental
Properties
Owner
(experimental) the repository owner.
public virtual string Owner { get; }
Property Value
System.String
Remarks
Stability: Experimental
Repo
(experimental) the repository name.
public virtual string Repo { get; }
Property Value
System.String
Remarks
Stability: Experimental
Implements
Constructs.IConstruct
Constructs.IDependable