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, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class GitHubRepository Inherits Resource Implements IGitHubRepository, IResource, IConstruct, IDependable, IEnvironmentAware
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", "amzn-s3-demo-bucket"),
ContentsKey = "import.zip"
});
Synopsis
Constructors
| GitHubRepository(Construct, string, IGitHubRepositoryProps) | (experimental) The GitHubRepository resource. |
Properties
| Owner | (experimental) the repository owner. |
| PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
| Repo | (experimental) the repository name. |
Constructors
GitHubRepository(Construct, string, IGitHubRepositoryProps)
(experimental) The GitHubRepository resource.
public GitHubRepository(Construct scope, string id, IGitHubRepositoryProps props)
Parameters
- scope Construct
- id string
- props IGitHubRepositoryProps
Remarks
Stability: Experimental
Properties
Owner
(experimental) the repository owner.
public virtual string Owner { get; }
Property Value
Remarks
Stability: Experimental
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Repo
(experimental) the repository name.
public virtual string Repo { get; }
Property Value
Remarks
Stability: Experimental
Implements
Constructs.IConstruct
Constructs.IDependable