Class GitHubEnterpriseSourceCredentials
The source credentials used when contacting the GitHub Enterprise API.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GitHubEnterpriseSourceCredentials : Resource, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class GitHubEnterpriseSourceCredentials Inherits Resource Implements IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
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: AWS::CodeBuild::SourceCredential
ExampleMetadata: fixture=_generated
Examples
// 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 gitHubEnterpriseSourceCredentials = new GitHubEnterpriseSourceCredentials(this, "MyGitHubEnterpriseSourceCredentials", new GitHubEnterpriseSourceCredentialsProps {
AccessToken = secretValue
});
Synopsis
Constructors
| GitHubEnterpriseSourceCredentials(Construct, string, IGitHubEnterpriseSourceCredentialsProps) | The source credentials used when contacting the GitHub Enterprise API. |
Properties
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Constructors
GitHubEnterpriseSourceCredentials(Construct, string, IGitHubEnterpriseSourceCredentialsProps)
The source credentials used when contacting the GitHub Enterprise API.
public GitHubEnterpriseSourceCredentials(Construct scope, string id, IGitHubEnterpriseSourceCredentialsProps props)
Parameters
- scope Construct
- id string
- props IGitHubEnterpriseSourceCredentialsProps
Remarks
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: AWS::CodeBuild::SourceCredential
ExampleMetadata: fixture=_generated
Examples
// 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 gitHubEnterpriseSourceCredentials = new GitHubEnterpriseSourceCredentials(this, "MyGitHubEnterpriseSourceCredentials", new GitHubEnterpriseSourceCredentialsProps {
AccessToken = secretValue
});
Properties
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
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: AWS::CodeBuild::SourceCredential
ExampleMetadata: fixture=_generated