Class Artifacts
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codebuild.Artifacts
- All Implemented Interfaces:
IArtifacts
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.653Z")
@Stability(Stable)
public abstract class Artifacts
extends software.amazon.jsii.JsiiObject
implements IArtifacts
Artifacts definition for a CodeBuild Project.
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 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.IArtifacts
IArtifacts.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
Artifacts
(ArtifactsProps props) protected
Artifacts
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
Artifacts
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionCallback when an Artifacts class is used in a CodeBuild Project.The artifact identifier.abstract String
getType()
The CodeBuild type of this artifact.static IArtifacts
s3
(S3ArtifactsProps 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
-
Artifacts
protected Artifacts(software.amazon.jsii.JsiiObjectRef objRef) -
Artifacts
protected Artifacts(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Artifacts
- Parameters:
props
- This parameter is required.
-
-
Method Details
-
s3
- Parameters:
props
- This parameter is required.
-
bind
@Stability(Stable) @NotNull public ArtifactsConfig bind(@NotNull Construct _scope, @NotNull IProject _project) Callback when an Artifacts class is used in a CodeBuild Project.- Specified by:
bind
in interfaceIArtifacts
- Parameters:
_scope
- This parameter is required._project
- This parameter is required.
-
getType
The CodeBuild type of this artifact.- Specified by:
getType
in interfaceIArtifacts
-
getIdentifier
The artifact identifier.This property is required on secondary artifacts.
- Specified by:
getIdentifier
in interfaceIArtifacts
-