{"action":"created","comment":{"url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/comments/153215345","pull_request_review_id":79179418,"id":153215345,"diff_hunk":"@@ -0,0 +1,149 @@\n+//\n+// Copyright 2017 Alsanium, SAS. or its affiliates. All rights reserved.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//     http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+//\n+\n+package apigatewayauthorizerevt\n+\n+import \"encoding/json\"\n+\n+// Identity provides identity information about the API caller.\n+type Identity struct {\n+\t// The API owner key associated with the API.\n+\tAPIKey string\n+\n+\t// The source IP address of the TCP connection making the request to\n+\t// Amazon API Gateway.\n+\tSourceIP string\n+}\n+\n+// RequestContext provides contextual information about an Amazon API Gateway\n+// Proxy Custom Authorizer event.\n+//\n+type RequestContext struct {\n+\t// The path as defined in Amazon API Gateway.\n+\tPath string\n+\n+\t// The AWS account ID associated with the API.\n+\tAccountID string\n+\n+\t// The deployment stage of the API call (for example, Beta or Prod).\n+\tStage string\n+\n+\t// The API caller identification information.\n+\tIdentity *Identity\n+\n+\t// The resource path as defined in Amazon API Gateway.\n+\tResourcePath string\n+\t// The incoming request HTTP method name.\n+\t// Valid values include: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and\n+\t// PUT.\n+\tHTTPMethod string\n+\n+\t// The identifier Amazon API Gateway assigns to the API.\n+\tAPIID string\n+\n+\t// The identifier Amazon API Gateway assigns to the resource.\n+\tResourceID string\n+}\n+\n+// Event represents an input to a REQUEST authorizer for an API method with a\n+// proxy integration\n+type Event struct {\n+\t// Type property specifies the authorizer type (\"TOKEN\" or \"REQUEST\")\n+\tType string\n+\n+\t// MethodARN is the ARN of the incoming method request and is populated by\n+\t// API Gateway in accordance with the custom authorizer configuration\n+\tMethodARN string\n+\n+\t// AuthorizationToken has called supplied token which is allow, deny,\n+\t// unauthorized, or any other string value. An empty string value is the\n+\t// same as unauthorized (only for TOKEN type)\n+\tAuthorizationToken string\n+\n+\t// The resource path with raw placeholders as defined in\n+\t// Amazon API Gateway.\n+\tResource string\n+\n+\t// The real path corresponding to the path parameters injected into the\n+\t// Resource placeholders.\n+\tPath string\n+\n+\t// The incoming request HTTP method name.\n+\t// Valid values include: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and\n+\t// PUT.\n+\tHTTPMethod string\n+\n+\t// The incoming reauest HTTP headers.\n+\t// Duplicate entries are not supported.\n+\tHeaders map[string]string\n+\n+\t// The incoming request query string parameters.\n+\t// Duplicate entries are not supported.\n+\tQueryStringParameters map[string]string\n+\n+\t// The incoming request path parameters corresponding to the resource\n+\t// path placeholders values as defined in Resource.\n+\tPathParameters map[string]string\n+\n+\t// The name-value pairs defined as configuration attributes associated\n+\t// with the deployment stage of the API.\n+\tStageVariables map[string]string\n+\n+\t// The contextual information associated with the API call.\n+\tRequestContext *RequestContext\n+}\n+\n+// Statement represents AWS IAM policy statement\n+//\n+// More detail about IAM policy statement\n+// http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-control-access-using-iam-policies-to-invoke-api.html#api-gateway-calling-api-permissions\n+type Statement struct {\n+\tAction   string\n+\tEffect   string\n+\tResource string\n+}\n+\n+// PolicyDocument represents AWS IAM policy document\n+type PolicyDocument struct {\n+\tVersion string","path":"service/lambda/runtime/event/apigatewayauthorizerevt/definition.go","position":121,"original_position":121,"commit_id":"a78e503bb03e186296e2cb365bc081237765b537","original_commit_id":"a78e503bb03e186296e2cb365bc081237765b537","user":{"login":"lsuss","id":801084,"avatar_url":"https://avatars0.githubusercontent.com/u/801084?v=4","gravatar_id":"","url":"https://api.github.com/users/lsuss","html_url":"https://github.com/lsuss","followers_url":"https://api.github.com/users/lsuss/followers","following_url":"https://api.github.com/users/lsuss/following{/other_user}","gists_url":"https://api.github.com/users/lsuss/gists{/gist_id}","starred_url":"https://api.github.com/users/lsuss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsuss/subscriptions","organizations_url":"https://api.github.com/users/lsuss/orgs","repos_url":"https://api.github.com/users/lsuss/repos","events_url":"https://api.github.com/users/lsuss/events{/privacy}","received_events_url":"https://api.github.com/users/lsuss/received_events","type":"User","site_admin":false},"body":"Please add description.","created_at":"2017-11-27T14:45:38Z","updated_at":"2017-11-27T14:50:20Z","html_url":"https://github.com/eawsy/aws-lambda-go-event/pull/6#discussion_r153215345","pull_request_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/6","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/comments/153215345"},"html":{"href":"https://github.com/eawsy/aws-lambda-go-event/pull/6#discussion_r153215345"},"pull_request":{"href":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/6","id":154559090,"html_url":"https://github.com/eawsy/aws-lambda-go-event/pull/6","diff_url":"https://github.com/eawsy/aws-lambda-go-event/pull/6.diff","patch_url":"https://github.com/eawsy/aws-lambda-go-event/pull/6.patch","issue_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/issues/6","number":6,"state":"open","locked":false,"title":"Add apigate proxy response","user":{"login":"minsikzzang","id":330659,"avatar_url":"https://avatars1.githubusercontent.com/u/330659?v=4","gravatar_id":"","url":"https://api.github.com/users/minsikzzang","html_url":"https://github.com/minsikzzang","followers_url":"https://api.github.com/users/minsikzzang/followers","following_url":"https://api.github.com/users/minsikzzang/following{/other_user}","gists_url":"https://api.github.com/users/minsikzzang/gists{/gist_id}","starred_url":"https://api.github.com/users/minsikzzang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minsikzzang/subscriptions","organizations_url":"https://api.github.com/users/minsikzzang/orgs","repos_url":"https://api.github.com/users/minsikzzang/repos","events_url":"https://api.github.com/users/minsikzzang/events{/privacy}","received_events_url":"https://api.github.com/users/minsikzzang/received_events","type":"User","site_admin":false},"body":"* Add Definitions for Api Gateway Custom Authorizer request and response\r\n* Add Definition for Api Gateway Proxy response\r\n\r\nMore detail\r\n* http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html\r\n* http://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-input-format","created_at":"2017-11-24T14:25:26Z","updated_at":"2017-11-27T14:50:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebc32b8b21cd44a6f398b07397e6ef2770c96522","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/6/commits","review_comments_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/6/comments","review_comment_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/issues/6/comments","statuses_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/statuses/a78e503bb03e186296e2cb365bc081237765b537","head":{"label":"forward3d:add_apigateway_customauthorizer_and_proxyresponse","ref":"add_apigateway_customauthorizer_and_proxyresponse","sha":"a78e503bb03e186296e2cb365bc081237765b537","user":{"login":"forward3d","id":3997310,"avatar_url":"https://avatars2.githubusercontent.com/u/3997310?v=4","gravatar_id":"","url":"https://api.github.com/users/forward3d","html_url":"https://github.com/forward3d","followers_url":"https://api.github.com/users/forward3d/followers","following_url":"https://api.github.com/users/forward3d/following{/other_user}","gists_url":"https://api.github.com/users/forward3d/gists{/gist_id}","starred_url":"https://api.github.com/users/forward3d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forward3d/subscriptions","organizations_url":"https://api.github.com/users/forward3d/orgs","repos_url":"https://api.github.com/users/forward3d/repos","events_url":"https://api.github.com/users/forward3d/events{/privacy}","received_events_url":"https://api.github.com/users/forward3d/received_events","type":"Organization","site_admin":false},"repo":{"id":111914742,"name":"aws-lambda-go-event","full_name":"forward3d/aws-lambda-go-event","owner":{"login":"forward3d","id":3997310,"avatar_url":"https://avatars2.githubusercontent.com/u/3997310?v=4","gravatar_id":"","url":"https://api.github.com/users/forward3d","html_url":"https://github.com/forward3d","followers_url":"https://api.github.com/users/forward3d/followers","following_url":"https://api.github.com/users/forward3d/following{/other_user}","gists_url":"https://api.github.com/users/forward3d/gists{/gist_id}","starred_url":"https://api.github.com/users/forward3d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forward3d/subscriptions","organizations_url":"https://api.github.com/users/forward3d/orgs","repos_url":"https://api.github.com/users/forward3d/repos","events_url":"https://api.github.com/users/forward3d/events{/privacy}","received_events_url":"https://api.github.com/users/forward3d/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/forward3d/aws-lambda-go-event","description":"Type definitions for AWS Lambda event sources.","fork":true,"url":"https://api.github.com/repos/forward3d/aws-lambda-go-event","forks_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/forks","keys_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/teams","hooks_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/hooks","issue_events_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/issues/events{/number}","events_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/events","assignees_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/assignees{/user}","branches_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/branches{/branch}","tags_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/tags","blobs_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/git/refs{/sha}","trees_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/statuses/{sha}","languages_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/languages","stargazers_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/stargazers","contributors_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/contributors","subscribers_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/subscribers","subscription_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/subscription","commits_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/commits{/sha}","git_commits_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/git/commits{/sha}","comments_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/comments{/number}","issue_comment_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/issues/comments{/number}","contents_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/contents/{+path}","compare_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/merges","archive_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/downloads","issues_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/issues{/number}","pulls_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/pulls{/number}","milestones_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/milestones{/number}","notifications_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/labels{/name}","releases_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/releases{/id}","deployments_url":"https://api.github.com/repos/forward3d/aws-lambda-go-event/deployments","created_at":"2017-11-24T12:13:35Z","updated_at":"2017-11-24T12:13:37Z","pushed_at":"2017-11-24T14:22:11Z","git_url":"git://github.com/forward3d/aws-lambda-go-event.git","ssh_url":"git@github.com:forward3d/aws-lambda-go-event.git","clone_url":"https://github.com/forward3d/aws-lambda-go-event.git","svn_url":"https://github.com/forward3d/aws-lambda-go-event","homepage":"https://github.com/eawsy/aws-lambda-go-event","size":473,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eawsy:master","ref":"master","sha":"ac9bffb069878f1907954a34bb92ee798032e4fe","user":{"login":"eawsy","id":22616046,"avatar_url":"https://avatars3.githubusercontent.com/u/22616046?v=4","gravatar_id":"","url":"https://api.github.com/users/eawsy","html_url":"https://github.com/eawsy","followers_url":"https://api.github.com/users/eawsy/followers","following_url":"https://api.github.com/users/eawsy/following{/other_user}","gists_url":"https://api.github.com/users/eawsy/gists{/gist_id}","starred_url":"https://api.github.com/users/eawsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eawsy/subscriptions","organizations_url":"https://api.github.com/users/eawsy/orgs","repos_url":"https://api.github.com/users/eawsy/repos","events_url":"https://api.github.com/users/eawsy/events{/privacy}","received_events_url":"https://api.github.com/users/eawsy/received_events","type":"Organization","site_admin":false},"repo":{"id":74353723,"name":"aws-lambda-go-event","full_name":"eawsy/aws-lambda-go-event","owner":{"login":"eawsy","id":22616046,"avatar_url":"https://avatars3.githubusercontent.com/u/22616046?v=4","gravatar_id":"","url":"https://api.github.com/users/eawsy","html_url":"https://github.com/eawsy","followers_url":"https://api.github.com/users/eawsy/followers","following_url":"https://api.github.com/users/eawsy/following{/other_user}","gists_url":"https://api.github.com/users/eawsy/gists{/gist_id}","starred_url":"https://api.github.com/users/eawsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eawsy/subscriptions","organizations_url":"https://api.github.com/users/eawsy/orgs","repos_url":"https://api.github.com/users/eawsy/repos","events_url":"https://api.github.com/users/eawsy/events{/privacy}","received_events_url":"https://api.github.com/users/eawsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eawsy/aws-lambda-go-event","description":"Type definitions for AWS Lambda event sources.","fork":false,"url":"https://api.github.com/repos/eawsy/aws-lambda-go-event","forks_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/forks","keys_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/teams","hooks_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/hooks","issue_events_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/issues/events{/number}","events_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/events","assignees_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/assignees{/user}","branches_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/branches{/branch}","tags_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/tags","blobs_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/git/refs{/sha}","trees_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/statuses/{sha}","languages_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/languages","stargazers_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/stargazers","contributors_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/contributors","subscribers_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/subscribers","subscription_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/subscription","commits_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/commits{/sha}","git_commits_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/git/commits{/sha}","comments_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/comments{/number}","issue_comment_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/issues/comments{/number}","contents_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/contents/{+path}","compare_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/merges","archive_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/downloads","issues_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/issues{/number}","pulls_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls{/number}","milestones_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/milestones{/number}","notifications_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/labels{/name}","releases_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/releases{/id}","deployments_url":"https://api.github.com/repos/eawsy/aws-lambda-go-event/deployments","created_at":"2016-11-21T10:44:25Z","updated_at":"2017-11-25T07:02:22Z","pushed_at":"2017-11-24T14:25:26Z","git_url":"git://github.com/eawsy/aws-lambda-go-event.git","ssh_url":"git@github.com:eawsy/aws-lambda-go-event.git","clone_url":"https://github.com/eawsy/aws-lambda-go-event.git","svn_url":"https://github.com/eawsy/aws-lambda-go-event","homepage":"https://github.com/eawsy/aws-lambda-go-event","size":470,"stargazers_count":50,"watchers_count":50,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/6"},"html":{"href":"https://github.com/eawsy/aws-lambda-go-event/pull/6"},"issue":{"href":"https://api.github.com/repos/eawsy/aws-lambda-go-event/issues/6"},"comments":{"href":"https://api.github.com/repos/eawsy/aws-lambda-go-event/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eawsy/aws-lambda-go-event/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/eawsy/aws-lambda-go-event/statuses/a78e503bb03e186296e2cb365bc081237765b537"}},"author_association":"NONE"}}
{"actor":{"display_login":"lsuss"}}