cloudfront-2020-05-31.examples.json 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. {
  2. "version": "1.0",
  3. "examples": {
  4. "CreateFunction": [
  5. {
  6. "input": {
  7. "FunctionCode": "function-code.js",
  8. "FunctionConfig": {
  9. "Comment": "my-function-comment",
  10. "KeyValueStoreAssociations": {
  11. "Items": [
  12. {
  13. "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
  14. }
  15. ],
  16. "Quantity": 1
  17. },
  18. "Runtime": "cloudfront-js-2.0"
  19. },
  20. "Name": "my-function-name"
  21. },
  22. "output": {
  23. "ETag": "ETVPDKIKX0DER",
  24. "FunctionSummary": {
  25. "FunctionConfig": {
  26. "Comment": "my-function-comment",
  27. "KeyValueStoreAssociations": {
  28. "Items": [
  29. {
  30. "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
  31. }
  32. ],
  33. "Quantity": 1
  34. },
  35. "Runtime": "cloudfront-js-2.0"
  36. },
  37. "FunctionMetadata": {
  38. "CreatedTime": "2023-11-07T19:53:50.334Z",
  39. "FunctionARN": "arn:aws:cloudfront::123456789012:function/my-function-name",
  40. "LastModifiedTime": "2023-11-07T19:53:50.334Z",
  41. "Stage": "DEVELOPMENT"
  42. },
  43. "Name": "my-function-name",
  44. "Status": "UNPUBLISHED"
  45. },
  46. "Location": "https://cloudfront.amazonaws.com/2020-05-31/function/arn:aws:cloudfront::123456789012:function/my-function-name"
  47. },
  48. "comments": {
  49. "input": {
  50. },
  51. "output": {
  52. }
  53. },
  54. "description": "Use the following command to create a function.",
  55. "id": "to-create-a-function-1699737558249",
  56. "title": "To create a function"
  57. }
  58. ],
  59. "CreateKeyValueStore": [
  60. {
  61. "input": {
  62. "Comment": "my-key-valuestore-comment",
  63. "ImportSource": {
  64. "SourceARN": "arn:aws:s3:::my-bucket/validJSON.json",
  65. "SourceType": "S3"
  66. },
  67. "Name": "my-keyvaluestore-name"
  68. },
  69. "output": {
  70. "ETag": "ETVPDKIKX0DER",
  71. "KeyValueStore": {
  72. "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
  73. "Comment": "my-key-valuestore-comment",
  74. "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
  75. "LastModifiedTime": "2023-11-07T18:15:52.042Z",
  76. "Name": "my-keyvaluestore-name",
  77. "Status": "PROVISIONING"
  78. },
  79. "Location": "https://cloudfront.amazonaws.com/2020-05-31/key-value-store/arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
  80. },
  81. "comments": {
  82. "input": {
  83. },
  84. "output": {
  85. }
  86. },
  87. "description": "Use the following command to create a KeyValueStore.",
  88. "id": "to-create-a-key-value-store-1699751722467",
  89. "title": "To create a KeyValueStore"
  90. }
  91. ],
  92. "DeleteKeyValueStore": [
  93. {
  94. "input": {
  95. "IfMatch": "ETVPDKIKX0DER",
  96. "Name": "my-keyvaluestore-name"
  97. },
  98. "comments": {
  99. "input": {
  100. },
  101. "output": {
  102. }
  103. },
  104. "description": "Use the following command to delete a KeyValueStore.",
  105. "id": "to-delete-a-key-value-store-1699751759648",
  106. "title": "To delete a KeyValueStore"
  107. }
  108. ],
  109. "DescribeKeyValueStore": [
  110. {
  111. "input": {
  112. "Name": "my-keyvaluestore-name"
  113. },
  114. "output": {
  115. "ETag": "ETVPDKIKX0DER",
  116. "KeyValueStore": {
  117. "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
  118. "Comment": "my-key-valuestore-comment",
  119. "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
  120. "LastModifiedTime": "2023-11-07T18:20:33.056Z",
  121. "Name": "my-keyvaluestore-name",
  122. "Status": "READY"
  123. }
  124. },
  125. "comments": {
  126. "input": {
  127. },
  128. "output": {
  129. }
  130. },
  131. "description": "Use the following command to describe a KeyValueStore.",
  132. "id": "to-describe-a-key-value-store-1699751788152",
  133. "title": "To describe a KeyValueStore"
  134. }
  135. ],
  136. "ListKeyValueStores": [
  137. {
  138. "input": {
  139. "Marker": "",
  140. "MaxItems": "100",
  141. "Status": "READY"
  142. },
  143. "output": {
  144. "KeyValueStoreList": {
  145. "Items": [
  146. {
  147. "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
  148. "Comment": "",
  149. "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
  150. "LastModifiedTime": "2023-11-07T18:45:21.069Z",
  151. "Name": "my-keyvaluestore-name",
  152. "Status": "READY"
  153. }
  154. ],
  155. "MaxItems": 100,
  156. "NextMarker": "",
  157. "Quantity": 1
  158. }
  159. },
  160. "comments": {
  161. "input": {
  162. },
  163. "output": {
  164. }
  165. },
  166. "description": "The following command retrieves a list of KeyValueStores with READY status.",
  167. "id": "to-get-a-list-of-key-value-store-1699751799198",
  168. "title": "To get a list of KeyValueStores"
  169. }
  170. ],
  171. "UpdateFunction": [
  172. {
  173. "input": {
  174. "FunctionCode": "function-code-changed.js",
  175. "FunctionConfig": {
  176. "Comment": "my-changed-comment",
  177. "KeyValueStoreAssociations": {
  178. "Items": [
  179. {
  180. "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
  181. }
  182. ],
  183. "Quantity": 1
  184. },
  185. "Runtime": "cloudfront-js-2.0"
  186. },
  187. "IfMatch": "ETVPDKIKX0DER",
  188. "Name": "my-function-name"
  189. },
  190. "output": {
  191. "ETag": "E3UN6WX5RRO2AG",
  192. "FunctionSummary": {
  193. "FunctionConfig": {
  194. "Comment": "my-changed-comment",
  195. "KeyValueStoreAssociations": {
  196. "Items": [
  197. {
  198. "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
  199. }
  200. ],
  201. "Quantity": 1
  202. },
  203. "Runtime": "cloudfront-js-2.0"
  204. },
  205. "FunctionMetadata": {
  206. "CreatedTime": "2023-11-07T19:53:50.334Z",
  207. "FunctionARN": "arn:aws:cloudfront::123456789012:function/my-function-name",
  208. "LastModifiedTime": "2023-11-07T20:01:37.174Z",
  209. "Stage": "DEVELOPMENT"
  210. },
  211. "Name": "my-function-name",
  212. "Status": "UNPUBLISHED"
  213. }
  214. },
  215. "comments": {
  216. "input": {
  217. },
  218. "output": {
  219. }
  220. },
  221. "description": "Use the following command to update a function.",
  222. "id": "to-update-a-function-1699751865053",
  223. "title": "To update a function"
  224. }
  225. ],
  226. "UpdateKeyValueStore": [
  227. {
  228. "input": {
  229. "Comment": "my-changed-comment",
  230. "IfMatch": "ETVPDKIKX0DER",
  231. "Name": "my-keyvaluestore-name"
  232. },
  233. "output": {
  234. "ETag": "E3UN6WX5RRO2AG",
  235. "KeyValueStore": {
  236. "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
  237. "Comment": "my-changed-comment",
  238. "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
  239. "LastModifiedTime": "2023-11-07T18:45:21.069Z",
  240. "Name": "my-keyvaluestore-name",
  241. "Status": "READY"
  242. }
  243. },
  244. "comments": {
  245. "input": {
  246. },
  247. "output": {
  248. }
  249. },
  250. "description": "Use the following command to update a KeyValueStore.",
  251. "id": "to-update-a-key-value-store-1699751822090",
  252. "title": "To update a KeyValueStore"
  253. }
  254. ]
  255. }
  256. }