Interface ProjectProps
- All Superinterfaces:
CommonProjectProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ProjectProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.840Z")
@Stability(Stable)
public interface ProjectProps
extends software.amazon.jsii.JsiiSerializable, CommonProjectProps
Example:
Bucket bucket;
Project project = Project.Builder.create(this, "MyProject")
.buildSpec(BuildSpec.fromObject(Map.of(
"version", "0.2")))
.artifacts(Artifacts.s3(S3ArtifactsProps.builder()
.bucket(bucket)
.includeBuildId(false)
.packageZip(true)
.path("another/path")
.identifier("AddArtifact1")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forProjectPropsstatic final classAn implementation forProjectProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectProps.Builderbuilder()default IArtifactsDefines where build artifacts will be stored.default List<IArtifacts>The secondary artifacts for the Project.The secondary sources for the Project.default ISourceThe source of the build.Methods inherited from interface software.amazon.awscdk.services.codebuild.CommonProjectProps
getAllowAllOutbound, getBadge, getBuildSpec, getCache, getCheckSecretsInPlainTextEnvVariables, getConcurrentBuildLimit, getDescription, getEncryptionKey, getEnvironment, getEnvironmentVariables, getFileSystemLocations, getGrantReportGroupPermissions, getLogging, getProjectName, getQueuedTimeout, getRole, getSecurityGroups, getSubnetSelection, getTimeout, getVpcMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getArtifacts
Defines where build artifacts will be stored.Could be: PipelineBuildArtifacts, NoArtifacts and S3Artifacts.
Default: NoArtifacts
-
getSecondaryArtifacts
The secondary artifacts for the Project.Can also be added after the Project has been created by using the
Project.addSecondaryArtifact(software.amazon.awscdk.services.codebuild.IArtifacts)method.Default: - No secondary artifacts.
-
getSecondarySources
The secondary sources for the Project.Can be also added after the Project has been created by using the
Project.addSecondarySource(software.amazon.awscdk.services.codebuild.ISource)method.Default: - No secondary sources.
-
getSource
The source of the build.*Note*: if
NoSourceis given as the source, then you need to provide an explicit `buildSpec`.Default: - NoSource
-
builder
- Returns:
- a
ProjectProps.BuilderofProjectProps
-