{"action":"created","comment":{"url":"https://api.github.com/repos/seratch/AWScala/pulls/comments/191609094","pull_request_review_id":124210622,"id":191609094,"diff_hunk":"@@ -0,0 +1,131 @@\n+package awscala.stepfunctions\n+\n+import java.util\n+import java.util.concurrent.TimeUnit\n+\n+import awscala._\n+import com.amazonaws.ClientConfiguration\n+import com.amazonaws.services.stepfunctions.model._\n+import com.amazonaws.services.{ stepfunctions => aws }\n+\n+import scala.collection.JavaConverters._\n+import scala.concurrent.{ blocking, ExecutionContext, Future }\n+import scala.util.Try\n+\n+object StepFunctions {\n+  private val defaultSocketTimeout = TimeUnit.SECONDS.toMillis(70).toInt\n+\n+  def apply(credentials: Credentials)(implicit region: Region): StepFunctions =\n+    apply(BasicCredentialsProvider(credentials.getAWSAccessKeyId, credentials.getAWSSecretKey))(region)\n+\n+  def apply(accessKeyId: String, secretAccessKey: String)(implicit region: Region): StepFunctions =\n+    apply(BasicCredentialsProvider(accessKeyId, secretAccessKey))(region)\n+\n+  def apply(credentialsProvider: CredentialsProvider = CredentialsLoader.load())(\n+    implicit\n+    region: Region = Region.default()): StepFunctions =\n+    new StepFunctionsClient(new ClientConfiguration().withSocketTimeout(defaultSocketTimeout), credentialsProvider)\n+      .at(region)\n+\n+  def apply(clientConfiguration: ClientConfiguration, credentials: Credentials)(\n+    implicit\n+    region: Region): StepFunctions =\n+    apply(clientConfiguration, BasicCredentialsProvider(credentials.getAWSAccessKeyId, credentials.getAWSSecretKey))(\n+      region)\n+\n+  def apply(clientConfiguration: ClientConfiguration, accessKeyId: String, secretAccessKey: String)(\n+    implicit\n+    region: Region): StepFunctions =\n+    apply(clientConfiguration, BasicCredentialsProvider(accessKeyId, secretAccessKey))(region)\n+\n+  def apply(clientConfiguration: ClientConfiguration, credentialsProvider: CredentialsProvider)(\n+    implicit\n+    region: Region): StepFunctions =\n+    new StepFunctionsClient(clientConfiguration.withSocketTimeout(defaultSocketTimeout), credentialsProvider).at(region)","path":"stepfunctions/src/main/scala/awscala/stepfunctions/StepFunctions.scala","position":44,"original_position":44,"commit_id":"b59d040f5134f6d0a9f64029f4c7a032273ee8a3","original_commit_id":"b59d040f5134f6d0a9f64029f4c7a032273ee8a3","user":{"login":"seratch","id":19658,"avatar_url":"https://avatars2.githubusercontent.com/u/19658?v=4","gravatar_id":"","url":"https://api.github.com/users/seratch","html_url":"https://github.com/seratch","followers_url":"https://api.github.com/users/seratch/followers","following_url":"https://api.github.com/users/seratch/following{/other_user}","gists_url":"https://api.github.com/users/seratch/gists{/gist_id}","starred_url":"https://api.github.com/users/seratch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seratch/subscriptions","organizations_url":"https://api.github.com/users/seratch/orgs","repos_url":"https://api.github.com/users/seratch/repos","events_url":"https://api.github.com/users/seratch/events{/privacy}","received_events_url":"https://api.github.com/users/seratch/received_events","type":"User","site_admin":false},"body":"Too long line.\r\n```scala\r\nnew StepFunctionsClient(\r\n  clientConfiguration.withSocketTimeout(defaultSocketTimeout), \r\n  credentialsProvider\r\n).at(region)\r\n```","created_at":"2018-05-29T23:55:35Z","updated_at":"2018-05-29T23:55:59Z","html_url":"https://github.com/seratch/AWScala/pull/177#discussion_r191609094","pull_request_url":"https://api.github.com/repos/seratch/AWScala/pulls/177","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/seratch/AWScala/pulls/comments/191609094"},"html":{"href":"https://github.com/seratch/AWScala/pull/177#discussion_r191609094"},"pull_request":{"href":"https://api.github.com/repos/seratch/AWScala/pulls/177"}}},"pull_request":{"url":"https://api.github.com/repos/seratch/AWScala/pulls/177","id":191030313,"html_url":"https://github.com/seratch/AWScala/pull/177","diff_url":"https://github.com/seratch/AWScala/pull/177.diff","patch_url":"https://github.com/seratch/AWScala/pull/177.patch","issue_url":"https://api.github.com/repos/seratch/AWScala/issues/177","number":177,"state":"open","locked":false,"title":"Added support for AWS Step Functions","user":{"login":"howardjohn","id":623453,"avatar_url":"https://avatars1.githubusercontent.com/u/623453?v=4","gravatar_id":"","url":"https://api.github.com/users/howardjohn","html_url":"https://github.com/howardjohn","followers_url":"https://api.github.com/users/howardjohn/followers","following_url":"https://api.github.com/users/howardjohn/following{/other_user}","gists_url":"https://api.github.com/users/howardjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/howardjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardjohn/subscriptions","organizations_url":"https://api.github.com/users/howardjohn/orgs","repos_url":"https://api.github.com/users/howardjohn/repos","events_url":"https://api.github.com/users/howardjohn/events{/privacy}","received_events_url":"https://api.github.com/users/howardjohn/received_events","type":"User","site_admin":false},"body":"Let me know what you think","created_at":"2018-05-29T04:26:27Z","updated_at":"2018-05-29T23:55:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cc9595676369efdab190df2cfb8e134e3dfa97e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/seratch/AWScala/pulls/177/commits","review_comments_url":"https://api.github.com/repos/seratch/AWScala/pulls/177/comments","review_comment_url":"https://api.github.com/repos/seratch/AWScala/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seratch/AWScala/issues/177/comments","statuses_url":"https://api.github.com/repos/seratch/AWScala/statuses/b59d040f5134f6d0a9f64029f4c7a032273ee8a3","head":{"label":"howardjohn:step","ref":"step","sha":"b59d040f5134f6d0a9f64029f4c7a032273ee8a3","user":{"login":"howardjohn","id":623453,"avatar_url":"https://avatars1.githubusercontent.com/u/623453?v=4","gravatar_id":"","url":"https://api.github.com/users/howardjohn","html_url":"https://github.com/howardjohn","followers_url":"https://api.github.com/users/howardjohn/followers","following_url":"https://api.github.com/users/howardjohn/following{/other_user}","gists_url":"https://api.github.com/users/howardjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/howardjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardjohn/subscriptions","organizations_url":"https://api.github.com/users/howardjohn/orgs","repos_url":"https://api.github.com/users/howardjohn/repos","events_url":"https://api.github.com/users/howardjohn/events{/privacy}","received_events_url":"https://api.github.com/users/howardjohn/received_events","type":"User","site_admin":false},"repo":{"id":134204326,"name":"AWScala","full_name":"howardjohn/AWScala","owner":{"login":"howardjohn","id":623453,"avatar_url":"https://avatars1.githubusercontent.com/u/623453?v=4","gravatar_id":"","url":"https://api.github.com/users/howardjohn","html_url":"https://github.com/howardjohn","followers_url":"https://api.github.com/users/howardjohn/followers","following_url":"https://api.github.com/users/howardjohn/following{/other_user}","gists_url":"https://api.github.com/users/howardjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/howardjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardjohn/subscriptions","organizations_url":"https://api.github.com/users/howardjohn/orgs","repos_url":"https://api.github.com/users/howardjohn/repos","events_url":"https://api.github.com/users/howardjohn/events{/privacy}","received_events_url":"https://api.github.com/users/howardjohn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/howardjohn/AWScala","description":"Using AWS SDK on the Scala REPL","fork":true,"url":"https://api.github.com/repos/howardjohn/AWScala","forks_url":"https://api.github.com/repos/howardjohn/AWScala/forks","keys_url":"https://api.github.com/repos/howardjohn/AWScala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/howardjohn/AWScala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/howardjohn/AWScala/teams","hooks_url":"https://api.github.com/repos/howardjohn/AWScala/hooks","issue_events_url":"https://api.github.com/repos/howardjohn/AWScala/issues/events{/number}","events_url":"https://api.github.com/repos/howardjohn/AWScala/events","assignees_url":"https://api.github.com/repos/howardjohn/AWScala/assignees{/user}","branches_url":"https://api.github.com/repos/howardjohn/AWScala/branches{/branch}","tags_url":"https://api.github.com/repos/howardjohn/AWScala/tags","blobs_url":"https://api.github.com/repos/howardjohn/AWScala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/howardjohn/AWScala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/howardjohn/AWScala/git/refs{/sha}","trees_url":"https://api.github.com/repos/howardjohn/AWScala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/howardjohn/AWScala/statuses/{sha}","languages_url":"https://api.github.com/repos/howardjohn/AWScala/languages","stargazers_url":"https://api.github.com/repos/howardjohn/AWScala/stargazers","contributors_url":"https://api.github.com/repos/howardjohn/AWScala/contributors","subscribers_url":"https://api.github.com/repos/howardjohn/AWScala/subscribers","subscription_url":"https://api.github.com/repos/howardjohn/AWScala/subscription","commits_url":"https://api.github.com/repos/howardjohn/AWScala/commits{/sha}","git_commits_url":"https://api.github.com/repos/howardjohn/AWScala/git/commits{/sha}","comments_url":"https://api.github.com/repos/howardjohn/AWScala/comments{/number}","issue_comment_url":"https://api.github.com/repos/howardjohn/AWScala/issues/comments{/number}","contents_url":"https://api.github.com/repos/howardjohn/AWScala/contents/{+path}","compare_url":"https://api.github.com/repos/howardjohn/AWScala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/howardjohn/AWScala/merges","archive_url":"https://api.github.com/repos/howardjohn/AWScala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/howardjohn/AWScala/downloads","issues_url":"https://api.github.com/repos/howardjohn/AWScala/issues{/number}","pulls_url":"https://api.github.com/repos/howardjohn/AWScala/pulls{/number}","milestones_url":"https://api.github.com/repos/howardjohn/AWScala/milestones{/number}","notifications_url":"https://api.github.com/repos/howardjohn/AWScala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/howardjohn/AWScala/labels{/name}","releases_url":"https://api.github.com/repos/howardjohn/AWScala/releases{/id}","deployments_url":"https://api.github.com/repos/howardjohn/AWScala/deployments","created_at":"2018-05-21T01:52:43Z","updated_at":"2018-05-25T18:13:04Z","pushed_at":"2018-05-29T04:21:34Z","git_url":"git://github.com/howardjohn/AWScala.git","ssh_url":"git@github.com:howardjohn/AWScala.git","clone_url":"https://github.com/howardjohn/AWScala.git","svn_url":"https://github.com/howardjohn/AWScala","homepage":"","size":885,"stargazers_count":0,"watchers_count":0,"language":"Scala","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,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"seratch:master","ref":"master","sha":"00b8c13b3c748f89df52640ae537233520b904bb","user":{"login":"seratch","id":19658,"avatar_url":"https://avatars2.githubusercontent.com/u/19658?v=4","gravatar_id":"","url":"https://api.github.com/users/seratch","html_url":"https://github.com/seratch","followers_url":"https://api.github.com/users/seratch/followers","following_url":"https://api.github.com/users/seratch/following{/other_user}","gists_url":"https://api.github.com/users/seratch/gists{/gist_id}","starred_url":"https://api.github.com/users/seratch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seratch/subscriptions","organizations_url":"https://api.github.com/users/seratch/orgs","repos_url":"https://api.github.com/users/seratch/repos","events_url":"https://api.github.com/users/seratch/events{/privacy}","received_events_url":"https://api.github.com/users/seratch/received_events","type":"User","site_admin":false},"repo":{"id":12340196,"name":"AWScala","full_name":"seratch/AWScala","owner":{"login":"seratch","id":19658,"avatar_url":"https://avatars2.githubusercontent.com/u/19658?v=4","gravatar_id":"","url":"https://api.github.com/users/seratch","html_url":"https://github.com/seratch","followers_url":"https://api.github.com/users/seratch/followers","following_url":"https://api.github.com/users/seratch/following{/other_user}","gists_url":"https://api.github.com/users/seratch/gists{/gist_id}","starred_url":"https://api.github.com/users/seratch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seratch/subscriptions","organizations_url":"https://api.github.com/users/seratch/orgs","repos_url":"https://api.github.com/users/seratch/repos","events_url":"https://api.github.com/users/seratch/events{/privacy}","received_events_url":"https://api.github.com/users/seratch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seratch/AWScala","description":"Using AWS SDK on the Scala REPL","fork":false,"url":"https://api.github.com/repos/seratch/AWScala","forks_url":"https://api.github.com/repos/seratch/AWScala/forks","keys_url":"https://api.github.com/repos/seratch/AWScala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seratch/AWScala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seratch/AWScala/teams","hooks_url":"https://api.github.com/repos/seratch/AWScala/hooks","issue_events_url":"https://api.github.com/repos/seratch/AWScala/issues/events{/number}","events_url":"https://api.github.com/repos/seratch/AWScala/events","assignees_url":"https://api.github.com/repos/seratch/AWScala/assignees{/user}","branches_url":"https://api.github.com/repos/seratch/AWScala/branches{/branch}","tags_url":"https://api.github.com/repos/seratch/AWScala/tags","blobs_url":"https://api.github.com/repos/seratch/AWScala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seratch/AWScala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seratch/AWScala/git/refs{/sha}","trees_url":"https://api.github.com/repos/seratch/AWScala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seratch/AWScala/statuses/{sha}","languages_url":"https://api.github.com/repos/seratch/AWScala/languages","stargazers_url":"https://api.github.com/repos/seratch/AWScala/stargazers","contributors_url":"https://api.github.com/repos/seratch/AWScala/contributors","subscribers_url":"https://api.github.com/repos/seratch/AWScala/subscribers","subscription_url":"https://api.github.com/repos/seratch/AWScala/subscription","commits_url":"https://api.github.com/repos/seratch/AWScala/commits{/sha}","git_commits_url":"https://api.github.com/repos/seratch/AWScala/git/commits{/sha}","comments_url":"https://api.github.com/repos/seratch/AWScala/comments{/number}","issue_comment_url":"https://api.github.com/repos/seratch/AWScala/issues/comments{/number}","contents_url":"https://api.github.com/repos/seratch/AWScala/contents/{+path}","compare_url":"https://api.github.com/repos/seratch/AWScala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seratch/AWScala/merges","archive_url":"https://api.github.com/repos/seratch/AWScala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seratch/AWScala/downloads","issues_url":"https://api.github.com/repos/seratch/AWScala/issues{/number}","pulls_url":"https://api.github.com/repos/seratch/AWScala/pulls{/number}","milestones_url":"https://api.github.com/repos/seratch/AWScala/milestones{/number}","notifications_url":"https://api.github.com/repos/seratch/AWScala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seratch/AWScala/labels{/name}","releases_url":"https://api.github.com/repos/seratch/AWScala/releases{/id}","deployments_url":"https://api.github.com/repos/seratch/AWScala/deployments","created_at":"2013-08-24T08:06:48Z","updated_at":"2018-05-25T07:29:52Z","pushed_at":"2018-05-29T04:26:28Z","git_url":"git://github.com/seratch/AWScala.git","ssh_url":"git@github.com:seratch/AWScala.git","clone_url":"https://github.com/seratch/AWScala.git","svn_url":"https://github.com/seratch/AWScala","homepage":"","size":873,"stargazers_count":578,"watchers_count":578,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":176,"mirror_url":null,"archived":false,"open_issues_count":51,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":176,"open_issues":51,"watchers":578,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seratch/AWScala/pulls/177"},"html":{"href":"https://github.com/seratch/AWScala/pull/177"},"issue":{"href":"https://api.github.com/repos/seratch/AWScala/issues/177"},"comments":{"href":"https://api.github.com/repos/seratch/AWScala/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/seratch/AWScala/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/seratch/AWScala/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seratch/AWScala/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/seratch/AWScala/statuses/b59d040f5134f6d0a9f64029f4c7a032273ee8a3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"seratch"}}