

# EnvironmentGitSourceRequest

The Git source settings to apply to an environment.

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

 ** BranchMatchPatterns **   <a name="amplifygen3-Type-EnvironmentGitSourceRequest-BranchMatchPatterns"></a>
The branch name patterns that trigger a deployment.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 50 items.  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Required: Yes

 ** DeploymentTriggerEvents **   <a name="amplifygen3-Type-EnvironmentGitSourceRequest-DeploymentTriggerEvents"></a>
The Git events that trigger a deployment.  
Type: Array of strings  
Valid Values: `PUSH | PULL_REQUEST | FORK_PULL_REQUEST`   
Required: No

## See Also
<a name="API_EnvironmentGitSourceRequest_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/amplifygen3-2025-09-18/EnvironmentGitSourceRequest) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/amplifygen3-2025-09-18/EnvironmentGitSourceRequest) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/amplifygen3-2025-09-18/EnvironmentGitSourceRequest) 