Class FilterRule
Filter rules for Lambda event filtering.
Inheritance
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FilterRule : DeputyBase
Syntax (vb)
Public Class FilterRule
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Lambda.EventSources;
using Amazon.CDK.AWS.DynamoDB;
Function fn;
var table = new Table(this, "Table", new TableProps {
PartitionKey = new Attribute {
Name = "id",
Type = AttributeType.STRING
},
Stream = StreamViewType.NEW_IMAGE
});
fn.AddEventSource(new DynamoEventSource(table, new DynamoEventSourceProps {
StartingPosition = StartingPosition.LATEST,
Filters = new [] { FilterCriteria.Filter(new Dictionary<string, object> { { "eventName", FilterRule.IsEqual("INSERT") } }) }
}));
Synopsis
Constructors
FilterRule() | |
FilterRule(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
FilterRule(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
BeginsWith(String) | Begins with comparison operator. |
Between(Double, Double) | Numeric range comparison operator. |
Empty() | Empty comparison operator. |
Exists() | Exists comparison operator. |
IsEqual(Object) | Equals comparison operator. |
NotEquals(String) | Not equals comparison operator. |
NotExists() | Not exists comparison operator. |
Null() | Null comparison operator. |
Or(String[]) | Or comparison operator. |
Constructors
FilterRule()
public FilterRule()
FilterRule(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected FilterRule(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
FilterRule(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected FilterRule(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
BeginsWith(String)
Begins with comparison operator.
public static IDictionary<string, string>[] BeginsWith(string elem)
Parameters
- elem System.String
Returns
System.Collections.Generic.IDictionary<System.String, System.String>[]
Between(Double, Double)
Numeric range comparison operator.
public static IDictionary<string, object[]>[] Between(double first, double second)
Parameters
- first System.Double
- second System.Double
Returns
System.Collections.Generic.IDictionary<System.String, System.Object[]>[]
Empty()
Empty comparison operator.
public static string[] Empty()
Returns
System.String[]
Exists()
Exists comparison operator.
public static IDictionary<string, bool>[] Exists()
Returns
System.Collections.Generic.IDictionary<System.String, System.Boolean>[]
IsEqual(Object)
Equals comparison operator.
public static object IsEqual(object item)
Parameters
- item System.Object
Returns
System.Object
NotEquals(String)
Not equals comparison operator.
public static IDictionary<string, string[]>[] NotEquals(string elem)
Parameters
- elem System.String
Returns
System.Collections.Generic.IDictionary<System.String, System.String[]>[]
NotExists()
Not exists comparison operator.
public static IDictionary<string, bool>[] NotExists()
Returns
System.Collections.Generic.IDictionary<System.String, System.Boolean>[]
Null()
Null comparison operator.
public static string[] Null()
Returns
System.String[]
Or(String[])
Or comparison operator.
public static string[] Or(params string[] elem)
Parameters
- elem System.String[]
Returns
System.String[]