{"action":"created","comment":{"url":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/comments/41047743","id":41047743,"diff_hunk":"@@ -245,8 +245,55 @@ An XML variant may look like:\n ```\n \n Note: by default the message `payload` is a `Map` converted from the received Topic JSON message. For the convenient\n-the `payload-expression` is provided with the `Message` as a root object of the evaluation context. Hence even some \n-HTTP headers, populated by the `DefaultHttpHeaderMapper`, are available for the evaluation context.  \n+the `payload-expression` is provided with the `Message` as a root object of the evaluation context. Hence even some\n+HTTP headers, populated by the `DefaultHttpHeaderMapper`, are available for the evaluation context.\n+\n+###Outbound Channel Adapter\n+\n+The `SnsMessageHandler` (`<int-aws:sns-outbound-channel-adapter>`) is pretty simple one-way Outbound Channel Adapter\n+to send Topic Notification using `AmasonSNS` service.\n+\n+This Channel Adapter (`MessageHandler`) accepts these options:\n+\n+- `topic-arn` (`topic-arn-expression`) - the SNS Topic to send notification for. The `ResourceIdResolver` can be used\n+from the SpEL definition to determine the target Topic Arn from the local logical name;\n+- `subject` (`subject-expression`) - the SNS Notification Subject;\n+- `body-expression` - the SpEL expression to evaluate the `message` property for the\n+`com.amazonaws.services.sns.model.PublishRequest`.\n+\n+See `SnsMessageHandler` JavaDocs for more information.\n+\n+The Java Config looks like:\n+\n+````java\n+@Bean\n+public MessageHandler snsMessageHandler() {\n+   \tSnsMessageHandler handler = new SnsMessageHandler(amazonSns());\n+   \tadapter.setTopicArn(\"arn:aws:sns:eu-west:123456789012:test);\n+   \tString bodyExpression = \"SnsBodyBuilder.withDefault(payload).forProtocols(payload.substring(0, 140), 'sms')\";\n+    handler.setBodyExpression(spelExpressionParser.parseExpression(bodyExpression));","path":"README.md","position":223,"original_position":223,"commit_id":"39ca3cafc8959b45089567f07471674000f1b830","original_commit_id":"39ca3cafc8959b45089567f07471674000f1b830","user":{"login":"garyrussell","id":483832,"avatar_url":"https://avatars.githubusercontent.com/u/483832?v=3","gravatar_id":"","url":"https://api.github.com/users/garyrussell","html_url":"https://github.com/garyrussell","followers_url":"https://api.github.com/users/garyrussell/followers","following_url":"https://api.github.com/users/garyrussell/following{/other_user}","gists_url":"https://api.github.com/users/garyrussell/gists{/gist_id}","starred_url":"https://api.github.com/users/garyrussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyrussell/subscriptions","organizations_url":"https://api.github.com/users/garyrussell/orgs","repos_url":"https://api.github.com/users/garyrussell/repos","events_url":"https://api.github.com/users/garyrussell/events{/privacy}","received_events_url":"https://api.github.com/users/garyrussell/received_events","type":"User","site_admin":false},"body":"indent","created_at":"2015-10-02T17:47:30Z","updated_at":"2015-10-02T17:47:30Z","html_url":"https://github.com/spring-projects/spring-integration-aws/pull/19#discussion_r41047743","pull_request_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/comments/41047743"},"html":{"href":"https://github.com/spring-projects/spring-integration-aws/pull/19#discussion_r41047743"},"pull_request":{"href":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/19","id":46192071,"html_url":"https://github.com/spring-projects/spring-integration-aws/pull/19","diff_url":"https://github.com/spring-projects/spring-integration-aws/pull/19.diff","patch_url":"https://github.com/spring-projects/spring-integration-aws/pull/19.patch","issue_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/issues/19","number":19,"state":"open","locked":false,"title":"INTEXT-8: Add SNS Outbound Channel Adapter","user":{"login":"artembilan","id":1071590,"avatar_url":"https://avatars.githubusercontent.com/u/1071590?v=3","gravatar_id":"","url":"https://api.github.com/users/artembilan","html_url":"https://github.com/artembilan","followers_url":"https://api.github.com/users/artembilan/followers","following_url":"https://api.github.com/users/artembilan/following{/other_user}","gists_url":"https://api.github.com/users/artembilan/gists{/gist_id}","starred_url":"https://api.github.com/users/artembilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artembilan/subscriptions","organizations_url":"https://api.github.com/users/artembilan/orgs","repos_url":"https://api.github.com/users/artembilan/repos","events_url":"https://api.github.com/users/artembilan/events{/privacy}","received_events_url":"https://api.github.com/users/artembilan/received_events","type":"User","site_admin":false},"body":"JIRA: https://jira.spring.io/browse/INTEXT-8","created_at":"2015-09-28T18:40:09Z","updated_at":"2015-10-02T17:47:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"185a4d5f661c6a530de85e851c7f535bf738dabd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/19/commits","review_comments_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/19/comments","review_comment_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/issues/19/comments","statuses_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/statuses/39ca3cafc8959b45089567f07471674000f1b830","head":{"label":"artembilan:INTEXT-8","ref":"INTEXT-8","sha":"39ca3cafc8959b45089567f07471674000f1b830","user":{"login":"artembilan","id":1071590,"avatar_url":"https://avatars.githubusercontent.com/u/1071590?v=3","gravatar_id":"","url":"https://api.github.com/users/artembilan","html_url":"https://github.com/artembilan","followers_url":"https://api.github.com/users/artembilan/followers","following_url":"https://api.github.com/users/artembilan/following{/other_user}","gists_url":"https://api.github.com/users/artembilan/gists{/gist_id}","starred_url":"https://api.github.com/users/artembilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artembilan/subscriptions","organizations_url":"https://api.github.com/users/artembilan/orgs","repos_url":"https://api.github.com/users/artembilan/repos","events_url":"https://api.github.com/users/artembilan/events{/privacy}","received_events_url":"https://api.github.com/users/artembilan/received_events","type":"User","site_admin":false},"repo":{"id":26754071,"name":"spring-integration-aws","full_name":"artembilan/spring-integration-aws","owner":{"login":"artembilan","id":1071590,"avatar_url":"https://avatars.githubusercontent.com/u/1071590?v=3","gravatar_id":"","url":"https://api.github.com/users/artembilan","html_url":"https://github.com/artembilan","followers_url":"https://api.github.com/users/artembilan/followers","following_url":"https://api.github.com/users/artembilan/following{/other_user}","gists_url":"https://api.github.com/users/artembilan/gists{/gist_id}","starred_url":"https://api.github.com/users/artembilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artembilan/subscriptions","organizations_url":"https://api.github.com/users/artembilan/orgs","repos_url":"https://api.github.com/users/artembilan/repos","events_url":"https://api.github.com/users/artembilan/events{/privacy}","received_events_url":"https://api.github.com/users/artembilan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/artembilan/spring-integration-aws","description":"","fork":true,"url":"https://api.github.com/repos/artembilan/spring-integration-aws","forks_url":"https://api.github.com/repos/artembilan/spring-integration-aws/forks","keys_url":"https://api.github.com/repos/artembilan/spring-integration-aws/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artembilan/spring-integration-aws/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artembilan/spring-integration-aws/teams","hooks_url":"https://api.github.com/repos/artembilan/spring-integration-aws/hooks","issue_events_url":"https://api.github.com/repos/artembilan/spring-integration-aws/issues/events{/number}","events_url":"https://api.github.com/repos/artembilan/spring-integration-aws/events","assignees_url":"https://api.github.com/repos/artembilan/spring-integration-aws/assignees{/user}","branches_url":"https://api.github.com/repos/artembilan/spring-integration-aws/branches{/branch}","tags_url":"https://api.github.com/repos/artembilan/spring-integration-aws/tags","blobs_url":"https://api.github.com/repos/artembilan/spring-integration-aws/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artembilan/spring-integration-aws/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artembilan/spring-integration-aws/git/refs{/sha}","trees_url":"https://api.github.com/repos/artembilan/spring-integration-aws/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artembilan/spring-integration-aws/statuses/{sha}","languages_url":"https://api.github.com/repos/artembilan/spring-integration-aws/languages","stargazers_url":"https://api.github.com/repos/artembilan/spring-integration-aws/stargazers","contributors_url":"https://api.github.com/repos/artembilan/spring-integration-aws/contributors","subscribers_url":"https://api.github.com/repos/artembilan/spring-integration-aws/subscribers","subscription_url":"https://api.github.com/repos/artembilan/spring-integration-aws/subscription","commits_url":"https://api.github.com/repos/artembilan/spring-integration-aws/commits{/sha}","git_commits_url":"https://api.github.com/repos/artembilan/spring-integration-aws/git/commits{/sha}","comments_url":"https://api.github.com/repos/artembilan/spring-integration-aws/comments{/number}","issue_comment_url":"https://api.github.com/repos/artembilan/spring-integration-aws/issues/comments{/number}","contents_url":"https://api.github.com/repos/artembilan/spring-integration-aws/contents/{+path}","compare_url":"https://api.github.com/repos/artembilan/spring-integration-aws/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artembilan/spring-integration-aws/merges","archive_url":"https://api.github.com/repos/artembilan/spring-integration-aws/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artembilan/spring-integration-aws/downloads","issues_url":"https://api.github.com/repos/artembilan/spring-integration-aws/issues{/number}","pulls_url":"https://api.github.com/repos/artembilan/spring-integration-aws/pulls{/number}","milestones_url":"https://api.github.com/repos/artembilan/spring-integration-aws/milestones{/number}","notifications_url":"https://api.github.com/repos/artembilan/spring-integration-aws/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artembilan/spring-integration-aws/labels{/name}","releases_url":"https://api.github.com/repos/artembilan/spring-integration-aws/releases{/id}","created_at":"2014-11-17T11:39:56Z","updated_at":"2015-03-26T13:59:52Z","pushed_at":"2015-09-28T18:56:34Z","git_url":"git://github.com/artembilan/spring-integration-aws.git","ssh_url":"git@github.com:artembilan/spring-integration-aws.git","clone_url":"https://github.com/artembilan/spring-integration-aws.git","svn_url":"https://github.com/artembilan/spring-integration-aws","homepage":null,"size":494,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"spring-projects:master","ref":"master","sha":"16ef806598de5d6d971a98663dbc44cdff77ef56","user":{"login":"spring-projects","id":317776,"avatar_url":"https://avatars.githubusercontent.com/u/317776?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":26547803,"name":"spring-integration-aws","full_name":"spring-projects/spring-integration-aws","owner":{"login":"spring-projects","id":317776,"avatar_url":"https://avatars.githubusercontent.com/u/317776?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-projects/spring-integration-aws","description":"","fork":false,"url":"https://api.github.com/repos/spring-projects/spring-integration-aws","forks_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/forks","keys_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/teams","hooks_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/hooks","issue_events_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/issues/events{/number}","events_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/events","assignees_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/assignees{/user}","branches_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/branches{/branch}","tags_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/tags","blobs_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/languages","stargazers_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/stargazers","contributors_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/contributors","subscribers_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/subscribers","subscription_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/subscription","commits_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/contents/{+path}","compare_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/merges","archive_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/downloads","issues_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/issues{/number}","pulls_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/labels{/name}","releases_url":"https://api.github.com/repos/spring-projects/spring-integration-aws/releases{/id}","created_at":"2014-11-12T17:35:05Z","updated_at":"2015-09-24T05:59:33Z","pushed_at":"2015-09-28T18:56:43Z","git_url":"git://github.com/spring-projects/spring-integration-aws.git","ssh_url":"git@github.com:spring-projects/spring-integration-aws.git","clone_url":"https://github.com/spring-projects/spring-integration-aws.git","svn_url":"https://github.com/spring-projects/spring-integration-aws","homepage":null,"size":863,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":2,"forks":17,"open_issues":2,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/19"},"html":{"href":"https://github.com/spring-projects/spring-integration-aws/pull/19"},"issue":{"href":"https://api.github.com/repos/spring-projects/spring-integration-aws/issues/19"},"comments":{"href":"https://api.github.com/repos/spring-projects/spring-integration-aws/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-projects/spring-integration-aws/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/spring-projects/spring-integration-aws/statuses/39ca3cafc8959b45089567f07471674000f1b830"}}}}