目次

XXXXXXX

TODO:

ヘッダで
isBase64Encoded: True

API Gatewayで
バイナリメディアタイプに、バイナリとして扱いたいコンテンツタイプを指定する

https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html

https://docs.aws.amazon.com/ja_jp/apigateway/latest/developerguide/api-gateway-payload-encodings.html

https://docs.aws.amazon.com/ja_jp/serverless-application-model/latest/developerguide/serverless-controlling-access-to-apis.html

template.yml

Resources:
  MyApi:
    Type: AWS::ApiGateway::RestApi
    Properties: 
      Name: String
      Description: String
      BinaryMediaTypes: 
        - "image/*"

  MyFunction:
    Type: AWS::Serverless::Function
    Properties:
      CodeUri: ./src
      Handler: index.handler
      Runtime: python3.6
      Events:
        GetRoot:
          Type: Api
          Properties:
            RestApiId: !Ref MyApi
            Path: /
            Method: get

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