def function_properties
      properties = @task.properties
      if @task.build_function_iam?
        iam_policy = Jets::Resource::Iam::FunctionRole.new(@task)
        properties[:role] = "!GetAtt #{iam_policy.logical_id}.Arn"
      end
      properties
    end
def function_properties
      properties = @task.properties
      if @task.build_function_iam?
        iam_policy = Jets::Resource::Iam::FunctionRole.new(@task)
        properties[:role] = "!GetAtt #{iam_policy.logical_id}.Arn"
      end
      properties
    end
Function properties example:

 class PostsController < ApplicationController
   timeout 18
   def index
     ...
   end

 Also handles iam policy override at the function level. Example:

   iam_policy("ec2:*")
   def new
     render json: params.merge(action: "new")
   end