AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: SAM Function

Resources:
  MyFunction:
    Type: AWS::Serverless::Function
    Properties:
      Handler: index.handler
      Runtime: nodejs18.x
      CodeUri: s3://bucket/code.zip
      MemorySize: 256
      Timeout: 30
      Environment:
        Variables:
          TABLE_NAME: my-table
      Events:
        ApiEvent:
          Type: Api
          Properties:
            Path: /hello
            Method: get
