Skip to content
v2.277.0

FilterProperty Struct ​

A structure within a FilterCriteria object that defines an event filtering pattern.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const filterProperty: lambda.CfnEventSourceMapping.FilterProperty = {
  pattern: 'pattern',
};
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_lambda as lambda_

filter_property = lambda.CfnEventSourceMapping.FilterProperty(
    pattern="pattern"
)
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.lambda.*;

FilterProperty filterProperty = FilterProperty.builder()
        .pattern("pattern")
        .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.Lambda;

var filterProperty = new FilterProperty {
    Pattern = "pattern"
};
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"

filterProperty := &FilterProperty{
	Pattern: jsii.String("pattern"),
}

Properties ​

patternoptionalstringpatternoptionalstrpatternoptionalStringPatternoptionalstringPatternoptional*string#
A filter pattern.

For more information on the syntax of a filter pattern, see Filter rule syntax .