Class AWSLambdaUtils
java.lang.Object
org.springframework.cloud.function.adapter.aws.AWSLambdaUtils
- Author:
- Oleg Zhurakousky
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the headers that stores AWS Context object. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.messaging.Message<byte[]>
generateMessage
(byte[] payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper) static org.springframework.messaging.Message<byte[]>
generateMessage
(byte[] payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper, com.amazonaws.services.lambda.runtime.Context context) static org.springframework.messaging.Message
generateMessage
(InputStream payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper, com.amazonaws.services.lambda.runtime.Context context) static byte[]
generateOutput
(org.springframework.messaging.Message requestMessage, org.springframework.messaging.Message<?> responseMessage, JsonMapper objectMapper, Type functionOutputType)
-
Field Details
-
AWS_CONTEXT
The name of the headers that stores AWS Context object.- See Also:
-
-
Method Details
-
generateMessage
public static org.springframework.messaging.Message generateMessage(InputStream payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper, com.amazonaws.services.lambda.runtime.Context context) throws IOException - Throws:
IOException
-
generateMessage
public static org.springframework.messaging.Message<byte[]> generateMessage(byte[] payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper) -
generateMessage
public static org.springframework.messaging.Message<byte[]> generateMessage(byte[] payload, Type inputType, boolean isSupplier, JsonMapper jsonMapper, com.amazonaws.services.lambda.runtime.Context context) -
generateOutput
public static byte[] generateOutput(org.springframework.messaging.Message requestMessage, org.springframework.messaging.Message<?> responseMessage, JsonMapper objectMapper, Type functionOutputType)
-