GitHubEnterpriseSourceCredentialsProps Struct
Creation properties for GitHubEnterpriseSourceCredentials.
Example
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
# 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
// 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();
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
};
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
accessTokenSecretValueaccess_tokenSecretValueaccessTokenSecretValueAccessTokenSecretValueAccessTokenSecretValuerequired#The personal access token to use when contacting the instance of the GitHub Enterprise API.