

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::CodePipeline::Pipeline GitBranchFilterCriteria
<a name="aws-properties-codepipeline-pipeline-gitbranchfiltercriteria"></a>

The Git repository branches specified as filter criteria to start the pipeline.

## Syntax
<a name="aws-properties-codepipeline-pipeline-gitbranchfiltercriteria-syntax"></a>

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

### JSON
<a name="aws-properties-codepipeline-pipeline-gitbranchfiltercriteria-syntax.json"></a>

```
{
  "[Excludes](#cfn-codepipeline-pipeline-gitbranchfiltercriteria-excludes)" : [ String, ... ],
  "[Includes](#cfn-codepipeline-pipeline-gitbranchfiltercriteria-includes)" : [ String, ... ]
}
```

### YAML
<a name="aws-properties-codepipeline-pipeline-gitbranchfiltercriteria-syntax.yaml"></a>

```
  [Excludes](#cfn-codepipeline-pipeline-gitbranchfiltercriteria-excludes): 
    - String
  [Includes](#cfn-codepipeline-pipeline-gitbranchfiltercriteria-includes): 
    - String
```

## Properties
<a name="aws-properties-codepipeline-pipeline-gitbranchfiltercriteria-properties"></a>

`Excludes`  <a name="cfn-codepipeline-pipeline-gitbranchfiltercriteria-excludes"></a>
The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.  
*Required*: No  
*Type*: Array of String  
*Minimum*: `1`  
*Maximum*: `8`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Includes`  <a name="cfn-codepipeline-pipeline-gitbranchfiltercriteria-includes"></a>
The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.  
*Required*: No  
*Type*: Array of String  
*Minimum*: `1`  
*Maximum*: `8`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)