Class GitHubSourceCredentials
The source credentials used when contacting the GitHub API.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.AWS.CodeBuild.dll
Syntax (csharp)
public class GitHubSourceCredentials : Resource, IResource, IConstruct, IDependable
Syntax (vb)
Public Class GitHubSourceCredentials
Inherits Resource
Implements IResource, IConstruct, IDependable
Remarks
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.
Resource: AWS::CodeBuild::SourceCredential
ExampleMetadata: infused
Examples
new GitHubSourceCredentials(this, "CodeBuildGitHubCreds", new GitHubSourceCredentialsProps {
AccessToken = SecretValue.SecretsManager("my-token")
});
Synopsis
Constructors
GitHubSourceCredentials(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GitHubSourceCredentials(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
GitHubSourceCredentials(Construct, String, IGitHubSourceCredentialsProps) |
Constructors
GitHubSourceCredentials(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GitHubSourceCredentials(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GitHubSourceCredentials(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GitHubSourceCredentials(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
GitHubSourceCredentials(Construct, String, IGitHubSourceCredentialsProps)
public GitHubSourceCredentials(Construct scope, string id, IGitHubSourceCredentialsProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IGitHubSourceCredentialsProps
Implements
Constructs.IConstruct