# GitHubLocationProperty

`GitHubLocation` is a property of the [CodeDeploy DeploymentGroup Revision](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html) property that specifies the location of an application revision that is stored in GitHub.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const gitHubLocationProperty: codedeploy.CfnDeploymentGroup.GitHubLocationProperty = {
  commitId: 'commitId',
  repository: 'repository',
};
```

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_codedeploy as codedeploy

git_hub_location_property = codedeploy.CfnDeploymentGroup.GitHubLocationProperty(
    commit_id="commitId",
    repository="repository"
)
```

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.codedeploy.*;

GitHubLocationProperty gitHubLocationProperty = GitHubLocationProperty.builder()
        .commitId("commitId")
        .repository("repository")
        .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.CodeDeploy;

var gitHubLocationProperty = new GitHubLocationProperty {
    CommitId = "commitId",
    Repository = "repository"
};
```

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"

gitHubLocationProperty := &GitHubLocationProperty{
	CommitId: jsii.String("commitId"),
	Repository: jsii.String("repository"),
}
```

## Properties

- `commitId`: string (required) — The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision.

- `repository`: string (required) — The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision.

  Specify the value as `account/repository` .
