AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

GitHubSourceCredentials

The source credentials used when contacting the GitHub API. **Note**: CodeBuild only allows a single credential for GitHub to be saved in a given AWS account in a given region - any attempt to add more than one will result in an error.

Import

import { GitHubSourceCredentials } from 'aws-cdk-lib/aws-codebuild';

Or use the module namespace:

import * as codebuild from 'aws-cdk-lib/aws-codebuild';
// codebuild.GitHubSourceCredentials

Properties

Configuration passed to the constructor as GitHubSourceCredentialsProps.

accessTokenRequired
SecretValue

The personal access token to use when contacting the GitHub API.

Get the AWS CodeBuild Cheat Sheet

Everything you need to know about AWS CodeBuild on one page. HD quality, print-friendly.

Download Free Infographic