Class CfnGitHubRepository.Builder
java.lang.Object
software.amazon.awscdk.services.codestar.CfnGitHubRepository.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGitHubRepository>
- Enclosing class:
CfnGitHubRepository
@Stability(Stable)
public static final class CfnGitHubRepository.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGitHubRepository>
A fluent builder for
CfnGitHubRepository
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
code
(IResolvable code) Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.connectionArn
(String connectionArn) AWS::CodeStar::GitHubRepository.ConnectionArn
.static CfnGitHubRepository.Builder
enableIssues
(Boolean enableIssues) Indicates whether to enable issues for the GitHub repository.enableIssues
(IResolvable enableIssues) Indicates whether to enable issues for the GitHub repository.Indicates whether the GitHub repository is a private repository.isPrivate
(IResolvable isPrivate) Indicates whether the GitHub repository is a private repository.repositoryAccessToken
(String repositoryAccessToken) The GitHub user's personal access token for the GitHub repository.repositoryDescription
(String repositoryDescription) A comment or description about the new repository.repositoryName
(String repositoryName) The name of the repository you want to create in GitHub with AWS CloudFormation stack creation.repositoryOwner
(String repositoryOwner) The GitHub user name for the owner of the GitHub repository to be created.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnGitHubRepository.Builder
.
-
repositoryName
The name of the repository you want to create in GitHub with AWS CloudFormation stack creation.- Parameters:
repositoryName
- The name of the repository you want to create in GitHub with AWS CloudFormation stack creation. This parameter is required.- Returns:
this
-
repositoryOwner
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.
- Parameters:
repositoryOwner
- The GitHub user name for the owner of the GitHub repository to be created. This parameter is required.- Returns:
this
-
code
Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.- Parameters:
code
- Information about code to be committed to a repository after it is created in an AWS CloudFormation stack. This parameter is required.- Returns:
this
-
code
Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.- Parameters:
code
- Information about code to be committed to a repository after it is created in an AWS CloudFormation stack. This parameter is required.- Returns:
this
-
connectionArn
AWS::CodeStar::GitHubRepository.ConnectionArn
.- Parameters:
connectionArn
-AWS::CodeStar::GitHubRepository.ConnectionArn
. This parameter is required.- Returns:
this
-
enableIssues
Indicates whether to enable issues for the GitHub repository.You can use GitHub issues to track information and bugs for your repository.
- Parameters:
enableIssues
- Indicates whether to enable issues for the GitHub repository. This parameter is required.- Returns:
this
-
enableIssues
Indicates whether to enable issues for the GitHub repository.You can use GitHub issues to track information and bugs for your repository.
- Parameters:
enableIssues
- Indicates whether to enable issues for the GitHub repository. This parameter is required.- Returns:
this
-
isPrivate
Indicates whether the GitHub repository is a private repository.If so, you choose who can see and commit to this repository.
- Parameters:
isPrivate
- Indicates whether the GitHub repository is a private repository. This parameter is required.- Returns:
this
-
isPrivate
Indicates whether the GitHub repository is a private repository.If so, you choose who can see and commit to this repository.
- Parameters:
isPrivate
- Indicates whether the GitHub repository is a private repository. This parameter is required.- Returns:
this
-
repositoryAccessToken
@Stability(Stable) public CfnGitHubRepository.Builder repositoryAccessToken(String repositoryAccessToken) The GitHub user's personal access token for the GitHub repository.- Parameters:
repositoryAccessToken
- The GitHub user's personal access token for the GitHub repository. This parameter is required.- Returns:
this
-
repositoryDescription
@Stability(Stable) public CfnGitHubRepository.Builder repositoryDescription(String repositoryDescription) A comment or description about the new repository.This description is displayed in GitHub after the repository is created.
- Parameters:
repositoryDescription
- A comment or description about the new repository. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGitHubRepository>
- Returns:
- a newly built instance of
CfnGitHubRepository
.
-