apps/lambda/sam.yaml [140:180]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          NAME_SERVICE_PORT: "443"
          NAME_SERVICE_PATH: "/prod/resources/names"
          NAME_SERVICE_SCHEME: "https"
      Events:
        WebAppRoot:
          Type: Api
          Properties:
            Path: "/"
            Method: GET
            RestApiId: !Ref WebAppApi
        WebAppName:
          Type: Api
          Properties:
            Path: "/{id}"
            Method: GET
            RestApiId: !Ref WebAppApi
  WebAppApi:
    Type: AWS::Serverless::Api
    Properties:
#      EndpointConfiguration: REGIONAL
      StageName: prod
      DefinitionBody:
        swagger: "2.0"
        info:
          title: "Webapp API"
        paths:
          "/{id}":
            get:
              produces:
                - text/plain
              parameters:
                - name: id
                  in: path
                  required: false
                  type: number
              responses: {}
              x-amazon-apigateway-integration:
                httpMethod: POST
                type: aws_proxy
                uri: !Sub "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${WebAppFunction.Arn}/invocations"
Outputs:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



apps/lambda/webapp-sam.yaml [33:73]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          NAME_SERVICE_PORT: "443"
          NAME_SERVICE_PATH: "/prod/resources/names"
          NAME_SERVICE_SCHEME: "https"
      Events:
        WebAppRoot:
          Type: Api
          Properties:
            Path: "/"
            Method: GET
            RestApiId: !Ref WebAppApi
        WebAppName:
          Type: Api
          Properties:
            Path: "/{id}"
            Method: GET
            RestApiId: !Ref WebAppApi
  WebAppApi:
    Type: AWS::Serverless::Api
    Properties:
#      EndpointConfiguration: REGIONAL
      StageName: prod
      DefinitionBody:
        swagger: "2.0"
        info:
          title: "Webapp API"
        paths:
          "/{id}":
            get:
              produces:
                - text/plain
              parameters:
                - name: id
                  in: path
                  required: false
                  type: number
              responses: {}
              x-amazon-apigateway-integration:
                httpMethod: POST
                type: aws_proxy
                uri: !Sub "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${WebAppFunction.Arn}/invocations"
Outputs:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



