UNPKG

22.5 kBJSONView Raw
1{
2 "version": "2.0",
3 "metadata": {
4 "apiVersion": "2015-03-31",
5 "endpointPrefix": "lambda",
6 "protocol": "rest-json",
7 "serviceFullName": "AWS Lambda",
8 "signatureVersion": "v4",
9 "uid": "lambda-2015-03-31"
10 },
11 "operations": {
12 "AddPermission": {
13 "http": {
14 "requestUri": "/2015-03-31/functions/{FunctionName}/policy",
15 "responseCode": 201
16 },
17 "input": {
18 "type": "structure",
19 "required": [
20 "FunctionName",
21 "StatementId",
22 "Action",
23 "Principal"
24 ],
25 "members": {
26 "FunctionName": {
27 "location": "uri",
28 "locationName": "FunctionName"
29 },
30 "StatementId": {},
31 "Action": {},
32 "Principal": {},
33 "SourceArn": {},
34 "SourceAccount": {},
35 "EventSourceToken": {},
36 "Qualifier": {
37 "location": "querystring",
38 "locationName": "Qualifier"
39 }
40 }
41 },
42 "output": {
43 "type": "structure",
44 "members": {
45 "Statement": {}
46 }
47 }
48 },
49 "CreateAlias": {
50 "http": {
51 "requestUri": "/2015-03-31/functions/{FunctionName}/aliases",
52 "responseCode": 201
53 },
54 "input": {
55 "type": "structure",
56 "required": [
57 "FunctionName",
58 "Name",
59 "FunctionVersion"
60 ],
61 "members": {
62 "FunctionName": {
63 "location": "uri",
64 "locationName": "FunctionName"
65 },
66 "Name": {},
67 "FunctionVersion": {},
68 "Description": {}
69 }
70 },
71 "output": {
72 "shape": "Sg"
73 }
74 },
75 "CreateEventSourceMapping": {
76 "http": {
77 "requestUri": "/2015-03-31/event-source-mappings/",
78 "responseCode": 202
79 },
80 "input": {
81 "type": "structure",
82 "required": [
83 "EventSourceArn",
84 "FunctionName",
85 "StartingPosition"
86 ],
87 "members": {
88 "EventSourceArn": {},
89 "FunctionName": {},
90 "Enabled": {
91 "type": "boolean"
92 },
93 "BatchSize": {
94 "type": "integer"
95 },
96 "StartingPosition": {},
97 "StartingPositionTimestamp": {
98 "type": "timestamp"
99 }
100 }
101 },
102 "output": {
103 "shape": "Sn"
104 }
105 },
106 "CreateFunction": {
107 "http": {
108 "requestUri": "/2015-03-31/functions",
109 "responseCode": 201
110 },
111 "input": {
112 "type": "structure",
113 "required": [
114 "FunctionName",
115 "Runtime",
116 "Role",
117 "Handler",
118 "Code"
119 ],
120 "members": {
121 "FunctionName": {},
122 "Runtime": {},
123 "Role": {},
124 "Handler": {},
125 "Code": {
126 "type": "structure",
127 "members": {
128 "ZipFile": {
129 "shape": "St"
130 },
131 "S3Bucket": {},
132 "S3Key": {},
133 "S3ObjectVersion": {}
134 }
135 },
136 "Description": {},
137 "Timeout": {
138 "type": "integer"
139 },
140 "MemorySize": {
141 "type": "integer"
142 },
143 "Publish": {
144 "type": "boolean"
145 },
146 "VpcConfig": {
147 "shape": "S10"
148 },
149 "DeadLetterConfig": {
150 "shape": "S15"
151 },
152 "Environment": {
153 "shape": "S17"
154 },
155 "KMSKeyArn": {}
156 }
157 },
158 "output": {
159 "shape": "S1c"
160 }
161 },
162 "DeleteAlias": {
163 "http": {
164 "method": "DELETE",
165 "requestUri": "/2015-03-31/functions/{FunctionName}/aliases/{Name}",
166 "responseCode": 204
167 },
168 "input": {
169 "type": "structure",
170 "required": [
171 "FunctionName",
172 "Name"
173 ],
174 "members": {
175 "FunctionName": {
176 "location": "uri",
177 "locationName": "FunctionName"
178 },
179 "Name": {
180 "location": "uri",
181 "locationName": "Name"
182 }
183 }
184 }
185 },
186 "DeleteEventSourceMapping": {
187 "http": {
188 "method": "DELETE",
189 "requestUri": "/2015-03-31/event-source-mappings/{UUID}",
190 "responseCode": 202
191 },
192 "input": {
193 "type": "structure",
194 "required": [
195 "UUID"
196 ],
197 "members": {
198 "UUID": {
199 "location": "uri",
200 "locationName": "UUID"
201 }
202 }
203 },
204 "output": {
205 "shape": "Sn"
206 }
207 },
208 "DeleteFunction": {
209 "http": {
210 "method": "DELETE",
211 "requestUri": "/2015-03-31/functions/{FunctionName}",
212 "responseCode": 204
213 },
214 "input": {
215 "type": "structure",
216 "required": [
217 "FunctionName"
218 ],
219 "members": {
220 "FunctionName": {
221 "location": "uri",
222 "locationName": "FunctionName"
223 },
224 "Qualifier": {
225 "location": "querystring",
226 "locationName": "Qualifier"
227 }
228 }
229 }
230 },
231 "GetAccountSettings": {
232 "http": {
233 "method": "GET",
234 "requestUri": "/2016-08-19/account-settings/",
235 "responseCode": 200
236 },
237 "input": {
238 "type": "structure",
239 "members": {}
240 },
241 "output": {
242 "type": "structure",
243 "members": {
244 "AccountLimit": {
245 "type": "structure",
246 "members": {
247 "TotalCodeSize": {
248 "type": "long"
249 },
250 "CodeSizeUnzipped": {
251 "type": "long"
252 },
253 "CodeSizeZipped": {
254 "type": "long"
255 },
256 "ConcurrentExecutions": {
257 "type": "integer"
258 }
259 }
260 },
261 "AccountUsage": {
262 "type": "structure",
263 "members": {
264 "TotalCodeSize": {
265 "type": "long"
266 },
267 "FunctionCount": {
268 "type": "long"
269 }
270 }
271 }
272 }
273 }
274 },
275 "GetAlias": {
276 "http": {
277 "method": "GET",
278 "requestUri": "/2015-03-31/functions/{FunctionName}/aliases/{Name}",
279 "responseCode": 200
280 },
281 "input": {
282 "type": "structure",
283 "required": [
284 "FunctionName",
285 "Name"
286 ],
287 "members": {
288 "FunctionName": {
289 "location": "uri",
290 "locationName": "FunctionName"
291 },
292 "Name": {
293 "location": "uri",
294 "locationName": "Name"
295 }
296 }
297 },
298 "output": {
299 "shape": "Sg"
300 }
301 },
302 "GetEventSourceMapping": {
303 "http": {
304 "method": "GET",
305 "requestUri": "/2015-03-31/event-source-mappings/{UUID}",
306 "responseCode": 200
307 },
308 "input": {
309 "type": "structure",
310 "required": [
311 "UUID"
312 ],
313 "members": {
314 "UUID": {
315 "location": "uri",
316 "locationName": "UUID"
317 }
318 }
319 },
320 "output": {
321 "shape": "Sn"
322 }
323 },
324 "GetFunction": {
325 "http": {
326 "method": "GET",
327 "requestUri": "/2015-03-31/functions/{FunctionName}",
328 "responseCode": 200
329 },
330 "input": {
331 "type": "structure",
332 "required": [
333 "FunctionName"
334 ],
335 "members": {
336 "FunctionName": {
337 "location": "uri",
338 "locationName": "FunctionName"
339 },
340 "Qualifier": {
341 "location": "querystring",
342 "locationName": "Qualifier"
343 }
344 }
345 },
346 "output": {
347 "type": "structure",
348 "members": {
349 "Configuration": {
350 "shape": "S1c"
351 },
352 "Code": {
353 "type": "structure",
354 "members": {
355 "RepositoryType": {},
356 "Location": {}
357 }
358 }
359 }
360 }
361 },
362 "GetFunctionConfiguration": {
363 "http": {
364 "method": "GET",
365 "requestUri": "/2015-03-31/functions/{FunctionName}/configuration",
366 "responseCode": 200
367 },
368 "input": {
369 "type": "structure",
370 "required": [
371 "FunctionName"
372 ],
373 "members": {
374 "FunctionName": {
375 "location": "uri",
376 "locationName": "FunctionName"
377 },
378 "Qualifier": {
379 "location": "querystring",
380 "locationName": "Qualifier"
381 }
382 }
383 },
384 "output": {
385 "shape": "S1c"
386 }
387 },
388 "GetPolicy": {
389 "http": {
390 "method": "GET",
391 "requestUri": "/2015-03-31/functions/{FunctionName}/policy",
392 "responseCode": 200
393 },
394 "input": {
395 "type": "structure",
396 "required": [
397 "FunctionName"
398 ],
399 "members": {
400 "FunctionName": {
401 "location": "uri",
402 "locationName": "FunctionName"
403 },
404 "Qualifier": {
405 "location": "querystring",
406 "locationName": "Qualifier"
407 }
408 }
409 },
410 "output": {
411 "type": "structure",
412 "members": {
413 "Policy": {}
414 }
415 }
416 },
417 "Invoke": {
418 "http": {
419 "requestUri": "/2015-03-31/functions/{FunctionName}/invocations"
420 },
421 "input": {
422 "type": "structure",
423 "required": [
424 "FunctionName"
425 ],
426 "members": {
427 "FunctionName": {
428 "location": "uri",
429 "locationName": "FunctionName"
430 },
431 "InvocationType": {
432 "location": "header",
433 "locationName": "X-Amz-Invocation-Type"
434 },
435 "LogType": {
436 "location": "header",
437 "locationName": "X-Amz-Log-Type"
438 },
439 "ClientContext": {
440 "location": "header",
441 "locationName": "X-Amz-Client-Context"
442 },
443 "Payload": {
444 "shape": "St"
445 },
446 "Qualifier": {
447 "location": "querystring",
448 "locationName": "Qualifier"
449 }
450 },
451 "payload": "Payload"
452 },
453 "output": {
454 "type": "structure",
455 "members": {
456 "StatusCode": {
457 "location": "statusCode",
458 "type": "integer"
459 },
460 "FunctionError": {
461 "location": "header",
462 "locationName": "X-Amz-Function-Error"
463 },
464 "LogResult": {
465 "location": "header",
466 "locationName": "X-Amz-Log-Result"
467 },
468 "Payload": {
469 "shape": "St"
470 }
471 },
472 "payload": "Payload"
473 }
474 },
475 "InvokeAsync": {
476 "http": {
477 "requestUri": "/2014-11-13/functions/{FunctionName}/invoke-async/",
478 "responseCode": 202
479 },
480 "input": {
481 "type": "structure",
482 "required": [
483 "FunctionName",
484 "InvokeArgs"
485 ],
486 "members": {
487 "FunctionName": {
488 "location": "uri",
489 "locationName": "FunctionName"
490 },
491 "InvokeArgs": {
492 "type": "blob",
493 "streaming": true
494 }
495 },
496 "deprecated": true,
497 "payload": "InvokeArgs"
498 },
499 "output": {
500 "type": "structure",
501 "members": {
502 "Status": {
503 "location": "statusCode",
504 "type": "integer"
505 }
506 },
507 "deprecated": true
508 },
509 "deprecated": true
510 },
511 "ListAliases": {
512 "http": {
513 "method": "GET",
514 "requestUri": "/2015-03-31/functions/{FunctionName}/aliases",
515 "responseCode": 200
516 },
517 "input": {
518 "type": "structure",
519 "required": [
520 "FunctionName"
521 ],
522 "members": {
523 "FunctionName": {
524 "location": "uri",
525 "locationName": "FunctionName"
526 },
527 "FunctionVersion": {
528 "location": "querystring",
529 "locationName": "FunctionVersion"
530 },
531 "Marker": {
532 "location": "querystring",
533 "locationName": "Marker"
534 },
535 "MaxItems": {
536 "location": "querystring",
537 "locationName": "MaxItems",
538 "type": "integer"
539 }
540 }
541 },
542 "output": {
543 "type": "structure",
544 "members": {
545 "NextMarker": {},
546 "Aliases": {
547 "type": "list",
548 "member": {
549 "shape": "Sg"
550 }
551 }
552 }
553 }
554 },
555 "ListEventSourceMappings": {
556 "http": {
557 "method": "GET",
558 "requestUri": "/2015-03-31/event-source-mappings/",
559 "responseCode": 200
560 },
561 "input": {
562 "type": "structure",
563 "members": {
564 "EventSourceArn": {
565 "location": "querystring",
566 "locationName": "EventSourceArn"
567 },
568 "FunctionName": {
569 "location": "querystring",
570 "locationName": "FunctionName"
571 },
572 "Marker": {
573 "location": "querystring",
574 "locationName": "Marker"
575 },
576 "MaxItems": {
577 "location": "querystring",
578 "locationName": "MaxItems",
579 "type": "integer"
580 }
581 }
582 },
583 "output": {
584 "type": "structure",
585 "members": {
586 "NextMarker": {},
587 "EventSourceMappings": {
588 "type": "list",
589 "member": {
590 "shape": "Sn"
591 }
592 }
593 }
594 }
595 },
596 "ListFunctions": {
597 "http": {
598 "method": "GET",
599 "requestUri": "/2015-03-31/functions/",
600 "responseCode": 200
601 },
602 "input": {
603 "type": "structure",
604 "members": {
605 "Marker": {
606 "location": "querystring",
607 "locationName": "Marker"
608 },
609 "MaxItems": {
610 "location": "querystring",
611 "locationName": "MaxItems",
612 "type": "integer"
613 }
614 }
615 },
616 "output": {
617 "type": "structure",
618 "members": {
619 "NextMarker": {},
620 "Functions": {
621 "shape": "S2h"
622 }
623 }
624 }
625 },
626 "ListVersionsByFunction": {
627 "http": {
628 "method": "GET",
629 "requestUri": "/2015-03-31/functions/{FunctionName}/versions",
630 "responseCode": 200
631 },
632 "input": {
633 "type": "structure",
634 "required": [
635 "FunctionName"
636 ],
637 "members": {
638 "FunctionName": {
639 "location": "uri",
640 "locationName": "FunctionName"
641 },
642 "Marker": {
643 "location": "querystring",
644 "locationName": "Marker"
645 },
646 "MaxItems": {
647 "location": "querystring",
648 "locationName": "MaxItems",
649 "type": "integer"
650 }
651 }
652 },
653 "output": {
654 "type": "structure",
655 "members": {
656 "NextMarker": {},
657 "Versions": {
658 "shape": "S2h"
659 }
660 }
661 }
662 },
663 "PublishVersion": {
664 "http": {
665 "requestUri": "/2015-03-31/functions/{FunctionName}/versions",
666 "responseCode": 201
667 },
668 "input": {
669 "type": "structure",
670 "required": [
671 "FunctionName"
672 ],
673 "members": {
674 "FunctionName": {
675 "location": "uri",
676 "locationName": "FunctionName"
677 },
678 "CodeSha256": {},
679 "Description": {}
680 }
681 },
682 "output": {
683 "shape": "S1c"
684 }
685 },
686 "RemovePermission": {
687 "http": {
688 "method": "DELETE",
689 "requestUri": "/2015-03-31/functions/{FunctionName}/policy/{StatementId}",
690 "responseCode": 204
691 },
692 "input": {
693 "type": "structure",
694 "required": [
695 "FunctionName",
696 "StatementId"
697 ],
698 "members": {
699 "FunctionName": {
700 "location": "uri",
701 "locationName": "FunctionName"
702 },
703 "StatementId": {
704 "location": "uri",
705 "locationName": "StatementId"
706 },
707 "Qualifier": {
708 "location": "querystring",
709 "locationName": "Qualifier"
710 }
711 }
712 }
713 },
714 "UpdateAlias": {
715 "http": {
716 "method": "PUT",
717 "requestUri": "/2015-03-31/functions/{FunctionName}/aliases/{Name}",
718 "responseCode": 200
719 },
720 "input": {
721 "type": "structure",
722 "required": [
723 "FunctionName",
724 "Name"
725 ],
726 "members": {
727 "FunctionName": {
728 "location": "uri",
729 "locationName": "FunctionName"
730 },
731 "Name": {
732 "location": "uri",
733 "locationName": "Name"
734 },
735 "FunctionVersion": {},
736 "Description": {}
737 }
738 },
739 "output": {
740 "shape": "Sg"
741 }
742 },
743 "UpdateEventSourceMapping": {
744 "http": {
745 "method": "PUT",
746 "requestUri": "/2015-03-31/event-source-mappings/{UUID}",
747 "responseCode": 202
748 },
749 "input": {
750 "type": "structure",
751 "required": [
752 "UUID"
753 ],
754 "members": {
755 "UUID": {
756 "location": "uri",
757 "locationName": "UUID"
758 },
759 "FunctionName": {},
760 "Enabled": {
761 "type": "boolean"
762 },
763 "BatchSize": {
764 "type": "integer"
765 }
766 }
767 },
768 "output": {
769 "shape": "Sn"
770 }
771 },
772 "UpdateFunctionCode": {
773 "http": {
774 "method": "PUT",
775 "requestUri": "/2015-03-31/functions/{FunctionName}/code",
776 "responseCode": 200
777 },
778 "input": {
779 "type": "structure",
780 "required": [
781 "FunctionName"
782 ],
783 "members": {
784 "FunctionName": {
785 "location": "uri",
786 "locationName": "FunctionName"
787 },
788 "ZipFile": {
789 "shape": "St"
790 },
791 "S3Bucket": {},
792 "S3Key": {},
793 "S3ObjectVersion": {},
794 "Publish": {
795 "type": "boolean"
796 }
797 }
798 },
799 "output": {
800 "shape": "S1c"
801 }
802 },
803 "UpdateFunctionConfiguration": {
804 "http": {
805 "method": "PUT",
806 "requestUri": "/2015-03-31/functions/{FunctionName}/configuration",
807 "responseCode": 200
808 },
809 "input": {
810 "type": "structure",
811 "required": [
812 "FunctionName"
813 ],
814 "members": {
815 "FunctionName": {
816 "location": "uri",
817 "locationName": "FunctionName"
818 },
819 "Role": {},
820 "Handler": {},
821 "Description": {},
822 "Timeout": {
823 "type": "integer"
824 },
825 "MemorySize": {
826 "type": "integer"
827 },
828 "VpcConfig": {
829 "shape": "S10"
830 },
831 "Environment": {
832 "shape": "S17"
833 },
834 "Runtime": {},
835 "DeadLetterConfig": {
836 "shape": "S15"
837 },
838 "KMSKeyArn": {}
839 }
840 },
841 "output": {
842 "shape": "S1c"
843 }
844 }
845 },
846 "shapes": {
847 "Sg": {
848 "type": "structure",
849 "members": {
850 "AliasArn": {},
851 "Name": {},
852 "FunctionVersion": {},
853 "Description": {}
854 }
855 },
856 "Sn": {
857 "type": "structure",
858 "members": {
859 "UUID": {},
860 "BatchSize": {
861 "type": "integer"
862 },
863 "EventSourceArn": {},
864 "FunctionArn": {},
865 "LastModified": {
866 "type": "timestamp"
867 },
868 "LastProcessingResult": {},
869 "State": {},
870 "StateTransitionReason": {}
871 }
872 },
873 "St": {
874 "type": "blob",
875 "sensitive": true
876 },
877 "S10": {
878 "type": "structure",
879 "members": {
880 "SubnetIds": {
881 "shape": "S11"
882 },
883 "SecurityGroupIds": {
884 "shape": "S13"
885 }
886 }
887 },
888 "S11": {
889 "type": "list",
890 "member": {}
891 },
892 "S13": {
893 "type": "list",
894 "member": {}
895 },
896 "S15": {
897 "type": "structure",
898 "members": {
899 "TargetArn": {}
900 }
901 },
902 "S17": {
903 "type": "structure",
904 "members": {
905 "Variables": {
906 "shape": "S18"
907 }
908 }
909 },
910 "S18": {
911 "type": "map",
912 "key": {
913 "type": "string",
914 "sensitive": true
915 },
916 "value": {
917 "type": "string",
918 "sensitive": true
919 },
920 "sensitive": true
921 },
922 "S1c": {
923 "type": "structure",
924 "members": {
925 "FunctionName": {},
926 "FunctionArn": {},
927 "Runtime": {},
928 "Role": {},
929 "Handler": {},
930 "CodeSize": {
931 "type": "long"
932 },
933 "Description": {},
934 "Timeout": {
935 "type": "integer"
936 },
937 "MemorySize": {
938 "type": "integer"
939 },
940 "LastModified": {},
941 "CodeSha256": {},
942 "Version": {},
943 "VpcConfig": {
944 "type": "structure",
945 "members": {
946 "SubnetIds": {
947 "shape": "S11"
948 },
949 "SecurityGroupIds": {
950 "shape": "S13"
951 },
952 "VpcId": {}
953 }
954 },
955 "DeadLetterConfig": {
956 "shape": "S15"
957 },
958 "Environment": {
959 "type": "structure",
960 "members": {
961 "Variables": {
962 "shape": "S18"
963 },
964 "Error": {
965 "type": "structure",
966 "members": {
967 "ErrorCode": {},
968 "Message": {
969 "type": "string",
970 "sensitive": true
971 }
972 }
973 }
974 }
975 },
976 "KMSKeyArn": {}
977 }
978 },
979 "S2h": {
980 "type": "list",
981 "member": {
982 "shape": "S1c"
983 }
984 }
985 }
986}
\No newline at end of file