amazon web services - Get aws lambda response as an HTML page -


how can aws lambda response html page. please provide step wise procedure solve this.

store html markup in variable , return avoid text being wrapped in quotes. first store html markup in variable in lambda function return it. example in node.js:

context.succeed({ variablehtml: mycontenthtml })

here example of mapping template:

#set($inputroot = $input.path('$')) $inputroot.variablehtml .

here variablehtml contains html markup passed lambda function. after needed create response model http status, accessible through method response. here set response model content-type text/html. you'll html page without quotes , browser recognizes html.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -