UNPKG

25.4 kBJSONView Raw
1{
2 "version": "2.0",
3 "metadata": {
4 "uid": "machinelearning-2014-12-12",
5 "apiVersion": "2014-12-12",
6 "endpointPrefix": "machinelearning",
7 "jsonVersion": "1.1",
8 "serviceFullName": "Amazon Machine Learning",
9 "serviceId": "Machine Learning",
10 "signatureVersion": "v4",
11 "targetPrefix": "AmazonML_20141212",
12 "protocol": "json"
13 },
14 "operations": {
15 "AddTags": {
16 "input": {
17 "type": "structure",
18 "required": [
19 "Tags",
20 "ResourceId",
21 "ResourceType"
22 ],
23 "members": {
24 "Tags": {
25 "shape": "S2"
26 },
27 "ResourceId": {},
28 "ResourceType": {}
29 }
30 },
31 "output": {
32 "type": "structure",
33 "members": {
34 "ResourceId": {},
35 "ResourceType": {}
36 }
37 }
38 },
39 "CreateBatchPrediction": {
40 "input": {
41 "type": "structure",
42 "required": [
43 "BatchPredictionId",
44 "MLModelId",
45 "BatchPredictionDataSourceId",
46 "OutputUri"
47 ],
48 "members": {
49 "BatchPredictionId": {},
50 "BatchPredictionName": {},
51 "MLModelId": {},
52 "BatchPredictionDataSourceId": {},
53 "OutputUri": {}
54 }
55 },
56 "output": {
57 "type": "structure",
58 "members": {
59 "BatchPredictionId": {}
60 }
61 }
62 },
63 "CreateDataSourceFromRDS": {
64 "input": {
65 "type": "structure",
66 "required": [
67 "DataSourceId",
68 "RDSData",
69 "RoleARN"
70 ],
71 "members": {
72 "DataSourceId": {},
73 "DataSourceName": {},
74 "RDSData": {
75 "type": "structure",
76 "required": [
77 "DatabaseInformation",
78 "SelectSqlQuery",
79 "DatabaseCredentials",
80 "S3StagingLocation",
81 "ResourceRole",
82 "ServiceRole",
83 "SubnetId",
84 "SecurityGroupIds"
85 ],
86 "members": {
87 "DatabaseInformation": {
88 "shape": "Sf"
89 },
90 "SelectSqlQuery": {},
91 "DatabaseCredentials": {
92 "type": "structure",
93 "required": [
94 "Username",
95 "Password"
96 ],
97 "members": {
98 "Username": {},
99 "Password": {}
100 }
101 },
102 "S3StagingLocation": {},
103 "DataRearrangement": {},
104 "DataSchema": {},
105 "DataSchemaUri": {},
106 "ResourceRole": {},
107 "ServiceRole": {},
108 "SubnetId": {},
109 "SecurityGroupIds": {
110 "type": "list",
111 "member": {}
112 }
113 }
114 },
115 "RoleARN": {},
116 "ComputeStatistics": {
117 "type": "boolean"
118 }
119 }
120 },
121 "output": {
122 "type": "structure",
123 "members": {
124 "DataSourceId": {}
125 }
126 }
127 },
128 "CreateDataSourceFromRedshift": {
129 "input": {
130 "type": "structure",
131 "required": [
132 "DataSourceId",
133 "DataSpec",
134 "RoleARN"
135 ],
136 "members": {
137 "DataSourceId": {},
138 "DataSourceName": {},
139 "DataSpec": {
140 "type": "structure",
141 "required": [
142 "DatabaseInformation",
143 "SelectSqlQuery",
144 "DatabaseCredentials",
145 "S3StagingLocation"
146 ],
147 "members": {
148 "DatabaseInformation": {
149 "shape": "Sy"
150 },
151 "SelectSqlQuery": {},
152 "DatabaseCredentials": {
153 "type": "structure",
154 "required": [
155 "Username",
156 "Password"
157 ],
158 "members": {
159 "Username": {},
160 "Password": {}
161 }
162 },
163 "S3StagingLocation": {},
164 "DataRearrangement": {},
165 "DataSchema": {},
166 "DataSchemaUri": {}
167 }
168 },
169 "RoleARN": {},
170 "ComputeStatistics": {
171 "type": "boolean"
172 }
173 }
174 },
175 "output": {
176 "type": "structure",
177 "members": {
178 "DataSourceId": {}
179 }
180 }
181 },
182 "CreateDataSourceFromS3": {
183 "input": {
184 "type": "structure",
185 "required": [
186 "DataSourceId",
187 "DataSpec"
188 ],
189 "members": {
190 "DataSourceId": {},
191 "DataSourceName": {},
192 "DataSpec": {
193 "type": "structure",
194 "required": [
195 "DataLocationS3"
196 ],
197 "members": {
198 "DataLocationS3": {},
199 "DataRearrangement": {},
200 "DataSchema": {},
201 "DataSchemaLocationS3": {}
202 }
203 },
204 "ComputeStatistics": {
205 "type": "boolean"
206 }
207 }
208 },
209 "output": {
210 "type": "structure",
211 "members": {
212 "DataSourceId": {}
213 }
214 }
215 },
216 "CreateEvaluation": {
217 "input": {
218 "type": "structure",
219 "required": [
220 "EvaluationId",
221 "MLModelId",
222 "EvaluationDataSourceId"
223 ],
224 "members": {
225 "EvaluationId": {},
226 "EvaluationName": {},
227 "MLModelId": {},
228 "EvaluationDataSourceId": {}
229 }
230 },
231 "output": {
232 "type": "structure",
233 "members": {
234 "EvaluationId": {}
235 }
236 }
237 },
238 "CreateMLModel": {
239 "input": {
240 "type": "structure",
241 "required": [
242 "MLModelId",
243 "MLModelType",
244 "TrainingDataSourceId"
245 ],
246 "members": {
247 "MLModelId": {},
248 "MLModelName": {},
249 "MLModelType": {},
250 "Parameters": {
251 "shape": "S1d"
252 },
253 "TrainingDataSourceId": {},
254 "Recipe": {},
255 "RecipeUri": {}
256 }
257 },
258 "output": {
259 "type": "structure",
260 "members": {
261 "MLModelId": {}
262 }
263 }
264 },
265 "CreateRealtimeEndpoint": {
266 "input": {
267 "type": "structure",
268 "required": [
269 "MLModelId"
270 ],
271 "members": {
272 "MLModelId": {}
273 }
274 },
275 "output": {
276 "type": "structure",
277 "members": {
278 "MLModelId": {},
279 "RealtimeEndpointInfo": {
280 "shape": "S1j"
281 }
282 }
283 }
284 },
285 "DeleteBatchPrediction": {
286 "input": {
287 "type": "structure",
288 "required": [
289 "BatchPredictionId"
290 ],
291 "members": {
292 "BatchPredictionId": {}
293 }
294 },
295 "output": {
296 "type": "structure",
297 "members": {
298 "BatchPredictionId": {}
299 }
300 }
301 },
302 "DeleteDataSource": {
303 "input": {
304 "type": "structure",
305 "required": [
306 "DataSourceId"
307 ],
308 "members": {
309 "DataSourceId": {}
310 }
311 },
312 "output": {
313 "type": "structure",
314 "members": {
315 "DataSourceId": {}
316 }
317 }
318 },
319 "DeleteEvaluation": {
320 "input": {
321 "type": "structure",
322 "required": [
323 "EvaluationId"
324 ],
325 "members": {
326 "EvaluationId": {}
327 }
328 },
329 "output": {
330 "type": "structure",
331 "members": {
332 "EvaluationId": {}
333 }
334 }
335 },
336 "DeleteMLModel": {
337 "input": {
338 "type": "structure",
339 "required": [
340 "MLModelId"
341 ],
342 "members": {
343 "MLModelId": {}
344 }
345 },
346 "output": {
347 "type": "structure",
348 "members": {
349 "MLModelId": {}
350 }
351 }
352 },
353 "DeleteRealtimeEndpoint": {
354 "input": {
355 "type": "structure",
356 "required": [
357 "MLModelId"
358 ],
359 "members": {
360 "MLModelId": {}
361 }
362 },
363 "output": {
364 "type": "structure",
365 "members": {
366 "MLModelId": {},
367 "RealtimeEndpointInfo": {
368 "shape": "S1j"
369 }
370 }
371 }
372 },
373 "DeleteTags": {
374 "input": {
375 "type": "structure",
376 "required": [
377 "TagKeys",
378 "ResourceId",
379 "ResourceType"
380 ],
381 "members": {
382 "TagKeys": {
383 "type": "list",
384 "member": {}
385 },
386 "ResourceId": {},
387 "ResourceType": {}
388 }
389 },
390 "output": {
391 "type": "structure",
392 "members": {
393 "ResourceId": {},
394 "ResourceType": {}
395 }
396 }
397 },
398 "DescribeBatchPredictions": {
399 "input": {
400 "type": "structure",
401 "members": {
402 "FilterVariable": {},
403 "EQ": {},
404 "GT": {},
405 "LT": {},
406 "GE": {},
407 "LE": {},
408 "NE": {},
409 "Prefix": {},
410 "SortOrder": {},
411 "NextToken": {},
412 "Limit": {
413 "type": "integer"
414 }
415 }
416 },
417 "output": {
418 "type": "structure",
419 "members": {
420 "Results": {
421 "type": "list",
422 "member": {
423 "type": "structure",
424 "members": {
425 "BatchPredictionId": {},
426 "MLModelId": {},
427 "BatchPredictionDataSourceId": {},
428 "InputDataLocationS3": {},
429 "CreatedByIamUser": {},
430 "CreatedAt": {
431 "type": "timestamp"
432 },
433 "LastUpdatedAt": {
434 "type": "timestamp"
435 },
436 "Name": {},
437 "Status": {},
438 "OutputUri": {},
439 "Message": {},
440 "ComputeTime": {
441 "type": "long"
442 },
443 "FinishedAt": {
444 "type": "timestamp"
445 },
446 "StartedAt": {
447 "type": "timestamp"
448 },
449 "TotalRecordCount": {
450 "type": "long"
451 },
452 "InvalidRecordCount": {
453 "type": "long"
454 }
455 }
456 }
457 },
458 "NextToken": {}
459 }
460 }
461 },
462 "DescribeDataSources": {
463 "input": {
464 "type": "structure",
465 "members": {
466 "FilterVariable": {},
467 "EQ": {},
468 "GT": {},
469 "LT": {},
470 "GE": {},
471 "LE": {},
472 "NE": {},
473 "Prefix": {},
474 "SortOrder": {},
475 "NextToken": {},
476 "Limit": {
477 "type": "integer"
478 }
479 }
480 },
481 "output": {
482 "type": "structure",
483 "members": {
484 "Results": {
485 "type": "list",
486 "member": {
487 "type": "structure",
488 "members": {
489 "DataSourceId": {},
490 "DataLocationS3": {},
491 "DataRearrangement": {},
492 "CreatedByIamUser": {},
493 "CreatedAt": {
494 "type": "timestamp"
495 },
496 "LastUpdatedAt": {
497 "type": "timestamp"
498 },
499 "DataSizeInBytes": {
500 "type": "long"
501 },
502 "NumberOfFiles": {
503 "type": "long"
504 },
505 "Name": {},
506 "Status": {},
507 "Message": {},
508 "RedshiftMetadata": {
509 "shape": "S2i"
510 },
511 "RDSMetadata": {
512 "shape": "S2j"
513 },
514 "RoleARN": {},
515 "ComputeStatistics": {
516 "type": "boolean"
517 },
518 "ComputeTime": {
519 "type": "long"
520 },
521 "FinishedAt": {
522 "type": "timestamp"
523 },
524 "StartedAt": {
525 "type": "timestamp"
526 }
527 }
528 }
529 },
530 "NextToken": {}
531 }
532 }
533 },
534 "DescribeEvaluations": {
535 "input": {
536 "type": "structure",
537 "members": {
538 "FilterVariable": {},
539 "EQ": {},
540 "GT": {},
541 "LT": {},
542 "GE": {},
543 "LE": {},
544 "NE": {},
545 "Prefix": {},
546 "SortOrder": {},
547 "NextToken": {},
548 "Limit": {
549 "type": "integer"
550 }
551 }
552 },
553 "output": {
554 "type": "structure",
555 "members": {
556 "Results": {
557 "type": "list",
558 "member": {
559 "type": "structure",
560 "members": {
561 "EvaluationId": {},
562 "MLModelId": {},
563 "EvaluationDataSourceId": {},
564 "InputDataLocationS3": {},
565 "CreatedByIamUser": {},
566 "CreatedAt": {
567 "type": "timestamp"
568 },
569 "LastUpdatedAt": {
570 "type": "timestamp"
571 },
572 "Name": {},
573 "Status": {},
574 "PerformanceMetrics": {
575 "shape": "S2q"
576 },
577 "Message": {},
578 "ComputeTime": {
579 "type": "long"
580 },
581 "FinishedAt": {
582 "type": "timestamp"
583 },
584 "StartedAt": {
585 "type": "timestamp"
586 }
587 }
588 }
589 },
590 "NextToken": {}
591 }
592 }
593 },
594 "DescribeMLModels": {
595 "input": {
596 "type": "structure",
597 "members": {
598 "FilterVariable": {},
599 "EQ": {},
600 "GT": {},
601 "LT": {},
602 "GE": {},
603 "LE": {},
604 "NE": {},
605 "Prefix": {},
606 "SortOrder": {},
607 "NextToken": {},
608 "Limit": {
609 "type": "integer"
610 }
611 }
612 },
613 "output": {
614 "type": "structure",
615 "members": {
616 "Results": {
617 "type": "list",
618 "member": {
619 "type": "structure",
620 "members": {
621 "MLModelId": {},
622 "TrainingDataSourceId": {},
623 "CreatedByIamUser": {},
624 "CreatedAt": {
625 "type": "timestamp"
626 },
627 "LastUpdatedAt": {
628 "type": "timestamp"
629 },
630 "Name": {},
631 "Status": {},
632 "SizeInBytes": {
633 "type": "long"
634 },
635 "EndpointInfo": {
636 "shape": "S1j"
637 },
638 "TrainingParameters": {
639 "shape": "S1d"
640 },
641 "InputDataLocationS3": {},
642 "Algorithm": {},
643 "MLModelType": {},
644 "ScoreThreshold": {
645 "type": "float"
646 },
647 "ScoreThresholdLastUpdatedAt": {
648 "type": "timestamp"
649 },
650 "Message": {},
651 "ComputeTime": {
652 "type": "long"
653 },
654 "FinishedAt": {
655 "type": "timestamp"
656 },
657 "StartedAt": {
658 "type": "timestamp"
659 }
660 }
661 }
662 },
663 "NextToken": {}
664 }
665 }
666 },
667 "DescribeTags": {
668 "input": {
669 "type": "structure",
670 "required": [
671 "ResourceId",
672 "ResourceType"
673 ],
674 "members": {
675 "ResourceId": {},
676 "ResourceType": {}
677 }
678 },
679 "output": {
680 "type": "structure",
681 "members": {
682 "ResourceId": {},
683 "ResourceType": {},
684 "Tags": {
685 "shape": "S2"
686 }
687 }
688 }
689 },
690 "GetBatchPrediction": {
691 "input": {
692 "type": "structure",
693 "required": [
694 "BatchPredictionId"
695 ],
696 "members": {
697 "BatchPredictionId": {}
698 }
699 },
700 "output": {
701 "type": "structure",
702 "members": {
703 "BatchPredictionId": {},
704 "MLModelId": {},
705 "BatchPredictionDataSourceId": {},
706 "InputDataLocationS3": {},
707 "CreatedByIamUser": {},
708 "CreatedAt": {
709 "type": "timestamp"
710 },
711 "LastUpdatedAt": {
712 "type": "timestamp"
713 },
714 "Name": {},
715 "Status": {},
716 "OutputUri": {},
717 "LogUri": {},
718 "Message": {},
719 "ComputeTime": {
720 "type": "long"
721 },
722 "FinishedAt": {
723 "type": "timestamp"
724 },
725 "StartedAt": {
726 "type": "timestamp"
727 },
728 "TotalRecordCount": {
729 "type": "long"
730 },
731 "InvalidRecordCount": {
732 "type": "long"
733 }
734 }
735 }
736 },
737 "GetDataSource": {
738 "input": {
739 "type": "structure",
740 "required": [
741 "DataSourceId"
742 ],
743 "members": {
744 "DataSourceId": {},
745 "Verbose": {
746 "type": "boolean"
747 }
748 }
749 },
750 "output": {
751 "type": "structure",
752 "members": {
753 "DataSourceId": {},
754 "DataLocationS3": {},
755 "DataRearrangement": {},
756 "CreatedByIamUser": {},
757 "CreatedAt": {
758 "type": "timestamp"
759 },
760 "LastUpdatedAt": {
761 "type": "timestamp"
762 },
763 "DataSizeInBytes": {
764 "type": "long"
765 },
766 "NumberOfFiles": {
767 "type": "long"
768 },
769 "Name": {},
770 "Status": {},
771 "LogUri": {},
772 "Message": {},
773 "RedshiftMetadata": {
774 "shape": "S2i"
775 },
776 "RDSMetadata": {
777 "shape": "S2j"
778 },
779 "RoleARN": {},
780 "ComputeStatistics": {
781 "type": "boolean"
782 },
783 "ComputeTime": {
784 "type": "long"
785 },
786 "FinishedAt": {
787 "type": "timestamp"
788 },
789 "StartedAt": {
790 "type": "timestamp"
791 },
792 "DataSourceSchema": {}
793 }
794 }
795 },
796 "GetEvaluation": {
797 "input": {
798 "type": "structure",
799 "required": [
800 "EvaluationId"
801 ],
802 "members": {
803 "EvaluationId": {}
804 }
805 },
806 "output": {
807 "type": "structure",
808 "members": {
809 "EvaluationId": {},
810 "MLModelId": {},
811 "EvaluationDataSourceId": {},
812 "InputDataLocationS3": {},
813 "CreatedByIamUser": {},
814 "CreatedAt": {
815 "type": "timestamp"
816 },
817 "LastUpdatedAt": {
818 "type": "timestamp"
819 },
820 "Name": {},
821 "Status": {},
822 "PerformanceMetrics": {
823 "shape": "S2q"
824 },
825 "LogUri": {},
826 "Message": {},
827 "ComputeTime": {
828 "type": "long"
829 },
830 "FinishedAt": {
831 "type": "timestamp"
832 },
833 "StartedAt": {
834 "type": "timestamp"
835 }
836 }
837 }
838 },
839 "GetMLModel": {
840 "input": {
841 "type": "structure",
842 "required": [
843 "MLModelId"
844 ],
845 "members": {
846 "MLModelId": {},
847 "Verbose": {
848 "type": "boolean"
849 }
850 }
851 },
852 "output": {
853 "type": "structure",
854 "members": {
855 "MLModelId": {},
856 "TrainingDataSourceId": {},
857 "CreatedByIamUser": {},
858 "CreatedAt": {
859 "type": "timestamp"
860 },
861 "LastUpdatedAt": {
862 "type": "timestamp"
863 },
864 "Name": {},
865 "Status": {},
866 "SizeInBytes": {
867 "type": "long"
868 },
869 "EndpointInfo": {
870 "shape": "S1j"
871 },
872 "TrainingParameters": {
873 "shape": "S1d"
874 },
875 "InputDataLocationS3": {},
876 "MLModelType": {},
877 "ScoreThreshold": {
878 "type": "float"
879 },
880 "ScoreThresholdLastUpdatedAt": {
881 "type": "timestamp"
882 },
883 "LogUri": {},
884 "Message": {},
885 "ComputeTime": {
886 "type": "long"
887 },
888 "FinishedAt": {
889 "type": "timestamp"
890 },
891 "StartedAt": {
892 "type": "timestamp"
893 },
894 "Recipe": {},
895 "Schema": {}
896 }
897 }
898 },
899 "Predict": {
900 "input": {
901 "type": "structure",
902 "required": [
903 "MLModelId",
904 "Record",
905 "PredictEndpoint"
906 ],
907 "members": {
908 "MLModelId": {},
909 "Record": {
910 "type": "map",
911 "key": {},
912 "value": {}
913 },
914 "PredictEndpoint": {}
915 }
916 },
917 "output": {
918 "type": "structure",
919 "members": {
920 "Prediction": {
921 "type": "structure",
922 "members": {
923 "predictedLabel": {},
924 "predictedValue": {
925 "type": "float"
926 },
927 "predictedScores": {
928 "type": "map",
929 "key": {},
930 "value": {
931 "type": "float"
932 }
933 },
934 "details": {
935 "type": "map",
936 "key": {},
937 "value": {}
938 }
939 }
940 }
941 }
942 }
943 },
944 "UpdateBatchPrediction": {
945 "input": {
946 "type": "structure",
947 "required": [
948 "BatchPredictionId",
949 "BatchPredictionName"
950 ],
951 "members": {
952 "BatchPredictionId": {},
953 "BatchPredictionName": {}
954 }
955 },
956 "output": {
957 "type": "structure",
958 "members": {
959 "BatchPredictionId": {}
960 }
961 }
962 },
963 "UpdateDataSource": {
964 "input": {
965 "type": "structure",
966 "required": [
967 "DataSourceId",
968 "DataSourceName"
969 ],
970 "members": {
971 "DataSourceId": {},
972 "DataSourceName": {}
973 }
974 },
975 "output": {
976 "type": "structure",
977 "members": {
978 "DataSourceId": {}
979 }
980 }
981 },
982 "UpdateEvaluation": {
983 "input": {
984 "type": "structure",
985 "required": [
986 "EvaluationId",
987 "EvaluationName"
988 ],
989 "members": {
990 "EvaluationId": {},
991 "EvaluationName": {}
992 }
993 },
994 "output": {
995 "type": "structure",
996 "members": {
997 "EvaluationId": {}
998 }
999 }
1000 },
1001 "UpdateMLModel": {
1002 "input": {
1003 "type": "structure",
1004 "required": [
1005 "MLModelId"
1006 ],
1007 "members": {
1008 "MLModelId": {},
1009 "MLModelName": {},
1010 "ScoreThreshold": {
1011 "type": "float"
1012 }
1013 }
1014 },
1015 "output": {
1016 "type": "structure",
1017 "members": {
1018 "MLModelId": {}
1019 }
1020 }
1021 }
1022 },
1023 "shapes": {
1024 "S2": {
1025 "type": "list",
1026 "member": {
1027 "type": "structure",
1028 "members": {
1029 "Key": {},
1030 "Value": {}
1031 }
1032 }
1033 },
1034 "Sf": {
1035 "type": "structure",
1036 "required": [
1037 "InstanceIdentifier",
1038 "DatabaseName"
1039 ],
1040 "members": {
1041 "InstanceIdentifier": {},
1042 "DatabaseName": {}
1043 }
1044 },
1045 "Sy": {
1046 "type": "structure",
1047 "required": [
1048 "DatabaseName",
1049 "ClusterIdentifier"
1050 ],
1051 "members": {
1052 "DatabaseName": {},
1053 "ClusterIdentifier": {}
1054 }
1055 },
1056 "S1d": {
1057 "type": "map",
1058 "key": {},
1059 "value": {}
1060 },
1061 "S1j": {
1062 "type": "structure",
1063 "members": {
1064 "PeakRequestsPerSecond": {
1065 "type": "integer"
1066 },
1067 "CreatedAt": {
1068 "type": "timestamp"
1069 },
1070 "EndpointUrl": {},
1071 "EndpointStatus": {}
1072 }
1073 },
1074 "S2i": {
1075 "type": "structure",
1076 "members": {
1077 "RedshiftDatabase": {
1078 "shape": "Sy"
1079 },
1080 "DatabaseUserName": {},
1081 "SelectSqlQuery": {}
1082 }
1083 },
1084 "S2j": {
1085 "type": "structure",
1086 "members": {
1087 "Database": {
1088 "shape": "Sf"
1089 },
1090 "DatabaseUserName": {},
1091 "SelectSqlQuery": {},
1092 "ResourceRole": {},
1093 "ServiceRole": {},
1094 "DataPipelineId": {}
1095 }
1096 },
1097 "S2q": {
1098 "type": "structure",
1099 "members": {
1100 "Properties": {
1101 "type": "map",
1102 "key": {},
1103 "value": {}
1104 }
1105 }
1106 }
1107 },
1108 "examples": {}
1109}
\No newline at end of file