Skip to content
v2.277.0

FilterCriteriaProperty Struct ​

An object that contains the filters for an event source.

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 filterCriteriaProperty: lambda.CfnEventSourceMapping.FilterCriteriaProperty = {
  filters: [{
    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_criteria_property = lambda.CfnEventSourceMapping.FilterCriteriaProperty(
    filters=[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.*;

FilterCriteriaProperty filterCriteriaProperty = FilterCriteriaProperty.builder()
        .filters(List.of(FilterProperty.builder()
                .pattern("pattern")
                .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.Lambda;

var filterCriteriaProperty = new FilterCriteriaProperty {
    Filters = new [] { 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"

filterCriteriaProperty := &FilterCriteriaProperty{
	Filters: []interface{}{
		&FilterProperty{
			Pattern: jsii.String("pattern"),
		},
	},
}

Properties ​

filtersoptionalIResolvable | IResolvable | CfnEventSourceMapping.FilterProperty[]filtersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FilterProperty]]]filtersoptionalIResolvableFiltersoptionalIResolvableFiltersoptionalinterface{} #
A list of filters.