Slide 15
Slide 15 text
15
IAM, APIGateway, Lambda がコードに登場しない
bring cloud;
bring ex;
bring util;
let api = new cloud.Api();
api.get("/users/:id", inflight (request: cloud.ApiRequest): cloud.ApiResponse => {
let id = request.vars.get("id");
return cloud.ApiResponse {
status: 200,
body: Json.stringify({message: "SUCCESS {id}"})
};
});