PatternFilterProperty Struct Added in v2.277.0
A regex-based match condition.
Passes when the value matches any pattern.
| 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 patternFilterProperty: devopsagent.CfnAssociation.PatternFilterProperty = {
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
pattern_filter_property = 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.*;
PatternFilterProperty patternFilterProperty = PatternFilterProperty.builder()
.patterns(List.of("patterns"))
.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 patternFilterProperty = 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"
patternFilterProperty := &PatternFilterProperty{
Patterns: []*string{
jsii.String("patterns"),
},
}
Properties
patternsstring[]patternstyping.List[str]patternsList<String>Patternsstring[]Patterns*[]*string required #Anchored full-match regex patterns, for example 'main' or 'release/.*'.