Skip to content
v2.278.0

GitHubLocationProperty Struct ​

GitHubLocation is a property of the CodeDeploy DeploymentGroup Revision property that specifies the location of an application revision that is stored in GitHub.

Example ​

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
# 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
// 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();
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"
};
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 ​

commitIdstringcommit_idstrcommitIdStringCommitIdstringCommitId*string required #
The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision.
repositorystringrepositorystrrepositoryStringRepositorystringRepository*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 .