Class FilterCriteria

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.FilterCriteria
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-03-01T20:58:26.538Z") @Stability(Stable) public class FilterCriteria extends software.amazon.jsii.JsiiObject
Filter criteria for Lambda event filtering.

Example:

 import software.amazon.awscdk.services.lambda.eventsources.*;
 import software.amazon.awscdk.services.dynamodb.*;
 Function fn;
 Table table = Table.Builder.create(this, "Table")
         .partitionKey(Attribute.builder()
                 .name("id")
                 .type(AttributeType.STRING)
                 .build())
         .stream(StreamViewType.NEW_IMAGE)
         .build();
 fn.addEventSource(DynamoEventSource.Builder.create(table)
         .startingPosition(StartingPosition.LATEST)
         .filters(List.of(FilterCriteria.filter(Map.of("eventName", FilterRule.isEqual("INSERT")))))
         .build());
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    FilterCriteria(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    FilterCriteria(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Map<String,Object>
    filter(Map<String,? extends Object> filter)
    Filter for event source.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • FilterCriteria

      protected FilterCriteria(software.amazon.jsii.JsiiObjectRef objRef)
    • FilterCriteria

      protected FilterCriteria(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • FilterCriteria

      @Stability(Stable) public FilterCriteria()
  • Method Details

    • filter

      @Stability(Stable) @NotNull public static Map<String,Object> filter(@NotNull Map<String,? extends Object> filter)
      Filter for event source.

      Parameters:
      filter - This parameter is required.