@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.368Z") @Stability(value=Stable) public interface SourceConfig extends software.amazon.jsii.JsiiSerializable
ISource.bind(software.constructs.Construct, software.amazon.awscdk.services.codebuild.IProject).
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
SourceConfig sourceConfig = SourceConfig.builder()
.sourceProperty(SourceProperty.builder()
.type("type")
// the properties below are optional
.auth(SourceAuthProperty.builder()
.type("type")
// the properties below are optional
.resource("resource")
.build())
.buildSpec("buildSpec")
.buildStatusConfig(BuildStatusConfigProperty.builder()
.context("context")
.targetUrl("targetUrl")
.build())
.gitCloneDepth(123)
.gitSubmodulesConfig(GitSubmodulesConfigProperty.builder()
.fetchSubmodules(false)
.build())
.insecureSsl(false)
.location("location")
.reportBuildStatus(false)
.sourceIdentifier("sourceIdentifier")
.build())
// the properties below are optional
.buildTriggers(ProjectTriggersProperty.builder()
.buildType("buildType")
.filterGroups(List.of(List.of(WebhookFilterProperty.builder()
.pattern("pattern")
.type("type")
// the properties below are optional
.excludeMatchedPattern(false)
.build())))
.webhook(false)
.build())
.sourceVersion("sourceVersion")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
SourceConfig.Builder
A builder for
SourceConfig |
static class |
SourceConfig.Jsii$Proxy
An implementation for
SourceConfig |
| Modifier and Type | Method and Description |
|---|---|
static SourceConfig.Builder |
builder() |
default CfnProject.ProjectTriggersProperty |
getBuildTriggers() |
CfnProject.SourceProperty |
getSourceProperty() |
default String |
getSourceVersion()
`AWS::CodeBuild::Project.SourceVersion`.
|
@Stability(value=Stable) @NotNull CfnProject.SourceProperty getSourceProperty()
@Stability(value=Stable) @Nullable default CfnProject.ProjectTriggersProperty getBuildTriggers()
@Stability(value=Stable) @Nullable default String getSourceVersion()
Default: the latest version
@Stability(value=Stable) static SourceConfig.Builder builder()
SourceConfig.Builder of SourceConfigCopyright © 2022. All rights reserved.