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

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    Artifacts(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Artifacts(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(Construct _scope, IProject _project)
    Callback when an Artifacts class is used in a CodeBuild Project.
    The artifact identifier.
    abstract String
    The CodeBuild type of this artifact.
    static IArtifacts
     

    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

      @Stability(Stable) protected Artifacts(@NotNull ArtifactsProps props)
      Parameters:
      props - This parameter is required.
  • Method Details

    • s3

      @Stability(Stable) @NotNull public static IArtifacts s3(@NotNull S3ArtifactsProps props)
      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 interface IArtifacts
      Parameters:
      _scope - This parameter is required.
      _project - This parameter is required.
    • getType

      @Stability(Stable) @NotNull public abstract String getType()
      The CodeBuild type of this artifact.
      Specified by:
      getType in interface IArtifacts
    • getIdentifier

      @Stability(Stable) @Nullable public String getIdentifier()
      The artifact identifier.

      This property is required on secondary artifacts.

      Specified by:
      getIdentifier in interface IArtifacts