Sha256: d5bce7a9a64d1b9a05bd5e3a19d294ce75b3df93c1a7deb5614a86b71ba6f4d7

Contents?: true

Size: 766 Bytes

Versions: 4

Compression:

Stored size: 766 Bytes

Contents

module Jets::Stack::Dsl::Main
  module Lambda
    # Example:
    #
    #   function(:hello,
    #     handler: handler("hello.lambda_hander"),
    #     runtime: "python3.6"
    #   )
    #
    # Defaults to ruby. So:
    #
    #   function(:hello)
    #
    # is the same as:
    #
    #   function(:hello,
    #     handler: handler("hello.hande"),
    #     runtime: :ruby
    #   )
    #
    def function(id, props = {})
    end
    alias_method :ruby_function, :function
    alias_method :lambda_function, :function

    def python_function(id, props = {})
    end

    def node_function(id, props = {})
    end

    # Usage:
    #
    #   permission(:my_permission, principal: "events.amazonaws.com")
    #
    def permission(id, props = {})
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jets-6.0.5 lib/jets/stack/dsl/main/lambda.rb
jets-6.0.4 lib/jets/stack/dsl/main/lambda.rb
jets-6.0.3 lib/jets/stack/dsl/main/lambda.rb
jets-6.0.2 lib/jets/stack/dsl/main/lambda.rb