SourceConfig Struct
The type returned from ISource#bind.
Example
ts
// 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,
}]],
pullRequestBuildPolicy: {
requiresCommentApproval: 'requiresCommentApproval',
// the properties below are optional
approverRoles: ['approverRoles'],
},
scopeConfiguration: {
name: 'name',
// the properties below are optional
domain: 'domain',
scope: 'scope',
},
webhook: false,
},
sourceVersion: 'sourceVersion',
};
Properties
buildTriggersCfnProject.ProjectTriggersPropertybuild_triggersProjectTriggersPropertybuildTriggersProjectTriggersPropertyBuildTriggersProjectTriggersPropertyBuildTriggersProjectTriggersProperty#sourcePropertyCfnProject.SourcePropertysource_propertySourcePropertysourcePropertySourcePropertySourcePropertySourcePropertySourcePropertySourcePropertyrequired#`AWS::CodeBuild::Project.SourceVersion`.
Default: the latest version