# TriggerFilterGroupProperty

A group of trigger conditions.

The group matches when all present conditions pass. At least one condition must be present.

- Source: Generated at build time
- Type last changed: v2.277.0 · 13 Nov 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';
const triggerFilterGroupProperty: devopsagent.CfnAssociation.TriggerFilterGroupProperty = {
  events: ['events'],
  targetBranches: {
    patterns: ['patterns'],
  },
};
```

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_devopsagent as devopsagent

trigger_filter_group_property = devopsagent.CfnAssociation.TriggerFilterGroupProperty(
    events=["events"],
    target_branches=devopsagent.CfnAssociation.PatternFilterProperty(
        patterns=["patterns"]
    )
)
```

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.devopsagent.*;

TriggerFilterGroupProperty triggerFilterGroupProperty = TriggerFilterGroupProperty.builder()
        .events(List.of("events"))
        .targetBranches(PatternFilterProperty.builder()
                .patterns(List.of("patterns"))
                .build())
        .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.DevOpsAgent;

var triggerFilterGroupProperty = new TriggerFilterGroupProperty {
    Events = new [] { "events" },
    TargetBranches = new PatternFilterProperty {
        Patterns = new [] { "patterns" }
    }
};
```

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"

triggerFilterGroupProperty := &TriggerFilterGroupProperty{
	Events: []*string{
		jsii.String("events"),
	},
	TargetBranches: &PatternFilterProperty{
		Patterns: []*string{
			jsii.String("patterns"),
		},
	},
}
```

## Properties

- `events`: string[] — Passes when the webhook event is one of the listed events.

- `targetBranches`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAssociation.PatternFilterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnAssociation.PatternFilterProperty.html) — A regex-based match condition.

  Passes when the value matches any pattern.
