@@ -625,7 +625,7 @@ export class Project extends ProjectBase {
625
625
throw new Error ( `Badge is not supported for source type ${ this . source . type } ` ) ;
626
626
}
627
627
628
- const sourceJson = this . source . toSourceJSON ( ) ;
628
+ const sourceJson = this . source . _toSourceJSON ( ) ;
629
629
if ( typeof buildSpec === 'string' ) {
630
630
return {
631
631
...sourceJson ,
@@ -670,7 +670,7 @@ export class Project extends ProjectBase {
670
670
timeoutInMinutes : props . timeout ,
671
671
secondarySources : new Token ( ( ) => this . renderSecondarySources ( ) ) ,
672
672
secondaryArtifacts : new Token ( ( ) => this . renderSecondaryArtifacts ( ) ) ,
673
- triggers : this . source . buildTriggers ( ) ,
673
+ triggers : this . source . _buildTriggers ( ) ,
674
674
vpcConfig : this . configureVpc ( props ) ,
675
675
} ) ;
676
676
@@ -822,7 +822,7 @@ export class Project extends ProjectBase {
822
822
private renderSecondarySources ( ) : CfnProject . SourceProperty [ ] | undefined {
823
823
return this . _secondarySources . length === 0
824
824
? undefined
825
- : this . _secondarySources . map ( ( secondarySource ) => secondarySource . toSourceJSON ( ) ) ;
825
+ : this . _secondarySources . map ( ( secondarySource ) => secondarySource . _toSourceJSON ( ) ) ;
826
826
}
827
827
828
828
private renderSecondaryArtifacts ( ) : CfnProject . ArtifactsProperty [ ] | undefined {
@@ -889,15 +889,15 @@ export class Project extends ProjectBase {
889
889
if ( props . artifacts ) {
890
890
return props . artifacts ;
891
891
}
892
- if ( this . source . toSourceJSON ( ) . type === CODEPIPELINE_TYPE ) {
892
+ if ( this . source . _toSourceJSON ( ) . type === CODEPIPELINE_TYPE ) {
893
893
return new CodePipelineBuildArtifacts ( ) ;
894
894
} else {
895
895
return new NoBuildArtifacts ( ) ;
896
896
}
897
897
}
898
898
899
899
private validateCodePipelineSettings ( artifacts : BuildArtifacts ) {
900
- const sourceType = this . source . toSourceJSON ( ) . type ;
900
+ const sourceType = this . source . _toSourceJSON ( ) . type ;
901
901
const artifactsType = artifacts . toArtifactsJSON ( ) . type ;
902
902
903
903
if ( ( sourceType === CODEPIPELINE_TYPE || artifactsType === CODEPIPELINE_TYPE ) &&
0 commit comments