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