cloud9-2017-09-23.examples.json 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. {
  2. "version": "1.0",
  3. "examples": {
  4. "CreateEnvironmentEC2": [
  5. {
  6. "input": {
  7. "name": "my-demo-environment",
  8. "automaticStopTimeMinutes": 60,
  9. "description": "This is my demonstration environment.",
  10. "imageId": "amazonlinux-2023-x86_64",
  11. "instanceType": "t2.micro",
  12. "ownerArn": "arn:aws:iam::123456789012:user/MyDemoUser",
  13. "subnetId": "subnet-6300cd1b"
  14. },
  15. "output": {
  16. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX"
  17. },
  18. "comments": {
  19. "input": {
  20. },
  21. "output": {
  22. }
  23. },
  24. "description": "",
  25. "id": "createenvironmentec2-1516821730547",
  26. "title": "CreateEnvironmentEC2"
  27. }
  28. ],
  29. "CreateEnvironmentMembership": [
  30. {
  31. "input": {
  32. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
  33. "permissions": "read-write",
  34. "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser"
  35. },
  36. "output": {
  37. "membership": {
  38. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
  39. "permissions": "read-write",
  40. "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
  41. "userId": "AIDAJ3BA6O2FMJWCWXHEX"
  42. }
  43. },
  44. "comments": {
  45. "input": {
  46. },
  47. "output": {
  48. }
  49. },
  50. "description": "",
  51. "id": "createenvironmentmembership-1516822583452",
  52. "title": "CreateEnvironmentMembership"
  53. }
  54. ],
  55. "DeleteEnvironment": [
  56. {
  57. "input": {
  58. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX"
  59. },
  60. "output": {
  61. },
  62. "comments": {
  63. "input": {
  64. },
  65. "output": {
  66. }
  67. },
  68. "description": "",
  69. "id": "deleteenvironment-1516822903149",
  70. "title": "DeleteEnvironment"
  71. }
  72. ],
  73. "DeleteEnvironmentMembership": [
  74. {
  75. "input": {
  76. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
  77. "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser"
  78. },
  79. "output": {
  80. },
  81. "comments": {
  82. "input": {
  83. },
  84. "output": {
  85. }
  86. },
  87. "description": "",
  88. "id": "deleteenvironmentmembership-1516822975655",
  89. "title": "DeleteEnvironmentMembership"
  90. }
  91. ],
  92. "DescribeEnvironmentMemberships": [
  93. {
  94. "input": {
  95. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX"
  96. },
  97. "output": {
  98. "memberships": [
  99. {
  100. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
  101. "permissions": "read-write",
  102. "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
  103. "userId": "AIDAJ3BA6O2FMJWCWXHEX"
  104. },
  105. {
  106. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
  107. "permissions": "owner",
  108. "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
  109. "userId": "AIDAJNUEDQAQWFELJDLEX"
  110. }
  111. ]
  112. },
  113. "comments": {
  114. "input": {
  115. },
  116. "output": {
  117. }
  118. },
  119. "description": "The following example gets information about all of the environment members for the specified development environment.",
  120. "id": "describeenvironmentmemberships1-1516823070453",
  121. "title": "DescribeEnvironmentMemberships1"
  122. },
  123. {
  124. "input": {
  125. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
  126. "permissions": [
  127. "owner"
  128. ]
  129. },
  130. "output": {
  131. "memberships": [
  132. {
  133. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
  134. "permissions": "owner",
  135. "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
  136. "userId": "AIDAJNUEDQAQWFELJDLEX"
  137. }
  138. ]
  139. },
  140. "comments": {
  141. "input": {
  142. },
  143. "output": {
  144. }
  145. },
  146. "description": "The following example gets information about the owner of the specified development environment.",
  147. "id": "describeenvironmentmemberships2-1516823191355",
  148. "title": "DescribeEnvironmentMemberships2"
  149. },
  150. {
  151. "input": {
  152. "userArn": "arn:aws:iam::123456789012:user/MyDemoUser"
  153. },
  154. "output": {
  155. "memberships": [
  156. {
  157. "environmentId": "10a75714bd494714929e7f5ec4125aEX",
  158. "lastAccess": "2018-01-19T11:06:13Z",
  159. "permissions": "owner",
  160. "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
  161. "userId": "AIDAJNUEDQAQWFELJDLEX"
  162. },
  163. {
  164. "environmentId": "12bfc3cd537f41cb9776f8af5525c9EX",
  165. "lastAccess": "2018-01-19T11:39:19Z",
  166. "permissions": "owner",
  167. "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
  168. "userId": "AIDAJNUEDQAQWFELJDLEX"
  169. }
  170. ]
  171. },
  172. "comments": {
  173. "input": {
  174. },
  175. "output": {
  176. }
  177. },
  178. "description": "The following example gets development environment membership information for the specified user.",
  179. "id": "describeenvironmentmemberships3-1516823268793",
  180. "title": "DescribeEnvironmentMemberships3"
  181. }
  182. ],
  183. "DescribeEnvironmentStatus": [
  184. {
  185. "input": {
  186. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX"
  187. },
  188. "output": {
  189. "message": "Environment is ready to use",
  190. "status": "ready"
  191. },
  192. "comments": {
  193. "input": {
  194. },
  195. "output": {
  196. }
  197. },
  198. "description": "",
  199. "id": "describeenvironmentstatus-1516823462133",
  200. "title": "DescribeEnvironmentStatus"
  201. }
  202. ],
  203. "DescribeEnvironments": [
  204. {
  205. "input": {
  206. "environmentIds": [
  207. "8d9967e2f0624182b74e7690ad69ebEX",
  208. "349c86d4579e4e7298d500ff57a6b2EX"
  209. ]
  210. },
  211. "output": {
  212. "environments": [
  213. {
  214. "name": "my-demo-environment",
  215. "type": "ec2",
  216. "arn": "arn:aws:cloud9:us-east-2:123456789012:environment:8d9967e2f0624182b74e7690ad69ebEX",
  217. "description": "This is my demonstration environment.",
  218. "id": "8d9967e2f0624182b74e7690ad69ebEX",
  219. "lifecycle": {
  220. "status": "CREATED"
  221. },
  222. "ownerArn": "arn:aws:iam::123456789012:user/MyDemoUser"
  223. },
  224. {
  225. "name": "another-demo-environment",
  226. "type": "ssh",
  227. "arn": "arn:aws:cloud9:us-east-2:123456789012:environment:349c86d4579e4e7298d500ff57a6b2EX",
  228. "description": "",
  229. "id": "349c86d4579e4e7298d500ff57a6b2EX",
  230. "lifecycle": {
  231. "status": "CREATED"
  232. },
  233. "ownerArn": "arn:aws:sts::123456789012:assumed-role/AnotherDemoUser/AnotherDemoUser"
  234. }
  235. ]
  236. },
  237. "comments": {
  238. "input": {
  239. },
  240. "output": {
  241. }
  242. },
  243. "description": "",
  244. "id": "describeenvironments-1516823568291",
  245. "title": "DescribeEnvironments"
  246. }
  247. ],
  248. "ListEnvironments": [
  249. {
  250. "input": {
  251. },
  252. "output": {
  253. "environmentIds": [
  254. "349c86d4579e4e7298d500ff57a6b2EX",
  255. "45a3da47af0840f2b0c0824f5ee232EX"
  256. ]
  257. },
  258. "comments": {
  259. "input": {
  260. },
  261. "output": {
  262. }
  263. },
  264. "description": "",
  265. "id": "listenvironments-1516823687205",
  266. "title": "ListEnvironments"
  267. }
  268. ],
  269. "UpdateEnvironment": [
  270. {
  271. "input": {
  272. "name": "my-changed-demo-environment",
  273. "description": "This is my changed demonstration environment.",
  274. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX"
  275. },
  276. "output": {
  277. },
  278. "comments": {
  279. "input": {
  280. },
  281. "output": {
  282. }
  283. },
  284. "description": "",
  285. "id": "updateenvironment-1516823781910",
  286. "title": "UpdateEnvironment"
  287. }
  288. ],
  289. "UpdateEnvironmentMembership": [
  290. {
  291. "input": {
  292. "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
  293. "permissions": "read-only",
  294. "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser"
  295. },
  296. "output": {
  297. "membership": {
  298. "environmentId": "8d9967e2f0624182b74e7690ad69eb31",
  299. "permissions": "read-only",
  300. "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
  301. "userId": "AIDAJ3BA6O2FMJWCWXHEX"
  302. }
  303. },
  304. "comments": {
  305. "input": {
  306. },
  307. "output": {
  308. }
  309. },
  310. "description": "",
  311. "id": "updateenvironmentmembership-1516823876645",
  312. "title": "UpdateEnvironmentMembership"
  313. }
  314. ]
  315. }
  316. }