Skip to content
v2.278.0

GitHubRepositoryReference Struct ​

A reference to a GitHubRepository resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codestar as interfaces_codestar } from 'aws-cdk-lib/interfaces';
const gitHubRepositoryReference: interfaces_codestar.GitHubRepositoryReference = {
  gitHubRepositoryId: 'gitHubRepositoryId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_codestar as interfaces_codestar

git_hub_repository_reference = interfaces_codestar.GitHubRepositoryReference(
    git_hub_repository_id="gitHubRepositoryId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.codestar.*;

GitHubRepositoryReference gitHubRepositoryReference = GitHubRepositoryReference.builder()
        .gitHubRepositoryId("gitHubRepositoryId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.Codestar;

var gitHubRepositoryReference = new GitHubRepositoryReference {
    GitHubRepositoryId = "gitHubRepositoryId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

gitHubRepositoryReference := &GitHubRepositoryReference{
	GitHubRepositoryId: jsii.String("gitHubRepositoryId"),
}

Properties ​

gitHubRepositoryIdstringgit_hub_repository_idstrgitHubRepositoryIdStringGitHubRepositoryIdstringGitHubRepositoryId*string required #
The Id of the GitHubRepository resource.