

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::AmplifyGen3::App GitSource

The Git source settings for an environment.

## Syntax
<a name="aws-properties-amplifygen3-app-gitsource-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-amplifygen3-app-gitsource-syntax.json"></a>

```json
{
  "[BranchMatchPatterns](#cfn-amplifygen3-app-gitsource-branchmatchpatterns)" : {{[ String, ... ]}},
  "[DeploymentTriggerEvents](#cfn-amplifygen3-app-gitsource-deploymenttriggerevents)" : {{[ String, ... ]}}
}
```

### YAML
<a name="aws-properties-amplifygen3-app-gitsource-syntax.yaml"></a>

```yaml
  [BranchMatchPatterns](#cfn-amplifygen3-app-gitsource-branchmatchpatterns): {{
    - String}}
  [DeploymentTriggerEvents](#cfn-amplifygen3-app-gitsource-deploymenttriggerevents): {{
    - String}}
```

## Properties
<a name="aws-properties-amplifygen3-app-gitsource-properties"></a>

`BranchMatchPatterns`  <a name="cfn-amplifygen3-app-gitsource-branchmatchpatterns"></a>
The branch name patterns that trigger a deployment.  
*Required*: Yes  
*Type*: Array of String  
*Minimum*: `1 | 1`  
*Maximum*: `256 | 50`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`DeploymentTriggerEvents`  <a name="cfn-amplifygen3-app-gitsource-deploymenttriggerevents"></a>
The Git events that trigger a deployment.  
*Required*: No  
*Type*: Array of String  
*Allowed values*: `PUSH | PULL_REQUEST | FORK_PULL_REQUEST`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)