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.104.0 (build e79254c)",
date="2024-11-22T02:23:58.693Z")
@Stability(Stable)
public abstract class Source
extends software.amazon.jsii.JsiiObject
implements ISource
Source provider definition for a CodeBuild Project.
Example:
Project project = Project.Builder.create(this, "MyProject") .buildSpec(BuildSpec.fromSourceFilename("my-buildspec.yml")) .source(Source.gitHub(GitHubSourceProps.builder() .owner("awslabs") .repo("aws-cdk") .build())) .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 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:
getBadgeSupported
in interfaceISource
-
getType
-
getIdentifier
- Specified by:
getIdentifier
in interfaceISource
-