Debian Codegraph @

models/apis/rbin/2021-06-15/api-2.json

raw
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 "name":"CreateRule",
17 "http":{
18 "method":"POST",
19 "requestUri":"/rules",
20 "responseCode":201
21 },
22 "input":{"shape":"CreateRuleRequest"},
23 "output":{"shape":"CreateRuleResponse"},
24 "errors":[
25 {"shape":"ValidationException"},
26 {"shape":"ServiceQuotaExceededException"},
27 {"shape":"InternalServerException"}
28 ]
29 },
30 "DeleteRule":{
31 "name":"DeleteRule",
32 "http":{
33 "method":"DELETE",
34 "requestUri":"/rules/{identifier}",
35 "responseCode":204
36 },
37 "input":{"shape":"DeleteRuleRequest"},
38 "output":{"shape":"DeleteRuleResponse"},
39 "errors":[
40 {"shape":"InternalServerException"},
41 {"shape":"ResourceNotFoundException"},
42 {"shape":"ValidationException"},
43 {"shape":"ConflictException"}
44 ]
45 },
46 "GetRule":{
47 "name":"GetRule",
48 "http":{
49 "method":"GET",
50 "requestUri":"/rules/{identifier}",
51 "responseCode":200
52 },
53 "input":{"shape":"GetRuleRequest"},
54 "output":{"shape":"GetRuleResponse"},
55 "errors":[
56 {"shape":"ValidationException"},
57 {"shape":"InternalServerException"},
58 {"shape":"ResourceNotFoundException"}
59 ]
60 },
61 "ListRules":{
62 "name":"ListRules",
63 "http":{
64 "method":"POST",
65 "requestUri":"/list-rules",
66 "responseCode":200
67 },
68 "input":{"shape":"ListRulesRequest"},
69 "output":{"shape":"ListRulesResponse"},
70 "errors":[
71 {"shape":"ValidationException"},
72 {"shape":"InternalServerException"}
73 ]
74 },
75 "ListTagsForResource":{
76 "name":"ListTagsForResource",
77 "http":{
78 "method":"GET",
79 "requestUri":"/tags/{resourceArn}",
80 "responseCode":200
81 },
82 "input":{"shape":"ListTagsForResourceRequest"},
83 "output":{"shape":"ListTagsForResourceResponse"},
84 "errors":[
85 {"shape":"ValidationException"},
86 {"shape":"InternalServerException"},
87 {"shape":"ResourceNotFoundException"}
88 ]
89 },
90 "LockRule":{
91 "name":"LockRule",
92 "http":{
93 "method":"PATCH",
94 "requestUri":"/rules/{identifier}/lock",
95 "responseCode":200
96 },
97 "input":{"shape":"LockRuleRequest"},
98 "output":{"shape":"LockRuleResponse"},
99 "errors":[
100 {"shape":"InternalServerException"},
101 {"shape":"ResourceNotFoundException"},
102 {"shape":"ValidationException"},
103 {"shape":"ConflictException"}
104 ]
105 },
106 "TagResource":{
107 "name":"TagResource",
108 "http":{
109 "method":"POST",
110 "requestUri":"/tags/{resourceArn}",
111 "responseCode":201
112 },
113 "input":{"shape":"TagResourceRequest"},
114 "output":{"shape":"TagResourceResponse"},
115 "errors":[
116 {"shape":"ValidationException"},
117 {"shape":"InternalServerException"},
118 {"shape":"ResourceNotFoundException"},
119 {"shape":"ServiceQuotaExceededException"}
120 ]
121 },
122 "UnlockRule":{
123 "name":"UnlockRule",
124 "http":{
125 "method":"PATCH",
126 "requestUri":"/rules/{identifier}/unlock",
127 "responseCode":200
128 },
129 "input":{"shape":"UnlockRuleRequest"},
130 "output":{"shape":"UnlockRuleResponse"},
131 "errors":[
132 {"shape":"InternalServerException"},
133 {"shape":"ResourceNotFoundException"},
134 {"shape":"ValidationException"},
135 {"shape":"ConflictException"}
136 ]
137 },
138 "UntagResource":{
139 "name":"UntagResource",
140 "http":{
141 "method":"DELETE",
142 "requestUri":"/tags/{resourceArn}",
143 "responseCode":204
144 },
145 "input":{"shape":"UntagResourceRequest"},
146 "output":{"shape":"UntagResourceResponse"},
147 "errors":[
148 {"shape":"ValidationException"},
149 {"shape":"InternalServerException"},
150 {"shape":"ResourceNotFoundException"}
151 ]
152 },
153 "UpdateRule":{
154 "name":"UpdateRule",
155 "http":{
156 "method":"PATCH",
157 "requestUri":"/rules/{identifier}",
158 "responseCode":200
159 },
160 "input":{"shape":"UpdateRuleRequest"},
161 "output":{"shape":"UpdateRuleResponse"},
162 "errors":[
163 {"shape":"ValidationException"},
164 {"shape":"InternalServerException"},
165 {"shape":"ResourceNotFoundException"},
166 {"shape":"ConflictException"},
167 {"shape":"ServiceQuotaExceededException"}
168 ]
169 }
170 },
171 "shapes":{
172 "ConflictException":{
173 "type":"structure",
174 "members":{
175 "Message":{"shape":"ErrorMessage"},
176 "Reason":{"shape":"ConflictExceptionReason"}
177 },
178 "error":{"httpStatusCode":409},
179 "exception":true
180 },
181 "ConflictExceptionReason":{
182 "type":"string",
183 "enum":["INVALID_RULE_STATE"]
184 },
185 "CreateRuleRequest":{
186 "type":"structure",
187 "required":[
188 "RetentionPeriod",
189 "ResourceType"
190 ],
191 "members":{
192 "RetentionPeriod":{"shape":"RetentionPeriod"},
193 "Description":{"shape":"Description"},
194 "Tags":{"shape":"TagList"},
195 "ResourceType":{"shape":"ResourceType"},
196 "ResourceTags":{"shape":"ResourceTags"},
197 "LockConfiguration":{"shape":"LockConfiguration"}
198 }
199 },
200 "CreateRuleResponse":{
201 "type":"structure",
202 "members":{
203 "Identifier":{"shape":"RuleIdentifier"},
204 "RetentionPeriod":{"shape":"RetentionPeriod"},
205 "Description":{"shape":"Description"},
206 "Tags":{"shape":"TagList"},
207 "ResourceType":{"shape":"ResourceType"},
208 "ResourceTags":{"shape":"ResourceTags"},
209 "Status":{"shape":"RuleStatus"},
210 "LockConfiguration":{"shape":"LockConfiguration"},
211 "LockState":{"shape":"LockState"},
212 "RuleArn":{"shape":"RuleArn"}
213 }
214 },
215 "DeleteRuleRequest":{
216 "type":"structure",
217 "required":["Identifier"],
218 "members":{
219 "Identifier":{
220 "shape":"RuleIdentifier",
221 "location":"uri",
222 "locationName":"identifier"
223 }
224 }
225 },
226 "DeleteRuleResponse":{
227 "type":"structure",
228 "members":{
229 }
230 },
231 "Description":{
232 "type":"string",
233 "pattern":"^[\\S ]{0,255}$"
234 },
235 "ErrorMessage":{"type":"string"},
236 "GetRuleRequest":{
237 "type":"structure",
238 "required":["Identifier"],
239 "members":{
240 "Identifier":{
241 "shape":"RuleIdentifier",
242 "location":"uri",
243 "locationName":"identifier"
244 }
245 }
246 },
247 "GetRuleResponse":{
248 "type":"structure",
249 "members":{
250 "Identifier":{"shape":"RuleIdentifier"},
251 "Description":{"shape":"Description"},
252 "ResourceType":{"shape":"ResourceType"},
253 "RetentionPeriod":{"shape":"RetentionPeriod"},
254 "ResourceTags":{"shape":"ResourceTags"},
255 "Status":{"shape":"RuleStatus"},
256 "LockConfiguration":{"shape":"LockConfiguration"},
257 "LockState":{"shape":"LockState"},
258 "LockEndTime":{"shape":"TimeStamp"},
259 "RuleArn":{"shape":"RuleArn"}
260 }
261 },
262 "InternalServerException":{
263 "type":"structure",
264 "members":{
265 "Message":{"shape":"ErrorMessage"}
266 },
267 "error":{"httpStatusCode":500},
268 "exception":true,
269 "fault":true
270 },
271 "ListRulesRequest":{
272 "type":"structure",
273 "required":["ResourceType"],
274 "members":{
275 "MaxResults":{"shape":"MaxResults"},
276 "NextToken":{"shape":"NextToken"},
277 "ResourceType":{"shape":"ResourceType"},
278 "ResourceTags":{"shape":"ResourceTags"},
279 "LockState":{"shape":"LockState"}
280 }
281 },
282 "ListRulesResponse":{
283 "type":"structure",
284 "members":{
285 "Rules":{"shape":"RuleSummaryList"},
286 "NextToken":{"shape":"NextToken"}
287 }
288 },
289 "ListTagsForResourceRequest":{
290 "type":"structure",
291 "required":["ResourceArn"],
292 "members":{
293 "ResourceArn":{
294 "shape":"RuleArn",
295 "location":"uri",
296 "locationName":"resourceArn"
297 }
298 }
299 },
300 "ListTagsForResourceResponse":{
301 "type":"structure",
302 "members":{
303 "Tags":{"shape":"TagList"}
304 }
305 },
306 "LockConfiguration":{
307 "type":"structure",
308 "required":["UnlockDelay"],
309 "members":{
310 "UnlockDelay":{"shape":"UnlockDelay"}
311 }
312 },
313 "LockRuleRequest":{
314 "type":"structure",
315 "required":[
316 "Identifier",
317 "LockConfiguration"
318 ],
319 "members":{
320 "Identifier":{
321 "shape":"RuleIdentifier",
322 "location":"uri",
323 "locationName":"identifier"
324 },
325 "LockConfiguration":{"shape":"LockConfiguration"}
326 }
327 },
328 "LockRuleResponse":{
329 "type":"structure",
330 "members":{
331 "Identifier":{"shape":"RuleIdentifier"},
332 "Description":{"shape":"Description"},
333 "ResourceType":{"shape":"ResourceType"},
334 "RetentionPeriod":{"shape":"RetentionPeriod"},
335 "ResourceTags":{"shape":"ResourceTags"},
336 "Status":{"shape":"RuleStatus"},
337 "LockConfiguration":{"shape":"LockConfiguration"},
338 "LockState":{"shape":"LockState"},
339 "RuleArn":{"shape":"RuleArn"}
340 }
341 },
342 "LockState":{
343 "type":"string",
344 "enum":[
345 "locked",
346 "pending_unlock",
347 "unlocked"
348 ]
349 },
350 "MaxResults":{
351 "type":"integer",
352 "max":1000,
353 "min":1
354 },
355 "NextToken":{
356 "type":"string",
357 "pattern":"^[A-Za-z0-9+/=]{1,2048}$"
358 },
359 "ResourceNotFoundException":{
360 "type":"structure",
361 "members":{
362 "Message":{"shape":"ErrorMessage"},
363 "Reason":{"shape":"ResourceNotFoundExceptionReason"}
364 },
365 "error":{"httpStatusCode":404},
366 "exception":true
367 },
368 "ResourceNotFoundExceptionReason":{
369 "type":"string",
370 "enum":["RULE_NOT_FOUND"]
371 },
372 "ResourceTag":{
373 "type":"structure",
374 "required":["ResourceTagKey"],
375 "members":{
376 "ResourceTagKey":{"shape":"ResourceTagKey"},
377 "ResourceTagValue":{"shape":"ResourceTagValue"}
378 }
379 },
380 "ResourceTagKey":{
381 "type":"string",
382 "pattern":"^[\\S\\s]{1,128}$"
383 },
384 "ResourceTagValue":{
385 "type":"string",
386 "pattern":"^[\\S\\s]{0,256}$"
387 },
388 "ResourceTags":{
389 "type":"list",
390 "member":{"shape":"ResourceTag"},
391 "max":50,
392 "min":0
393 },
394 "ResourceType":{
395 "type":"string",
396 "enum":[
397 "EBS_SNAPSHOT",
398 "EC2_IMAGE"
399 ]
400 },
401 "RetentionPeriod":{
402 "type":"structure",
403 "required":[
404 "RetentionPeriodValue",
405 "RetentionPeriodUnit"
406 ],
407 "members":{
408 "RetentionPeriodValue":{"shape":"RetentionPeriodValue"},
409 "RetentionPeriodUnit":{"shape":"RetentionPeriodUnit"}
410 }
411 },
412 "RetentionPeriodUnit":{
413 "type":"string",
414 "enum":["DAYS"]
415 },
416 "RetentionPeriodValue":{
417 "type":"integer",
418 "max":3650,
419 "min":1
420 },
421 "RuleArn":{
422 "type":"string",
423 "max":1011,
424 "min":0,
425 "pattern":"^arn:aws(-[a-z]{1,3}){0,2}:rbin:[a-z\\-0-9]{0,63}:[0-9]{12}:rule/[0-9a-zA-Z]{11}{0,1011}$"
426 },
427 "RuleIdentifier":{
428 "type":"string",
429 "pattern":"[0-9a-zA-Z]{11}"
430 },
431 "RuleStatus":{
432 "type":"string",
433 "enum":[
434 "pending",
435 "available"
436 ]
437 },
438 "RuleSummary":{
439 "type":"structure",
440 "members":{
441 "Identifier":{"shape":"RuleIdentifier"},
442 "Description":{"shape":"Description"},
443 "RetentionPeriod":{"shape":"RetentionPeriod"},
444 "LockState":{"shape":"LockState"},
445 "RuleArn":{"shape":"RuleArn"}
446 }
447 },
448 "RuleSummaryList":{
449 "type":"list",
450 "member":{"shape":"RuleSummary"}
451 },
452 "ServiceQuotaExceededException":{
453 "type":"structure",
454 "members":{
455 "Message":{"shape":"ErrorMessage"},
456 "Reason":{"shape":"ServiceQuotaExceededExceptionReason"}
457 },
458 "error":{"httpStatusCode":402},
459 "exception":true
460 },
461 "ServiceQuotaExceededExceptionReason":{
462 "type":"string",
463 "enum":["SERVICE_QUOTA_EXCEEDED"]
464 },
465 "Tag":{
466 "type":"structure",
467 "required":[
468 "Key",
469 "Value"
470 ],
471 "members":{
472 "Key":{"shape":"TagKey"},
473 "Value":{"shape":"TagValue"}
474 }
475 },
476 "TagKey":{
477 "type":"string",
478 "max":128,
479 "min":1,
480 "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
481 },
482 "TagKeyList":{
483 "type":"list",
484 "member":{"shape":"TagKey"},
485 "max":200,
486 "min":0
487 },
488 "TagList":{
489 "type":"list",
490 "member":{"shape":"Tag"},
491 "max":200,
492 "min":0
493 },
494 "TagResourceRequest":{
495 "type":"structure",
496 "required":[
497 "ResourceArn",
498 "Tags"
499 ],
500 "members":{
501 "ResourceArn":{
502 "shape":"RuleArn",
503 "location":"uri",
504 "locationName":"resourceArn"
505 },
506 "Tags":{"shape":"TagList"}
507 }
508 },
509 "TagResourceResponse":{
510 "type":"structure",
511 "members":{
512 }
513 },
514 "TagValue":{
515 "type":"string",
516 "max":256,
517 "min":0,
518 "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
519 },
520 "TimeStamp":{"type":"timestamp"},
521 "UnlockDelay":{
522 "type":"structure",
523 "required":[
524 "UnlockDelayValue",
525 "UnlockDelayUnit"
526 ],
527 "members":{
528 "UnlockDelayValue":{"shape":"UnlockDelayValue"},
529 "UnlockDelayUnit":{"shape":"UnlockDelayUnit"}
530 }
531 },
532 "UnlockDelayUnit":{
533 "type":"string",
534 "enum":["DAYS"]
535 },
536 "UnlockDelayValue":{
537 "type":"integer",
538 "max":30,
539 "min":7
540 },
541 "UnlockRuleRequest":{
542 "type":"structure",
543 "required":["Identifier"],
544 "members":{
545 "Identifier":{
546 "shape":"RuleIdentifier",
547 "location":"uri",
548 "locationName":"identifier"
549 }
550 }
551 },
552 "UnlockRuleResponse":{
553 "type":"structure",
554 "members":{
555 "Identifier":{"shape":"RuleIdentifier"},
556 "Description":{"shape":"Description"},
557 "ResourceType":{"shape":"ResourceType"},
558 "RetentionPeriod":{"shape":"RetentionPeriod"},
559 "ResourceTags":{"shape":"ResourceTags"},
560 "Status":{"shape":"RuleStatus"},
561 "LockConfiguration":{"shape":"LockConfiguration"},
562 "LockState":{"shape":"LockState"},
563 "LockEndTime":{"shape":"TimeStamp"},
564 "RuleArn":{"shape":"RuleArn"}
565 }
566 },
567 "UntagResourceRequest":{
568 "type":"structure",
569 "required":[
570 "ResourceArn",
571 "TagKeys"
572 ],
573 "members":{
574 "ResourceArn":{
575 "shape":"RuleArn",
576 "location":"uri",
577 "locationName":"resourceArn"
578 },
579 "TagKeys":{
580 "shape":"TagKeyList",
581 "location":"querystring",
582 "locationName":"tagKeys"
583 }
584 }
585 },
586 "UntagResourceResponse":{
587 "type":"structure",
588 "members":{
589 }
590 },
591 "UpdateRuleRequest":{
592 "type":"structure",
593 "required":["Identifier"],
594 "members":{
595 "Identifier":{
596 "shape":"RuleIdentifier",
597 "location":"uri",
598 "locationName":"identifier"
599 },
600 "RetentionPeriod":{"shape":"RetentionPeriod"},
601 "Description":{"shape":"Description"},
602 "ResourceType":{"shape":"ResourceType"},
603 "ResourceTags":{"shape":"ResourceTags"}
604 }
605 },
606 "UpdateRuleResponse":{
607 "type":"structure",
608 "members":{
609 "Identifier":{"shape":"RuleIdentifier"},
610 "RetentionPeriod":{"shape":"RetentionPeriod"},
611 "Description":{"shape":"Description"},
612 "ResourceType":{"shape":"ResourceType"},
613 "ResourceTags":{"shape":"ResourceTags"},
614 "Status":{"shape":"RuleStatus"},
615 "LockState":{"shape":"LockState"},
616 "LockEndTime":{"shape":"TimeStamp"},
617 "RuleArn":{"shape":"RuleArn"}
618 }
619 },
620 "ValidationException":{
621 "type":"structure",
622 "members":{
623 "Message":{"shape":"ErrorMessage"},
624 "Reason":{"shape":"ValidationExceptionReason"}
625 },
626 "error":{"httpStatusCode":400},
627 "exception":true
628 },
629 "ValidationExceptionReason":{
630 "type":"string",
631 "enum":[
632 "INVALID_PAGE_TOKEN",
633 "INVALID_PARAMETER_VALUE"
634 ]
635 }
636 }
637 }