interface CfnGitHubRepositoryProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Codestar.CfnGitHubRepositoryProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodestar#CfnGitHubRepositoryProps |
Java | software.amazon.awscdk.services.codestar.CfnGitHubRepositoryProps |
Python | aws_cdk.aws_codestar.CfnGitHubRepositoryProps |
TypeScript | aws-cdk-lib » aws_codestar » CfnGitHubRepositoryProps |
Properties for defining a CfnGitHubRepository
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codestar as codestar } from 'aws-cdk-lib';
const cfnGitHubRepositoryProps: codestar.CfnGitHubRepositoryProps = {
repositoryName: 'repositoryName',
repositoryOwner: 'repositoryOwner',
// the properties below are optional
code: {
s3: {
bucket: 'bucket',
key: 'key',
// the properties below are optional
objectVersion: 'objectVersion',
},
},
connectionArn: 'connectionArn',
enableIssues: false,
isPrivate: false,
repositoryAccessToken: 'repositoryAccessToken',
repositoryDescription: 'repositoryDescription',
};
Properties
Name | Type | Description |
---|---|---|
repository | string | The name of the repository you want to create in GitHub with AWS CloudFormation stack creation. |
repository | string | The GitHub user name for the owner of the GitHub repository to be created. |
code? | IResolvable | Code | Information about code to be committed to a repository after it is created in an AWS CloudFormation stack. |
connection | string | |
enable | boolean | IResolvable | Indicates whether to enable issues for the GitHub repository. |
is | boolean | IResolvable | Indicates whether the GitHub repository is a private repository. |
repository | string | The GitHub user's personal access token for the GitHub repository. |
repository | string | A comment or description about the new repository. |
repositoryName
Type:
string
The name of the repository you want to create in GitHub with AWS CloudFormation stack creation.
repositoryOwner
Type:
string
The 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.
code?
Type:
IResolvable
|
Code
(optional)
Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.
connectionArn?
Type:
string
(optional)
enableIssues?
Type:
boolean |
IResolvable
(optional)
Indicates whether to enable issues for the GitHub repository.
You can use GitHub issues to track information and bugs for your repository.
isPrivate?
Type:
boolean |
IResolvable
(optional)
Indicates whether the GitHub repository is a private repository.
If so, you choose who can see and commit to this repository.
repositoryAccessToken?
Type:
string
(optional)
The GitHub user's personal access token for the GitHub repository.
repositoryDescription?
Type:
string
(optional)
A comment or description about the new repository.
This description is displayed in GitHub after the repository is created.