@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:37.977Z") 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("master").andCommitMessageIs("the commit message"))) .build());
ISource.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
Source(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Source(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
SourceConfig |
bind(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) |
java.lang.Boolean |
getBadgeSupported() |
java.lang.String |
getIdentifier() |
abstract java.lang.String |
getType() |
static ISource |
gitHub(GitHubSourceProps props) |
static ISource |
gitHubEnterprise(GitHubEnterpriseSourceProps props) |
static ISource |
s3(S3SourceProps props) |
protected Source(software.amazon.jsii.JsiiObjectRef objRef)
protected Source(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public static ISource bitBucket(BitBucketSourceProps props)
props
- This parameter is required.public static ISource codeCommit(CodeCommitSourceProps props)
props
- This parameter is required.public static ISource gitHub(GitHubSourceProps props)
props
- This parameter is required.public static ISource gitHubEnterprise(GitHubEnterpriseSourceProps props)
props
- This parameter is required.public static ISource s3(S3SourceProps props)
props
- This parameter is required.public SourceConfig bind(Construct _scope, IProject _project)
For example, it can grant permissions to the code build project to read from the S3 bucket.
public java.lang.Boolean getBadgeSupported()
getBadgeSupported
in interface ISource
public java.lang.String getIdentifier()
getIdentifier
in interface ISource