interface SourceConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.SourceConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#SourceConfig |
Java | software.amazon.awscdk.services.codebuild.SourceConfig |
Python | aws_cdk.aws_codebuild.SourceConfig |
TypeScript (source) | aws-cdk-lib » aws_codebuild » SourceConfig |
Obtainable from
Source
.bind()
The type returned from ISource#bind
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
const sourceConfig: codebuild.SourceConfig = {
sourceProperty: {
type: 'type',
// the properties below are optional
auth: {
type: 'type',
// the properties below are optional
resource: 'resource',
},
buildSpec: 'buildSpec',
buildStatusConfig: {
context: 'context',
targetUrl: 'targetUrl',
},
gitCloneDepth: 123,
gitSubmodulesConfig: {
fetchSubmodules: false,
},
insecureSsl: false,
location: 'location',
reportBuildStatus: false,
sourceIdentifier: 'sourceIdentifier',
},
// the properties below are optional
buildTriggers: {
buildType: 'buildType',
filterGroups: [[{
pattern: 'pattern',
type: 'type',
// the properties below are optional
excludeMatchedPattern: false,
}]],
scopeConfiguration: {
name: 'name',
},
webhook: false,
},
sourceVersion: 'sourceVersion',
};
Properties
Name | Type | Description |
---|---|---|
source | Source | |
build | Project | |
source | string | AWS::CodeBuild::Project.SourceVersion . |
sourceProperty
Type:
Source
buildTriggers?
Type:
Project
(optional)
sourceVersion?
Type:
string
(optional, default: the latest version)
AWS::CodeBuild::Project.SourceVersion
.