GitHubEnterpriseSourceCredentials

class aws_cdk.aws_codebuild.GitHubEnterpriseSourceCredentials(scope, id, *, access_token)

Bases: aws_cdk.core.Resource

The source credentials used when contacting the GitHub Enterprise API.

Note: CodeBuild only allows a single credential for GitHub Enterprise to be saved in a given AWS account in a given region - any attempt to add more than one will result in an error.

resource: :resource:: AWS::CodeBuild::SourceCredential

__init__(scope, id, *, access_token)
Parameters
  • scope (Construct) –

  • id (str) –

  • access_token (SecretValue) – The personal access token to use when contacting the instance of the GitHub Enterprise API.

Return type

None

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

node

The construct tree node associated with this construct.

Return type

ConstructNode

stack

The stack in which this resource is defined.

Return type

Stack

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool