Class Source
Source provider definition for a CodeBuild Project.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class Source : DeputyBase, ISource
Syntax (vb)
Public MustInherit Class Source
Inherits DeputyBase
Implements ISource
Remarks
ExampleMetadata: infused
Examples
var project = new Project(this, "MyProject", new ProjectProps {
BuildSpec = BuildSpec.FromSourceFilename("my-buildspec.yml"),
Source = Source.GitHub(new GitHubSourceProps {
Owner = "awslabs",
Repo = "aws-cdk"
})
});
Synopsis
Constructors
Source(ISourceProps) | |
Source(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Source(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
BadgeSupported | |
Identifier | |
Type |
Methods
Bind(Construct, IProject) | Called by the project when the source is added so that the source can perform binding operations on the source. |
BitBucket(IBitBucketSourceProps) | |
CodeCommit(ICodeCommitSourceProps) | |
GitHub(IGitHubSourceProps) | |
GitHubEnterprise(IGitHubEnterpriseSourceProps) | |
S3(IS3SourceProps) |
Constructors
Source(ISourceProps)
Source(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Source(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Source(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Source(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
BadgeSupported
public virtual bool BadgeSupported { get; }
Property Value
System.Boolean
Identifier
public virtual string Identifier { get; }
Property Value
System.String
Type
public abstract string Type { get; }
Property Value
System.String
Methods
Bind(Construct, IProject)
Called by the project when the source is added so that the source can perform binding operations on the source.
public virtual ISourceConfig Bind(Construct scope, IProject project)
Parameters
- scope Constructs.Construct
- project IProject
Returns
Remarks
For example, it can grant permissions to the code build project to read from the S3 bucket.
BitBucket(IBitBucketSourceProps)
public static ISource BitBucket(IBitBucketSourceProps props)
Parameters
- props IBitBucketSourceProps
Returns
CodeCommit(ICodeCommitSourceProps)
public static ISource CodeCommit(ICodeCommitSourceProps props)
Parameters
- props ICodeCommitSourceProps
Returns
GitHub(IGitHubSourceProps)
GitHubEnterprise(IGitHubEnterpriseSourceProps)
public static ISource GitHubEnterprise(IGitHubEnterpriseSourceProps props)
Parameters
Returns