# CfnGitHubRepositoryProps

Properties for defining a `CfnGitHubRepository`.

Used as props by: [CfnGitHubRepository](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codestar.CfnGitHubRepository.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// 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',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codestar as codestar

cfn_git_hub_repository_props = codestar.CfnGitHubRepositoryProps(
    repository_name="repositoryName",
    repository_owner="repositoryOwner",

    # the properties below are optional
    code=codestar.CfnGitHubRepository.CodeProperty(
        s3=codestar.CfnGitHubRepository.S3Property(
            bucket="bucket",
            key="key",

            # the properties below are optional
            object_version="objectVersion"
        )
    ),
    connection_arn="connectionArn",
    enable_issues=False,
    is_private=False,
    repository_access_token="repositoryAccessToken",
    repository_description="repositoryDescription"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codestar.*;

CfnGitHubRepositoryProps cfnGitHubRepositoryProps = CfnGitHubRepositoryProps.builder()
        .repositoryName("repositoryName")
        .repositoryOwner("repositoryOwner")

        // the properties below are optional
        .code(CodeProperty.builder()
                .s3(S3Property.builder()
                        .bucket("bucket")
                        .key("key")

                        // the properties below are optional
                        .objectVersion("objectVersion")
                        .build())
                .build())
        .connectionArn("connectionArn")
        .enableIssues(false)
        .isPrivate(false)
        .repositoryAccessToken("repositoryAccessToken")
        .repositoryDescription("repositoryDescription")
        .build();
```

C# / .NET:

```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.AWS.Codestar;

var cfnGitHubRepositoryProps = new CfnGitHubRepositoryProps {
    RepositoryName = "repositoryName",
    RepositoryOwner = "repositoryOwner",

    // the properties below are optional
    Code = new CodeProperty {
        S3 = new S3Property {
            Bucket = "bucket",
            Key = "key",

            // the properties below are optional
            ObjectVersion = "objectVersion"
        }
    },
    ConnectionArn = "connectionArn",
    EnableIssues = false,
    IsPrivate = false,
    RepositoryAccessToken = "repositoryAccessToken",
    RepositoryDescription = "repositoryDescription"
};
```

Golang:

```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"

cfnGitHubRepositoryProps := &CfnGitHubRepositoryProps{
	RepositoryName: jsii.String("repositoryName"),
	RepositoryOwner: jsii.String("repositoryOwner"),

	// the properties below are optional
	Code: &CodeProperty{
		S3: &S3Property{
			Bucket: jsii.String("bucket"),
			Key: jsii.String("key"),

			// the properties below are optional
			ObjectVersion: jsii.String("objectVersion"),
		},
	},
	ConnectionArn: jsii.String("connectionArn"),
	EnableIssues: jsii.Boolean(false),
	IsPrivate: jsii.Boolean(false),
	RepositoryAccessToken: jsii.String("repositoryAccessToken"),
	RepositoryDescription: jsii.String("repositoryDescription"),
}
```

## Properties

- `code`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGitHubRepository.CodeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codestar.CfnGitHubRepository.CodeProperty.html) — Information about code to be committed to a repository after it is created in an CloudFormation stack.

- `connectionArn`: string

- `enableIssues`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether to enable issues for the GitHub repository.

  You can use GitHub issues to track information and bugs for your repository.

- `isPrivate`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether the GitHub repository is a private repository.

  If so, you choose who can see and commit to this repository.

- `repositoryAccessToken`: string — The GitHub user's personal access token for the GitHub repository.

- `repositoryDescription`: string — A comment or description about the new repository.

  This description is displayed in GitHub after the repository is created.

- `repositoryName`: string (required) — The name of the repository you want to create in GitHub with CloudFormation stack creation.

- `repositoryOwner`: string (required) — 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.
