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.113.0 (build fc68b25)",
date="2025-10-14T12:28:07.328Z")
@Stability(Stable)
public abstract class Source
extends software.amazon.jsii.JsiiObject
implements ISource
Source provider definition for a CodeBuild Project.
Example:
Bucket myCachingBucket;
Project.Builder.create(this, "Project")
.source(Source.bitBucket(BitBucketSourceProps.builder()
.owner("awslabs")
.repo("aws-cdk")
.build()))
.cache(Cache.bucket(myCachingBucket))
// BuildSpec with a 'cache' section necessary for S3 caching. This can
// also come from 'buildspec.yml' in your source.
.buildSpec(BuildSpec.fromObject(Map.of(
"version", "0.2",
"phases", Map.of(
"build", Map.of(
"commands", List.of("..."))),
"cache", Map.of(
"paths", List.of("/root/cachedir/**/*")))))
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.codebuild.ISource
ISource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSource(SourceProps props) protectedSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedSource(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 ISourcebitBucket(BitBucketSourceProps props) static ISourcecodeCommit(CodeCommitSourceProps props) abstract StringgetType()static ISourcegitHub(GitHubSourceProps props) static ISourcestatic ISources3(S3SourceProps props) Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 software.constructs.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:
getBadgeSupportedin interfaceISource
-
getType
-
getIdentifier
- Specified by:
getIdentifierin interfaceISource
-