# GitHubEnterpriseSourceCredentialsProps

Creation properties for `GitHubEnterpriseSourceCredentials`.

Used as props by: [GitHubEnterpriseSourceCredentials](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.GitHubEnterpriseSourceCredentials.html)

- Source: [`aws-codebuild/lib/source-credentials.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-codebuild/lib/source-credentials.ts#L48)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_codebuild as codebuild } from 'aws-cdk-lib';

declare const secretValue: cdk.SecretValue;
const gitHubEnterpriseSourceCredentialsProps: codebuild.GitHubEnterpriseSourceCredentialsProps = {
  accessToken: secretValue,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_codebuild as codebuild

# secret_value: cdk.SecretValue

git_hub_enterprise_source_credentials_props = codebuild.GitHubEnterpriseSourceCredentialsProps(
    access_token=secret_value
)
```

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.*;
import software.amazon.awscdk.services.codebuild.*;

SecretValue secretValue;

GitHubEnterpriseSourceCredentialsProps gitHubEnterpriseSourceCredentialsProps = GitHubEnterpriseSourceCredentialsProps.builder()
        .accessToken(secretValue)
        .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;
using Amazon.CDK.AWS.CodeBuild;

SecretValue secretValue;

var gitHubEnterpriseSourceCredentialsProps = new GitHubEnterpriseSourceCredentialsProps {
    AccessToken = secretValue
};
```

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 cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var secretValue SecretValue

gitHubEnterpriseSourceCredentialsProps := &GitHubEnterpriseSourceCredentialsProps{
	AccessToken: secretValue,
}
```

## Properties

- `accessToken`: [SecretValue](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.SecretValue.html) (required) — The personal access token to use when contacting the instance of the GitHub Enterprise API.
