Class Source
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codebuild.Source
- All Implemented Interfaces:
ISource
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.848Z")
@Stability(Stable)
public abstract class Source
extends software.amazon.jsii.JsiiObject
implements ISource
Source provider definition for a CodeBuild Project.
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());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.codebuild.ISource
ISource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
Source
(SourceProps props) protected
Source
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
Source
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionCalled 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) abstract String
getType()
static ISource
gitHub
(GitHubSourceProps props) static ISource
static ISource
s3
(S3SourceProps props) Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Source
protected Source(software.amazon.jsii.JsiiObjectRef objRef) -
Source
protected Source(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Source
- Parameters:
props
- This parameter is required.
-
-
Method Details
-
bitBucket
- Parameters:
props
- This parameter is required.
-
codeCommit
- Parameters:
props
- This parameter is required.
-
gitHub
- Parameters:
props
- This parameter is required.
-
gitHubEnterprise
@Stability(Stable) @NotNull public static ISource gitHubEnterprise(@NotNull GitHubEnterpriseSourceProps props) - Parameters:
props
- This parameter is required.
-
s3
- Parameters:
props
- This parameter is required.
-
bind
@Stability(Stable) @NotNull public SourceConfig bind(@NotNull Construct _scope, @NotNull IProject _project) Called by the project when the source is added so that the source can perform binding operations on the source.For example, it can grant permissions to the code build project to read from the S3 bucket.
-
getBadgeSupported
- Specified by:
getBadgeSupported
in interfaceISource
-
getType
-
getIdentifier
- Specified by:
getIdentifier
in interfaceISource
-