java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IBuildRef, IEnvironmentAware, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-07-24T11:46:42.295Z") @Stability(Stable) public class CfnBuild extends CfnResource implements IInspectable, IBuildRef
Resource Type definition for AWS::CodeBuild::Build.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codebuild.*;
 CfnBuild cfnBuild = CfnBuild.Builder.create(this, "MyCfnBuild")
         .projectName("projectName")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnBuild

      protected CfnBuild(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnBuild

      protected CfnBuild(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnBuild

      @Stability(Stable) public CfnBuild(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnBuildProps props)
      Create a new AWS::CodeBuild::Build.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnBuild

      @Stability(Stable) public CfnBuild(@NotNull software.constructs.Construct scope, @NotNull String id)
      Create a new AWS::CodeBuild::Build.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • arnForBuild

      @Stability(Stable) @NotNull public static String arnForBuild(@NotNull IBuildRef resource)
      Parameters:
      resource - This parameter is required.
    • fromBuildArn

      @Stability(Stable) @NotNull public static IBuildRef fromBuildArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn)
      Creates a new IBuildRef from an ARN.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      arn - This parameter is required.
    • fromBuildId

      @Stability(Stable) @NotNull public static IBuildRef fromBuildId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String buildId)
      Creates a new IBuildRef from a buildId.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      buildId - This parameter is required.
    • isCfnBuild

      @Stability(Stable) @NotNull public static Boolean isCfnBuild(@NotNull Object x)
      Checks whether the given object is a CfnBuild.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
    • getAttrBuildComplete

      @Stability(Stable) @NotNull public IResolvable getAttrBuildComplete()
    • getAttrBuildNumber

      @Stability(Stable) @NotNull public Number getAttrBuildNumber()
    • getAttrBuildStatus

      @Stability(Stable) @NotNull public String getAttrBuildStatus()
    • getAttrCurrentPhase

      @Stability(Stable) @NotNull public String getAttrCurrentPhase()
    • getAttrEncryptionKey

      @Stability(Stable) @NotNull public String getAttrEncryptionKey()
    • getAttrEndTime

      @Stability(Stable) @NotNull public String getAttrEndTime()
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
    • getAttrInitiator

      @Stability(Stable) @NotNull public String getAttrInitiator()
    • getAttrQueuedTimeoutInMinutes

      @Stability(Stable) @NotNull public Number getAttrQueuedTimeoutInMinutes()
    • getAttrServiceRole

      @Stability(Stable) @NotNull public String getAttrServiceRole()
    • getAttrStartTime

      @Stability(Stable) @NotNull public String getAttrStartTime()
    • getAttrTimeoutInMinutes

      @Stability(Stable) @NotNull public Number getAttrTimeoutInMinutes()
    • getBuildRef

      @Stability(Stable) @NotNull public BuildReference getBuildRef()
      A reference to a Build resource.
      Specified by:
      getBuildRef in interface IBuildRef
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getProjectName

      @Stability(Stable) @Nullable public String getProjectName()
    • setProjectName

      @Stability(Stable) public void setProjectName(@Nullable String value)