Debian Codegraph @

models/apis/iot1click-projects/2018-05-14/api-2.json

raw
1 {
2 "version":"2.0",
3 "metadata":{
4 "apiVersion":"2018-05-14",
5 "endpointPrefix":"projects.iot1click",
6 "jsonVersion":"1.1",
7 "protocol":"rest-json",
8 "serviceAbbreviation":"AWS IoT 1-Click Projects",
9 "serviceFullName":"AWS IoT 1-Click Projects Service",
10 "serviceId":"IoT 1Click Projects",
11 "signatureVersion":"v4",
12 "signingName":"iot1click",
13 "uid":"iot1click-projects-2018-05-14"
14 },
15 "operations":{
16 "AssociateDeviceWithPlacement":{
17 "name":"AssociateDeviceWithPlacement",
18 "http":{
19 "method":"PUT",
20 "requestUri":"/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}"
21 },
22 "input":{"shape":"AssociateDeviceWithPlacementRequest"},
23 "output":{"shape":"AssociateDeviceWithPlacementResponse"},
24 "errors":[
25 {"shape":"InternalFailureException"},
26 {"shape":"InvalidRequestException"},
27 {"shape":"ResourceConflictException"},
28 {"shape":"ResourceNotFoundException"}
29 ]
30 },
31 "CreatePlacement":{
32 "name":"CreatePlacement",
33 "http":{
34 "method":"POST",
35 "requestUri":"/projects/{projectName}/placements"
36 },
37 "input":{"shape":"CreatePlacementRequest"},
38 "output":{"shape":"CreatePlacementResponse"},
39 "errors":[
40 {"shape":"InternalFailureException"},
41 {"shape":"InvalidRequestException"},
42 {"shape":"ResourceConflictException"},
43 {"shape":"ResourceNotFoundException"}
44 ]
45 },
46 "CreateProject":{
47 "name":"CreateProject",
48 "http":{
49 "method":"POST",
50 "requestUri":"/projects"
51 },
52 "input":{"shape":"CreateProjectRequest"},
53 "output":{"shape":"CreateProjectResponse"},
54 "errors":[
55 {"shape":"InternalFailureException"},
56 {"shape":"InvalidRequestException"},
57 {"shape":"ResourceConflictException"}
58 ]
59 },
60 "DeletePlacement":{
61 "name":"DeletePlacement",
62 "http":{
63 "method":"DELETE",
64 "requestUri":"/projects/{projectName}/placements/{placementName}"
65 },
66 "input":{"shape":"DeletePlacementRequest"},
67 "output":{"shape":"DeletePlacementResponse"},
68 "errors":[
69 {"shape":"InternalFailureException"},
70 {"shape":"InvalidRequestException"},
71 {"shape":"ResourceNotFoundException"},
72 {"shape":"TooManyRequestsException"}
73 ]
74 },
75 "DeleteProject":{
76 "name":"DeleteProject",
77 "http":{
78 "method":"DELETE",
79 "requestUri":"/projects/{projectName}"
80 },
81 "input":{"shape":"DeleteProjectRequest"},
82 "output":{"shape":"DeleteProjectResponse"},
83 "errors":[
84 {"shape":"InternalFailureException"},
85 {"shape":"InvalidRequestException"},
86 {"shape":"ResourceNotFoundException"},
87 {"shape":"TooManyRequestsException"}
88 ]
89 },
90 "DescribePlacement":{
91 "name":"DescribePlacement",
92 "http":{
93 "method":"GET",
94 "requestUri":"/projects/{projectName}/placements/{placementName}"
95 },
96 "input":{"shape":"DescribePlacementRequest"},
97 "output":{"shape":"DescribePlacementResponse"},
98 "errors":[
99 {"shape":"InternalFailureException"},
100 {"shape":"InvalidRequestException"},
101 {"shape":"ResourceNotFoundException"}
102 ]
103 },
104 "DescribeProject":{
105 "name":"DescribeProject",
106 "http":{
107 "method":"GET",
108 "requestUri":"/projects/{projectName}"
109 },
110 "input":{"shape":"DescribeProjectRequest"},
111 "output":{"shape":"DescribeProjectResponse"},
112 "errors":[
113 {"shape":"InternalFailureException"},
114 {"shape":"InvalidRequestException"},
115 {"shape":"ResourceNotFoundException"}
116 ]
117 },
118 "DisassociateDeviceFromPlacement":{
119 "name":"DisassociateDeviceFromPlacement",
120 "http":{
121 "method":"DELETE",
122 "requestUri":"/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}"
123 },
124 "input":{"shape":"DisassociateDeviceFromPlacementRequest"},
125 "output":{"shape":"DisassociateDeviceFromPlacementResponse"},
126 "errors":[
127 {"shape":"InternalFailureException"},
128 {"shape":"InvalidRequestException"},
129 {"shape":"ResourceNotFoundException"},
130 {"shape":"TooManyRequestsException"}
131 ]
132 },
133 "GetDevicesInPlacement":{
134 "name":"GetDevicesInPlacement",
135 "http":{
136 "method":"GET",
137 "requestUri":"/projects/{projectName}/placements/{placementName}/devices"
138 },
139 "input":{"shape":"GetDevicesInPlacementRequest"},
140 "output":{"shape":"GetDevicesInPlacementResponse"},
141 "errors":[
142 {"shape":"InternalFailureException"},
143 {"shape":"InvalidRequestException"},
144 {"shape":"ResourceNotFoundException"}
145 ]
146 },
147 "ListPlacements":{
148 "name":"ListPlacements",
149 "http":{
150 "method":"GET",
151 "requestUri":"/projects/{projectName}/placements"
152 },
153 "input":{"shape":"ListPlacementsRequest"},
154 "output":{"shape":"ListPlacementsResponse"},
155 "errors":[
156 {"shape":"InternalFailureException"},
157 {"shape":"InvalidRequestException"},
158 {"shape":"ResourceNotFoundException"}
159 ]
160 },
161 "ListProjects":{
162 "name":"ListProjects",
163 "http":{
164 "method":"GET",
165 "requestUri":"/projects"
166 },
167 "input":{"shape":"ListProjectsRequest"},
168 "output":{"shape":"ListProjectsResponse"},
169 "errors":[
170 {"shape":"InternalFailureException"},
171 {"shape":"InvalidRequestException"}
172 ]
173 },
174 "ListTagsForResource":{
175 "name":"ListTagsForResource",
176 "http":{
177 "method":"GET",
178 "requestUri":"/tags/{resourceArn}"
179 },
180 "input":{"shape":"ListTagsForResourceRequest"},
181 "output":{"shape":"ListTagsForResourceResponse"},
182 "errors":[
183 {"shape":"InternalFailureException"},
184 {"shape":"InvalidRequestException"},
185 {"shape":"ResourceNotFoundException"}
186 ]
187 },
188 "TagResource":{
189 "name":"TagResource",
190 "http":{
191 "method":"POST",
192 "requestUri":"/tags/{resourceArn}"
193 },
194 "input":{"shape":"TagResourceRequest"},
195 "output":{"shape":"TagResourceResponse"},
196 "errors":[
197 {"shape":"InternalFailureException"},
198 {"shape":"InvalidRequestException"},
199 {"shape":"ResourceNotFoundException"}
200 ]
201 },
202 "UntagResource":{
203 "name":"UntagResource",
204 "http":{
205 "method":"DELETE",
206 "requestUri":"/tags/{resourceArn}"
207 },
208 "input":{"shape":"UntagResourceRequest"},
209 "output":{"shape":"UntagResourceResponse"},
210 "errors":[
211 {"shape":"InternalFailureException"},
212 {"shape":"InvalidRequestException"},
213 {"shape":"ResourceNotFoundException"}
214 ]
215 },
216 "UpdatePlacement":{
217 "name":"UpdatePlacement",
218 "http":{
219 "method":"PUT",
220 "requestUri":"/projects/{projectName}/placements/{placementName}"
221 },
222 "input":{"shape":"UpdatePlacementRequest"},
223 "output":{"shape":"UpdatePlacementResponse"},
224 "errors":[
225 {"shape":"InternalFailureException"},
226 {"shape":"InvalidRequestException"},
227 {"shape":"ResourceNotFoundException"},
228 {"shape":"TooManyRequestsException"}
229 ]
230 },
231 "UpdateProject":{
232 "name":"UpdateProject",
233 "http":{
234 "method":"PUT",
235 "requestUri":"/projects/{projectName}"
236 },
237 "input":{"shape":"UpdateProjectRequest"},
238 "output":{"shape":"UpdateProjectResponse"},
239 "errors":[
240 {"shape":"InternalFailureException"},
241 {"shape":"InvalidRequestException"},
242 {"shape":"ResourceNotFoundException"},
243 {"shape":"TooManyRequestsException"}
244 ]
245 }
246 },
247 "shapes":{
248 "AssociateDeviceWithPlacementRequest":{
249 "type":"structure",
250 "required":[
251 "projectName",
252 "placementName",
253 "deviceId",
254 "deviceTemplateName"
255 ],
256 "members":{
257 "projectName":{
258 "shape":"ProjectName",
259 "location":"uri",
260 "locationName":"projectName"
261 },
262 "placementName":{
263 "shape":"PlacementName",
264 "location":"uri",
265 "locationName":"placementName"
266 },
267 "deviceId":{"shape":"DeviceId"},
268 "deviceTemplateName":{
269 "shape":"DeviceTemplateName",
270 "location":"uri",
271 "locationName":"deviceTemplateName"
272 }
273 }
274 },
275 "AssociateDeviceWithPlacementResponse":{
276 "type":"structure",
277 "members":{
278 }
279 },
280 "AttributeDefaultValue":{
281 "type":"string",
282 "max":800
283 },
284 "AttributeName":{
285 "type":"string",
286 "max":128,
287 "min":1
288 },
289 "AttributeValue":{
290 "type":"string",
291 "max":800
292 },
293 "Code":{"type":"string"},
294 "CreatePlacementRequest":{
295 "type":"structure",
296 "required":[
297 "placementName",
298 "projectName"
299 ],
300 "members":{
301 "placementName":{"shape":"PlacementName"},
302 "projectName":{
303 "shape":"ProjectName",
304 "location":"uri",
305 "locationName":"projectName"
306 },
307 "attributes":{"shape":"PlacementAttributeMap"}
308 }
309 },
310 "CreatePlacementResponse":{
311 "type":"structure",
312 "members":{
313 }
314 },
315 "CreateProjectRequest":{
316 "type":"structure",
317 "required":["projectName"],
318 "members":{
319 "projectName":{"shape":"ProjectName"},
320 "description":{"shape":"Description"},
321 "placementTemplate":{"shape":"PlacementTemplate"},
322 "tags":{"shape":"TagMap"}
323 }
324 },
325 "CreateProjectResponse":{
326 "type":"structure",
327 "members":{
328 }
329 },
330 "DefaultPlacementAttributeMap":{
331 "type":"map",
332 "key":{"shape":"AttributeName"},
333 "value":{"shape":"AttributeDefaultValue"}
334 },
335 "DeletePlacementRequest":{
336 "type":"structure",
337 "required":[
338 "placementName",
339 "projectName"
340 ],
341 "members":{
342 "placementName":{
343 "shape":"PlacementName",
344 "location":"uri",
345 "locationName":"placementName"
346 },
347 "projectName":{
348 "shape":"ProjectName",
349 "location":"uri",
350 "locationName":"projectName"
351 }
352 }
353 },
354 "DeletePlacementResponse":{
355 "type":"structure",
356 "members":{
357 }
358 },
359 "DeleteProjectRequest":{
360 "type":"structure",
361 "required":["projectName"],
362 "members":{
363 "projectName":{
364 "shape":"ProjectName",
365 "location":"uri",
366 "locationName":"projectName"
367 }
368 }
369 },
370 "DeleteProjectResponse":{
371 "type":"structure",
372 "members":{
373 }
374 },
375 "DescribePlacementRequest":{
376 "type":"structure",
377 "required":[
378 "placementName",
379 "projectName"
380 ],
381 "members":{
382 "placementName":{
383 "shape":"PlacementName",
384 "location":"uri",
385 "locationName":"placementName"
386 },
387 "projectName":{
388 "shape":"ProjectName",
389 "location":"uri",
390 "locationName":"projectName"
391 }
392 }
393 },
394 "DescribePlacementResponse":{
395 "type":"structure",
396 "required":["placement"],
397 "members":{
398 "placement":{"shape":"PlacementDescription"}
399 }
400 },
401 "DescribeProjectRequest":{
402 "type":"structure",
403 "required":["projectName"],
404 "members":{
405 "projectName":{
406 "shape":"ProjectName",
407 "location":"uri",
408 "locationName":"projectName"
409 }
410 }
411 },
412 "DescribeProjectResponse":{
413 "type":"structure",
414 "required":["project"],
415 "members":{
416 "project":{"shape":"ProjectDescription"}
417 }
418 },
419 "Description":{
420 "type":"string",
421 "max":500,
422 "min":0
423 },
424 "DeviceCallbackKey":{
425 "type":"string",
426 "max":128,
427 "min":1
428 },
429 "DeviceCallbackOverrideMap":{
430 "type":"map",
431 "key":{"shape":"DeviceCallbackKey"},
432 "value":{"shape":"DeviceCallbackValue"}
433 },
434 "DeviceCallbackValue":{
435 "type":"string",
436 "max":200
437 },
438 "DeviceId":{
439 "type":"string",
440 "max":32,
441 "min":1
442 },
443 "DeviceMap":{
444 "type":"map",
445 "key":{"shape":"DeviceTemplateName"},
446 "value":{"shape":"DeviceId"}
447 },
448 "DeviceTemplate":{
449 "type":"structure",
450 "members":{
451 "deviceType":{"shape":"DeviceType"},
452 "callbackOverrides":{"shape":"DeviceCallbackOverrideMap"}
453 }
454 },
455 "DeviceTemplateMap":{
456 "type":"map",
457 "key":{"shape":"DeviceTemplateName"},
458 "value":{"shape":"DeviceTemplate"}
459 },
460 "DeviceTemplateName":{
461 "type":"string",
462 "max":128,
463 "min":1,
464 "pattern":"^[a-zA-Z0-9_-]+$"
465 },
466 "DeviceType":{
467 "type":"string",
468 "max":128
469 },
470 "DisassociateDeviceFromPlacementRequest":{
471 "type":"structure",
472 "required":[
473 "projectName",
474 "placementName",
475 "deviceTemplateName"
476 ],
477 "members":{
478 "projectName":{
479 "shape":"ProjectName",
480 "location":"uri",
481 "locationName":"projectName"
482 },
483 "placementName":{
484 "shape":"PlacementName",
485 "location":"uri",
486 "locationName":"placementName"
487 },
488 "deviceTemplateName":{
489 "shape":"DeviceTemplateName",
490 "location":"uri",
491 "locationName":"deviceTemplateName"
492 }
493 }
494 },
495 "DisassociateDeviceFromPlacementResponse":{
496 "type":"structure",
497 "members":{
498 }
499 },
500 "GetDevicesInPlacementRequest":{
501 "type":"structure",
502 "required":[
503 "projectName",
504 "placementName"
505 ],
506 "members":{
507 "projectName":{
508 "shape":"ProjectName",
509 "location":"uri",
510 "locationName":"projectName"
511 },
512 "placementName":{
513 "shape":"PlacementName",
514 "location":"uri",
515 "locationName":"placementName"
516 }
517 }
518 },
519 "GetDevicesInPlacementResponse":{
520 "type":"structure",
521 "required":["devices"],
522 "members":{
523 "devices":{"shape":"DeviceMap"}
524 }
525 },
526 "InternalFailureException":{
527 "type":"structure",
528 "required":[
529 "code",
530 "message"
531 ],
532 "members":{
533 "code":{"shape":"Code"},
534 "message":{"shape":"Message"}
535 },
536 "error":{"httpStatusCode":500},
537 "exception":true
538 },
539 "InvalidRequestException":{
540 "type":"structure",
541 "required":[
542 "code",
543 "message"
544 ],
545 "members":{
546 "code":{"shape":"Code"},
547 "message":{"shape":"Message"}
548 },
549 "error":{"httpStatusCode":400},
550 "exception":true
551 },
552 "ListPlacementsRequest":{
553 "type":"structure",
554 "required":["projectName"],
555 "members":{
556 "projectName":{
557 "shape":"ProjectName",
558 "location":"uri",
559 "locationName":"projectName"
560 },
561 "nextToken":{
562 "shape":"NextToken",
563 "location":"querystring",
564 "locationName":"nextToken"
565 },
566 "maxResults":{
567 "shape":"MaxResults",
568 "location":"querystring",
569 "locationName":"maxResults"
570 }
571 }
572 },
573 "ListPlacementsResponse":{
574 "type":"structure",
575 "required":["placements"],
576 "members":{
577 "placements":{"shape":"PlacementSummaryList"},
578 "nextToken":{"shape":"NextToken"}
579 }
580 },
581 "ListProjectsRequest":{
582 "type":"structure",
583 "members":{
584 "nextToken":{
585 "shape":"NextToken",
586 "location":"querystring",
587 "locationName":"nextToken"
588 },
589 "maxResults":{
590 "shape":"MaxResults",
591 "location":"querystring",
592 "locationName":"maxResults"
593 }
594 }
595 },
596 "ListProjectsResponse":{
597 "type":"structure",
598 "required":["projects"],
599 "members":{
600 "projects":{"shape":"ProjectSummaryList"},
601 "nextToken":{"shape":"NextToken"}
602 }
603 },
604 "ListTagsForResourceRequest":{
605 "type":"structure",
606 "required":["resourceArn"],
607 "members":{
608 "resourceArn":{
609 "shape":"ProjectArn",
610 "location":"uri",
611 "locationName":"resourceArn"
612 }
613 }
614 },
615 "ListTagsForResourceResponse":{
616 "type":"structure",
617 "members":{
618 "tags":{"shape":"TagMap"}
619 }
620 },
621 "MaxResults":{
622 "type":"integer",
623 "max":250,
624 "min":1
625 },
626 "Message":{"type":"string"},
627 "NextToken":{
628 "type":"string",
629 "max":1024,
630 "min":1
631 },
632 "PlacementAttributeMap":{
633 "type":"map",
634 "key":{"shape":"AttributeName"},
635 "value":{"shape":"AttributeValue"}
636 },
637 "PlacementDescription":{
638 "type":"structure",
639 "required":[
640 "projectName",
641 "placementName",
642 "attributes",
643 "createdDate",
644 "updatedDate"
645 ],
646 "members":{
647 "projectName":{"shape":"ProjectName"},
648 "placementName":{"shape":"PlacementName"},
649 "attributes":{"shape":"PlacementAttributeMap"},
650 "createdDate":{"shape":"Time"},
651 "updatedDate":{"shape":"Time"}
652 }
653 },
654 "PlacementName":{
655 "type":"string",
656 "max":128,
657 "min":1,
658 "pattern":"^[a-zA-Z0-9_-]+$"
659 },
660 "PlacementSummary":{
661 "type":"structure",
662 "required":[
663 "projectName",
664 "placementName",
665 "createdDate",
666 "updatedDate"
667 ],
668 "members":{
669 "projectName":{"shape":"ProjectName"},
670 "placementName":{"shape":"PlacementName"},
671 "createdDate":{"shape":"Time"},
672 "updatedDate":{"shape":"Time"}
673 }
674 },
675 "PlacementSummaryList":{
676 "type":"list",
677 "member":{"shape":"PlacementSummary"}
678 },
679 "PlacementTemplate":{
680 "type":"structure",
681 "members":{
682 "defaultAttributes":{"shape":"DefaultPlacementAttributeMap"},
683 "deviceTemplates":{"shape":"DeviceTemplateMap"}
684 }
685 },
686 "ProjectArn":{
687 "type":"string",
688 "pattern":"^arn:aws:iot1click:[A-Za-z0-9_/.-]{0,63}:\\d+:projects/[0-9A-Za-z_-]{1,128}$"
689 },
690 "ProjectDescription":{
691 "type":"structure",
692 "required":[
693 "projectName",
694 "createdDate",
695 "updatedDate"
696 ],
697 "members":{
698 "arn":{"shape":"ProjectArn"},
699 "projectName":{"shape":"ProjectName"},
700 "description":{"shape":"Description"},
701 "createdDate":{"shape":"Time"},
702 "updatedDate":{"shape":"Time"},
703 "placementTemplate":{"shape":"PlacementTemplate"},
704 "tags":{"shape":"TagMap"}
705 }
706 },
707 "ProjectName":{
708 "type":"string",
709 "max":128,
710 "min":1,
711 "pattern":"^[0-9A-Za-z_-]+$"
712 },
713 "ProjectSummary":{
714 "type":"structure",
715 "required":[
716 "projectName",
717 "createdDate",
718 "updatedDate"
719 ],
720 "members":{
721 "arn":{"shape":"ProjectArn"},
722 "projectName":{"shape":"ProjectName"},
723 "createdDate":{"shape":"Time"},
724 "updatedDate":{"shape":"Time"},
725 "tags":{"shape":"TagMap"}
726 }
727 },
728 "ProjectSummaryList":{
729 "type":"list",
730 "member":{"shape":"ProjectSummary"}
731 },
732 "ResourceConflictException":{
733 "type":"structure",
734 "required":[
735 "code",
736 "message"
737 ],
738 "members":{
739 "code":{"shape":"Code"},
740 "message":{"shape":"Message"}
741 },
742 "error":{"httpStatusCode":409},
743 "exception":true
744 },
745 "ResourceNotFoundException":{
746 "type":"structure",
747 "required":[
748 "code",
749 "message"
750 ],
751 "members":{
752 "code":{"shape":"Code"},
753 "message":{"shape":"Message"}
754 },
755 "error":{"httpStatusCode":404},
756 "exception":true
757 },
758 "TagKey":{
759 "type":"string",
760 "max":128,
761 "min":1,
762 "pattern":"^(?!aws:)[a-zA-Z+-=._:/]+$"
763 },
764 "TagKeyList":{
765 "type":"list",
766 "member":{"shape":"TagKey"},
767 "max":50,
768 "min":1
769 },
770 "TagMap":{
771 "type":"map",
772 "key":{"shape":"TagKey"},
773 "value":{"shape":"TagValue"},
774 "max":50,
775 "min":1
776 },
777 "TagResourceRequest":{
778 "type":"structure",
779 "required":[
780 "resourceArn",
781 "tags"
782 ],
783 "members":{
784 "resourceArn":{
785 "shape":"ProjectArn",
786 "location":"uri",
787 "locationName":"resourceArn"
788 },
789 "tags":{"shape":"TagMap"}
790 }
791 },
792 "TagResourceResponse":{
793 "type":"structure",
794 "members":{
795 }
796 },
797 "TagValue":{
798 "type":"string",
799 "max":256
800 },
801 "Time":{"type":"timestamp"},
802 "TooManyRequestsException":{
803 "type":"structure",
804 "required":[
805 "code",
806 "message"
807 ],
808 "members":{
809 "code":{"shape":"Code"},
810 "message":{"shape":"Message"}
811 },
812 "error":{"httpStatusCode":429},
813 "exception":true
814 },
815 "UntagResourceRequest":{
816 "type":"structure",
817 "required":[
818 "resourceArn",
819 "tagKeys"
820 ],
821 "members":{
822 "resourceArn":{
823 "shape":"ProjectArn",
824 "location":"uri",
825 "locationName":"resourceArn"
826 },
827 "tagKeys":{
828 "shape":"TagKeyList",
829 "location":"querystring",
830 "locationName":"tagKeys"
831 }
832 }
833 },
834 "UntagResourceResponse":{
835 "type":"structure",
836 "members":{
837 }
838 },
839 "UpdatePlacementRequest":{
840 "type":"structure",
841 "required":[
842 "placementName",
843 "projectName"
844 ],
845 "members":{
846 "placementName":{
847 "shape":"PlacementName",
848 "location":"uri",
849 "locationName":"placementName"
850 },
851 "projectName":{
852 "shape":"ProjectName",
853 "location":"uri",
854 "locationName":"projectName"
855 },
856 "attributes":{"shape":"PlacementAttributeMap"}
857 }
858 },
859 "UpdatePlacementResponse":{
860 "type":"structure",
861 "members":{
862 }
863 },
864 "UpdateProjectRequest":{
865 "type":"structure",
866 "required":["projectName"],
867 "members":{
868 "projectName":{
869 "shape":"ProjectName",
870 "location":"uri",
871 "locationName":"projectName"
872 },
873 "description":{"shape":"Description"},
874 "placementTemplate":{"shape":"PlacementTemplate"}
875 }
876 },
877 "UpdateProjectResponse":{
878 "type":"structure",
879 "members":{
880 }
881 }
882 }
883 }