org: ORG_PLACEHOLDER
app: APP_PLACEHOLDER
service: SERVICE_PLACEHOLDER

provider:
  name: aws
  runtime: nodejs16.x
  region: REGION_PLACEHOLDER

functions:
  # NodeJS handlers
  unresolved:
    handler: handler.unresolved
  syncError:
    handler: handler.syncError
  async:
    handler: handler.async
  asyncError:
    handler: handler.asyncError
  asyncDanglingCallback:
    handler: handler.asyncDanglingCallback
  callback:
    handler: handler.callback
  callbackError:
    handler: handler.callbackError
  noWaitForEmptyLoop:
    handler: handler.noWaitForEmptyLoop
  done:
    handler: handler.done
  doneError:
    handler: handler.doneError
  fail:
    handler: handler.fail
  succeed:
    handler: handler.succeed
  promise-and-callback-race:
    handler: handler.promiseAndCallbackRace
  spans:
    handler: handler.spans
  eventTags:
    handler: handler.eventTags
  setEndpoint:
    handler: handler.setEndpoint
  setEndpointWithHttpMetadata:
    handler: handler.setEndpointWithHttpMetadata
  timeout:
    handler: handler.timeout
  waitForEmptyLoop:
    handler: handler.waitForEmptyLoop
  getTransactionId:
    handler: handler.getTransactionId
  getDashboardUrl:
    handler: handler.getDashboardUrl
    environment:
      PLATFORM_STAGE: ${env:SERVERLESS_PLATFORM_STAGE}
      ORG: ORG_PLACEHOLDER
      APP: APP_PLACEHOLDER
      SERVICE: SERVICE_PLACEHOLDER
      STAGE: STAGE_PLACEHOLDER
      REGION: REGION_PLACEHOLDER

  # Python handlers
  pythonSuccess:
    handler: handler.success
    runtime: python3.8
  pythonError:
    handler: handler.error
    runtime: python3.8
  pythonHttpError:
    handler: handler.http_error
    runtime: python3.8
  pythonEventTags:
    handler: handler.event_tags
    runtime: python3.8
  pythonSetEndpoint:
    handler: handler.set_endpoint
    runtime: python3.8
  pythonTimeout:
    handler: handler.timeout
    runtime: python3.8
  pythonSubModule:
    handler: submodule/handler.success
    runtime: python3.8
  pythonTransactionId:
    handler: handler.get_transaction_id
    runtime: python3.8
  pythonDashboardUrl:
    handler: handler.get_dashboard_url
    runtime: python3.8
    environment:
      PLATFORM_STAGE: ${env:SERVERLESS_PLATFORM_STAGE}
      ORG: ORG_PLACEHOLDER
      APP: APP_PLACEHOLDER
      SERVICE: SERVICE_PLACEHOLDER
      STAGE: STAGE_PLACEHOLDER
      REGION: REGION_PLACEHOLDER
