{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/301","repository_url":"https://api.github.com/repos/aws/aws-sdk-cpp","labels_url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/301/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/301/events","html_url":"https://github.com/aws/aws-sdk-cpp/issues/301","id":181132356,"number":301,"title":"Code generation API Gateway","user":{"login":"MaxGriot","id":17007587,"avatar_url":"https://avatars.githubusercontent.com/u/17007587?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxGriot","html_url":"https://github.com/MaxGriot","followers_url":"https://api.github.com/users/MaxGriot/followers","following_url":"https://api.github.com/users/MaxGriot/following{/other_user}","gists_url":"https://api.github.com/users/MaxGriot/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxGriot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxGriot/subscriptions","organizations_url":"https://api.github.com/users/MaxGriot/orgs","repos_url":"https://api.github.com/users/MaxGriot/repos","events_url":"https://api.github.com/users/MaxGriot/events{/privacy}","received_events_url":"https://api.github.com/users/MaxGriot/received_events","type":"User","site_admin":false},"labels":[{"id":210264940,"url":"https://api.github.com/repos/aws/aws-sdk-cpp/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-05T11:52:15Z","updated_at":"2016-11-30T15:28:31Z","closed_at":null,"body":"Hello,\n\nI am trying to generate the cpp code for my custom API, I can download the APi for java/ios etc but not for C++, where can I find/create the c2j for my API ?\n\nThanks,\nMax \n"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/comments/263902302","html_url":"https://github.com/aws/aws-sdk-cpp/issues/301#issuecomment-263902302","issue_url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/301","id":263902302,"user":{"login":"csimmons0","id":15880996,"avatar_url":"https://avatars.githubusercontent.com/u/15880996?v=3","gravatar_id":"","url":"https://api.github.com/users/csimmons0","html_url":"https://github.com/csimmons0","followers_url":"https://api.github.com/users/csimmons0/followers","following_url":"https://api.github.com/users/csimmons0/following{/other_user}","gists_url":"https://api.github.com/users/csimmons0/gists{/gist_id}","starred_url":"https://api.github.com/users/csimmons0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csimmons0/subscriptions","organizations_url":"https://api.github.com/users/csimmons0/orgs","repos_url":"https://api.github.com/users/csimmons0/repos","events_url":"https://api.github.com/users/csimmons0/events{/privacy}","received_events_url":"https://api.github.com/users/csimmons0/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T15:28:31Z","updated_at":"2016-11-30T15:28:31Z","body":"```\r\n  static const int CN_REGION_HASH = Aws::Utils::HashingUtils::HashString(\"cn-north-1\");\r\n  \r\n\r\n  Aws::String ForRegion(const Aws::String& regionName, bool useDualStack)\r\n  {\r\n    auto hash = Aws::Utils::HashingUtils::HashString(regionName.c_str());\r\n    \r\n    Aws::StringStream ss;\r\n    ss << \"h6wguq9ghl.execute-api.us-east-1.amazonaws.com/prod\" << \".\";\r\n\r\n    if(useDualStack)\r\n    {\r\n      ss << \"dualstack.\";\r\n    }\r\n\r\n    ss << regionName << \".amazonaws.com\";\r\n    \r\n    if(hash == CN_REGION_HASH)\r\n    {\r\n      ss << \".cn\"; \r\n    }\r\n    \r\n    return ss.str();\r\n  }\r\n```"}}
{"actor":{"display_login":"csimmons0"}}