@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.367Z") @Stability(value=Stable) public abstract class Source extends software.amazon.jsii.JsiiObject implements ISource
Example:
ISource gitHubSource = Source.gitHub(GitHubSourceProps.builder()
.owner("awslabs")
.repo("aws-cdk")
.webhook(true) // optional, default: true if `webhookFilters` were provided, false otherwise
.webhookTriggersBatchBuild(true) // optional, default is false
.webhookFilters(List.of(FilterGroup.inEventOf(EventAction.PUSH).andBranchIs("main").andCommitMessageIs("the commit message")))
.build());
software.amazon.jsii.JsiiObject.InitializationModeISource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
Source(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Source(software.amazon.jsii.JsiiObjectRef objRef) |
protected |
Source(SourceProps props) |
| Modifier and Type | Method and Description |
|---|---|
SourceConfig |
bind(software.constructs.Construct _scope,
IProject _project)
Called by the project when the source is added so that the source can perform binding operations on the source.
|
static ISource |
bitBucket(BitBucketSourceProps props) |
static ISource |
codeCommit(CodeCommitSourceProps props) |
Boolean |
getBadgeSupported() |
String |
getIdentifier() |
abstract String |
getType() |
static ISource |
gitHub(GitHubSourceProps props) |
static ISource |
gitHubEnterprise(GitHubEnterpriseSourceProps props) |
static ISource |
s3(S3SourceProps props) |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Source(software.amazon.jsii.JsiiObjectRef objRef)
protected Source(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
protected Source(@NotNull
SourceProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public static ISource bitBucket(@NotNull BitBucketSourceProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public static ISource codeCommit(@NotNull CodeCommitSourceProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public static ISource gitHub(@NotNull GitHubSourceProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public static ISource gitHubEnterprise(@NotNull GitHubEnterpriseSourceProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public static ISource s3(@NotNull S3SourceProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public SourceConfig bind(@NotNull software.constructs.Construct _scope, @NotNull IProject _project)
For example, it can grant permissions to the code build project to read from the S3 bucket.
@Stability(value=Stable) @NotNull public Boolean getBadgeSupported()
getBadgeSupported in interface ISource@Stability(value=Stable) @NotNull public abstract String getType()
@Stability(value=Stable) @Nullable public String getIdentifier()
getIdentifier in interface ISourceCopyright © 2022. All rights reserved.