Skip to content
v2.278.0

GitHubSourceVariables Struct ​

The CodePipeline variables emitted by GitHub source Action.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline_actions as codepipeline_actions } from 'aws-cdk-lib';
const gitHubSourceVariables: codepipeline_actions.GitHubSourceVariables = {
  authorDate: 'authorDate',
  branchName: 'branchName',
  commitId: 'commitId',
  commitMessage: 'commitMessage',
  committerDate: 'committerDate',
  commitUrl: 'commitUrl',
  repositoryName: 'repositoryName',
};
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_codepipeline_actions as codepipeline_actions

git_hub_source_variables = codepipeline_actions.GitHubSourceVariables(
    author_date="authorDate",
    branch_name="branchName",
    commit_id="commitId",
    commit_message="commitMessage",
    committer_date="committerDate",
    commit_url="commitUrl",
    repository_name="repositoryName"
)
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.codepipeline.actions.*;

GitHubSourceVariables gitHubSourceVariables = GitHubSourceVariables.builder()
        .authorDate("authorDate")
        .branchName("branchName")
        .commitId("commitId")
        .commitMessage("commitMessage")
        .committerDate("committerDate")
        .commitUrl("commitUrl")
        .repositoryName("repositoryName")
        .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.CodePipeline.Actions;

var gitHubSourceVariables = new GitHubSourceVariables {
    AuthorDate = "authorDate",
    BranchName = "branchName",
    CommitId = "commitId",
    CommitMessage = "commitMessage",
    CommitterDate = "committerDate",
    CommitUrl = "commitUrl",
    RepositoryName = "repositoryName"
};
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"

gitHubSourceVariables := &GitHubSourceVariables{
	AuthorDate: jsii.String("authorDate"),
	BranchName: jsii.String("branchName"),
	CommitId: jsii.String("commitId"),
	CommitMessage: jsii.String("commitMessage"),
	CommitterDate: jsii.String("committerDate"),
	CommitUrl: jsii.String("commitUrl"),
	RepositoryName: jsii.String("repositoryName"),
}

Properties ​

authorDatestringauthor_datestrauthorDateStringAuthorDatestringAuthorDate*string required #
The date the currently last commit on the tracked branch was authored, in ISO-8601 format.
branchNamestringbranch_namestrbranchNameStringBranchNamestringBranchName*string required #
The name of the branch this action tracks.
commitIdstringcommit_idstrcommitIdStringCommitIdstringCommitId*string required #
The SHA1 hash of the currently last commit on the tracked branch.
commitMessagestringcommit_messagestrcommitMessageStringCommitMessagestringCommitMessage*string required #
The message of the currently last commit on the tracked branch.
committerDatestringcommitter_datestrcommitterDateStringCommitterDatestringCommitterDate*string required #
The date the currently last commit on the tracked branch was committed, in ISO-8601 format.
commitUrlstringcommit_urlstrcommitUrlStringCommitUrlstringCommitUrl*string required #
The GitHub API URL of the currently last commit on the tracked branch.
repositoryNamestringrepository_namestrrepositoryNameStringRepositoryNamestringRepositoryName*string required #
The name of the repository this action points to.