{"action":"created","comment":{"url":"https://api.github.com/repos/alertlogic/erlcloud/pulls/comments/47798847","id":47798847,"diff_hunk":"@@ -0,0 +1,716 @@\n+-module(erlcloud_lambda).\n+-author('eholland@alertlogic.com').\n+\n+-include(\"erlcloud.hrl\").\n+-include(\"erlcloud_aws.hrl\").\n+-include(\"erlcloud_lambda.hrl\").\n+\n+-define(API_VERSION, \"2015-03-31\").\n+\n+%%% Library initialization.\n+-export([configure/2, configure/3, configure/4,\n+         new/2, new/3, new/4, lambda_result_fun/1]).\n+-export([create_alias/4, create_alias/5,\n+         create_event_source_mapping/4, create_event_source_mapping/5,\n+         create_function/6, create_function/7,\n+         delete_event_source_mapping/1, delete_event_source_mapping/2,\n+         get_alias/2, get_alias/3,\n+         get_event_source_mapping/1, get_event_source_mapping/2,\n+         get_function/1, get_function/2, get_function/3,\n+         get_function_configuration/1, get_function_configuration/2, get_function_configuration/3,\n+         list_aliases/1, list_aliases/2, list_aliases/4, list_aliases/5,\n+         list_event_source_mappings/2, list_event_source_mappings/4, list_event_source_mappings/5,\n+         list_functions/0, list_functions/2, list_functions/3,\n+         list_versions_by_function/1, list_versions_by_function/3, list_versions_by_function/4,\n+         publish_version/1, publish_version/3, publish_version/4,\n+         update_alias/2, update_alias/4, update_alias/5,\n+         update_event_source_mapping/4, update_event_source_mapping/5,\n+         update_function_code/3, update_function_code/4,\n+         update_function_configuration/6, update_function_configuration/7]).\n+\n+-type(runtime()     :: 'nodejs' | 'java8' | 'python2.7').\n+-type(return_val()  :: any()).\n+\n+\n+\n+%%------------------------------------------------------------------------------\n+%% Library initialization.\n+%%------------------------------------------------------------------------------\n+\n+-spec new(string(), string()) -> aws_config().\n+\n+new(AccessKeyID, SecretAccessKey) ->\n+    #aws_config{\n+       access_key_id=AccessKeyID,\n+       secret_access_key=SecretAccessKey\n+      }.\n+\n+-spec new(string(), string(), string()) -> aws_config().\n+\n+new(AccessKeyID, SecretAccessKey, Host) ->\n+    #aws_config{\n+       access_key_id=AccessKeyID,\n+       secret_access_key=SecretAccessKey,\n+       lambda_host=Host\n+      }.\n+\n+-spec new(string(), string(), string(), non_neg_integer()) -> aws_config().\n+\n+new(AccessKeyID, SecretAccessKey, Host, Port) ->\n+    #aws_config{\n+       access_key_id=AccessKeyID,\n+       secret_access_key=SecretAccessKey,\n+       lambda_host=Host,\n+       lambda_port=Port\n+      }.\n+\n+-spec configure(string(), string()) -> ok.\n+\n+configure(AccessKeyID, SecretAccessKey) ->\n+    put(aws_config, new(AccessKeyID, SecretAccessKey)),\n+    ok.\n+\n+-spec configure(string(), string(), string()) -> ok.\n+\n+configure(AccessKeyID, SecretAccessKey, Host) ->\n+    put(aws_config, new(AccessKeyID, SecretAccessKey, Host)),\n+    ok.\n+\n+-spec configure(string(), string(), string(), non_neg_integer()) -> ok.\n+\n+configure(AccessKeyID, SecretAccessKey, Host, Port) ->\n+    put(aws_config, new(AccessKeyID, SecretAccessKey, Host, Port)),\n+    ok.\n+\n+default_config() ->\n+    erlcloud_aws:default_config().\n+\n+-spec lambda_result_fun/1 :: (Request :: aws_request()) -> aws_request().\n+lambda_result_fun(#aws_request{response_type = ok} = Request) ->","path":"src/erlcloud_lambda.erl","position":89,"original_position":89,"commit_id":"8f59b971c098b5b9c7dcc5839c73d05f08ce4b50","original_commit_id":"8f59b971c098b5b9c7dcc5839c73d05f08ce4b50","user":{"login":"kkuzmin","id":6872804,"avatar_url":"https://avatars.githubusercontent.com/u/6872804?v=3","gravatar_id":"","url":"https://api.github.com/users/kkuzmin","html_url":"https://github.com/kkuzmin","followers_url":"https://api.github.com/users/kkuzmin/followers","following_url":"https://api.github.com/users/kkuzmin/following{/other_user}","gists_url":"https://api.github.com/users/kkuzmin/gists{/gist_id}","starred_url":"https://api.github.com/users/kkuzmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkuzmin/subscriptions","organizations_url":"https://api.github.com/users/kkuzmin/orgs","repos_url":"https://api.github.com/users/kkuzmin/repos","events_url":"https://api.github.com/users/kkuzmin/events{/privacy}","received_events_url":"https://api.github.com/users/kkuzmin/received_events","type":"User","site_admin":false},"body":"Do you still need it?","created_at":"2015-12-16T16:33:58Z","updated_at":"2015-12-16T16:33:58Z","html_url":"https://github.com/alertlogic/erlcloud/pull/68#discussion_r47798847","pull_request_url":"https://api.github.com/repos/alertlogic/erlcloud/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/alertlogic/erlcloud/pulls/comments/47798847"},"html":{"href":"https://github.com/alertlogic/erlcloud/pull/68#discussion_r47798847"},"pull_request":{"href":"https://api.github.com/repos/alertlogic/erlcloud/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/alertlogic/erlcloud/pulls/68","id":53483260,"html_url":"https://github.com/alertlogic/erlcloud/pull/68","diff_url":"https://github.com/alertlogic/erlcloud/pull/68.diff","patch_url":"https://github.com/alertlogic/erlcloud/pull/68.patch","issue_url":"https://api.github.com/repos/alertlogic/erlcloud/issues/68","number":68,"state":"open","locked":false,"title":"Add support for Lambda","user":{"login":"edhollandAL","id":11922660,"avatar_url":"https://avatars.githubusercontent.com/u/11922660?v=3","gravatar_id":"","url":"https://api.github.com/users/edhollandAL","html_url":"https://github.com/edhollandAL","followers_url":"https://api.github.com/users/edhollandAL/followers","following_url":"https://api.github.com/users/edhollandAL/following{/other_user}","gists_url":"https://api.github.com/users/edhollandAL/gists{/gist_id}","starred_url":"https://api.github.com/users/edhollandAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edhollandAL/subscriptions","organizations_url":"https://api.github.com/users/edhollandAL/orgs","repos_url":"https://api.github.com/users/edhollandAL/repos","events_url":"https://api.github.com/users/edhollandAL/events{/privacy}","received_events_url":"https://api.github.com/users/edhollandAL/received_events","type":"User","site_admin":false},"body":"Implements the following API methods as documented http://docs.aws.amazon.com/lambda/latest/dg/API_Operations.html\r\n```\r\nCreateAlias\r\nCreateEventSourceMapping\r\nCreateFunction\r\nDeleteEventSourceMapping\r\nGetAlias\r\nGetEventSourceMapping\r\nGetFunction\r\nGetFunctionConfiguration\r\nListAliases\r\nListEventSourceMappings\r\nListFunctions\r\nListVersionsByFunction\r\nPublishVersion\r\nUpdateAlias\r\nUpdateEventSourceMapping\r\nUpdateFunctionCode\r\nUpdateFunctionConfiguration\r\n```\r\n\r\n\r\n@motobob ","created_at":"2015-12-12T19:20:39Z","updated_at":"2015-12-16T16:33:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d311dae65a02ec2caa1e36c3814b8a109264b420","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alertlogic/erlcloud/pulls/68/commits","review_comments_url":"https://api.github.com/repos/alertlogic/erlcloud/pulls/68/comments","review_comment_url":"https://api.github.com/repos/alertlogic/erlcloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alertlogic/erlcloud/issues/68/comments","statuses_url":"https://api.github.com/repos/alertlogic/erlcloud/statuses/8f59b971c098b5b9c7dcc5839c73d05f08ce4b50","head":{"label":"edhollandAL:lambda","ref":"lambda","sha":"8f59b971c098b5b9c7dcc5839c73d05f08ce4b50","user":{"login":"edhollandAL","id":11922660,"avatar_url":"https://avatars.githubusercontent.com/u/11922660?v=3","gravatar_id":"","url":"https://api.github.com/users/edhollandAL","html_url":"https://github.com/edhollandAL","followers_url":"https://api.github.com/users/edhollandAL/followers","following_url":"https://api.github.com/users/edhollandAL/following{/other_user}","gists_url":"https://api.github.com/users/edhollandAL/gists{/gist_id}","starred_url":"https://api.github.com/users/edhollandAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edhollandAL/subscriptions","organizations_url":"https://api.github.com/users/edhollandAL/orgs","repos_url":"https://api.github.com/users/edhollandAL/repos","events_url":"https://api.github.com/users/edhollandAL/events{/privacy}","received_events_url":"https://api.github.com/users/edhollandAL/received_events","type":"User","site_admin":false},"repo":{"id":42112919,"name":"erlcloud","full_name":"edhollandAL/erlcloud","owner":{"login":"edhollandAL","id":11922660,"avatar_url":"https://avatars.githubusercontent.com/u/11922660?v=3","gravatar_id":"","url":"https://api.github.com/users/edhollandAL","html_url":"https://github.com/edhollandAL","followers_url":"https://api.github.com/users/edhollandAL/followers","following_url":"https://api.github.com/users/edhollandAL/following{/other_user}","gists_url":"https://api.github.com/users/edhollandAL/gists{/gist_id}","starred_url":"https://api.github.com/users/edhollandAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edhollandAL/subscriptions","organizations_url":"https://api.github.com/users/edhollandAL/orgs","repos_url":"https://api.github.com/users/edhollandAL/repos","events_url":"https://api.github.com/users/edhollandAL/events{/privacy}","received_events_url":"https://api.github.com/users/edhollandAL/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edhollandAL/erlcloud","description":"Cloud Computing library for erlang (Amazon EC2, S3, SQS, SimpleDB, Mechanical Turk, ELB)","fork":true,"url":"https://api.github.com/repos/edhollandAL/erlcloud","forks_url":"https://api.github.com/repos/edhollandAL/erlcloud/forks","keys_url":"https://api.github.com/repos/edhollandAL/erlcloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edhollandAL/erlcloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edhollandAL/erlcloud/teams","hooks_url":"https://api.github.com/repos/edhollandAL/erlcloud/hooks","issue_events_url":"https://api.github.com/repos/edhollandAL/erlcloud/issues/events{/number}","events_url":"https://api.github.com/repos/edhollandAL/erlcloud/events","assignees_url":"https://api.github.com/repos/edhollandAL/erlcloud/assignees{/user}","branches_url":"https://api.github.com/repos/edhollandAL/erlcloud/branches{/branch}","tags_url":"https://api.github.com/repos/edhollandAL/erlcloud/tags","blobs_url":"https://api.github.com/repos/edhollandAL/erlcloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edhollandAL/erlcloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edhollandAL/erlcloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/edhollandAL/erlcloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edhollandAL/erlcloud/statuses/{sha}","languages_url":"https://api.github.com/repos/edhollandAL/erlcloud/languages","stargazers_url":"https://api.github.com/repos/edhollandAL/erlcloud/stargazers","contributors_url":"https://api.github.com/repos/edhollandAL/erlcloud/contributors","subscribers_url":"https://api.github.com/repos/edhollandAL/erlcloud/subscribers","subscription_url":"https://api.github.com/repos/edhollandAL/erlcloud/subscription","commits_url":"https://api.github.com/repos/edhollandAL/erlcloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/edhollandAL/erlcloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/edhollandAL/erlcloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/edhollandAL/erlcloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/edhollandAL/erlcloud/contents/{+path}","compare_url":"https://api.github.com/repos/edhollandAL/erlcloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edhollandAL/erlcloud/merges","archive_url":"https://api.github.com/repos/edhollandAL/erlcloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edhollandAL/erlcloud/downloads","issues_url":"https://api.github.com/repos/edhollandAL/erlcloud/issues{/number}","pulls_url":"https://api.github.com/repos/edhollandAL/erlcloud/pulls{/number}","milestones_url":"https://api.github.com/repos/edhollandAL/erlcloud/milestones{/number}","notifications_url":"https://api.github.com/repos/edhollandAL/erlcloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edhollandAL/erlcloud/labels{/name}","releases_url":"https://api.github.com/repos/edhollandAL/erlcloud/releases{/id}","created_at":"2015-09-08T13:12:05Z","updated_at":"2015-09-08T13:12:06Z","pushed_at":"2015-12-16T16:25:16Z","git_url":"git://github.com/edhollandAL/erlcloud.git","ssh_url":"git@github.com:edhollandAL/erlcloud.git","clone_url":"https://github.com/edhollandAL/erlcloud.git","svn_url":"https://github.com/edhollandAL/erlcloud","homepage":"","size":2720,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alertlogic:master","ref":"master","sha":"c45c718887283f6b9cdd5b43093b9afbbd4f0870","user":{"login":"alertlogic","id":1900859,"avatar_url":"https://avatars.githubusercontent.com/u/1900859?v=3","gravatar_id":"","url":"https://api.github.com/users/alertlogic","html_url":"https://github.com/alertlogic","followers_url":"https://api.github.com/users/alertlogic/followers","following_url":"https://api.github.com/users/alertlogic/following{/other_user}","gists_url":"https://api.github.com/users/alertlogic/gists{/gist_id}","starred_url":"https://api.github.com/users/alertlogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alertlogic/subscriptions","organizations_url":"https://api.github.com/users/alertlogic/orgs","repos_url":"https://api.github.com/users/alertlogic/repos","events_url":"https://api.github.com/users/alertlogic/events{/privacy}","received_events_url":"https://api.github.com/users/alertlogic/received_events","type":"Organization","site_admin":false},"repo":{"id":34382596,"name":"erlcloud","full_name":"alertlogic/erlcloud","owner":{"login":"alertlogic","id":1900859,"avatar_url":"https://avatars.githubusercontent.com/u/1900859?v=3","gravatar_id":"","url":"https://api.github.com/users/alertlogic","html_url":"https://github.com/alertlogic","followers_url":"https://api.github.com/users/alertlogic/followers","following_url":"https://api.github.com/users/alertlogic/following{/other_user}","gists_url":"https://api.github.com/users/alertlogic/gists{/gist_id}","starred_url":"https://api.github.com/users/alertlogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alertlogic/subscriptions","organizations_url":"https://api.github.com/users/alertlogic/orgs","repos_url":"https://api.github.com/users/alertlogic/repos","events_url":"https://api.github.com/users/alertlogic/events{/privacy}","received_events_url":"https://api.github.com/users/alertlogic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alertlogic/erlcloud","description":"Cloud Computing library for erlang (Amazon EC2, S3, SQS, SimpleDB, Mechanical Turk, ELB)","fork":true,"url":"https://api.github.com/repos/alertlogic/erlcloud","forks_url":"https://api.github.com/repos/alertlogic/erlcloud/forks","keys_url":"https://api.github.com/repos/alertlogic/erlcloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alertlogic/erlcloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alertlogic/erlcloud/teams","hooks_url":"https://api.github.com/repos/alertlogic/erlcloud/hooks","issue_events_url":"https://api.github.com/repos/alertlogic/erlcloud/issues/events{/number}","events_url":"https://api.github.com/repos/alertlogic/erlcloud/events","assignees_url":"https://api.github.com/repos/alertlogic/erlcloud/assignees{/user}","branches_url":"https://api.github.com/repos/alertlogic/erlcloud/branches{/branch}","tags_url":"https://api.github.com/repos/alertlogic/erlcloud/tags","blobs_url":"https://api.github.com/repos/alertlogic/erlcloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alertlogic/erlcloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alertlogic/erlcloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/alertlogic/erlcloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alertlogic/erlcloud/statuses/{sha}","languages_url":"https://api.github.com/repos/alertlogic/erlcloud/languages","stargazers_url":"https://api.github.com/repos/alertlogic/erlcloud/stargazers","contributors_url":"https://api.github.com/repos/alertlogic/erlcloud/contributors","subscribers_url":"https://api.github.com/repos/alertlogic/erlcloud/subscribers","subscription_url":"https://api.github.com/repos/alertlogic/erlcloud/subscription","commits_url":"https://api.github.com/repos/alertlogic/erlcloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/alertlogic/erlcloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/alertlogic/erlcloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/alertlogic/erlcloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/alertlogic/erlcloud/contents/{+path}","compare_url":"https://api.github.com/repos/alertlogic/erlcloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alertlogic/erlcloud/merges","archive_url":"https://api.github.com/repos/alertlogic/erlcloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alertlogic/erlcloud/downloads","issues_url":"https://api.github.com/repos/alertlogic/erlcloud/issues{/number}","pulls_url":"https://api.github.com/repos/alertlogic/erlcloud/pulls{/number}","milestones_url":"https://api.github.com/repos/alertlogic/erlcloud/milestones{/number}","notifications_url":"https://api.github.com/repos/alertlogic/erlcloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alertlogic/erlcloud/labels{/name}","releases_url":"https://api.github.com/repos/alertlogic/erlcloud/releases{/id}","created_at":"2015-04-22T09:53:41Z","updated_at":"2015-10-09T07:19:01Z","pushed_at":"2015-12-16T16:25:17Z","git_url":"git://github.com/alertlogic/erlcloud.git","ssh_url":"git@github.com:alertlogic/erlcloud.git","clone_url":"https://github.com/alertlogic/erlcloud.git","svn_url":"https://github.com/alertlogic/erlcloud","homepage":"","size":2789,"stargazers_count":2,"watchers_count":2,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":5,"forks":8,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alertlogic/erlcloud/pulls/68"},"html":{"href":"https://github.com/alertlogic/erlcloud/pull/68"},"issue":{"href":"https://api.github.com/repos/alertlogic/erlcloud/issues/68"},"comments":{"href":"https://api.github.com/repos/alertlogic/erlcloud/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/alertlogic/erlcloud/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/alertlogic/erlcloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alertlogic/erlcloud/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/alertlogic/erlcloud/statuses/8f59b971c098b5b9c7dcc5839c73d05f08ce4b50"}}}}