AWS::CodeStar::GitHubRepositoryThe `AWS::CodeStar::GitHubRepository` resource creates a GitHub repository where users can store source code for use with AWS workflows. You must provide a location for the source code ZIP file in the CloudFormation template, so the code can be uploaded to the created repository. You must have created a personal access token in GitHub to provide in the CloudFormation template. AWS uses this token to connect to GitHub on your behalf.
import { CfnGitHubRepository } from 'aws-cdk-lib/aws-codestar';Or use the module namespace:
import * as codestar from 'aws-cdk-lib/aws-codestar';
// codestar.CfnGitHubRepositoryConfiguration passed to the constructor as CfnGitHubRepositoryProps.
repositoryNameRequiredstringThe name of the repository you want to create in GitHub with CloudFormation stack creation.
repositoryOwnerRequiredstringThe 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.
codeOptionalIResolvable | CodePropertyInformation about code to be committed to a repository after it is created in an CloudFormation stack.
connectionArnOptionalstringenableIssuesOptionalboolean | IResolvableIndicates whether to enable issues for the GitHub repository. You can use GitHub issues to track information and bugs for your repository.
isPrivateOptionalboolean | IResolvableIndicates whether the GitHub repository is a private repository. If so, you choose who can see and commit to this repository.
repositoryAccessTokenOptionalstringThe GitHub user's personal access token for the GitHub repository.
repositoryDescriptionOptionalstringA comment or description about the new repository. This description is displayed in GitHub after the repository is created.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-codestarAWS::CodeStar::GitHubRepository