#author("2019-01-10T05:59:13+00:00","","")
[[AWSメモ]] &gtl;
* AWS API Gateway&LambdaをFlask的に移行しやすいように作る [#ibb8bd56]
#setlinebreak(on);

#contents

** 概要 [#nca4a038]
#html(<div style="padding-left: 10px;">)
#html(</div>)

** メインハンドラ [#g6afcfa1]
#html(<div style="padding-left: 10px;">)
#html(</div>)

** ラッパー [#qdc0ed93]
#html(<div style="padding-left: 10px;">)
#html(</div>)

** template.yml [#t81396c9]
#html(<div style="padding-left: 10px;">)

#mycode2(){{
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Test serverless application.

Resources:

  BookFunction:
    Type: AWS::Serverless::Function
    Properties:
      Handler: myframework.handler
      Runtime: python3.6
      Events:
        List:
          Type: Api 
          Properties:
            Path: /books
            Method: get 
        Create:
          Type: Api 
          Properties:
            Path: /books
            Method: post
        Update:
          Type: Api 
          Properties:
            Path: /books/{id}
            Method: put 
        Delete:
          Type: Api 
          Properties:
            Path: /books/{id}
            Method: delete
}}

#html(</div>)

トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS