Skip to content
v2.278.0

GitPushFilterProperty Struct ​

The event criteria that specify when a specified repository event will start the pipeline for the specified trigger configuration, such as the lists of Git tags to include and exclude.

Example ​

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 gitPushFilterProperty: codepipeline.CfnPipeline.GitPushFilterProperty = {
  branches: {
    excludes: ['excludes'],
    includes: ['includes'],
  },
  filePaths: {
    excludes: ['excludes'],
    includes: ['includes'],
  },
  tags: {
    excludes: ['excludes'],
    includes: ['includes'],
  },
};
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_push_filter_property = codepipeline.CfnPipeline.GitPushFilterProperty(
    branches=codepipeline.CfnPipeline.GitBranchFilterCriteriaProperty(
        excludes=["excludes"],
        includes=["includes"]
    ),
    file_paths=codepipeline.CfnPipeline.GitFilePathFilterCriteriaProperty(
        excludes=["excludes"],
        includes=["includes"]
    ),
    tags=codepipeline.CfnPipeline.GitTagFilterCriteriaProperty(
        excludes=["excludes"],
        includes=["includes"]
    )
)
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.*;

GitPushFilterProperty gitPushFilterProperty = GitPushFilterProperty.builder()
        .branches(GitBranchFilterCriteriaProperty.builder()
                .excludes(List.of("excludes"))
                .includes(List.of("includes"))
                .build())
        .filePaths(GitFilePathFilterCriteriaProperty.builder()
                .excludes(List.of("excludes"))
                .includes(List.of("includes"))
                .build())
        .tags(GitTagFilterCriteriaProperty.builder()
                .excludes(List.of("excludes"))
                .includes(List.of("includes"))
                .build())
        .build();
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 gitPushFilterProperty = new GitPushFilterProperty {
    Branches = new GitBranchFilterCriteriaProperty {
        Excludes = new [] { "excludes" },
        Includes = new [] { "includes" }
    },
    FilePaths = new GitFilePathFilterCriteriaProperty {
        Excludes = new [] { "excludes" },
        Includes = new [] { "includes" }
    },
    Tags = new GitTagFilterCriteriaProperty {
        Excludes = new [] { "excludes" },
        Includes = new [] { "includes" }
    }
};
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"

gitPushFilterProperty := &GitPushFilterProperty{
	Branches: &GitBranchFilterCriteriaProperty{
		Excludes: []*string{
			jsii.String("excludes"),
		},
		Includes: []*string{
			jsii.String("includes"),
		},
	},
	FilePaths: &GitFilePathFilterCriteriaProperty{
		Excludes: []*string{
			jsii.String("excludes"),
		},
		Includes: []*string{
			jsii.String("includes"),
		},
	},
	Tags: &GitTagFilterCriteriaProperty{
		Excludes: []*string{
			jsii.String("excludes"),
		},
		Includes: []*string{
			jsii.String("includes"),
		},
	},
}

Properties ​

branchesoptionalIResolvable | CfnPipeline.GitBranchFilterCriteriaPropertybranchesoptionaltyping.Union[IResolvable, GitBranchFilterCriteriaProperty]branchesoptionalIResolvableBranchesoptionalIResolvableBranchesoptionalinterface{} #
The field that specifies to filter on branches for the push trigger configuration.
filePathsoptionalIResolvable | CfnPipeline.GitFilePathFilterCriteriaPropertyfile_pathsoptionaltyping.Union[IResolvable, GitFilePathFilterCriteriaProperty]filePathsoptionalIResolvableFilePathsoptionalIResolvableFilePathsoptionalinterface{} #
The field that specifies to filter on file paths for the push trigger configuration.
The field that contains the details for the Git tags trigger configuration.