

# GitLabTarget

The GitLab project a patch is delivered to, and the merge request that carries it once opened.

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

 ** projectPath **   <a name="continuum-Type-GitLabTarget-projectPath"></a>
The project's full path (for example `group/subgroup/project`) as the Build recorded it.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Pattern: `[A-Za-z0-9][A-Za-z0-9._\-]*(/[A-Za-z0-9][A-Za-z0-9._\-]*)*`   
Required: Yes

 ** headSha **   <a name="continuum-Type-GitLabTarget-headSha"></a>
The head commit SHA of the merge request. Absent until the merge request is opened.  
Type: String  
Length Constraints: Fixed length of 40.  
Pattern: `[a-fA-F0-9]{40}`   
Required: No

 ** mergeRequestNumber **   <a name="continuum-Type-GitLabTarget-mergeRequestNumber"></a>
Project-scoped merge request number assigned by GitLab (the `!N` it shows; its API calls it the IID).  
Type: Long  
Valid Range: Minimum value of 1.  
Required: No

 ** mergeRequestUri **   <a name="continuum-Type-GitLabTarget-mergeRequestUri"></a>
Canonical HTTPS URL returned by GitLab for the opened merge request. Absent until publication has returned a merge request.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 8192.  
Pattern: `https://[^\s]+`   
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/continuum-2022-07-26/GitLabTarget) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/continuum-2022-07-26/GitLabTarget) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/continuum-2022-07-26/GitLabTarget) 