api-2.json 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361
  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. "name":"AddPermission",
  13. "http":{
  14. "method":"POST",
  15. "requestUri":"/2015-03-31/functions/{FunctionName}/policy",
  16. "responseCode":201
  17. },
  18. "input":{"shape":"AddPermissionRequest"},
  19. "output":{"shape":"AddPermissionResponse"},
  20. "errors":[
  21. {"shape":"ServiceException"},
  22. {"shape":"ResourceNotFoundException"},
  23. {"shape":"ResourceConflictException"},
  24. {"shape":"InvalidParameterValueException"},
  25. {"shape":"PolicyLengthExceededException"},
  26. {"shape":"TooManyRequestsException"}
  27. ]
  28. },
  29. "CreateAlias":{
  30. "name":"CreateAlias",
  31. "http":{
  32. "method":"POST",
  33. "requestUri":"/2015-03-31/functions/{FunctionName}/aliases",
  34. "responseCode":201
  35. },
  36. "input":{"shape":"CreateAliasRequest"},
  37. "output":{"shape":"AliasConfiguration"},
  38. "errors":[
  39. {"shape":"ServiceException"},
  40. {"shape":"ResourceNotFoundException"},
  41. {"shape":"ResourceConflictException"},
  42. {"shape":"InvalidParameterValueException"},
  43. {"shape":"TooManyRequestsException"}
  44. ]
  45. },
  46. "CreateEventSourceMapping":{
  47. "name":"CreateEventSourceMapping",
  48. "http":{
  49. "method":"POST",
  50. "requestUri":"/2015-03-31/event-source-mappings/",
  51. "responseCode":202
  52. },
  53. "input":{"shape":"CreateEventSourceMappingRequest"},
  54. "output":{"shape":"EventSourceMappingConfiguration"},
  55. "errors":[
  56. {"shape":"ServiceException"},
  57. {"shape":"InvalidParameterValueException"},
  58. {"shape":"ResourceConflictException"},
  59. {"shape":"TooManyRequestsException"},
  60. {"shape":"ResourceNotFoundException"}
  61. ]
  62. },
  63. "CreateFunction":{
  64. "name":"CreateFunction",
  65. "http":{
  66. "method":"POST",
  67. "requestUri":"/2015-03-31/functions",
  68. "responseCode":201
  69. },
  70. "input":{"shape":"CreateFunctionRequest"},
  71. "output":{"shape":"FunctionConfiguration"},
  72. "errors":[
  73. {"shape":"ServiceException"},
  74. {"shape":"InvalidParameterValueException"},
  75. {"shape":"ResourceNotFoundException"},
  76. {"shape":"ResourceConflictException"},
  77. {"shape":"TooManyRequestsException"},
  78. {"shape":"CodeStorageExceededException"}
  79. ]
  80. },
  81. "DeleteAlias":{
  82. "name":"DeleteAlias",
  83. "http":{
  84. "method":"DELETE",
  85. "requestUri":"/2015-03-31/functions/{FunctionName}/aliases/{Name}",
  86. "responseCode":204
  87. },
  88. "input":{"shape":"DeleteAliasRequest"},
  89. "errors":[
  90. {"shape":"ServiceException"},
  91. {"shape":"InvalidParameterValueException"},
  92. {"shape":"TooManyRequestsException"}
  93. ]
  94. },
  95. "DeleteEventSourceMapping":{
  96. "name":"DeleteEventSourceMapping",
  97. "http":{
  98. "method":"DELETE",
  99. "requestUri":"/2015-03-31/event-source-mappings/{UUID}",
  100. "responseCode":202
  101. },
  102. "input":{"shape":"DeleteEventSourceMappingRequest"},
  103. "output":{"shape":"EventSourceMappingConfiguration"},
  104. "errors":[
  105. {"shape":"ServiceException"},
  106. {"shape":"ResourceNotFoundException"},
  107. {"shape":"InvalidParameterValueException"},
  108. {"shape":"TooManyRequestsException"}
  109. ]
  110. },
  111. "DeleteFunction":{
  112. "name":"DeleteFunction",
  113. "http":{
  114. "method":"DELETE",
  115. "requestUri":"/2015-03-31/functions/{FunctionName}",
  116. "responseCode":204
  117. },
  118. "input":{"shape":"DeleteFunctionRequest"},
  119. "errors":[
  120. {"shape":"ServiceException"},
  121. {"shape":"ResourceNotFoundException"},
  122. {"shape":"TooManyRequestsException"},
  123. {"shape":"InvalidParameterValueException"},
  124. {"shape":"ResourceConflictException"}
  125. ]
  126. },
  127. "GetAlias":{
  128. "name":"GetAlias",
  129. "http":{
  130. "method":"GET",
  131. "requestUri":"/2015-03-31/functions/{FunctionName}/aliases/{Name}",
  132. "responseCode":200
  133. },
  134. "input":{"shape":"GetAliasRequest"},
  135. "output":{"shape":"AliasConfiguration"},
  136. "errors":[
  137. {"shape":"ServiceException"},
  138. {"shape":"ResourceNotFoundException"},
  139. {"shape":"InvalidParameterValueException"},
  140. {"shape":"TooManyRequestsException"}
  141. ]
  142. },
  143. "GetEventSourceMapping":{
  144. "name":"GetEventSourceMapping",
  145. "http":{
  146. "method":"GET",
  147. "requestUri":"/2015-03-31/event-source-mappings/{UUID}",
  148. "responseCode":200
  149. },
  150. "input":{"shape":"GetEventSourceMappingRequest"},
  151. "output":{"shape":"EventSourceMappingConfiguration"},
  152. "errors":[
  153. {"shape":"ServiceException"},
  154. {"shape":"ResourceNotFoundException"},
  155. {"shape":"InvalidParameterValueException"},
  156. {"shape":"TooManyRequestsException"}
  157. ]
  158. },
  159. "GetFunction":{
  160. "name":"GetFunction",
  161. "http":{
  162. "method":"GET",
  163. "requestUri":"/2015-03-31/functions/{FunctionName}",
  164. "responseCode":200
  165. },
  166. "input":{"shape":"GetFunctionRequest"},
  167. "output":{"shape":"GetFunctionResponse"},
  168. "errors":[
  169. {"shape":"ServiceException"},
  170. {"shape":"ResourceNotFoundException"},
  171. {"shape":"TooManyRequestsException"},
  172. {"shape":"InvalidParameterValueException"}
  173. ]
  174. },
  175. "GetFunctionConfiguration":{
  176. "name":"GetFunctionConfiguration",
  177. "http":{
  178. "method":"GET",
  179. "requestUri":"/2015-03-31/functions/{FunctionName}/configuration",
  180. "responseCode":200
  181. },
  182. "input":{"shape":"GetFunctionConfigurationRequest"},
  183. "output":{"shape":"FunctionConfiguration"},
  184. "errors":[
  185. {"shape":"ServiceException"},
  186. {"shape":"ResourceNotFoundException"},
  187. {"shape":"TooManyRequestsException"},
  188. {"shape":"InvalidParameterValueException"}
  189. ]
  190. },
  191. "GetPolicy":{
  192. "name":"GetPolicy",
  193. "http":{
  194. "method":"GET",
  195. "requestUri":"/2015-03-31/functions/{FunctionName}/policy",
  196. "responseCode":200
  197. },
  198. "input":{"shape":"GetPolicyRequest"},
  199. "output":{"shape":"GetPolicyResponse"},
  200. "errors":[
  201. {"shape":"ServiceException"},
  202. {"shape":"ResourceNotFoundException"},
  203. {"shape":"TooManyRequestsException"},
  204. {"shape":"InvalidParameterValueException"}
  205. ]
  206. },
  207. "Invoke":{
  208. "name":"Invoke",
  209. "http":{
  210. "method":"POST",
  211. "requestUri":"/2015-03-31/functions/{FunctionName}/invocations"
  212. },
  213. "input":{"shape":"InvocationRequest"},
  214. "output":{"shape":"InvocationResponse"},
  215. "errors":[
  216. {"shape":"ServiceException"},
  217. {"shape":"ResourceNotFoundException"},
  218. {"shape":"InvalidRequestContentException"},
  219. {"shape":"RequestTooLargeException"},
  220. {"shape":"UnsupportedMediaTypeException"},
  221. {"shape":"TooManyRequestsException"},
  222. {"shape":"InvalidParameterValueException"},
  223. {"shape":"EC2UnexpectedException"},
  224. {"shape":"SubnetIPAddressLimitReachedException"},
  225. {"shape":"ENILimitReachedException"},
  226. {"shape":"EC2ThrottledException"},
  227. {"shape":"EC2AccessDeniedException"},
  228. {"shape":"InvalidSubnetIDException"},
  229. {"shape":"InvalidSecurityGroupIDException"},
  230. {"shape":"InvalidZipFileException"}
  231. ]
  232. },
  233. "InvokeAsync":{
  234. "name":"InvokeAsync",
  235. "http":{
  236. "method":"POST",
  237. "requestUri":"/2014-11-13/functions/{FunctionName}/invoke-async/",
  238. "responseCode":202
  239. },
  240. "input":{"shape":"InvokeAsyncRequest"},
  241. "output":{"shape":"InvokeAsyncResponse"},
  242. "errors":[
  243. {"shape":"ServiceException"},
  244. {"shape":"ResourceNotFoundException"},
  245. {"shape":"InvalidRequestContentException"}
  246. ],
  247. "deprecated":true
  248. },
  249. "ListAliases":{
  250. "name":"ListAliases",
  251. "http":{
  252. "method":"GET",
  253. "requestUri":"/2015-03-31/functions/{FunctionName}/aliases",
  254. "responseCode":200
  255. },
  256. "input":{"shape":"ListAliasesRequest"},
  257. "output":{"shape":"ListAliasesResponse"},
  258. "errors":[
  259. {"shape":"ServiceException"},
  260. {"shape":"ResourceNotFoundException"},
  261. {"shape":"InvalidParameterValueException"},
  262. {"shape":"TooManyRequestsException"}
  263. ]
  264. },
  265. "ListEventSourceMappings":{
  266. "name":"ListEventSourceMappings",
  267. "http":{
  268. "method":"GET",
  269. "requestUri":"/2015-03-31/event-source-mappings/",
  270. "responseCode":200
  271. },
  272. "input":{"shape":"ListEventSourceMappingsRequest"},
  273. "output":{"shape":"ListEventSourceMappingsResponse"},
  274. "errors":[
  275. {"shape":"ServiceException"},
  276. {"shape":"ResourceNotFoundException"},
  277. {"shape":"InvalidParameterValueException"},
  278. {"shape":"TooManyRequestsException"}
  279. ]
  280. },
  281. "ListFunctions":{
  282. "name":"ListFunctions",
  283. "http":{
  284. "method":"GET",
  285. "requestUri":"/2015-03-31/functions/",
  286. "responseCode":200
  287. },
  288. "input":{"shape":"ListFunctionsRequest"},
  289. "output":{"shape":"ListFunctionsResponse"},
  290. "errors":[
  291. {"shape":"ServiceException"},
  292. {"shape":"TooManyRequestsException"}
  293. ]
  294. },
  295. "ListVersionsByFunction":{
  296. "name":"ListVersionsByFunction",
  297. "http":{
  298. "method":"GET",
  299. "requestUri":"/2015-03-31/functions/{FunctionName}/versions",
  300. "responseCode":200
  301. },
  302. "input":{"shape":"ListVersionsByFunctionRequest"},
  303. "output":{"shape":"ListVersionsByFunctionResponse"},
  304. "errors":[
  305. {"shape":"ServiceException"},
  306. {"shape":"ResourceNotFoundException"},
  307. {"shape":"InvalidParameterValueException"},
  308. {"shape":"TooManyRequestsException"}
  309. ]
  310. },
  311. "PublishVersion":{
  312. "name":"PublishVersion",
  313. "http":{
  314. "method":"POST",
  315. "requestUri":"/2015-03-31/functions/{FunctionName}/versions",
  316. "responseCode":201
  317. },
  318. "input":{"shape":"PublishVersionRequest"},
  319. "output":{"shape":"FunctionConfiguration"},
  320. "errors":[
  321. {"shape":"ServiceException"},
  322. {"shape":"ResourceNotFoundException"},
  323. {"shape":"InvalidParameterValueException"},
  324. {"shape":"TooManyRequestsException"},
  325. {"shape":"CodeStorageExceededException"}
  326. ]
  327. },
  328. "RemovePermission":{
  329. "name":"RemovePermission",
  330. "http":{
  331. "method":"DELETE",
  332. "requestUri":"/2015-03-31/functions/{FunctionName}/policy/{StatementId}",
  333. "responseCode":204
  334. },
  335. "input":{"shape":"RemovePermissionRequest"},
  336. "errors":[
  337. {"shape":"ServiceException"},
  338. {"shape":"ResourceNotFoundException"},
  339. {"shape":"InvalidParameterValueException"},
  340. {"shape":"TooManyRequestsException"}
  341. ]
  342. },
  343. "UpdateAlias":{
  344. "name":"UpdateAlias",
  345. "http":{
  346. "method":"PUT",
  347. "requestUri":"/2015-03-31/functions/{FunctionName}/aliases/{Name}",
  348. "responseCode":200
  349. },
  350. "input":{"shape":"UpdateAliasRequest"},
  351. "output":{"shape":"AliasConfiguration"},
  352. "errors":[
  353. {"shape":"ServiceException"},
  354. {"shape":"ResourceNotFoundException"},
  355. {"shape":"InvalidParameterValueException"},
  356. {"shape":"TooManyRequestsException"}
  357. ]
  358. },
  359. "UpdateEventSourceMapping":{
  360. "name":"UpdateEventSourceMapping",
  361. "http":{
  362. "method":"PUT",
  363. "requestUri":"/2015-03-31/event-source-mappings/{UUID}",
  364. "responseCode":202
  365. },
  366. "input":{"shape":"UpdateEventSourceMappingRequest"},
  367. "output":{"shape":"EventSourceMappingConfiguration"},
  368. "errors":[
  369. {"shape":"ServiceException"},
  370. {"shape":"ResourceNotFoundException"},
  371. {"shape":"InvalidParameterValueException"},
  372. {"shape":"TooManyRequestsException"},
  373. {"shape":"ResourceConflictException"}
  374. ]
  375. },
  376. "UpdateFunctionCode":{
  377. "name":"UpdateFunctionCode",
  378. "http":{
  379. "method":"PUT",
  380. "requestUri":"/2015-03-31/functions/{FunctionName}/code",
  381. "responseCode":200
  382. },
  383. "input":{"shape":"UpdateFunctionCodeRequest"},
  384. "output":{"shape":"FunctionConfiguration"},
  385. "errors":[
  386. {"shape":"ServiceException"},
  387. {"shape":"ResourceNotFoundException"},
  388. {"shape":"InvalidParameterValueException"},
  389. {"shape":"TooManyRequestsException"},
  390. {"shape":"CodeStorageExceededException"}
  391. ]
  392. },
  393. "UpdateFunctionConfiguration":{
  394. "name":"UpdateFunctionConfiguration",
  395. "http":{
  396. "method":"PUT",
  397. "requestUri":"/2015-03-31/functions/{FunctionName}/configuration",
  398. "responseCode":200
  399. },
  400. "input":{"shape":"UpdateFunctionConfigurationRequest"},
  401. "output":{"shape":"FunctionConfiguration"},
  402. "errors":[
  403. {"shape":"ServiceException"},
  404. {"shape":"ResourceNotFoundException"},
  405. {"shape":"InvalidParameterValueException"},
  406. {"shape":"TooManyRequestsException"}
  407. ]
  408. }
  409. },
  410. "shapes":{
  411. "Action":{
  412. "type":"string",
  413. "pattern":"(lambda:[*]|lambda:[a-zA-Z]+|[*])"
  414. },
  415. "AddPermissionRequest":{
  416. "type":"structure",
  417. "required":[
  418. "FunctionName",
  419. "StatementId",
  420. "Action",
  421. "Principal"
  422. ],
  423. "members":{
  424. "FunctionName":{
  425. "shape":"FunctionName",
  426. "location":"uri",
  427. "locationName":"FunctionName"
  428. },
  429. "StatementId":{"shape":"StatementId"},
  430. "Action":{"shape":"Action"},
  431. "Principal":{"shape":"Principal"},
  432. "SourceArn":{"shape":"Arn"},
  433. "SourceAccount":{"shape":"SourceOwner"},
  434. "EventSourceToken":{"shape":"EventSourceToken"},
  435. "Qualifier":{
  436. "shape":"Qualifier",
  437. "location":"querystring",
  438. "locationName":"Qualifier"
  439. }
  440. }
  441. },
  442. "AddPermissionResponse":{
  443. "type":"structure",
  444. "members":{
  445. "Statement":{"shape":"String"}
  446. }
  447. },
  448. "Alias":{
  449. "type":"string",
  450. "max":128,
  451. "min":1,
  452. "pattern":"(?!^[0-9]+$)([a-zA-Z0-9-_]+)"
  453. },
  454. "AliasConfiguration":{
  455. "type":"structure",
  456. "members":{
  457. "AliasArn":{"shape":"FunctionArn"},
  458. "Name":{"shape":"Alias"},
  459. "FunctionVersion":{"shape":"Version"},
  460. "Description":{"shape":"Description"}
  461. }
  462. },
  463. "AliasList":{
  464. "type":"list",
  465. "member":{"shape":"AliasConfiguration"}
  466. },
  467. "Arn":{
  468. "type":"string",
  469. "pattern":"arn:aws:([a-zA-Z0-9\\-])+:([a-z]{2}-[a-z]+-\\d{1})?:(\\d{12})?:(.*)"
  470. },
  471. "BatchSize":{
  472. "type":"integer",
  473. "max":10000,
  474. "min":1
  475. },
  476. "Blob":{"type":"blob"},
  477. "BlobStream":{
  478. "type":"blob",
  479. "streaming":true
  480. },
  481. "Boolean":{"type":"boolean"},
  482. "CodeStorageExceededException":{
  483. "type":"structure",
  484. "members":{
  485. "Type":{"shape":"String"},
  486. "message":{"shape":"String"}
  487. },
  488. "error":{"httpStatusCode":400},
  489. "exception":true
  490. },
  491. "CreateAliasRequest":{
  492. "type":"structure",
  493. "required":[
  494. "FunctionName",
  495. "Name",
  496. "FunctionVersion"
  497. ],
  498. "members":{
  499. "FunctionName":{
  500. "shape":"FunctionName",
  501. "location":"uri",
  502. "locationName":"FunctionName"
  503. },
  504. "Name":{"shape":"Alias"},
  505. "FunctionVersion":{"shape":"Version"},
  506. "Description":{"shape":"Description"}
  507. }
  508. },
  509. "CreateEventSourceMappingRequest":{
  510. "type":"structure",
  511. "required":[
  512. "EventSourceArn",
  513. "FunctionName",
  514. "StartingPosition"
  515. ],
  516. "members":{
  517. "EventSourceArn":{"shape":"Arn"},
  518. "FunctionName":{"shape":"FunctionName"},
  519. "Enabled":{"shape":"Enabled"},
  520. "BatchSize":{"shape":"BatchSize"},
  521. "StartingPosition":{"shape":"EventSourcePosition"}
  522. }
  523. },
  524. "CreateFunctionRequest":{
  525. "type":"structure",
  526. "required":[
  527. "FunctionName",
  528. "Runtime",
  529. "Role",
  530. "Handler",
  531. "Code"
  532. ],
  533. "members":{
  534. "FunctionName":{"shape":"FunctionName"},
  535. "Runtime":{"shape":"Runtime"},
  536. "Role":{"shape":"RoleArn"},
  537. "Handler":{"shape":"Handler"},
  538. "Code":{"shape":"FunctionCode"},
  539. "Description":{"shape":"Description"},
  540. "Timeout":{"shape":"Timeout"},
  541. "MemorySize":{"shape":"MemorySize"},
  542. "Publish":{"shape":"Boolean"},
  543. "VpcConfig":{"shape":"VpcConfig"}
  544. }
  545. },
  546. "Date":{"type":"timestamp"},
  547. "DeleteAliasRequest":{
  548. "type":"structure",
  549. "required":[
  550. "FunctionName",
  551. "Name"
  552. ],
  553. "members":{
  554. "FunctionName":{
  555. "shape":"FunctionName",
  556. "location":"uri",
  557. "locationName":"FunctionName"
  558. },
  559. "Name":{
  560. "shape":"Alias",
  561. "location":"uri",
  562. "locationName":"Name"
  563. }
  564. }
  565. },
  566. "DeleteEventSourceMappingRequest":{
  567. "type":"structure",
  568. "required":["UUID"],
  569. "members":{
  570. "UUID":{
  571. "shape":"String",
  572. "location":"uri",
  573. "locationName":"UUID"
  574. }
  575. }
  576. },
  577. "DeleteFunctionRequest":{
  578. "type":"structure",
  579. "required":["FunctionName"],
  580. "members":{
  581. "FunctionName":{
  582. "shape":"FunctionName",
  583. "location":"uri",
  584. "locationName":"FunctionName"
  585. },
  586. "Qualifier":{
  587. "shape":"Qualifier",
  588. "location":"querystring",
  589. "locationName":"Qualifier"
  590. }
  591. }
  592. },
  593. "Description":{
  594. "type":"string",
  595. "max":256,
  596. "min":0
  597. },
  598. "EC2AccessDeniedException":{
  599. "type":"structure",
  600. "members":{
  601. "Type":{"shape":"String"},
  602. "Message":{"shape":"String"}
  603. },
  604. "error":{"httpStatusCode":502},
  605. "exception":true
  606. },
  607. "EC2ThrottledException":{
  608. "type":"structure",
  609. "members":{
  610. "Type":{"shape":"String"},
  611. "Message":{"shape":"String"}
  612. },
  613. "error":{"httpStatusCode":502},
  614. "exception":true
  615. },
  616. "EC2UnexpectedException":{
  617. "type":"structure",
  618. "members":{
  619. "Type":{"shape":"String"},
  620. "Message":{"shape":"String"},
  621. "EC2ErrorCode":{"shape":"String"}
  622. },
  623. "error":{"httpStatusCode":502},
  624. "exception":true
  625. },
  626. "ENILimitReachedException":{
  627. "type":"structure",
  628. "members":{
  629. "Type":{"shape":"String"},
  630. "Message":{"shape":"String"}
  631. },
  632. "error":{"httpStatusCode":502},
  633. "exception":true
  634. },
  635. "Enabled":{"type":"boolean"},
  636. "EventSourceMappingConfiguration":{
  637. "type":"structure",
  638. "members":{
  639. "UUID":{"shape":"String"},
  640. "BatchSize":{"shape":"BatchSize"},
  641. "EventSourceArn":{"shape":"Arn"},
  642. "FunctionArn":{"shape":"FunctionArn"},
  643. "LastModified":{"shape":"Date"},
  644. "LastProcessingResult":{"shape":"String"},
  645. "State":{"shape":"String"},
  646. "StateTransitionReason":{"shape":"String"}
  647. }
  648. },
  649. "EventSourceMappingsList":{
  650. "type":"list",
  651. "member":{"shape":"EventSourceMappingConfiguration"}
  652. },
  653. "EventSourcePosition":{
  654. "type":"string",
  655. "enum":[
  656. "TRIM_HORIZON",
  657. "LATEST"
  658. ]
  659. },
  660. "EventSourceToken":{
  661. "type":"string",
  662. "max":256,
  663. "min":0,
  664. "pattern":"[a-zA-Z0-9._\\-]+"
  665. },
  666. "FunctionArn":{
  667. "type":"string",
  668. "pattern":"arn:aws:lambda:[a-z]{2}-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?"
  669. },
  670. "FunctionCode":{
  671. "type":"structure",
  672. "members":{
  673. "ZipFile":{"shape":"Blob"},
  674. "S3Bucket":{"shape":"S3Bucket"},
  675. "S3Key":{"shape":"S3Key"},
  676. "S3ObjectVersion":{"shape":"S3ObjectVersion"}
  677. }
  678. },
  679. "FunctionCodeLocation":{
  680. "type":"structure",
  681. "members":{
  682. "RepositoryType":{"shape":"String"},
  683. "Location":{"shape":"String"}
  684. }
  685. },
  686. "FunctionConfiguration":{
  687. "type":"structure",
  688. "members":{
  689. "FunctionName":{"shape":"FunctionName"},
  690. "FunctionArn":{"shape":"FunctionArn"},
  691. "Runtime":{"shape":"Runtime"},
  692. "Role":{"shape":"RoleArn"},
  693. "Handler":{"shape":"Handler"},
  694. "CodeSize":{"shape":"Long"},
  695. "Description":{"shape":"Description"},
  696. "Timeout":{"shape":"Timeout"},
  697. "MemorySize":{"shape":"MemorySize"},
  698. "LastModified":{"shape":"Timestamp"},
  699. "CodeSha256":{"shape":"String"},
  700. "Version":{"shape":"Version"},
  701. "VpcConfig":{"shape":"VpcConfigResponse"}
  702. }
  703. },
  704. "FunctionList":{
  705. "type":"list",
  706. "member":{"shape":"FunctionConfiguration"}
  707. },
  708. "FunctionName":{
  709. "type":"string",
  710. "max":140,
  711. "min":1,
  712. "pattern":"(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?"
  713. },
  714. "GetAliasRequest":{
  715. "type":"structure",
  716. "required":[
  717. "FunctionName",
  718. "Name"
  719. ],
  720. "members":{
  721. "FunctionName":{
  722. "shape":"FunctionName",
  723. "location":"uri",
  724. "locationName":"FunctionName"
  725. },
  726. "Name":{
  727. "shape":"Alias",
  728. "location":"uri",
  729. "locationName":"Name"
  730. }
  731. }
  732. },
  733. "GetEventSourceMappingRequest":{
  734. "type":"structure",
  735. "required":["UUID"],
  736. "members":{
  737. "UUID":{
  738. "shape":"String",
  739. "location":"uri",
  740. "locationName":"UUID"
  741. }
  742. }
  743. },
  744. "GetFunctionConfigurationRequest":{
  745. "type":"structure",
  746. "required":["FunctionName"],
  747. "members":{
  748. "FunctionName":{
  749. "shape":"FunctionName",
  750. "location":"uri",
  751. "locationName":"FunctionName"
  752. },
  753. "Qualifier":{
  754. "shape":"Qualifier",
  755. "location":"querystring",
  756. "locationName":"Qualifier"
  757. }
  758. }
  759. },
  760. "GetFunctionRequest":{
  761. "type":"structure",
  762. "required":["FunctionName"],
  763. "members":{
  764. "FunctionName":{
  765. "shape":"FunctionName",
  766. "location":"uri",
  767. "locationName":"FunctionName"
  768. },
  769. "Qualifier":{
  770. "shape":"Qualifier",
  771. "location":"querystring",
  772. "locationName":"Qualifier"
  773. }
  774. }
  775. },
  776. "GetFunctionResponse":{
  777. "type":"structure",
  778. "members":{
  779. "Configuration":{"shape":"FunctionConfiguration"},
  780. "Code":{"shape":"FunctionCodeLocation"}
  781. }
  782. },
  783. "GetPolicyRequest":{
  784. "type":"structure",
  785. "required":["FunctionName"],
  786. "members":{
  787. "FunctionName":{
  788. "shape":"FunctionName",
  789. "location":"uri",
  790. "locationName":"FunctionName"
  791. },
  792. "Qualifier":{
  793. "shape":"Qualifier",
  794. "location":"querystring",
  795. "locationName":"Qualifier"
  796. }
  797. }
  798. },
  799. "GetPolicyResponse":{
  800. "type":"structure",
  801. "members":{
  802. "Policy":{"shape":"String"}
  803. }
  804. },
  805. "Handler":{
  806. "type":"string",
  807. "max":128,
  808. "pattern":"[^\\s]+"
  809. },
  810. "HttpStatus":{"type":"integer"},
  811. "Integer":{"type":"integer"},
  812. "InvalidParameterValueException":{
  813. "type":"structure",
  814. "members":{
  815. "Type":{"shape":"String"},
  816. "message":{"shape":"String"}
  817. },
  818. "error":{"httpStatusCode":400},
  819. "exception":true
  820. },
  821. "InvalidRequestContentException":{
  822. "type":"structure",
  823. "members":{
  824. "Type":{"shape":"String"},
  825. "message":{"shape":"String"}
  826. },
  827. "error":{"httpStatusCode":400},
  828. "exception":true
  829. },
  830. "InvalidSecurityGroupIDException":{
  831. "type":"structure",
  832. "members":{
  833. "Type":{"shape":"String"},
  834. "Message":{"shape":"String"}
  835. },
  836. "error":{"httpStatusCode":502},
  837. "exception":true
  838. },
  839. "InvalidSubnetIDException":{
  840. "type":"structure",
  841. "members":{
  842. "Type":{"shape":"String"},
  843. "Message":{"shape":"String"}
  844. },
  845. "error":{"httpStatusCode":502},
  846. "exception":true
  847. },
  848. "InvalidZipFileException":{
  849. "type":"structure",
  850. "members":{
  851. "Type":{"shape":"String"},
  852. "Message":{"shape":"String"}
  853. },
  854. "error":{"httpStatusCode":502},
  855. "exception":true
  856. },
  857. "InvocationRequest":{
  858. "type":"structure",
  859. "required":["FunctionName"],
  860. "members":{
  861. "FunctionName":{
  862. "shape":"FunctionName",
  863. "location":"uri",
  864. "locationName":"FunctionName"
  865. },
  866. "InvocationType":{
  867. "shape":"InvocationType",
  868. "location":"header",
  869. "locationName":"X-Amz-Invocation-Type"
  870. },
  871. "LogType":{
  872. "shape":"LogType",
  873. "location":"header",
  874. "locationName":"X-Amz-Log-Type"
  875. },
  876. "ClientContext":{
  877. "shape":"String",
  878. "location":"header",
  879. "locationName":"X-Amz-Client-Context"
  880. },
  881. "Payload":{"shape":"Blob"},
  882. "Qualifier":{
  883. "shape":"Qualifier",
  884. "location":"querystring",
  885. "locationName":"Qualifier"
  886. }
  887. },
  888. "payload":"Payload"
  889. },
  890. "InvocationResponse":{
  891. "type":"structure",
  892. "members":{
  893. "StatusCode":{
  894. "shape":"Integer",
  895. "location":"statusCode"
  896. },
  897. "FunctionError":{
  898. "shape":"String",
  899. "location":"header",
  900. "locationName":"X-Amz-Function-Error"
  901. },
  902. "LogResult":{
  903. "shape":"String",
  904. "location":"header",
  905. "locationName":"X-Amz-Log-Result"
  906. },
  907. "Payload":{"shape":"Blob"}
  908. },
  909. "payload":"Payload"
  910. },
  911. "InvocationType":{
  912. "type":"string",
  913. "enum":[
  914. "Event",
  915. "RequestResponse",
  916. "DryRun"
  917. ]
  918. },
  919. "InvokeAsyncRequest":{
  920. "type":"structure",
  921. "required":[
  922. "FunctionName",
  923. "InvokeArgs"
  924. ],
  925. "members":{
  926. "FunctionName":{
  927. "shape":"FunctionName",
  928. "location":"uri",
  929. "locationName":"FunctionName"
  930. },
  931. "InvokeArgs":{"shape":"BlobStream"}
  932. },
  933. "deprecated":true,
  934. "payload":"InvokeArgs"
  935. },
  936. "InvokeAsyncResponse":{
  937. "type":"structure",
  938. "members":{
  939. "Status":{
  940. "shape":"HttpStatus",
  941. "location":"statusCode"
  942. }
  943. },
  944. "deprecated":true
  945. },
  946. "ListAliasesRequest":{
  947. "type":"structure",
  948. "required":["FunctionName"],
  949. "members":{
  950. "FunctionName":{
  951. "shape":"FunctionName",
  952. "location":"uri",
  953. "locationName":"FunctionName"
  954. },
  955. "FunctionVersion":{
  956. "shape":"Version",
  957. "location":"querystring",
  958. "locationName":"FunctionVersion"
  959. },
  960. "Marker":{
  961. "shape":"String",
  962. "location":"querystring",
  963. "locationName":"Marker"
  964. },
  965. "MaxItems":{
  966. "shape":"MaxListItems",
  967. "location":"querystring",
  968. "locationName":"MaxItems"
  969. }
  970. }
  971. },
  972. "ListAliasesResponse":{
  973. "type":"structure",
  974. "members":{
  975. "NextMarker":{"shape":"String"},
  976. "Aliases":{"shape":"AliasList"}
  977. }
  978. },
  979. "ListEventSourceMappingsRequest":{
  980. "type":"structure",
  981. "members":{
  982. "EventSourceArn":{
  983. "shape":"Arn",
  984. "location":"querystring",
  985. "locationName":"EventSourceArn"
  986. },
  987. "FunctionName":{
  988. "shape":"FunctionName",
  989. "location":"querystring",
  990. "locationName":"FunctionName"
  991. },
  992. "Marker":{
  993. "shape":"String",
  994. "location":"querystring",
  995. "locationName":"Marker"
  996. },
  997. "MaxItems":{
  998. "shape":"MaxListItems",
  999. "location":"querystring",
  1000. "locationName":"MaxItems"
  1001. }
  1002. }
  1003. },
  1004. "ListEventSourceMappingsResponse":{
  1005. "type":"structure",
  1006. "members":{
  1007. "NextMarker":{"shape":"String"},
  1008. "EventSourceMappings":{"shape":"EventSourceMappingsList"}
  1009. }
  1010. },
  1011. "ListFunctionsRequest":{
  1012. "type":"structure",
  1013. "members":{
  1014. "Marker":{
  1015. "shape":"String",
  1016. "location":"querystring",
  1017. "locationName":"Marker"
  1018. },
  1019. "MaxItems":{
  1020. "shape":"MaxListItems",
  1021. "location":"querystring",
  1022. "locationName":"MaxItems"
  1023. }
  1024. }
  1025. },
  1026. "ListFunctionsResponse":{
  1027. "type":"structure",
  1028. "members":{
  1029. "NextMarker":{"shape":"String"},
  1030. "Functions":{"shape":"FunctionList"}
  1031. }
  1032. },
  1033. "ListVersionsByFunctionRequest":{
  1034. "type":"structure",
  1035. "required":["FunctionName"],
  1036. "members":{
  1037. "FunctionName":{
  1038. "shape":"FunctionName",
  1039. "location":"uri",
  1040. "locationName":"FunctionName"
  1041. },
  1042. "Marker":{
  1043. "shape":"String",
  1044. "location":"querystring",
  1045. "locationName":"Marker"
  1046. },
  1047. "MaxItems":{
  1048. "shape":"MaxListItems",
  1049. "location":"querystring",
  1050. "locationName":"MaxItems"
  1051. }
  1052. }
  1053. },
  1054. "ListVersionsByFunctionResponse":{
  1055. "type":"structure",
  1056. "members":{
  1057. "NextMarker":{"shape":"String"},
  1058. "Versions":{"shape":"FunctionList"}
  1059. }
  1060. },
  1061. "LogType":{
  1062. "type":"string",
  1063. "enum":[
  1064. "None",
  1065. "Tail"
  1066. ]
  1067. },
  1068. "Long":{"type":"long"},
  1069. "MaxListItems":{
  1070. "type":"integer",
  1071. "max":10000,
  1072. "min":1
  1073. },
  1074. "MemorySize":{
  1075. "type":"integer",
  1076. "max":1536,
  1077. "min":128
  1078. },
  1079. "PolicyLengthExceededException":{
  1080. "type":"structure",
  1081. "members":{
  1082. "Type":{"shape":"String"},
  1083. "message":{"shape":"String"}
  1084. },
  1085. "error":{"httpStatusCode":400},
  1086. "exception":true
  1087. },
  1088. "Principal":{
  1089. "type":"string",
  1090. "pattern":".*"
  1091. },
  1092. "PublishVersionRequest":{
  1093. "type":"structure",
  1094. "required":["FunctionName"],
  1095. "members":{
  1096. "FunctionName":{
  1097. "shape":"FunctionName",
  1098. "location":"uri",
  1099. "locationName":"FunctionName"
  1100. },
  1101. "CodeSha256":{"shape":"String"},
  1102. "Description":{"shape":"Description"}
  1103. }
  1104. },
  1105. "Qualifier":{
  1106. "type":"string",
  1107. "max":128,
  1108. "min":1,
  1109. "pattern":"(|[a-zA-Z0-9$_-]+)"
  1110. },
  1111. "RemovePermissionRequest":{
  1112. "type":"structure",
  1113. "required":[
  1114. "FunctionName",
  1115. "StatementId"
  1116. ],
  1117. "members":{
  1118. "FunctionName":{
  1119. "shape":"FunctionName",
  1120. "location":"uri",
  1121. "locationName":"FunctionName"
  1122. },
  1123. "StatementId":{
  1124. "shape":"StatementId",
  1125. "location":"uri",
  1126. "locationName":"StatementId"
  1127. },
  1128. "Qualifier":{
  1129. "shape":"Qualifier",
  1130. "location":"querystring",
  1131. "locationName":"Qualifier"
  1132. }
  1133. }
  1134. },
  1135. "RequestTooLargeException":{
  1136. "type":"structure",
  1137. "members":{
  1138. "Type":{"shape":"String"},
  1139. "message":{"shape":"String"}
  1140. },
  1141. "error":{"httpStatusCode":413},
  1142. "exception":true
  1143. },
  1144. "ResourceConflictException":{
  1145. "type":"structure",
  1146. "members":{
  1147. "Type":{"shape":"String"},
  1148. "message":{"shape":"String"}
  1149. },
  1150. "error":{"httpStatusCode":409},
  1151. "exception":true
  1152. },
  1153. "ResourceNotFoundException":{
  1154. "type":"structure",
  1155. "members":{
  1156. "Type":{"shape":"String"},
  1157. "Message":{"shape":"String"}
  1158. },
  1159. "error":{"httpStatusCode":404},
  1160. "exception":true
  1161. },
  1162. "RoleArn":{
  1163. "type":"string",
  1164. "pattern":"arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+"
  1165. },
  1166. "Runtime":{
  1167. "type":"string",
  1168. "enum":[
  1169. "nodejs",
  1170. "nodejs4.3",
  1171. "java8",
  1172. "python2.7"
  1173. ]
  1174. },
  1175. "S3Bucket":{
  1176. "type":"string",
  1177. "max":63,
  1178. "min":3,
  1179. "pattern":"^[0-9A-Za-z\\.\\-_]*(?<!\\.)$"
  1180. },
  1181. "S3Key":{
  1182. "type":"string",
  1183. "max":1024,
  1184. "min":1
  1185. },
  1186. "S3ObjectVersion":{
  1187. "type":"string",
  1188. "max":1024,
  1189. "min":1
  1190. },
  1191. "SecurityGroupId":{"type":"string"},
  1192. "SecurityGroupIds":{
  1193. "type":"list",
  1194. "member":{"shape":"SecurityGroupId"},
  1195. "max":5
  1196. },
  1197. "ServiceException":{
  1198. "type":"structure",
  1199. "members":{
  1200. "Type":{"shape":"String"},
  1201. "Message":{"shape":"String"}
  1202. },
  1203. "error":{"httpStatusCode":500},
  1204. "exception":true
  1205. },
  1206. "SourceOwner":{
  1207. "type":"string",
  1208. "pattern":"\\d{12}"
  1209. },
  1210. "StatementId":{
  1211. "type":"string",
  1212. "max":100,
  1213. "min":1,
  1214. "pattern":"([a-zA-Z0-9-_]+)"
  1215. },
  1216. "String":{"type":"string"},
  1217. "SubnetIPAddressLimitReachedException":{
  1218. "type":"structure",
  1219. "members":{
  1220. "Type":{"shape":"String"},
  1221. "Message":{"shape":"String"}
  1222. },
  1223. "error":{"httpStatusCode":502},
  1224. "exception":true
  1225. },
  1226. "SubnetId":{"type":"string"},
  1227. "SubnetIds":{
  1228. "type":"list",
  1229. "member":{"shape":"SubnetId"},
  1230. "max":16
  1231. },
  1232. "ThrottleReason":{
  1233. "type":"string",
  1234. "enum":[
  1235. "ConcurrentInvocationLimitExceeded",
  1236. "FunctionInvocationRateLimitExceeded",
  1237. "CallerRateLimitExceeded"
  1238. ]
  1239. },
  1240. "Timeout":{
  1241. "type":"integer",
  1242. "min":1
  1243. },
  1244. "Timestamp":{"type":"string"},
  1245. "TooManyRequestsException":{
  1246. "type":"structure",
  1247. "members":{
  1248. "retryAfterSeconds":{
  1249. "shape":"String",
  1250. "location":"header",
  1251. "locationName":"Retry-After"
  1252. },
  1253. "Type":{"shape":"String"},
  1254. "message":{"shape":"String"},
  1255. "Reason":{"shape":"ThrottleReason"}
  1256. },
  1257. "error":{"httpStatusCode":429},
  1258. "exception":true
  1259. },
  1260. "UnsupportedMediaTypeException":{
  1261. "type":"structure",
  1262. "members":{
  1263. "Type":{"shape":"String"},
  1264. "message":{"shape":"String"}
  1265. },
  1266. "error":{"httpStatusCode":415},
  1267. "exception":true
  1268. },
  1269. "UpdateAliasRequest":{
  1270. "type":"structure",
  1271. "required":[
  1272. "FunctionName",
  1273. "Name"
  1274. ],
  1275. "members":{
  1276. "FunctionName":{
  1277. "shape":"FunctionName",
  1278. "location":"uri",
  1279. "locationName":"FunctionName"
  1280. },
  1281. "Name":{
  1282. "shape":"Alias",
  1283. "location":"uri",
  1284. "locationName":"Name"
  1285. },
  1286. "FunctionVersion":{"shape":"Version"},
  1287. "Description":{"shape":"Description"}
  1288. }
  1289. },
  1290. "UpdateEventSourceMappingRequest":{
  1291. "type":"structure",
  1292. "required":["UUID"],
  1293. "members":{
  1294. "UUID":{
  1295. "shape":"String",
  1296. "location":"uri",
  1297. "locationName":"UUID"
  1298. },
  1299. "FunctionName":{"shape":"FunctionName"},
  1300. "Enabled":{"shape":"Enabled"},
  1301. "BatchSize":{"shape":"BatchSize"}
  1302. }
  1303. },
  1304. "UpdateFunctionCodeRequest":{
  1305. "type":"structure",
  1306. "required":["FunctionName"],
  1307. "members":{
  1308. "FunctionName":{
  1309. "shape":"FunctionName",
  1310. "location":"uri",
  1311. "locationName":"FunctionName"
  1312. },
  1313. "ZipFile":{"shape":"Blob"},
  1314. "S3Bucket":{"shape":"S3Bucket"},
  1315. "S3Key":{"shape":"S3Key"},
  1316. "S3ObjectVersion":{"shape":"S3ObjectVersion"},
  1317. "Publish":{"shape":"Boolean"}
  1318. }
  1319. },
  1320. "UpdateFunctionConfigurationRequest":{
  1321. "type":"structure",
  1322. "required":["FunctionName"],
  1323. "members":{
  1324. "FunctionName":{
  1325. "shape":"FunctionName",
  1326. "location":"uri",
  1327. "locationName":"FunctionName"
  1328. },
  1329. "Role":{"shape":"RoleArn"},
  1330. "Handler":{"shape":"Handler"},
  1331. "Description":{"shape":"Description"},
  1332. "Timeout":{"shape":"Timeout"},
  1333. "MemorySize":{"shape":"MemorySize"},
  1334. "VpcConfig":{"shape":"VpcConfig"},
  1335. "Runtime":{"shape":"Runtime"}
  1336. }
  1337. },
  1338. "Version":{
  1339. "type":"string",
  1340. "max":1024,
  1341. "min":1,
  1342. "pattern":"(\\$LATEST|[0-9]+)"
  1343. },
  1344. "VpcConfig":{
  1345. "type":"structure",
  1346. "members":{
  1347. "SubnetIds":{"shape":"SubnetIds"},
  1348. "SecurityGroupIds":{"shape":"SecurityGroupIds"}
  1349. }
  1350. },
  1351. "VpcConfigResponse":{
  1352. "type":"structure",
  1353. "members":{
  1354. "SubnetIds":{"shape":"SubnetIds"},
  1355. "SecurityGroupIds":{"shape":"SecurityGroupIds"},
  1356. "VpcId":{"shape":"VpcId"}
  1357. }
  1358. },
  1359. "VpcId":{"type":"string"}
  1360. }
  1361. }