class LambdaConfigurationStaxUnmarshaller extends java.lang.Object implements Unmarshaller<java.util.Map.Entry<java.lang.String,NotificationConfiguration>,StaxUnmarshallerContext>
NotificationConfigurationStaxUnmarshaller
. A
CloudFunctionConfiguration element may be unmarshalled into two different classes based on
presence of the InvocationRole attribute. If InvocationRole is present we unmarshall into the
legacy CloudFunctionConfiguration
, otherwise we unmarshall into
LambdaConfiguration
.Modifier and Type | Field and Description |
---|---|
private static LambdaConfigurationStaxUnmarshaller |
instance |
Modifier | Constructor and Description |
---|---|
private |
LambdaConfigurationStaxUnmarshaller() |
Modifier and Type | Method and Description |
---|---|
private java.util.Map.Entry<java.lang.String,NotificationConfiguration> |
createLambdaConfig(java.lang.String id,
java.util.List<java.lang.String> events,
java.lang.String functionArn,
java.lang.String invocationRole,
Filter filter) |
static LambdaConfigurationStaxUnmarshaller |
getInstance() |
java.util.Map.Entry<java.lang.String,NotificationConfiguration> |
unmarshall(StaxUnmarshallerContext context) |
private static LambdaConfigurationStaxUnmarshaller instance
private LambdaConfigurationStaxUnmarshaller()
public static LambdaConfigurationStaxUnmarshaller getInstance()
public java.util.Map.Entry<java.lang.String,NotificationConfiguration> unmarshall(StaxUnmarshallerContext context) throws java.lang.Exception
unmarshall
in interface Unmarshaller<java.util.Map.Entry<java.lang.String,NotificationConfiguration>,StaxUnmarshallerContext>
java.lang.Exception
private java.util.Map.Entry<java.lang.String,NotificationConfiguration> createLambdaConfig(java.lang.String id, java.util.List<java.lang.String> events, java.lang.String functionArn, java.lang.String invocationRole, Filter filter)