# GitFilePathFilterCriteriaProperty

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

- Source: Generated at build time
- Type last changed: v2.129.0 · 21 Feb 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline as codepipeline } from 'aws-cdk-lib';
const gitFilePathFilterCriteriaProperty: codepipeline.CfnPipeline.GitFilePathFilterCriteriaProperty = {
  excludes: ['excludes'],
  includes: ['includes'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codepipeline as codepipeline

git_file_path_filter_criteria_property = codepipeline.CfnPipeline.GitFilePathFilterCriteriaProperty(
    excludes=["excludes"],
    includes=["includes"]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codepipeline.*;

GitFilePathFilterCriteriaProperty gitFilePathFilterCriteriaProperty = GitFilePathFilterCriteriaProperty.builder()
        .excludes(List.of("excludes"))
        .includes(List.of("includes"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodePipeline;

var gitFilePathFilterCriteriaProperty = new GitFilePathFilterCriteriaProperty {
    Excludes = new [] { "excludes" },
    Includes = new [] { "includes" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

gitFilePathFilterCriteriaProperty := &GitFilePathFilterCriteriaProperty{
	Excludes: []*string{
		jsii.String("excludes"),
	},
	Includes: []*string{
		jsii.String("includes"),
	},
}
```

## Properties

- `excludes`: string[] — The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.

- `includes`: string[] — The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
