rbin-2021-06-15.min.json 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. {
  2. "version": "2.0",
  3. "metadata": {
  4. "apiVersion": "2021-06-15",
  5. "endpointPrefix": "rbin",
  6. "jsonVersion": "1.1",
  7. "protocol": "rest-json",
  8. "serviceFullName": "Amazon Recycle Bin",
  9. "serviceId": "rbin",
  10. "signatureVersion": "v4",
  11. "signingName": "rbin",
  12. "uid": "rbin-2021-06-15"
  13. },
  14. "operations": {
  15. "CreateRule": {
  16. "http": {
  17. "requestUri": "/rules",
  18. "responseCode": 201
  19. },
  20. "input": {
  21. "type": "structure",
  22. "required": [
  23. "RetentionPeriod",
  24. "ResourceType"
  25. ],
  26. "members": {
  27. "RetentionPeriod": {
  28. "shape": "S2"
  29. },
  30. "Description": {},
  31. "Tags": {
  32. "shape": "S6"
  33. },
  34. "ResourceType": {},
  35. "ResourceTags": {
  36. "shape": "Sb"
  37. },
  38. "LockConfiguration": {
  39. "shape": "Sf"
  40. }
  41. }
  42. },
  43. "output": {
  44. "type": "structure",
  45. "members": {
  46. "Identifier": {},
  47. "RetentionPeriod": {
  48. "shape": "S2"
  49. },
  50. "Description": {},
  51. "Tags": {
  52. "shape": "S6"
  53. },
  54. "ResourceType": {},
  55. "ResourceTags": {
  56. "shape": "Sb"
  57. },
  58. "Status": {},
  59. "LockConfiguration": {
  60. "shape": "Sf"
  61. },
  62. "LockState": {},
  63. "RuleArn": {}
  64. }
  65. }
  66. },
  67. "DeleteRule": {
  68. "http": {
  69. "method": "DELETE",
  70. "requestUri": "/rules/{identifier}",
  71. "responseCode": 204
  72. },
  73. "input": {
  74. "type": "structure",
  75. "required": [
  76. "Identifier"
  77. ],
  78. "members": {
  79. "Identifier": {
  80. "location": "uri",
  81. "locationName": "identifier"
  82. }
  83. }
  84. },
  85. "output": {
  86. "type": "structure",
  87. "members": {}
  88. }
  89. },
  90. "GetRule": {
  91. "http": {
  92. "method": "GET",
  93. "requestUri": "/rules/{identifier}",
  94. "responseCode": 200
  95. },
  96. "input": {
  97. "type": "structure",
  98. "required": [
  99. "Identifier"
  100. ],
  101. "members": {
  102. "Identifier": {
  103. "location": "uri",
  104. "locationName": "identifier"
  105. }
  106. }
  107. },
  108. "output": {
  109. "type": "structure",
  110. "members": {
  111. "Identifier": {},
  112. "Description": {},
  113. "ResourceType": {},
  114. "RetentionPeriod": {
  115. "shape": "S2"
  116. },
  117. "ResourceTags": {
  118. "shape": "Sb"
  119. },
  120. "Status": {},
  121. "LockConfiguration": {
  122. "shape": "Sf"
  123. },
  124. "LockState": {},
  125. "LockEndTime": {
  126. "type": "timestamp"
  127. },
  128. "RuleArn": {}
  129. }
  130. }
  131. },
  132. "ListRules": {
  133. "http": {
  134. "requestUri": "/list-rules",
  135. "responseCode": 200
  136. },
  137. "input": {
  138. "type": "structure",
  139. "required": [
  140. "ResourceType"
  141. ],
  142. "members": {
  143. "MaxResults": {
  144. "type": "integer"
  145. },
  146. "NextToken": {},
  147. "ResourceType": {},
  148. "ResourceTags": {
  149. "shape": "Sb"
  150. },
  151. "LockState": {}
  152. }
  153. },
  154. "output": {
  155. "type": "structure",
  156. "members": {
  157. "Rules": {
  158. "type": "list",
  159. "member": {
  160. "type": "structure",
  161. "members": {
  162. "Identifier": {},
  163. "Description": {},
  164. "RetentionPeriod": {
  165. "shape": "S2"
  166. },
  167. "LockState": {},
  168. "RuleArn": {}
  169. }
  170. }
  171. },
  172. "NextToken": {}
  173. }
  174. }
  175. },
  176. "ListTagsForResource": {
  177. "http": {
  178. "method": "GET",
  179. "requestUri": "/tags/{resourceArn}",
  180. "responseCode": 200
  181. },
  182. "input": {
  183. "type": "structure",
  184. "required": [
  185. "ResourceArn"
  186. ],
  187. "members": {
  188. "ResourceArn": {
  189. "location": "uri",
  190. "locationName": "resourceArn"
  191. }
  192. }
  193. },
  194. "output": {
  195. "type": "structure",
  196. "members": {
  197. "Tags": {
  198. "shape": "S6"
  199. }
  200. }
  201. }
  202. },
  203. "LockRule": {
  204. "http": {
  205. "method": "PATCH",
  206. "requestUri": "/rules/{identifier}/lock",
  207. "responseCode": 200
  208. },
  209. "input": {
  210. "type": "structure",
  211. "required": [
  212. "Identifier",
  213. "LockConfiguration"
  214. ],
  215. "members": {
  216. "Identifier": {
  217. "location": "uri",
  218. "locationName": "identifier"
  219. },
  220. "LockConfiguration": {
  221. "shape": "Sf"
  222. }
  223. }
  224. },
  225. "output": {
  226. "type": "structure",
  227. "members": {
  228. "Identifier": {},
  229. "Description": {},
  230. "ResourceType": {},
  231. "RetentionPeriod": {
  232. "shape": "S2"
  233. },
  234. "ResourceTags": {
  235. "shape": "Sb"
  236. },
  237. "Status": {},
  238. "LockConfiguration": {
  239. "shape": "Sf"
  240. },
  241. "LockState": {},
  242. "RuleArn": {}
  243. }
  244. }
  245. },
  246. "TagResource": {
  247. "http": {
  248. "requestUri": "/tags/{resourceArn}",
  249. "responseCode": 201
  250. },
  251. "input": {
  252. "type": "structure",
  253. "required": [
  254. "ResourceArn",
  255. "Tags"
  256. ],
  257. "members": {
  258. "ResourceArn": {
  259. "location": "uri",
  260. "locationName": "resourceArn"
  261. },
  262. "Tags": {
  263. "shape": "S6"
  264. }
  265. }
  266. },
  267. "output": {
  268. "type": "structure",
  269. "members": {}
  270. }
  271. },
  272. "UnlockRule": {
  273. "http": {
  274. "method": "PATCH",
  275. "requestUri": "/rules/{identifier}/unlock",
  276. "responseCode": 200
  277. },
  278. "input": {
  279. "type": "structure",
  280. "required": [
  281. "Identifier"
  282. ],
  283. "members": {
  284. "Identifier": {
  285. "location": "uri",
  286. "locationName": "identifier"
  287. }
  288. }
  289. },
  290. "output": {
  291. "type": "structure",
  292. "members": {
  293. "Identifier": {},
  294. "Description": {},
  295. "ResourceType": {},
  296. "RetentionPeriod": {
  297. "shape": "S2"
  298. },
  299. "ResourceTags": {
  300. "shape": "Sb"
  301. },
  302. "Status": {},
  303. "LockConfiguration": {
  304. "shape": "Sf"
  305. },
  306. "LockState": {},
  307. "LockEndTime": {
  308. "type": "timestamp"
  309. },
  310. "RuleArn": {}
  311. }
  312. }
  313. },
  314. "UntagResource": {
  315. "http": {
  316. "method": "DELETE",
  317. "requestUri": "/tags/{resourceArn}",
  318. "responseCode": 204
  319. },
  320. "input": {
  321. "type": "structure",
  322. "required": [
  323. "ResourceArn",
  324. "TagKeys"
  325. ],
  326. "members": {
  327. "ResourceArn": {
  328. "location": "uri",
  329. "locationName": "resourceArn"
  330. },
  331. "TagKeys": {
  332. "location": "querystring",
  333. "locationName": "tagKeys",
  334. "type": "list",
  335. "member": {}
  336. }
  337. }
  338. },
  339. "output": {
  340. "type": "structure",
  341. "members": {}
  342. }
  343. },
  344. "UpdateRule": {
  345. "http": {
  346. "method": "PATCH",
  347. "requestUri": "/rules/{identifier}",
  348. "responseCode": 200
  349. },
  350. "input": {
  351. "type": "structure",
  352. "required": [
  353. "Identifier"
  354. ],
  355. "members": {
  356. "Identifier": {
  357. "location": "uri",
  358. "locationName": "identifier"
  359. },
  360. "RetentionPeriod": {
  361. "shape": "S2"
  362. },
  363. "Description": {},
  364. "ResourceType": {},
  365. "ResourceTags": {
  366. "shape": "Sb"
  367. }
  368. }
  369. },
  370. "output": {
  371. "type": "structure",
  372. "members": {
  373. "Identifier": {},
  374. "RetentionPeriod": {
  375. "shape": "S2"
  376. },
  377. "Description": {},
  378. "ResourceType": {},
  379. "ResourceTags": {
  380. "shape": "Sb"
  381. },
  382. "Status": {},
  383. "LockState": {},
  384. "LockEndTime": {
  385. "type": "timestamp"
  386. },
  387. "RuleArn": {}
  388. }
  389. }
  390. }
  391. },
  392. "shapes": {
  393. "S2": {
  394. "type": "structure",
  395. "required": [
  396. "RetentionPeriodValue",
  397. "RetentionPeriodUnit"
  398. ],
  399. "members": {
  400. "RetentionPeriodValue": {
  401. "type": "integer"
  402. },
  403. "RetentionPeriodUnit": {}
  404. }
  405. },
  406. "S6": {
  407. "type": "list",
  408. "member": {
  409. "type": "structure",
  410. "required": [
  411. "Key",
  412. "Value"
  413. ],
  414. "members": {
  415. "Key": {},
  416. "Value": {}
  417. }
  418. }
  419. },
  420. "Sb": {
  421. "type": "list",
  422. "member": {
  423. "type": "structure",
  424. "required": [
  425. "ResourceTagKey"
  426. ],
  427. "members": {
  428. "ResourceTagKey": {},
  429. "ResourceTagValue": {}
  430. }
  431. }
  432. },
  433. "Sf": {
  434. "type": "structure",
  435. "required": [
  436. "UnlockDelay"
  437. ],
  438. "members": {
  439. "UnlockDelay": {
  440. "type": "structure",
  441. "required": [
  442. "UnlockDelayValue",
  443. "UnlockDelayUnit"
  444. ],
  445. "members": {
  446. "UnlockDelayValue": {
  447. "type": "integer"
  448. },
  449. "UnlockDelayUnit": {}
  450. }
  451. }
  452. }
  453. }
  454. }
  455. }