

# BuildPhase
<a name="API_BuildPhase"></a>

Information about a stage for a build.

## Contents
<a name="API_BuildPhase_Contents"></a>

**Note**  
In the following list, the required parameters are described first.

 ** contexts **   <a name="CodeBuild-Type-BuildPhase-contexts"></a>
Additional information about a build phase, especially to help troubleshoot a failed build.  
Type: Array of [PhaseContext](API_PhaseContext.md) objects  
Required: No

 ** durationInSeconds **   <a name="CodeBuild-Type-BuildPhase-durationInSeconds"></a>
How long, in seconds, between the starting and ending times of the build's phase.  
Type: Long  
Required: No

 ** endTime **   <a name="CodeBuild-Type-BuildPhase-endTime"></a>
When the build phase ended, expressed in Unix time format.  
Type: Timestamp  
Required: No

 ** phaseStatus **   <a name="CodeBuild-Type-BuildPhase-phaseStatus"></a>
The current status of the build phase. Valid values include:    
FAILED  
The build phase failed.  
FAULT  
The build phase faulted.  
IN\$1PROGRESS  
The build phase is still in progress.  
STOPPED  
The build phase stopped.  
SUCCEEDED  
The build phase succeeded.  
TIMED\$1OUT  
The build phase timed out.
Type: String  
Valid Values: `SUCCEEDED | FAILED | FAULT | TIMED_OUT | IN_PROGRESS | STOPPED`   
Required: No

 ** phaseType **   <a name="CodeBuild-Type-BuildPhase-phaseType"></a>
The name of the build phase. Valid values include:    
BUILD  
Core build activities typically occur in this build phase.  
COMPLETED  
The build has been completed.  
DOWNLOAD\$1SOURCE  
Source code is being downloaded in this build phase.  
FINALIZING  
The build process is completing in this build phase.  
INSTALL  
Installation activities typically occur in this build phase.  
POST\$1BUILD  
Post-build activities typically occur in this build phase.  
PRE\$1BUILD  
Pre-build activities typically occur in this build phase.  
PROVISIONING  
The build environment is being set up.  
QUEUED  
The build has been submitted and is queued behind other submitted builds.  
SUBMITTED  
The build has been submitted.  
UPLOAD\$1ARTIFACTS  
Build output artifacts are being uploaded to the output location.
Type: String  
Valid Values: `SUBMITTED | QUEUED | PROVISIONING | DOWNLOAD_SOURCE | INSTALL | PRE_BUILD | BUILD | POST_BUILD | UPLOAD_ARTIFACTS | FINALIZING | COMPLETED`   
Required: No

 ** startTime **   <a name="CodeBuild-Type-BuildPhase-startTime"></a>
When the build phase started, expressed in Unix time format.  
Type: Timestamp  
Required: No

## See Also
<a name="API_BuildPhase_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/codebuild-2016-10-06/BuildPhase) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/codebuild-2016-10-06/BuildPhase) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/codebuild-2016-10-06/BuildPhase) 