interface SourceConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.SourceConfig |
Java | software.amazon.awscdk.services.codebuild.SourceConfig |
Python | aws_cdk.aws_codebuild.SourceConfig |
TypeScript (source) | @aws-cdk/aws-codebuild » SourceConfig |
Obtainable from
Source
.bind()
The type returned from {@link ISource#bind}.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as codebuild from '@aws-cdk/aws-codebuild';
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,
}]],
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
.