

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 GitHubSource

The GitHub source repository settings for an Amplify Gen 3 app.

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

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

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

```json
{
  "[ProductionBranch](#cfn-amplifygen3-app-githubsource-productionbranch)" : {{String}},
  "[RepositoryUrl](#cfn-amplifygen3-app-githubsource-repositoryurl)" : {{String}}
}
```

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

```yaml
  [ProductionBranch](#cfn-amplifygen3-app-githubsource-productionbranch): {{String}}
  [RepositoryUrl](#cfn-amplifygen3-app-githubsource-repositoryurl): {{String}}
```

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

`ProductionBranch`  <a name="cfn-amplifygen3-app-githubsource-productionbranch"></a>
The name of the production branch. Amazon Amplify Gen 3 uses it only when it creates the app, to set the branches that the production and preview environments deploy. To change the branches that an environment deploys later, update the environment's `SourceConfig`.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `256`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`RepositoryUrl`  <a name="cfn-amplifygen3-app-githubsource-repositoryurl"></a>
The URL of the source repository.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)