public final class SnsEvents
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.Collection<T> |
getMessages(com.amazonaws.services.lambda.runtime.events.SNSEvent snsEvent,
java.util.function.Function<java.lang.String,T> toEvent,
java.lang.String subject)
Extracts SNS message payload(s) from a received set of SNS messages
|
public static <T> java.util.Collection<T> getMessages(com.amazonaws.services.lambda.runtime.events.SNSEvent snsEvent,
java.util.function.Function<java.lang.String,T> toEvent,
@Nullable
java.lang.String subject)
T - Java representation of event to providesnsEvent - The SNS payload to read fromtoEvent - Function for converting string payload(s) to a meaningful Java representationsubject - Message subject to filter matches to. May be null to prevent any subject-based filtering