TriggerFilterGroupProperty Struct
A group of trigger conditions.
The group matches when all present conditions pass. At least one condition must be present.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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" }
}
};
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
eventsoptionalstring[]eventsoptionaltyping.List[str]eventsoptionalList<String>Eventsoptionalstring[]Eventsoptional*[]*string #Passes when the webhook event is one of the listed events.
targetBranchesoptionalIResolvable | CfnAssociation.target_branchesoptionaltyping.Union[IResolvable, PatternFilterProperty]targetBranchesoptionalIResolvableTargetBranchesoptionalIResolvableTargetBranchesoptionalinterface{} #A regex-based match condition.
Passes when the value matches any pattern.