interface GitPushFilter
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodePipeline.GitPushFilter |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodepipeline#GitPushFilter |
Java | software.amazon.awscdk.services.codepipeline.GitPushFilter |
Python | aws_cdk.aws_codepipeline.GitPushFilter |
TypeScript (source) | aws-cdk-lib » aws_codepipeline » GitPushFilter |
Git push filter for trigger.
Example
// 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 gitPushFilter: codepipeline.GitPushFilter = {
branchesExcludes: ['branchesExcludes'],
branchesIncludes: ['branchesIncludes'],
filePathsExcludes: ['filePathsExcludes'],
filePathsIncludes: ['filePathsIncludes'],
tagsExcludes: ['tagsExcludes'],
tagsIncludes: ['tagsIncludes'],
};
Properties
| Name | Type | Description |
|---|---|---|
| branches | string[] | The list of patterns of Git branches that, when pull request events occurs, are to be excluded from starting the pipeline. |
| branches | string[] | The list of patterns of Git branches that, when pull request events occurs, are to be included as criteria that starts the pipeline. |
| file | string[] | The list of patterns of Git repository file paths that, when pull request events occurs, are to be excluded from starting the pipeline. |
| file | string[] | The list of patterns of Git repository file paths that, when pull request events occurs, are to be included as criteria that starts the pipeline. |
| tags | string[] | The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline. |
| tags | string[] | The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline. |
branchesExcludes?
Type:
string[]
(optional, default: no branches.)
The list of patterns of Git branches that, when pull request events occurs, are to be excluded from starting the pipeline.
You can filter with glob patterns. The branchesExcludes takes priority
over the branchesIncludes.
Maximum length of this array is 8.
branchesIncludes?
Type:
string[]
(optional, default: no branches.)
The list of patterns of Git branches that, when pull request events occurs, are to be included as criteria that starts the pipeline.
You can filter with glob patterns. The branchesExcludes takes priority
over the branchesIncludes.
Maximum length of this array is 8.
filePathsExcludes?
Type:
string[]
(optional, default: no filePaths.)
The list of patterns of Git repository file paths that, when pull request events occurs, are to be excluded from starting the pipeline.
You can filter with glob patterns. The filePathsExcludes takes priority
over the filePathsIncludes.
Maximum length of this array is 8.
filePathsIncludes?
Type:
string[]
(optional, default: no filePaths.)
The list of patterns of Git repository file paths that, when pull request events occurs, are to be included as criteria that starts the pipeline.
You can filter with glob patterns. The filePathsExcludes takes priority
over the filePathsIncludes.
Maximum length of this array is 8.
tagsExcludes?
Type:
string[]
(optional, default: no tags.)
The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
You can filter with glob patterns. The tagsExcludes takes priority
over the tagsIncludes.
Maximum length of this array is 8.
tagsIncludes?
Type:
string[]
(optional, default: no tags.)
The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
You can filter with glob patterns. The tagsExcludes takes priority
over the tagsIncludes.
Maximum length of this array is 8.

.NET
Go
Java
Python
TypeScript (