class Source
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CodeBuild.Source |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#Source |
![]() | software.amazon.awscdk.services.codebuild.Source |
![]() | aws_cdk.aws_codebuild.Source |
![]() | aws-cdk-lib » aws_codebuild » Source |
Implements
ISource
Source provider definition for a CodeBuild Project.
Example
const project = new codebuild.Project(this, 'MyProject', {
buildSpec: codebuild.BuildSpec.fromSourceFilename('my-buildspec.yml'),
source: codebuild.Source.gitHub({
owner: 'awslabs',
repo: 'aws-cdk',
})
});
Initializer (protected)
super(props: SourceProps)
Parameters
- props
Source
Props
Properties
Name | Type | Description |
---|---|---|
badge | boolean | |
type | string | |
identifier? | string |
badgeSupported
Type:
boolean
type
Type:
string
identifier?
Type:
string
(optional)
Methods
Name | Description |
---|---|
bind(_scope, _project) | Called by the project when the source is added so that the source can perform binding operations on the source. |
static bit | |
static code | |
static git | |
static git | |
static s3(props) |
bind(_scope, _project)
public bind(_scope: Construct, _project: IProject): SourceConfig
Parameters
Returns
Called by the project when the source is added so that the source can perform binding operations on the source.
For example, it can grant permissions to the code build project to read from the S3 bucket.
static bitBucket(props)
public static bitBucket(props: BitBucketSourceProps): ISource
Parameters
- props
Bit
Bucket Source Props
Returns
static codeCommit(props)
public static codeCommit(props: CodeCommitSourceProps): ISource
Parameters
- props
Code
Commit Source Props
Returns
static gitHub(props)
public static gitHub(props: GitHubSourceProps): ISource
Parameters
- props
Git
Hub Source Props
Returns
static gitHubEnterprise(props)
public static gitHubEnterprise(props: GitHubEnterpriseSourceProps): ISource
Parameters
Returns
static s3(props)
public static s3(props: S3SourceProps): ISource
Parameters
- props
S3
Source Props
Returns