lambdas.rb 649 B

12345678910111213141516171819202122232425262728293031323334
  1. # frozen_string_literal: true
  2. require 'neo4j'
  3. # Information on Lambda
  4. class Lambda
  5. include Neo4j::ActiveNode
  6. property :name
  7. property :runtime
  8. property :lambda_timeout
  9. property :handler
  10. property :memorysize
  11. property :arn
  12. property :codesize
  13. property :last_modified
  14. has_one :out, :region, rel_class: :LambdaRegion
  15. has_one :out, :owner, rel_class: :LambdaAccount
  16. end
  17. # Map Lambda to Region
  18. class LambdaRegion
  19. include Neo4j::ActiveRel
  20. from_class :Lambda
  21. to_class :Region
  22. type :region
  23. end
  24. # Map Lambda to Region
  25. class LambdaAccount
  26. include Neo4j::ActiveRel
  27. from_class :Lambda
  28. to_class :AwsAccount
  29. type :owner
  30. end